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

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

Issue 2792063002: Reland of Skip paint property update and visual rect update if no geometry change (Closed)
Patch Set: Rebase Created 3 years, 8 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/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index 0bdfeadea43a6e439b938cc74a318a443855aabc..e4f46effb89462b8189ee9a9e6ce96943116c8b5 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -17,6 +17,7 @@
#include "core/layout/svg/SVGLayoutSupport.h"
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
+#include "core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h"
#include "core/paint/FindPropertiesNeedingUpdate.h"
#include "core/paint/ObjectPaintProperties.h"
#include "core/paint/PaintLayer.h"
@@ -1043,6 +1044,10 @@ void PaintPropertyTreeBuilder::updatePaintOffset(
void PaintPropertyTreeBuilder::updateForObjectLocationAndSize(
const LayoutObject& object,
PaintPropertyTreeBuilderContext& context) {
+#if DCHECK_IS_ON()
+ FindPaintOffsetNeedingUpdateScope checkScope(object, context);
+#endif
+
if (object.isBoxModelObject()) {
updatePaintOffset(toLayoutBoxModelObject(object), context);
updatePaintOffsetTranslation(toLayoutBoxModelObject(object), context);

Powered by Google App Engine
This is Rietveld 408576698