From 8882507ad06b598fb43d8542c67ad76daeda739c Mon Sep 17 00:00:00 2001 From: Delan Azabani Date: Fri, 22 Mar 2024 14:06:28 +0800 Subject: =?UTF-8?q?Rework=20=E2=80=9Cvisible=E2=80=9D=20to=20=E2=80=9Cthro?= =?UTF-8?q?ttled=E2=80=9D=20in=20constellation=20+=20script=20+=20composit?= =?UTF-8?q?or=20(#31816)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/script/dom/htmliframeelement.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'components/script/dom/htmliframeelement.rs') diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index c108bed11c6..23613c9f1ba 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -87,7 +87,7 @@ pub struct HTMLIFrameElement { sandbox: MutNullableDom, sandbox_allowance: Cell>, load_blocker: DomRefCell>, - visibility: Cell, + throttled: Cell, } impl HTMLIFrameElement { @@ -438,7 +438,7 @@ impl HTMLIFrameElement { sandbox: Default::default(), sandbox_allowance: Cell::new(None), load_blocker: DomRefCell::new(None), - visibility: Cell::new(true), + throttled: Cell::new(false), } } @@ -473,9 +473,9 @@ impl HTMLIFrameElement { self.top_level_browsing_context_id.get() } - pub fn change_visibility_status(&self, visibility: bool) { - if self.visibility.get() != visibility { - self.visibility.set(visibility); + pub fn set_throttled(&self, throttled: bool) { + if self.throttled.get() != throttled { + self.throttled.set(throttled); } } -- cgit v1.2.3