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

Unified Diff: sky/engine/core/rendering/RenderObject.cpp

Issue 856563006: Remove background obscuration checks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderObject.cpp
diff --git a/sky/engine/core/rendering/RenderObject.cpp b/sky/engine/core/rendering/RenderObject.cpp
index 9d4fefe82a6def0d68c0a967895120994c2e68bf..596e71a0e1124c7fb7fa12da8c86e6e40b739e2f 100644
--- a/sky/engine/core/rendering/RenderObject.cpp
+++ b/sky/engine/core/rendering/RenderObject.cpp
@@ -1199,18 +1199,6 @@ void RenderObject::selectionStartEnd(int& spos, int& epos) const
StyleDifference RenderObject::adjustStyleDifference(StyleDifference diff) const
{
- // If transform, opacity or zIndex changed, then we need to invalidate paints.
- // Text nodes share style with their parents but transform/opacity/z-index don't apply to them,
- if (!isText() &&
- (diff.transformChanged() || diff.opacityChanged() || diff.zIndexChanged())) {
- diff.setNeedsPaintInvalidation();
- }
-
- // If filter changed and it paints with filters, then we need to invalidate paints.
- if (diff.filterChanged() && hasLayer()) {
- diff.setNeedsPaintInvalidation();
- }
-
// The answer to layerTypeRequired() for plugins, iframes, and canvas can change without the actual
// style changing, since it depends on whether we decide to composite these elements. When the
// layer status of one of these elements changes, we need to force a layout.
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698