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

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

Issue 2647533002: Force compositing inputs to be clean for getBoundingClientRect (Closed)
Patch Set: Partial response to reviewer comments, uploading for feedback Created 3 years, 11 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index b1d8247167de927328c63ad63f1763a4f38fb5f0..986127c4a8a1cbd0fc97ea5aa016339bfbe33558 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -801,6 +801,11 @@ class CORE_EXPORT Element : public ContainerNode {
virtual void parserDidSetAttributes() {}
+ // Helper method which ensures that compositing inputs have been cleaned.
+ // Cleaning the compositing inputs is required when computing the location of
+ // position:sticky elements or their descendants.
+ void ensureCompositingInputsClean();
+
private:
void scrollLayoutBoxBy(const ScrollToOptions&);
void scrollLayoutBoxTo(const ScrollToOptions&);

Powered by Google App Engine
This is Rietveld 408576698