diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp b/chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp index 6a5ff1b31bf..26bf1b68d75 100644 --- a/chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp +++ b/chromium/third_party/WebKit/Source/core/css/CSSPropertySourceData.cpp @@ -30,10 +30,6 @@ #include "config.h" -#ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC -#define CSSPROPERTYSOURCEDATA_HIDE_GLOBALS 1 -#endif - #include "core/css/CSSPropertySourceData.h" #include "wtf/StaticConstructors.h" @@ -114,17 +110,13 @@ unsigned CSSPropertySourceData::hash() const return StringHash::hash(name) + 3 * StringHash::hash(value) + 7 * important + 13 * parsedOk + 31; } -// Global init routines -DEFINE_GLOBAL(CSSPropertySourceData, emptyCSSPropertySourceData, "", "e", false, false) - -// static -void CSSPropertySourceData::init() +void CSSRuleSourceData::trace(Visitor* visitor) { - static bool initialized; - if (!initialized) { - new ((void *) &emptyCSSPropertySourceData) CSSPropertySourceData("", "e", false, false, false, SourceRange(0, 0)); - initialized = true; - } + visitor->trace(ruleHeaderRange); + visitor->trace(ruleBodyRange); + visitor->trace(selectorRanges); + visitor->trace(styleSourceData); + visitor->trace(childRules); } } // namespace WebCore |