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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 270383002: Remove will-change: contents GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index dfeb3bed61f5b2ce8ec111e0e8193140b5c768cd..108339c9af80506244571f5352c84493cfd3ac93 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -659,8 +659,7 @@ bool RenderStyle::diffNeedsRecompositeLayer(const RenderStyle& other) const
|| rareNonInheritedData->m_perspective != other.rareNonInheritedData->m_perspective
|| rareNonInheritedData->m_perspectiveOriginX != other.rareNonInheritedData->m_perspectiveOriginX
|| rareNonInheritedData->m_perspectiveOriginY != other.rareNonInheritedData->m_perspectiveOriginY
- || hasWillChangeCompositingHint() != other.hasWillChangeCompositingHint()
- || hasWillChangeGpuRasterizationHint() != other.hasWillChangeGpuRasterizationHint())
+ || hasWillChangeCompositingHint() != other.hasWillChangeCompositingHint())
return true;
}
@@ -883,25 +882,6 @@ bool RenderStyle::hasWillChangeCompositingHint() const
return false;
}
-bool RenderStyle::hasWillChangeGpuRasterizationHint() const
-{
- if (willChangeContents())
- return true;
-
- for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size(); ++i) {
- switch (rareNonInheritedData->m_willChange->m_properties[i]) {
- case CSSPropertyWidth:
- case CSSPropertyHeight:
- case CSSPropertyBackgroundColor:
- case CSSPropertyBackgroundPosition:
- return true;
- default:
- break;
- }
- }
- return false;
-}
-
inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& transformOperations, RenderStyle::ApplyTransformOrigin applyOrigin)
{
// transform-origin brackets the transform with translate operations.

Powered by Google App Engine
This is Rietveld 408576698