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 dcaaded2cb2bb7fc24beab8c511e0551c0a2adf1..44b8c2d13c857e7a886f880b38c2422a27cc632d 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -100,6 +100,13 @@ PassRefPtr<ComputedStyle> ComputedStyle::CreateInitialStyle() { |
return AdoptRef(new ComputedStyle()); |
} |
+ComputedStyle& ComputedStyle::MutableInitialStyle() { |
+ LEAK_SANITIZER_DISABLED_SCOPE; |
+ DEFINE_STATIC_REF(ComputedStyle, initial_style, |
+ (ComputedStyle::CreateInitialStyle())); |
+ return *initial_style; |
+} |
+ |
void ComputedStyle::InvalidateInitialStyle() { |
MutableInitialStyle().SetTapHighlightColor(InitialTapHighlightColor()); |
} |