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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 bool calculateHasBoxDecorations() const; | 179 bool calculateHasBoxDecorations() const; |
180 | 180 |
181 RenderBoxModelObject* continuation() const; | 181 RenderBoxModelObject* continuation() const; |
182 void setContinuation(RenderBoxModelObject*); | 182 void setContinuation(RenderBoxModelObject*); |
183 | 183 |
184 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); | 184 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); |
185 | 185 |
186 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; | 186 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; |
187 | 187 |
188 public: | 188 public: |
189 | |
190 // For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LET
TER, this tracks their remaining text fragments | |
191 RenderTextFragment* firstLetterRemainingText() const; | |
192 void setFirstLetterRemainingText(RenderTextFragment*); | |
193 | |
194 // 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. |
195 // 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 |
196 // 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. |
197 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert = false); | 192 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert = false); |
198 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, bool fullRemoveInsert = false) | 193 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, bool fullRemoveInsert = false) |
199 { | 194 { |
200 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); | 195 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); |
201 } | 196 } |
202 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo
veInsert = false) | 197 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo
veInsert = false) |
203 { | 198 { |
(...skipping 17 matching lines...) Expand all Loading... |
221 private: | 216 private: |
222 LayoutUnit computedCSSPadding(const Length&) const; | 217 LayoutUnit computedCSSPadding(const Length&) const; |
223 virtual bool isBoxModelObject() const OVERRIDE FINAL { return true; } | 218 virtual bool isBoxModelObject() const OVERRIDE FINAL { return true; } |
224 }; | 219 }; |
225 | 220 |
226 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 221 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
227 | 222 |
228 } // namespace blink | 223 } // namespace blink |
229 | 224 |
230 #endif // RenderBoxModelObject_h | 225 #endif // RenderBoxModelObject_h |
OLD | NEW |