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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp

Issue 2692853016: Change PaintLayer::m_layoutObject to a reference. (Closed)
Patch Set: restore inadvertantly removed null check Created 3 years, 10 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/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 0cb65d11480e24aa73e89c27b73c1217e8036850..0548d0fafb2748aa0c73f1f1a6a4143f93290d5b 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -210,7 +210,7 @@ void PaintInvalidator::updatePaintingLayer(const LayoutObject& object,
if (object.isLayoutBlockFlow() && toLayoutBlockFlow(object).containsFloats())
context.paintingLayer->setNeedsPaintPhaseFloat();
- if (object == context.paintingLayer->layoutObject())
+ if (&object == &context.paintingLayer->layoutObject())
return;
if (object.styleRef().hasOutline())

Powered by Google App Engine
This is Rietveld 408576698