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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/RootFrameViewport.cpp ('k') | Source/core/layout/HitTestLocation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/inspector/InspectorTraceEvents.h" 6 #include "core/inspector/InspectorTraceEvents.h"
7 7
8 #include "bindings/core/v8/ScriptCallStackFactory.h" 8 #include "bindings/core/v8/ScriptCallStackFactory.h"
9 #include "core/animation/Animation.h" 9 #include "core/animation/Animation.h"
10 #include "core/animation/KeyframeEffect.h" 10 #include "core/animation/KeyframeEffect.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 if (LocalFrame* frame = frameForExecutionContext(context)) 529 if (LocalFrame* frame = frameForExecutionContext(context))
530 value->setString("frame", toHexString(frame)); 530 value->setString("frame", toHexString(frame));
531 setCallStack(value.get()); 531 setCallStack(value.get());
532 return value.release(); 532 return value.release();
533 } 533 }
534 534
535 static void localToPageQuad(const LayoutObject& layoutObject, const LayoutRect& rect, FloatQuad* quad) 535 static void localToPageQuad(const LayoutObject& layoutObject, const LayoutRect& rect, FloatQuad* quad)
536 { 536 {
537 LocalFrame* frame = layoutObject.frame(); 537 LocalFrame* frame = layoutObject.frame();
538 FrameView* view = frame->view(); 538 FrameView* view = frame->view();
539 FloatQuad absolute = layoutObject.localToAbsoluteQuad(FloatQuad(rect)); 539 FloatQuad absolute = layoutObject.localToAbsoluteQuad(FloatQuad(FloatRect(re ct)));
540 quad->setP1(view->contentsToRootFrame(roundedIntPoint(absolute.p1()))); 540 quad->setP1(view->contentsToRootFrame(roundedIntPoint(absolute.p1())));
541 quad->setP2(view->contentsToRootFrame(roundedIntPoint(absolute.p2()))); 541 quad->setP2(view->contentsToRootFrame(roundedIntPoint(absolute.p2())));
542 quad->setP3(view->contentsToRootFrame(roundedIntPoint(absolute.p3()))); 542 quad->setP3(view->contentsToRootFrame(roundedIntPoint(absolute.p3())));
543 quad->setP4(view->contentsToRootFrame(roundedIntPoint(absolute.p4()))); 543 quad->setP4(view->contentsToRootFrame(roundedIntPoint(absolute.p4())));
544 } 544 }
545 545
546 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd ated[] = "Squashing layer geometry was updated"; 546 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd ated[] = "Squashing layer geometry was updated";
547 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T he layer may have been added to an already-existing squashing layer"; 547 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T he layer may have been added to an already-existing squashing layer";
548 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[] = "Removed the layer from a squashing layer"; 548 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[] = "Removed the layer from a squashing layer";
549 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = " Reflection layer change"; 549 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = " Reflection layer change";
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 if (request.move()) 771 if (request.move())
772 value->setBoolean("move", true); 772 value->setBoolean("move", true);
773 if (request.listBased()) 773 if (request.listBased())
774 value->setBoolean("listBased", true); 774 value->setBoolean("listBased", true);
775 else if (Node* node = result.innerNode()) 775 else if (Node* node = result.innerNode())
776 setNodeInfo(value.get(), node, "nodeId", "nodeName"); 776 setNodeInfo(value.get(), node, "nodeId", "nodeName");
777 return value; 777 return value;
778 } 778 }
779 779
780 } 780 }
OLDNEW
« 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