OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 RenderTreeBuilderForElement(Element&, RenderStyle*); | 81 RenderTreeBuilderForElement(Element&, RenderStyle*); |
82 | 82 |
83 void createRendererIfNeeded() | 83 void createRendererIfNeeded() |
84 { | 84 { |
85 if (shouldCreateRenderer()) | 85 if (shouldCreateRenderer()) |
86 createRenderer(); | 86 createRenderer(); |
87 } | 87 } |
88 | 88 |
89 private: | 89 private: |
90 RenderObject* parentRenderer() const; | 90 RenderObject* parentRenderer() const; |
91 RenderObject* nextRenderer() const; | 91 RenderObject* nextRenderer(RenderObject*) const; |
92 bool shouldCreateRenderer() const; | 92 bool shouldCreateRenderer() const; |
93 RenderStyle& style() const; | 93 RenderStyle& style() const; |
94 void createRenderer(); | 94 void createRenderer(); |
95 | 95 |
96 mutable RefPtr<RenderStyle> m_style; | 96 mutable RefPtr<RenderStyle> m_style; |
97 }; | 97 }; |
98 | 98 |
99 class RenderTreeBuilderForText : public RenderTreeBuilder<Text> { | 99 class RenderTreeBuilderForText : public RenderTreeBuilder<Text> { |
100 public: | 100 public: |
101 RenderTreeBuilderForText(Text& text, RenderObject* renderingParent) | 101 RenderTreeBuilderForText(Text& text, RenderObject* renderingParent) |
102 : RenderTreeBuilder(text, renderingParent) { } | 102 : RenderTreeBuilder(text, renderingParent) { } |
103 | 103 |
104 void createRenderer(); | 104 void createRenderer(); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace blink | 107 } // namespace blink |
108 | 108 |
109 #endif | 109 #endif |
OLD | NEW |