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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 RenderBoxModelObject* continuation() const; | 237 RenderBoxModelObject* continuation() const; |
238 void setContinuation(RenderBoxModelObject*); | 238 void setContinuation(RenderBoxModelObject*); |
239 | 239 |
240 static bool shouldAntialiasLines(GraphicsContext*); | 240 static bool shouldAntialiasLines(GraphicsContext*); |
241 | 241 |
242 public: | 242 public: |
243 // For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LET
TER, this tracks their remaining text fragments | 243 // For RenderBlocks and RenderInlines with m_style->styleType() == FIRST_LET
TER, this tracks their remaining text fragments |
244 RenderObject* firstLetterRemainingText() const; | 244 RenderObject* firstLetterRemainingText() const; |
245 void setFirstLetterRemainingText(RenderObject*); | 245 void setFirstLetterRemainingText(RenderObject*); |
246 | 246 |
| 247 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. |
| 248 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in |
| 249 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. |
| 250 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert = false); |
| 251 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, bool fullRemoveInsert = false) |
| 252 { |
| 253 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); |
| 254 } |
| 255 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, bool fullRemo
veInsert = false) |
| 256 { |
| 257 moveAllChildrenTo(toBoxModelObject, 0, fullRemoveInsert); |
| 258 } |
| 259 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject*
beforeChild, bool fullRemoveInsert = false) |
| 260 { |
| 261 moveChildrenTo(toBoxModelObject, firstChild(), 0, beforeChild, fullRemov
eInsert); |
| 262 } |
| 263 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the |endChild| to denote |
| 264 // that all the kids from |startChild| onwards should be moved. |
| 265 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, bool fullRemoveInsert = false) |
| 266 { |
| 267 moveChildrenTo(toBoxModelObject, startChild, endChild, 0, fullRemoveInse
rt); |
| 268 } |
| 269 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRemoveInse
rt = false); |
| 270 |
247 private: | 271 private: |
248 virtual bool isBoxModelObject() const { return true; } | 272 virtual bool isBoxModelObject() const { return true; } |
249 | 273 |
250 IntSize calculateFillTileSize(const FillLayer*, const IntSize& scaledPositio
ningAreaSize) const; | 274 IntSize calculateFillTileSize(const FillLayer*, const IntSize& scaledPositio
ningAreaSize) const; |
251 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize) const; | 275 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize) const; |
252 | 276 |
253 RoundedRect getBackgroundRoundedRect(const LayoutRect&, InlineFlowBox*, Layo
utUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, | 277 RoundedRect getBackgroundRoundedRect(const LayoutRect&, InlineFlowBox*, Layo
utUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, |
254 bool includeLogicalLeftEdge, bool includeLogicalRightEdge); | 278 bool includeLogicalLeftEdge, bool includeLogicalRightEdge); |
255 | 279 |
256 void clipBorderSidePolygon(GraphicsContext*, const RoundedRect& outerBorder,
const RoundedRect& innerBorder, | 280 void clipBorderSidePolygon(GraphicsContext*, const RoundedRect& outerBorder,
const RoundedRect& innerBorder, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 ASSERT(!object || object->isBoxModelObject()); | 314 ASSERT(!object || object->isBoxModelObject()); |
291 return static_cast<const RenderBoxModelObject*>(object); | 315 return static_cast<const RenderBoxModelObject*>(object); |
292 } | 316 } |
293 | 317 |
294 // This will catch anyone doing an unnecessary cast. | 318 // This will catch anyone doing an unnecessary cast. |
295 void toRenderBoxModelObject(const RenderBoxModelObject*); | 319 void toRenderBoxModelObject(const RenderBoxModelObject*); |
296 | 320 |
297 } // namespace WebCore | 321 } // namespace WebCore |
298 | 322 |
299 #endif // RenderBoxModelObject_h | 323 #endif // RenderBoxModelObject_h |
OLD | NEW |