Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h

Issue 2869803003: Change from ClientRect to DOMRect.
Patch Set: Change from ClientRect to DOMRect. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
index b567e2f7666771092c56bbfcb510158730ce68b9..42b0adb5418dbab550a4718a87c2ac40ff15f126 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h
@@ -5,8 +5,8 @@
#ifndef IntersectionObserverEntry_h
#define IntersectionObserverEntry_h
-#include "core/dom/ClientRect.h"
#include "core/dom/DOMHighResTimeStamp.h"
+#include "core/geometry/DOMRect.h"
#include "platform/bindings/ScriptWrappable.h"
#include "platform/geometry/IntRect.h"
#include "platform/heap/Handle.h"
@@ -31,9 +31,9 @@ class IntersectionObserverEntry final
double time() const { return time_; }
double intersectionRatio() const { return intersection_ratio_; }
- ClientRect* boundingClientRect() const { return bounding_client_rect_; }
- ClientRect* rootBounds() const { return root_bounds_; }
- ClientRect* intersectionRect() const { return intersection_rect_; }
+ DOMRect* boundingClientRect() const { return bounding_client_rect_; }
+ DOMRect* rootBounds() const { return root_bounds_; }
+ DOMRect* intersectionRect() const { return intersection_rect_; }
bool isIntersecting() const { return is_intersecting_; }
Element* target() const { return target_.Get(); }
@@ -42,9 +42,9 @@ class IntersectionObserverEntry final
private:
DOMHighResTimeStamp time_;
double intersection_ratio_;
- Member<ClientRect> bounding_client_rect_;
- Member<ClientRect> root_bounds_;
- Member<ClientRect> intersection_rect_;
+ Member<DOMRect> bounding_client_rect_;
+ Member<DOMRect> root_bounds_;
+ Member<DOMRect> intersection_rect_;
Member<Element> target_;
bool is_intersecting_;
};
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementTest.cpp ('k') | third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698