| 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" |
| 11 #include "core/animation/Animation.h" | 11 #include "core/animation/Animation.h" |
| 12 #include "core/animation/AnimationPlayer.h" | 12 #include "core/animation/AnimationPlayer.h" |
| 13 #include "core/css/invalidation/DescendantInvalidationSet.h" | 13 #include "core/css/invalidation/DescendantInvalidationSet.h" |
| 14 #include "core/dom/StyleChangeReason.h" | 14 #include "core/dom/StyleChangeReason.h" |
| 15 #include "core/events/Event.h" | 15 #include "core/events/Event.h" |
| 16 #include "core/fetch/CSSStyleSheetResource.h" | 16 #include "core/fetch/CSSStyleSheetResource.h" |
| 17 #include "core/frame/FrameView.h" | 17 #include "core/frame/FrameView.h" |
| 18 #include "core/frame/LocalFrame.h" | 18 #include "core/frame/LocalFrame.h" |
| 19 #include "core/inspector/IdentifiersFactory.h" | 19 #include "core/inspector/IdentifiersFactory.h" |
| 20 #include "core/inspector/InspectorNodeIds.h" | 20 #include "core/inspector/InspectorNodeIds.h" |
| 21 #include "core/inspector/ScriptCallStack.h" | 21 #include "core/inspector/ScriptCallStack.h" |
| 22 #include "core/layout/Layer.h" |
| 22 #include "core/page/Page.h" | 23 #include "core/page/Page.h" |
| 23 #include "core/rendering/RenderImage.h" | 24 #include "core/rendering/RenderImage.h" |
| 24 #include "core/rendering/RenderLayer.h" | |
| 25 #include "core/rendering/RenderObject.h" | 25 #include "core/rendering/RenderObject.h" |
| 26 #include "core/workers/WorkerThread.h" | 26 #include "core/workers/WorkerThread.h" |
| 27 #include "core/xmlhttprequest/XMLHttpRequest.h" | 27 #include "core/xmlhttprequest/XMLHttpRequest.h" |
| 28 #include "platform/JSONValues.h" | 28 #include "platform/JSONValues.h" |
| 29 #include "platform/TracedValue.h" | 29 #include "platform/TracedValue.h" |
| 30 #include "platform/graphics/GraphicsLayer.h" | 30 #include "platform/graphics/GraphicsLayer.h" |
| 31 #include "platform/network/ResourceRequest.h" | 31 #include "platform/network/ResourceRequest.h" |
| 32 #include "platform/network/ResourceResponse.h" | 32 #include "platform/network/ResourceResponse.h" |
| 33 #include "platform/weborigin/KURL.h" | 33 #include "platform/weborigin/KURL.h" |
| 34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); | 503 quad->setP3(view->contentsToRootView(roundedIntPoint(absolute.p3()))); |
| 504 quad->setP4(view->contentsToRootView(roundedIntPoint(absolute.p4()))); | 504 quad->setP4(view->contentsToRootView(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 RenderLayer* layer, const char* reason) | 513 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorLayerInvalidationTrack
ingEvent::data(const Layer* layer, const char* reason) |
| 514 { | 514 { |
| 515 const RenderObject* paintInvalidationContainer = layer->renderer()->containe
rForPaintInvalidation(); | 515 const RenderObject* paintInvalidationContainer = layer->renderer()->containe
rForPaintInvalidation(); |
| 516 | 516 |
| 517 RefPtr<TracedValue> value = TracedValue::create(); | 517 RefPtr<TracedValue> value = TracedValue::create(); |
| 518 value->setString("frame", toHexString(paintInvalidationContainer->frame())); | 518 value->setString("frame", toHexString(paintInvalidationContainer->frame())); |
| 519 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); | 519 setGeneratingNodeInfo(value.get(), paintInvalidationContainer, "paintId"); |
| 520 value->setString("reason", reason); | 520 value->setString("reason", reason); |
| 521 return value.release(); | 521 return value.release(); |
| 522 } | 522 } |
| 523 | 523 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 } | 718 } |
| 719 | 719 |
| 720 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) | 720 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const AnimationPlayer& player) |
| 721 { | 721 { |
| 722 RefPtr<TracedValue> value = TracedValue::create(); | 722 RefPtr<TracedValue> value = TracedValue::create(); |
| 723 value->setString("state", player.playState()); | 723 value->setString("state", player.playState()); |
| 724 return value.release(); | 724 return value.release(); |
| 725 } | 725 } |
| 726 | 726 |
| 727 } | 727 } |
| OLD | NEW |