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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2570423003: Remove paintOffsetTranslation for fixed-position elements. (Closed)
Patch Set: none 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 3271981ad0d0d28a9d695e1f70b0a6fd5115d775..fa54b5df1930a60176acf6a982bfa5a36b44867e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -302,13 +302,6 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff,
// hasLayer status will affect whether to create localBorderBoxProperties.
if (hadLayer != hasLayer()) {
Xianzhu 2016/12/15 22:37:11 Nit: if (RuntimeEnabledFeatures::slimmingPaintInva
setNeedsPaintPropertyUpdate();
- } else if (oldStyle && oldStyle->position() != styleRef().position() &&
- (oldStyle->position() == FixedPosition ||
- styleRef().position() == FixedPosition)) {
- // Fixed-position status affects whether to create paintOffsetTranslation.
- // TODO(chrishtr): Update the condition here when changing the condition
- // in PaintPropertyTreeBuilder::updatePaintOffsetTranslation().
- setNeedsPaintPropertyUpdate();
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698