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

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: Addressed rbyers@ feedback (minus tests) 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') | Source/core/frame/FrameView.h » ('J')
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 4b537da96697fc986e6a635ec6f795282d6f8996..e1fdd023305b5a62ea357e7419eba411a2cf7bbe 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -889,13 +889,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') | Source/core/frame/FrameView.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698