Chromium Code Reviews| Index: Source/core/css/resolver/StyleAdjuster.cpp |
| diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp |
| index 733e50a61fb46c2684ba9ef0e8434d79e1581285..e29fdf03ef71b87111c81581b1b3ec5a47037bc1 100644 |
| --- a/Source/core/css/resolver/StyleAdjuster.cpp |
| +++ b/Source/core/css/resolver/StyleAdjuster.cpp |
| @@ -197,7 +197,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl |
| // will-change:transform should result in the same rendering behavior as having a transform, |
| // including the creation of a containing block for fixed position descendants. |
| - if (!style.hasTransform() && (style.willChangeProperties().contains(CSSPropertyWebkitTransform) || style.willChangeProperties().contains(CSSPropertyTransform))) { |
| + if (!e->isSVGElement() && !style.hasTransform() && (style.willChangeProperties().contains(CSSPropertyWebkitTransform) || style.willChangeProperties().contains(CSSPropertyTransform))) { |
|
pdr.
2015/04/10 04:55:11
This will crash when e is null so you'll need an e
|
| bool makeIdentity = true; |
| style.setTransform(TransformOperations(makeIdentity)); |
| } |