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

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

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/core/events/MouseRelatedEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 57d31f3b317c30cc66efbdb90ed0e321021f56dc..3ac6f40c22ea0b681774b5ac6dde291075202feb 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -897,13 +897,7 @@ IntRect Element::boundsInViewportSpace()
for (size_t i = 1; i < quads.size(); ++i)
result.unite(quads[i].enclosingBoundingBox());
- result = view->contentsToWindow(result);
-
- // FIXME: Cleanup pinch viewport coordinate translations. crbug.com/371902.
- PinchViewport& pinchViewport = document().page()->frameHost().pinchViewport();
- result = enclosingIntRect(pinchViewport.mainViewToViewportCSSPixels(result));
-
- return result;
+ return view->soonToBeRemovedContentsToUnscaledViewport(result);
}
PassRefPtrWillBeRawPtr<ClientRectList> Element::getClientRects()
« no previous file with comments | « no previous file | Source/core/events/MouseRelatedEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698