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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 bool calculateHasBoxDecorations() const; | 174 bool calculateHasBoxDecorations() const; |
175 | 175 |
176 RenderBoxModelObject* continuation() const; | 176 RenderBoxModelObject* continuation() const; |
177 void setContinuation(RenderBoxModelObject*); | 177 void setContinuation(RenderBoxModelObject*); |
178 | 178 |
179 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); | 179 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); |
180 | 180 |
181 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; | 181 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; |
182 | 182 |
183 public: | 183 public: |
| 184 |
| 185 // For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LET
TER, this tracks their remaining text fragments |
| 186 RenderTextFragment* firstLetterRemainingText() const; |
| 187 void setFirstLetterRemainingText(RenderTextFragment*); |
| 188 |
184 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. | 189 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. |
185 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in | 190 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in |
186 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. | 191 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. |
187 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert = false); | 192 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert = false); |
188 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, bool fullRemoveInsert = false) | 193 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, bool fullRemoveInsert = false) |
189 { | 194 { |
190 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); | 195 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); |
191 } | 196 } |
192 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo
veInsert = false) | 197 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo
veInsert = false) |
193 { | 198 { |
(...skipping 17 matching lines...) Expand all Loading... |
211 private: | 216 private: |
212 LayoutUnit computedCSSPadding(const Length&) const; | 217 LayoutUnit computedCSSPadding(const Length&) const; |
213 virtual bool isBoxModelObject() const override final { return true; } | 218 virtual bool isBoxModelObject() const override final { return true; } |
214 }; | 219 }; |
215 | 220 |
216 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 221 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
217 | 222 |
218 } // namespace blink | 223 } // namespace blink |
219 | 224 |
220 #endif // RenderBoxModelObject_h | 225 #endif // RenderBoxModelObject_h |
OLD | NEW |