Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2885983004: Remove DEFINE_STATIC_REF calls from header files (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/platform/animation/TimingFunction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698