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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp

Issue 2894093002: Don't access DisplayItemClient::VisualRect() for cached display items. (Closed)
Patch Set: - Created 3 years, 7 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/platform/graphics/paint/DisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
index 02248582ddee55b3518303f2d6f334e1dc41190c..5686ef195e29d0dd213ce14081a41b9e9d0d584b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.cpp
@@ -9,6 +9,7 @@ namespace blink {
struct SameSizeAsDisplayItem {
virtual ~SameSizeAsDisplayItem() {} // Allocate vtable pointer.
void* pointer;
+ LayoutRect rect;
int i;
#ifndef NDEBUG
WTF::String debug_string_;
@@ -244,6 +245,8 @@ void DisplayItem::DumpPropertiesAsDebugString(
string_builder.Append(' ');
string_builder.Append(ClientDebugString());
}
+ string_builder.Append("\", visualRect: \"");
+ string_builder.Append(VisualRect().ToString());
string_builder.Append("\", type: \"");
string_builder.Append(TypeAsDebugString(GetType()));
string_builder.Append('"');

Powered by Google App Engine
This is Rietveld 408576698