| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index 89a762a575958b1e46e6cc459ae1baed7f3f3a6e..18dbc6ae417865f81223ec0697862d17c37aeb70 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -83,6 +83,18 @@ PassRefPtr<ComputedStyle> ComputedStyle::createInitialStyle()
|
| return adoptRef(new ComputedStyle(InitialStyle));
|
| }
|
|
|
| +void ComputedStyle::clearInitialStyle()
|
| +{
|
| + ComputedStyle** pointer = initialStylePointer();
|
| + if (!*pointer)
|
| + return;
|
| + RefPtr<ComputedStyle> holder = adoptRef(*pointer);
|
| + {
|
| + LEAK_SANITIZER_DISABLED_SCOPE;
|
| + *pointer = createInitialStyle().leakRef();
|
| + }
|
| +}
|
| +
|
| PassRefPtr<ComputedStyle> ComputedStyle::createAnonymousStyleWithDisplay(const ComputedStyle& parentStyle, EDisplay display)
|
| {
|
| RefPtr<ComputedStyle> newStyle = ComputedStyle::create();
|
|
|