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

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

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index ff7212a3bdf054348ee7cc6bb8a600ca1b482ea5..afe75b2debf3539f10c3f961de16d043cd31f381 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -994,7 +994,7 @@ bool Element::hasNonEmptyLayoutSize() const
return false;
}
-IntRect Element::boundsInViewportSpace()
+IntRect Element::boundsInViewport()
{
document().updateLayoutIgnorePendingStylesheets();
@@ -1020,7 +1020,7 @@ IntRect Element::boundsInViewportSpace()
for (size_t i = 1; i < quads.size(); ++i)
result.unite(quads[i].enclosingBoundingBox());
- return view->soonToBeRemovedContentsToUnscaledViewport(result);
+ return view->contentsToViewport(result);
}
ClientRectList* Element::getClientRects()

Powered by Google App Engine
This is Rietveld 408576698