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

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

Issue 2197653002: CL for perf try job on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.h ('k') | third_party/WebKit/Source/core/html/HTMLElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698