| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |