| 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 77fcde2979b8d922226863f3529f7a3e697db8d9..aae936429d1a67957048423075dc9341771f4dfc 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| @@ -56,7 +56,6 @@
|
| #include "core/html/HTMLTemplateElement.h"
|
| #include "core/html/HTMLTextFormControlElement.h"
|
| #include "core/html/parser/HTMLParserIdioms.h"
|
| -#include "core/layout/LayoutBoxModelObject.h"
|
| #include "core/layout/LayoutObject.h"
|
| #include "core/page/SpatialNavigation.h"
|
| #include "core/svg/SVGSVGElement.h"
|
| @@ -1099,49 +1098,6 @@ const AtomicString& HTMLElement::eventParameterName()
|
| return eventString;
|
| }
|
|
|
| -int HTMLElement::offsetLeftForBinding()
|
| -{
|
| - Element* offsetParent = unclosedOffsetParent();
|
| - if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
|
| - return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSnappedOffsetLeft(offsetParent)), layoutObject->styleRef()).round();
|
| - return 0;
|
| -}
|
| -
|
| -int HTMLElement::offsetTopForBinding()
|
| -{
|
| - Element* offsetParent = unclosedOffsetParent();
|
| - if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
|
| - return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSnappedOffsetTop(offsetParent)), layoutObject->styleRef()).round();
|
| - return 0;
|
| -}
|
| -
|
| -int HTMLElement::offsetWidthForBinding()
|
| -{
|
| - Element* offsetParent = unclosedOffsetParent();
|
| - if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
|
| - return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSnappedOffsetWidth(offsetParent)), layoutObject->styleRef()).round();
|
| - return 0;
|
| -}
|
| -
|
| -int HTMLElement::offsetHeightForBinding()
|
| -{
|
| - Element* offsetParent = unclosedOffsetParent();
|
| - if (LayoutBoxModelObject* layoutObject = layoutBoxModelObject())
|
| - return adjustLayoutUnitForAbsoluteZoom(LayoutUnit(layoutObject->pixelSnappedOffsetHeight(offsetParent)), layoutObject->styleRef()).round();
|
| - return 0;
|
| -}
|
| -
|
| -Element* HTMLElement::unclosedOffsetParent()
|
| -{
|
| - document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
|
| -
|
| - LayoutObject* layoutObject = this->layoutObject();
|
| - if (!layoutObject)
|
| - return nullptr;
|
| -
|
| - return layoutObject->offsetParent(this);
|
| -}
|
| -
|
| } // namespace blink
|
|
|
| #ifndef NDEBUG
|
|
|