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

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

Issue 2529293012: Invalidate paint properties on paint offset changes (Closed)
Patch Set: Fix transform underinvalidation, skip several spinvalidation skips Created 4 years 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 8794b9f888d6e890ee13c714dc8fc5eb1d361005..a0a17d3962ef13e7d138575fc7b25be600a0f5ca 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -796,14 +796,13 @@ static void overrideContaineringBlockContextFromRealContainingBlock(
context.scroll = properties->propertyTreeState.scroll();
}
-static void deriveBorderBoxFromContainerContext(
+void PaintPropertyTreeBuilder::updateContextForBoxPosition(
const LayoutObject& object,
PaintPropertyTreeBuilderContext& context) {
if (!object.isBoxModelObject())
return;
const LayoutBoxModelObject& boxModelObject = toLayoutBoxModelObject(object);
-
switch (object.styleRef().position()) {
case StaticPosition:
break;
@@ -889,8 +888,6 @@ void PaintPropertyTreeBuilder::updatePropertiesForSelf(
FindObjectPropertiesNeedingUpdateScope checkNeedsUpdateScope(object, context);
#endif
- deriveBorderBoxFromContainerContext(object, context);
-
updatePaintOffsetTranslation(object, context);
updateTransform(object, context);
updateEffect(object, context);

Powered by Google App Engine
This is Rietveld 408576698