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

Unified Diff: Source/core/inspector/InspectorTraceEvents.cpp

Issue 1303413004: Convert some call sites to use explicit LayoutRect->FloatRect conversion. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « Source/core/frame/RootFrameViewport.cpp ('k') | Source/core/layout/HitTestLocation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTraceEvents.cpp
diff --git a/Source/core/inspector/InspectorTraceEvents.cpp b/Source/core/inspector/InspectorTraceEvents.cpp
index 43ce38ca1d052eef9d41e92486ad2b4b594336a6..20e850c223f2f3df626d615a53536c97e8ad908d 100644
--- a/Source/core/inspector/InspectorTraceEvents.cpp
+++ b/Source/core/inspector/InspectorTraceEvents.cpp
@@ -536,7 +536,7 @@ static void localToPageQuad(const LayoutObject& layoutObject, const LayoutRect&
{
LocalFrame* frame = layoutObject.frame();
FrameView* view = frame->view();
- FloatQuad absolute = layoutObject.localToAbsoluteQuad(FloatQuad(rect));
+ FloatQuad absolute = layoutObject.localToAbsoluteQuad(FloatQuad(FloatRect(rect)));
quad->setP1(view->contentsToRootFrame(roundedIntPoint(absolute.p1())));
quad->setP2(view->contentsToRootFrame(roundedIntPoint(absolute.p2())));
quad->setP3(view->contentsToRootFrame(roundedIntPoint(absolute.p3())));
« no previous file with comments | « Source/core/frame/RootFrameViewport.cpp ('k') | Source/core/layout/HitTestLocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698