aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/raredata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/raredata.rs')
-rw-r--r--components/script/dom/raredata.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/raredata.rs b/components/script/dom/raredata.rs
index 198b6bfe720..9d4a82d63d6 100644
--- a/components/script/dom/raredata.rs
+++ b/components/script/dom/raredata.rs
@@ -9,6 +9,8 @@ use crate::dom::customelementregistry::{
use crate::dom::mutationobserver::RegisteredObserver;
use crate::dom::node::UniqueId;
use crate::dom::shadowroot::ShadowRoot;
+use crate::dom::window::LayoutValue;
+use euclid::default::Rect;
use servo_atoms::Atom;
use std::rc::Rc;
@@ -46,4 +48,6 @@ pub struct ElementRareData {
/// The "name" content attribute; not used as frequently as id, but used
/// in named getter loops so it's worth looking up quickly when present
pub name_attribute: Option<Atom>,
+ /// The client rect reported by layout.
+ pub client_rect: Option<LayoutValue<Rect<i32>>>,
}