Home
last modified time | relevance | path

Searched refs:DOMRect (Results 1 – 25 of 948) sorted by relevance

12345678910>>...38

/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/geometry/
H A Ddom_rect.cc11 DOMRect* DOMRect::Create(double x, double y, double width, double height) { in Create()
12 return MakeGarbageCollected<DOMRect>(x, y, width, height); in Create()
15 DOMRect* DOMRect::FromFloatRect(const FloatRect& rect) { in FromFloatRect()
16 return MakeGarbageCollected<DOMRect>(rect.X(), rect.Y(), rect.Width(), in FromFloatRect()
20 DOMRect* DOMRect::fromRect(const DOMRectInit* other) { in fromRect()
21 return MakeGarbageCollected<DOMRect>(other->x(), other->y(), other->width(), in fromRect()
25 DOMRect::DOMRect(double x, double y, double width, double height) in DOMRect() function in blink::DOMRect
H A Ddom_rect.h15 class DOMRect; variable
18 class CORE_EXPORT DOMRect final : public DOMRectReadOnly {
22 static DOMRect* Create(double x = 0,
26 static DOMRect* FromFloatRect(const FloatRect&);
27 static DOMRect* fromRect(const DOMRectInit*);
29 DOMRect(double x, double y, double z, double w);
37 inline bool operator==(const DOMRect& lhs, const DOMRect& rhs) {
41 inline bool operator!=(const DOMRect& lhs, const DOMRect& rhs) {
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/geometry/
H A Ddom_rect.cc11 DOMRect* DOMRect::Create(double x, double y, double width, double height) { in Create()
12 return MakeGarbageCollected<DOMRect>(x, y, width, height); in Create()
15 DOMRect* DOMRect::FromFloatRect(const FloatRect& rect) { in FromFloatRect()
16 return MakeGarbageCollected<DOMRect>(rect.X(), rect.Y(), rect.Width(), in FromFloatRect()
20 DOMRect* DOMRect::fromRect(const DOMRectInit* other) { in fromRect()
21 return MakeGarbageCollected<DOMRect>(other->x(), other->y(), other->width(), in fromRect()
25 DOMRect::DOMRect(double x, double y, double width, double height) in DOMRect() function in blink::DOMRect
H A Ddom_rect.h15 class DOMRect; variable
18 class CORE_EXPORT DOMRect final : public DOMRectReadOnly {
22 static DOMRect* Create(double x = 0,
26 static DOMRect* FromFloatRect(const FloatRect&);
27 static DOMRect* fromRect(const DOMRectInit*);
29 DOMRect(double x, double y, double z, double w);
/dports/lang/spidermonkey60/firefox-60.9.0/dom/base/
H A DDOMRect.cpp32 NS_IMPL_ISUPPORTS_INHERITED(DOMRect, DOMRectReadOnly, nsIDOMClientRect) in NS_IMPL_ISUPPORTS_INHERITED() argument
36 DOMRect::Get##_name(float* aResult) { \ in NS_IMPL_ISUPPORTS_INHERITED()
48 JSObject* DOMRect::WrapObject(JSContext* aCx,
54 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
56 RefPtr<DOMRect> obj = in Constructor()
57 new DOMRect(aGlobal.GetAsSupports(), 0.0, 0.0, 0.0, 0.0); in Constructor()
61 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
65 RefPtr<DOMRect> obj = in Constructor()
66 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
102 void DOMRect::SetLayoutRect(const nsRect& aLayoutRect) { in SetLayoutRect()
H A DDOMIntersectionObserver.h14 using mozilla::dom::DOMRect;
28 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
29 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
30 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
54 DOMRect* GetRootBounds() { return mRootBounds; } in GetRootBounds()
56 DOMRect* BoundingClientRect() { return mBoundingClientRect; } in BoundingClientRect()
58 DOMRect* IntersectionRect() { return mIntersectionRect; } in IntersectionRect()
69 RefPtr<DOMRect> mRootBounds;
70 RefPtr<DOMRect> mBoundingClientRect;
71 RefPtr<DOMRect> mIntersectionRect;
H A DDOMRect.h69 class DOMRect final : public DOMRectReadOnly, public nsIDOMClientRect {
71 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
82 static already_AddRefed<DOMRect> Constructor(const GlobalObject& aGlobal,
84 static already_AddRefed<DOMRect> Constructor(const GlobalObject& aGlobal,
114 ~DOMRect(){}; in ~DOMRect()
133 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
152 DOMRect* Item(uint32_t aIndex) { return mArray.SafeElementAt(aIndex); } in Item()
153 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) { in IndexedGetter()
162 nsTArray<RefPtr<DOMRect> > mArray;
/dports/www/firefox-legacy/firefox-52.8.0esr/dom/base/
H A DDOMRect.cpp33 NS_IMPL_ISUPPORTS_INHERITED(DOMRect, DOMRectReadOnly, nsIDOMClientRect) in NS_IMPL_ISUPPORTS_INHERITED() argument
51 DOMRect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
57 already_AddRefed<DOMRect>
58 DOMRect::Constructor(const GlobalObject& aGlobal, ErrorResult& aRV) in Constructor()
60 RefPtr<DOMRect> obj = in Constructor()
61 new DOMRect(aGlobal.GetAsSupports(), 0.0, 0.0, 0.0, 0.0); in Constructor()
65 already_AddRefed<DOMRect>
66 DOMRect::Constructor(const GlobalObject& aGlobal, double aX, double aY, in Constructor()
69 RefPtr<DOMRect> obj = in Constructor()
70 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
[all …]
H A DDOMIntersectionObserver.h14 using mozilla::dom::DOMRect;
30 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
31 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
32 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
62 DOMRect* GetRootBounds() in GetRootBounds()
67 DOMRect* BoundingClientRect() in BoundingClientRect()
72 DOMRect* IntersectionRect() in IntersectionRect()
90 RefPtr<DOMRect> mRootBounds;
91 RefPtr<DOMRect> mBoundingClientRect;
92 RefPtr<DOMRect> mIntersectionRect;
H A DDOMRect.h78 class DOMRect final : public DOMRectReadOnly
82 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
95 static already_AddRefed<DOMRect>
97 static already_AddRefed<DOMRect>
146 ~DOMRect() {}; in ~DOMRect()
171 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
194 DOMRect* Item(uint32_t aIndex) in Item()
198 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) in IndexedGetter()
208 nsTArray<RefPtr<DOMRect> > mArray;
/dports/lang/spidermonkey78/firefox-78.9.0/dom/base/
H A DDOMRect.cpp91 JSObject* DOMRect::WrapObject(JSContext* aCx, in WrapObject()
97 already_AddRefed<DOMRect> DOMRect::FromRect(const GlobalObject& aGlobal, in FromRect()
99 RefPtr<DOMRect> obj = new DOMRect(aGlobal.GetAsSupports(), aInit.mX, aInit.mY, in FromRect()
104 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
107 RefPtr<DOMRect> obj = in Constructor()
108 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
113 already_AddRefed<DOMRect> DOMRect::ReadStructuredClone( in ReadStructuredClone()
116 RefPtr<DOMRect> retval = new DOMRect(aGlobal); in ReadStructuredClone()
143 void DOMRect::SetLayoutRect(const nsRect& aLayoutRect) { in SetLayoutRect()
H A DDOMRect.h93 class DOMRect final : public DOMRectReadOnly {
95 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
99 NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
101 static already_AddRefed<DOMRect> FromRect(const GlobalObject& aGlobal,
111 static already_AddRefed<DOMRect> ReadStructuredClone(
129 static DOMRect* FromSupports(nsISupports* aSupports) { in FromSupports()
130 return static_cast<DOMRect*>(aSupports); in FromSupports()
134 ~DOMRect() = default;
151 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
155 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) { in IndexedGetter()
[all …]
H A DDOMIntersectionObserver.h27 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
28 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
29 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
52 DOMRect* GetRootBounds() { return mRootBounds; } in GetRootBounds()
54 DOMRect* BoundingClientRect() { return mBoundingClientRect; } in BoundingClientRect()
56 DOMRect* IntersectionRect() { return mIntersectionRect; } in IntersectionRect()
67 RefPtr<DOMRect> mRootBounds;
68 RefPtr<DOMRect> mBoundingClientRect;
69 RefPtr<DOMRect> mIntersectionRect;
/dports/www/firefox/firefox-99.0/dom/base/
H A DDOMRect.cpp98 JSObject* DOMRect::WrapObject(JSContext* aCx, in WrapObject()
104 already_AddRefed<DOMRect> DOMRect::FromRect(const GlobalObject& aGlobal, in FromRect()
106 RefPtr<DOMRect> obj = new DOMRect(aGlobal.GetAsSupports(), aInit.mX, aInit.mY, in FromRect()
111 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
114 RefPtr<DOMRect> obj = in Constructor()
115 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
120 already_AddRefed<DOMRect> DOMRect::ReadStructuredClone( in ReadStructuredClone()
123 RefPtr<DOMRect> retval = new DOMRect(aGlobal); in ReadStructuredClone()
150 void DOMRect::SetLayoutRect(const nsRect& aLayoutRect) { in SetLayoutRect()
H A DDOMRect.h103 class DOMRect final : public DOMRectReadOnly {
105 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
109 NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
111 static already_AddRefed<DOMRect> FromRect(const GlobalObject& aGlobal,
121 static already_AddRefed<DOMRect> ReadStructuredClone(
139 static DOMRect* FromSupports(nsISupports* aSupports) { in FromSupports()
140 return static_cast<DOMRect*>(aSupports); in FromSupports()
144 ~DOMRect() = default;
161 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
165 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) { in IndexedGetter()
[all …]
H A DDOMIntersectionObserver.h29 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
30 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
31 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
54 DOMRect* GetRootBounds() { return mRootBounds; } in GetRootBounds()
56 DOMRect* BoundingClientRect() { return mBoundingClientRect; } in BoundingClientRect()
58 DOMRect* IntersectionRect() { return mIntersectionRect; } in IntersectionRect()
69 RefPtr<DOMRect> mRootBounds;
70 RefPtr<DOMRect> mBoundingClientRect;
71 RefPtr<DOMRect> mIntersectionRect;
/dports/www/firefox-esr/firefox-91.8.0/dom/base/
H A DDOMRect.cpp98 JSObject* DOMRect::WrapObject(JSContext* aCx, in WrapObject()
104 already_AddRefed<DOMRect> DOMRect::FromRect(const GlobalObject& aGlobal, in FromRect()
106 RefPtr<DOMRect> obj = new DOMRect(aGlobal.GetAsSupports(), aInit.mX, aInit.mY, in FromRect()
111 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
114 RefPtr<DOMRect> obj = in Constructor()
115 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
120 already_AddRefed<DOMRect> DOMRect::ReadStructuredClone( in ReadStructuredClone()
123 RefPtr<DOMRect> retval = new DOMRect(aGlobal); in ReadStructuredClone()
150 void DOMRect::SetLayoutRect(const nsRect& aLayoutRect) { in SetLayoutRect()
H A DDOMRect.h103 class DOMRect final : public DOMRectReadOnly {
105 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
109 NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
111 static already_AddRefed<DOMRect> FromRect(const GlobalObject& aGlobal,
121 static already_AddRefed<DOMRect> ReadStructuredClone(
139 static DOMRect* FromSupports(nsISupports* aSupports) { in FromSupports()
140 return static_cast<DOMRect*>(aSupports); in FromSupports()
144 ~DOMRect() = default;
161 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
165 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) { in IndexedGetter()
[all …]
H A DDOMIntersectionObserver.h28 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
29 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
30 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
53 DOMRect* GetRootBounds() { return mRootBounds; } in GetRootBounds()
55 DOMRect* BoundingClientRect() { return mBoundingClientRect; } in BoundingClientRect()
57 DOMRect* IntersectionRect() { return mIntersectionRect; } in IntersectionRect()
68 RefPtr<DOMRect> mRootBounds;
69 RefPtr<DOMRect> mBoundingClientRect;
70 RefPtr<DOMRect> mIntersectionRect;
H A DnsDOMCaretPosition.h17 class DOMRect; variable
30 typedef mozilla::dom::DOMRect DOMRect; typedef
64 already_AddRefed<DOMRect> GetClientRect() const;
/dports/mail/thunderbird/thunderbird-91.8.0/dom/base/
H A DDOMRect.cpp98 JSObject* DOMRect::WrapObject(JSContext* aCx, in WrapObject()
104 already_AddRefed<DOMRect> DOMRect::FromRect(const GlobalObject& aGlobal, in FromRect()
106 RefPtr<DOMRect> obj = new DOMRect(aGlobal.GetAsSupports(), aInit.mX, aInit.mY, in FromRect()
111 already_AddRefed<DOMRect> DOMRect::Constructor(const GlobalObject& aGlobal, in Constructor()
114 RefPtr<DOMRect> obj = in Constructor()
115 new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight); in Constructor()
120 already_AddRefed<DOMRect> DOMRect::ReadStructuredClone( in ReadStructuredClone()
123 RefPtr<DOMRect> retval = new DOMRect(aGlobal); in ReadStructuredClone()
150 void DOMRect::SetLayoutRect(const nsRect& aLayoutRect) { in SetLayoutRect()
H A DDOMRect.h103 class DOMRect final : public DOMRectReadOnly {
105 explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
109 NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
111 static already_AddRefed<DOMRect> FromRect(const GlobalObject& aGlobal,
121 static already_AddRefed<DOMRect> ReadStructuredClone(
139 static DOMRect* FromSupports(nsISupports* aSupports) { in FromSupports()
140 return static_cast<DOMRect*>(aSupports); in FromSupports()
144 ~DOMRect() = default;
161 void Append(DOMRect* aElement) { mArray.AppendElement(aElement); } in Append()
165 DOMRect* IndexedGetter(uint32_t aIndex, bool& aFound) { in IndexedGetter()
[all …]
H A DDOMIntersectionObserver.h28 RefPtr<DOMRect> aRootBounds, in DOMIntersectionObserverEntry()
29 RefPtr<DOMRect> aBoundingClientRect, in DOMIntersectionObserverEntry()
30 RefPtr<DOMRect> aIntersectionRect, in DOMIntersectionObserverEntry()
53 DOMRect* GetRootBounds() { return mRootBounds; } in GetRootBounds()
55 DOMRect* BoundingClientRect() { return mBoundingClientRect; } in BoundingClientRect()
57 DOMRect* IntersectionRect() { return mIntersectionRect; } in IntersectionRect()
68 RefPtr<DOMRect> mRootBounds;
69 RefPtr<DOMRect> mBoundingClientRect;
70 RefPtr<DOMRect> mIntersectionRect;
/dports/lang/spidermonkey60/firefox-60.9.0/servo/components/script/dom/
H A Ddomrect.rs16 pub struct DOMRect { struct
20 impl DOMRect { implementation
21 fn new_inherited(x: f64, y: f64, width: f64, height: f64) -> DOMRect { in new_inherited() argument
22 DOMRect { in new_inherited()
27 pub fn new(global: &GlobalScope, x: f64, y: f64, width: f64, height: f64) -> DomRoot<DOMRect> { in new() argument
28 reflect_dom_object(Box::new(DOMRect::new_inherited(x, y, width, height)), in new()
38 -> Fallible<DomRoot<DOMRect>> { in Constructor() argument
39 Ok(DOMRect::new(global, x, y, width, height)) in Constructor()
43 impl DOMRectMethods for DOMRect { implementation
/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/meta/css/geometry/
H A DDOMRect-002.html.ini1 [DOMRect-002.html]
2 [DOMRect constructor with one parameter]
5 [DOMRect constructor with two parameters]
8 [DOMRect constructor with three parameters]
11 [DOMRect constructor with undefined]
59 [DOMRect.fromRect]

12345678910>>...38