Index: Source/core/layout/style/LayoutStyle.h |
diff --git a/Source/core/layout/style/LayoutStyle.h b/Source/core/layout/style/LayoutStyle.h |
index 0c2ef2cd51e7ca244f9f3b36105df4e25ef6a311..1f26235066dd98e2b5cd10dda8aa68262917607b 100644 |
--- a/Source/core/layout/style/LayoutStyle.h |
+++ b/Source/core/layout/style/LayoutStyle.h |
@@ -327,15 +327,21 @@ protected: |
private: |
ALWAYS_INLINE LayoutStyle(); |
- enum DefaultStyleTag { |
- DefaultStyle |
+ enum InitialStyleTag { |
+ InitialStyle |
}; |
- ALWAYS_INLINE explicit LayoutStyle(DefaultStyleTag); |
+ ALWAYS_INLINE explicit LayoutStyle(InitialStyleTag); |
ALWAYS_INLINE LayoutStyle(const LayoutStyle&); |
+ static PassRefPtr<LayoutStyle> createInitialStyle(); |
+ static inline LayoutStyle* initialStyle() |
+ { |
+ DEFINE_STATIC_REF(LayoutStyle, s_initialStyle, (LayoutStyle::createInitialStyle())); |
+ return s_initialStyle; |
+ } |
+ |
public: |
static PassRefPtr<LayoutStyle> create(); |
- static PassRefPtr<LayoutStyle> createDefaultStyle(); |
static PassRefPtr<LayoutStyle> createAnonymousStyleWithDisplay(const LayoutStyle& parentStyle, EDisplay); |
static PassRefPtr<LayoutStyle> clone(const LayoutStyle&); |