| Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| index 1be5fad18b2b9d9ad5c2104ec45e908da5735dee..7bd797a5fb19fe4616f5ddbcd7d818ebb913b80f 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -141,18 +141,18 @@
|
|
|
| static StylePropertySet* leftToRightDeclaration()
|
| {
|
| - DEFINE_STATIC_LOCAL(MutableStylePropertySet, leftToRightDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| - if (leftToRightDecl.isEmpty())
|
| - leftToRightDecl.setProperty(CSSPropertyDirection, CSSValueLtr);
|
| - return &leftToRightDecl;
|
| + DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, leftToRightDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| + if (leftToRightDecl->isEmpty())
|
| + leftToRightDecl->setProperty(CSSPropertyDirection, CSSValueLtr);
|
| + return leftToRightDecl;
|
| }
|
|
|
| static StylePropertySet* rightToLeftDeclaration()
|
| {
|
| - DEFINE_STATIC_LOCAL(MutableStylePropertySet, rightToLeftDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| - if (rightToLeftDecl.isEmpty())
|
| - rightToLeftDecl.setProperty(CSSPropertyDirection, CSSValueRtl);
|
| - return &rightToLeftDecl;
|
| + DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, rightToLeftDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| + if (rightToLeftDecl->isEmpty())
|
| + rightToLeftDecl->setProperty(CSSPropertyDirection, CSSValueRtl);
|
| + return rightToLeftDecl;
|
| }
|
|
|
| static void collectScopedResolversForHostedShadowTrees(const Element& element, HeapVector<Member<ScopedStyleResolver>, 8>& resolvers)
|
|
|