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

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

Issue 2942123002: Break LayoutObject dependency for NinePieceImagePainter (Closed)
Patch Set: Pass document explicitly Created 3 years, 6 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
Index: third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
index a0bb5b5001451d7abc3c6becac6f4d7003295980..060066719e5e2b9ef82f10800c47661e5261ea8b 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp
@@ -1067,6 +1067,17 @@ std::unique_ptr<TracedValue> InspectorPaintImageEvent::Data(
return value;
}
+std::unique_ptr<TracedValue> InspectorPaintImageEvent::Data(
+ Node* node,
+ const StyleImage& style_image) {
+ std::unique_ptr<TracedValue> value = TracedValue::Create();
+ if (node)
+ SetNodeInfo(value.get(), node, "nodeId", nullptr);
+ if (const ImageResourceContent* resource = style_image.CachedImage())
+ value->SetString("url", resource->Url().GetString());
+ return value;
+}
+
std::unique_ptr<TracedValue> InspectorPaintImageEvent::Data(
const LayoutObject* owning_layout_object,
const ImageResourceContent& image_resource) {
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h ('k') | third_party/WebKit/Source/core/paint/BoxPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698