Index: sky/engine/core/rendering/style/RenderStyle.cpp |
diff --git a/sky/engine/core/rendering/style/RenderStyle.cpp b/sky/engine/core/rendering/style/RenderStyle.cpp |
index 841ecc9323bca70956544383f2d07a0433e62194..bbb3b1e73e9aa11cc0ef5d4590008bad46751a09 100644 |
--- a/sky/engine/core/rendering/style/RenderStyle.cpp |
+++ b/sky/engine/core/rendering/style/RenderStyle.cpp |
@@ -78,15 +78,6 @@ PassRefPtr<RenderStyle> RenderStyle::createDefaultStyle() |
return adoptRef(new RenderStyle(DefaultStyle)); |
} |
-PassRefPtr<RenderStyle> RenderStyle::createAnonymousStyleWithDisplay(const RenderStyle* parentStyle, EDisplay display) |
-{ |
- RefPtr<RenderStyle> newStyle = RenderStyle::create(); |
- newStyle->inheritFrom(parentStyle); |
- newStyle->inheritUnicodeBidiFrom(parentStyle); |
- newStyle->setDisplay(display); |
- return newStyle; |
-} |
- |
PassRefPtr<RenderStyle> RenderStyle::clone(const RenderStyle* other) |
{ |
return adoptRef(new RenderStyle(*other)); |
@@ -227,7 +218,7 @@ bool RenderStyle::inheritedDataShared(const RenderStyle* other) const |
&& rareInheritedData.get() == other->rareInheritedData.get(); |
} |
-bool RenderStyle::requiresOnlyBlockChildren() |
+bool RenderStyle::requiresOnlyBlockChildren() const |
{ |
switch (display()) { |
case PARAGRAPH: |