| Index: third_party/WebKit/Source/core/style/ComputedStyle.h
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| index b666a15f8a9e8f364399101d2ab775cc39428ece..3d91b0eaf99413ca7612d1e3dfc4925d289e0a4b 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -358,17 +358,19 @@ private:
|
| ALWAYS_INLINE ComputedStyle(const ComputedStyle&);
|
|
|
| static PassRefPtr<ComputedStyle> createInitialStyle();
|
| - static inline ComputedStyle* initialStyle()
|
| + static inline ComputedStyle* initialStyle() { return *initialStylePointer(); }
|
| + static inline ComputedStyle** initialStylePointer()
|
| {
|
| LEAK_SANITIZER_DISABLED_SCOPE;
|
| DEFINE_STATIC_REF(ComputedStyle, s_initialStyle, (ComputedStyle::createInitialStyle()));
|
| - return s_initialStyle;
|
| + return &s_initialStyle;
|
| }
|
|
|
| public:
|
| static PassRefPtr<ComputedStyle> create();
|
| static PassRefPtr<ComputedStyle> createAnonymousStyleWithDisplay(const ComputedStyle& parentStyle, EDisplay);
|
| static PassRefPtr<ComputedStyle> clone(const ComputedStyle&);
|
| + static void clearInitialStyle();
|
|
|
| // Computes how the style change should be propagated down the tree.
|
| static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle, const ComputedStyle* newStyle);
|
|
|