| 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 "bindings/core/v8/ScriptGCEvent.h" | 9 #include "bindings/core/v8/ScriptGCEvent.h" |
| 10 #include "bindings/core/v8/ScriptSourceCode.h" | 10 #include "bindings/core/v8/ScriptSourceCode.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 value->setString("frame", toHexString(frame)); | 491 value->setString("frame", toHexString(frame)); |
| 492 setCallStack(value.get()); | 492 setCallStack(value.get()); |
| 493 return value.release(); | 493 return value.release(); |
| 494 } | 494 } |
| 495 | 495 |
| 496 static void localToPageQuad(const LayoutObject& renderer, const LayoutRect& rect
, FloatQuad* quad) | 496 static void localToPageQuad(const LayoutObject& renderer, const LayoutRect& rect
, FloatQuad* quad) |
| 497 { | 497 { |
| 498 LocalFrame* frame = renderer.frame(); | 498 LocalFrame* frame = renderer.frame(); |
| 499 FrameView* view = frame->view(); | 499 FrameView* view = frame->view(); |
| 500 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect)); | 500 FloatQuad absolute = renderer.localToAbsoluteQuad(FloatQuad(rect)); |
| 501 quad->setP1(view->contentsToRootView(roundedIntPoint(absolute.p1()))); | 501 quad->setP1(view->contentsToRootFrame(roundedIntPoint(absolute.p1()))); |
| 502 quad->setP2(view->contentsToRootView(roundedIntPoint(absolute.p2()))); | 502 quad->setP2(view->contentsToRootFrame(roundedIntPoint(absolute.p2()))); |
| 503 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); | 503 quad->setP3(view->contentsToRootFrame(roundedIntPoint(absolute.p3()))); |
| 504 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); | 504 quad->setP4(view->contentsToRootFrame(roundedIntPoint(absolute.p4()))); |
| 505 } | 505 } |
| 506 | 506 |
| 507 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; | 507 const char InspectorLayerInvalidationTrackingEvent::SquashingLayerGeometryWasUpd
ated[] = "Squashing layer geometry was updated"; |
| 508 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; | 508 const char InspectorLayerInvalidationTrackingEvent::AddedToSquashingLayer[] = "T
he layer may have been added to an already-existing squashing layer"; |
| 509 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; | 509 const char InspectorLayerInvalidationTrackingEvent::RemovedFromSquashingLayer[]
= "Removed the layer from a squashing layer"; |
| 510 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; | 510 const char InspectorLayerInvalidationTrackingEvent::ReflectionLayerChanged[] = "
Reflection layer change"; |
| 511 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; | 511 const char InspectorLayerInvalidationTrackingEvent::NewCompositedLayer[] = "Assi
gned a new composited layer"; |
| 512 | 512 |
| 513 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const Layer* layer, const char* reason) | 513 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const Layer* layer, const char* reason) |
| 514 { | 514 { |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 712 } |
| 713 | 713 |
| 714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) | 714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) |
| 715 { | 715 { |
| 716 RefPtr<TracedValue> value = TracedValue::create(); | 716 RefPtr<TracedValue> value = TracedValue::create(); |
| 717 value->setString("state", player.playState()); | 717 value->setString("state", player.playState()); |
| 718 return value.release(); | 718 return value.release(); |
| 719 } | 719 } |
| 720 | 720 |
| 721 } | 721 } |
| OLD | NEW |