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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: Rebase Created 3 years, 7 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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index 593e248aed59e5357818ea4724534f0b5dcea4a8..51ba6f18bda81b3e4268cffa76753c03cd05c97a 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -1141,6 +1141,7 @@ const AtomicString& HTMLElement::EventParameterName() {
}
int HTMLElement::offsetLeftForBinding() {
+ GetDocument().EnsurePaintLocationDataValidForNode(this);
Element* offset_parent = unclosedOffsetParent();
if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
return AdjustLayoutUnitForAbsoluteZoom(
@@ -1151,6 +1152,7 @@ int HTMLElement::offsetLeftForBinding() {
}
int HTMLElement::offsetTopForBinding() {
+ GetDocument().EnsurePaintLocationDataValidForNode(this);
Element* offset_parent = unclosedOffsetParent();
if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
return AdjustLayoutUnitForAbsoluteZoom(
@@ -1161,6 +1163,7 @@ int HTMLElement::offsetTopForBinding() {
}
int HTMLElement::offsetWidthForBinding() {
+ GetDocument().EnsurePaintLocationDataValidForNode(this);
Element* offset_parent = unclosedOffsetParent();
if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
return AdjustLayoutUnitForAbsoluteZoom(
@@ -1173,6 +1176,7 @@ int HTMLElement::offsetWidthForBinding() {
DISABLE_CFI_PERF
int HTMLElement::offsetHeightForBinding() {
+ GetDocument().EnsurePaintLocationDataValidForNode(this);
Element* offset_parent = unclosedOffsetParent();
if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
return AdjustLayoutUnitForAbsoluteZoom(
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementTest.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698