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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 LayoutTreeBuilderForElement(Element&, ComputedStyle*); | 80 LayoutTreeBuilderForElement(Element&, ComputedStyle*); |
81 | 81 |
82 void createLayoutObjectIfNeeded() | 82 void createLayoutObjectIfNeeded() |
83 { | 83 { |
84 if (shouldCreateLayoutObject()) | 84 if (shouldCreateLayoutObject()) |
85 createLayoutObject(); | 85 createLayoutObject(); |
86 } | 86 } |
87 | 87 |
88 private: | 88 private: |
89 LayoutObject* parentLayoutObject() const; | 89 LayoutObject* parentLayoutObject() const; |
90 LayoutObject* nextLayoutObject() const; | 90 LayoutObject* nextLayoutObject(LayoutObject*) const; |
91 bool shouldCreateLayoutObject() const; | 91 bool shouldCreateLayoutObject() const; |
92 ComputedStyle& style() const; | 92 ComputedStyle& style() const; |
93 void createLayoutObject(); | 93 void createLayoutObject(); |
94 | 94 |
95 mutable RefPtr<ComputedStyle> m_style; | 95 mutable RefPtr<ComputedStyle> m_style; |
96 }; | 96 }; |
97 | 97 |
98 class LayoutTreeBuilderForText : public LayoutTreeBuilder<Text> { | 98 class LayoutTreeBuilderForText : public LayoutTreeBuilder<Text> { |
99 public: | 99 public: |
100 LayoutTreeBuilderForText(Text& text, LayoutObject* renderingParent) | 100 LayoutTreeBuilderForText(Text& text, LayoutObject* renderingParent) |
101 : LayoutTreeBuilder(text, renderingParent) { } | 101 : LayoutTreeBuilder(text, renderingParent) { } |
102 | 102 |
103 void createLayoutObject(); | 103 void createLayoutObject(); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif | 108 #endif |
OLD | NEW |