| 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 b8ccadfe7e433c623ab7aae58c47baaeff8d855c..580234dcd72e43aac399bbf58a3f53665d4a56b4 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -140,18 +140,18 @@ ComputedStyle* StyleResolver::s_styleNotYetAvailable;
|
|
|
| static StylePropertySet* leftToRightDeclaration()
|
| {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, leftToRightDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| - if (leftToRightDecl->isEmpty())
|
| - leftToRightDecl->setProperty(CSSPropertyDirection, CSSValueLtr);
|
| - return leftToRightDecl;
|
| + DEFINE_STATIC_LOCAL(MutableStylePropertySet, leftToRightDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| + if (leftToRightDecl.isEmpty())
|
| + leftToRightDecl.setProperty(CSSPropertyDirection, CSSValueLtr);
|
| + return &leftToRightDecl;
|
| }
|
|
|
| static StylePropertySet* rightToLeftDeclaration()
|
| {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, rightToLeftDecl, (MutableStylePropertySet::create(HTMLQuirksMode)));
|
| - if (rightToLeftDecl->isEmpty())
|
| - rightToLeftDecl->setProperty(CSSPropertyDirection, CSSValueRtl);
|
| - return rightToLeftDecl;
|
| + DEFINE_STATIC_LOCAL(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)
|
|
|