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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2220333004: Set objects to need full paint invalidation after clearing their invalidation rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index fa5e387b18fac0cec4a0502c3c90637730fc4295..aaf32e4cd5df838ee002af3917955d188b0f65e2 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2618,4 +2618,12 @@ String Internals::getProgrammaticScrollAnimationState(Node* node) const
return String();
}
+ClientRect* Internals::visualRect(Node* node)
+{
+ if (!node || !node->layoutObject())
+ return ClientRect::create();
+
+ return ClientRect::create(FloatRect(node->layoutObject()->visualRect()));
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698