| 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 d0d4c083394be934a738e88061b72771157aac13..ce8a1f425c4935733a30ea92244ba339260c479b 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().EnsureLifecycleValidForLocationAPIsForNode(this);
|
| Element* offset_parent = unclosedOffsetParent();
|
| if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
|
| return AdjustLayoutUnitForAbsoluteZoom(
|
| @@ -1151,6 +1152,7 @@ int HTMLElement::offsetLeftForBinding() {
|
| }
|
|
|
| int HTMLElement::offsetTopForBinding() {
|
| + GetDocument().EnsureLifecycleValidForLocationAPIsForNode(this);
|
| Element* offset_parent = unclosedOffsetParent();
|
| if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
|
| return AdjustLayoutUnitForAbsoluteZoom(
|
| @@ -1161,6 +1163,7 @@ int HTMLElement::offsetTopForBinding() {
|
| }
|
|
|
| int HTMLElement::offsetWidthForBinding() {
|
| + GetDocument().EnsureLifecycleValidForLocationAPIsForNode(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().EnsureLifecycleValidForLocationAPIsForNode(this);
|
| Element* offset_parent = unclosedOffsetParent();
|
| if (LayoutBoxModelObject* layout_object = GetLayoutBoxModelObject())
|
| return AdjustLayoutUnitForAbsoluteZoom(
|
|
|