···11--- original
22+++ modified
33-@@ -208,6 +208,10 @@
44-55- /// Handler for all Paint Timings
66- paint_timing_handler: RefCell<Option<PaintTimingHandler>>,
33+@@ -212,6 +212,10 @@
44+ /// Whether accessibility is active in this layout.
55+ /// (Note: this is a temporary field which will be replaced with an optional accessibility tree member.)
66+ accessibility_active: Cell<bool>,
77+
88+ /// The current page zoom for rendering (used by embedded webviews).
99+ /// When this changes, we need to trigger a new stacking context tree build.
···1111 }
12121313 pub struct LayoutFactoryImpl();
1414-@@ -248,12 +252,25 @@
1414+@@ -252,12 +256,25 @@
1515 fn set_viewport_details(&mut self, viewport_details: ViewportDetails) -> bool {
1616 let device = self.stylist.device_mut();
1717 let device_pixel_ratio = Scale::new(viewport_details.hidpi_scale_factor.get());
···4141 device.set_viewport_size(viewport_details.size);
4242 device.set_device_pixel_ratio(device_pixel_ratio);
4343 self.device_has_changed = true;
4444-@@ -764,6 +781,7 @@
4545- previously_highlighted_dom_node: Cell::new(None),
4444+@@ -777,6 +794,7 @@
4645 paint_timing_handler: Default::default(),
4746 user_stylesheets: config.user_stylesheets,
4747+ accessibility_active: Cell::new(config.accessibility_active),
4848+ page_zoom_for_rendering: Cell::new(config.viewport_details.page_zoom_for_rendering),
4949 }
5050 }
···9393 /// Messages to the Constellation from the embedding layer, whether from `ServoRenderer` or
9494 /// from `libservo` itself.
9595 #[derive(IntoStaticStr)]
9696-@@ -116,6 +178,9 @@
9797- UserContentManagerAction(UserContentManagerId, UserContentManagerAction),
9898- /// Update pinch zoom details stored in the top level window
9696+@@ -118,6 +180,9 @@
9997 UpdatePinchZoomInfos(PipelineId, PinchZoomInfos),
9898+ /// Activate or deactivate accessibility features.
9999+ SetAccessibilityActive(bool),
100100+ /// Notify all script threads about a Servo error, so they can dispatch `servoerror` events
101101+ /// to all `navigator.embedder` instances.
102102+ NotifyServoError(ServoErrorType, String),
+3-3
patches/components/shared/script/lib.rs.patch
···3535 }
36363737 /// When a pipeline is closed, should its browsing context be discarded too?
3838-@@ -306,6 +314,19 @@
3939- /// Update the pinch zoom details of a pipeline. Each `Window` stores a `VisualViewport` DOM
4040- /// instance that gets updated according to the changes from the `Compositor``.
3838+@@ -308,6 +316,19 @@
4139 UpdatePinchZoomInfos(PipelineId, PinchZoomInfos),
4040+ /// Activate or deactivate accessibility features.
4141+ SetAccessibilityActive(bool),
4242+ /// Dispatch an event on an embedded webview's iframe element.
4343+ /// This is sent from the constellation when it receives an `EmbeddedWebViewNotification`
4444+ /// from an embedded webview's script thread.