| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the |endChild| to denote | 281 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the |endChild| to denote |
| 282 // that all the kids from |startChild| onwards should be moved. | 282 // that all the kids from |startChild| onwards should be moved. |
| 283 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, bool fullRemoveInsert = false) | 283 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, bool fullRemoveInsert = false) |
| 284 { | 284 { |
| 285 moveChildrenTo(toBoxModelObject, startChild, endChild, 0, fullRemoveInse
rt); | 285 moveChildrenTo(toBoxModelObject, startChild, endChild, 0, fullRemoveInse
rt); |
| 286 } | 286 } |
| 287 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRemoveInse
rt = false); | 287 void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject* st
artChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRemoveInse
rt = false); |
| 288 | 288 |
| 289 private: | 289 private: |
| 290 LayoutUnit computedCSSPadding(Length) const; | 290 LayoutUnit computedCSSPadding(Length) const; |
| 291 virtual bool isBoxModelObject() const { return true; } | 291 virtual bool isBoxModelObject() const OVERRIDE FINAL { return true; } |
| 292 | 292 |
| 293 virtual LayoutRect frameRectForStickyPositioning() const = 0; | 293 virtual LayoutRect frameRectForStickyPositioning() const = 0; |
| 294 | 294 |
| 295 IntSize calculateFillTileSize(const FillLayer*, const IntSize& scaledPositio
ningAreaSize) const; | 295 IntSize calculateFillTileSize(const FillLayer*, const IntSize& scaledPositio
ningAreaSize) const; |
| 296 | 296 |
| 297 enum ScaleByEffectiveZoomOrNot { ScaleByEffectiveZoom, DoNotScaleByEffective
Zoom }; | 297 enum ScaleByEffectiveZoomOrNot { ScaleByEffectiveZoom, DoNotScaleByEffective
Zoom }; |
| 298 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize, ScaleByEffectiveZoomOrNot) const; | 298 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize, ScaleByEffectiveZoomOrNot) const; |
| 299 | 299 |
| 300 RoundedRect getBackgroundRoundedRect(const LayoutRect&, InlineFlowBox*, Layo
utUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, | 300 RoundedRect getBackgroundRoundedRect(const LayoutRect&, InlineFlowBox*, Layo
utUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, |
| 301 bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; | 301 bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 329 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); | 329 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); |
| 330 return static_cast<const RenderBoxModelObject*>(object); | 330 return static_cast<const RenderBoxModelObject*>(object); |
| 331 } | 331 } |
| 332 | 332 |
| 333 // This will catch anyone doing an unnecessary cast. | 333 // This will catch anyone doing an unnecessary cast. |
| 334 void toRenderBoxModelObject(const RenderBoxModelObject*); | 334 void toRenderBoxModelObject(const RenderBoxModelObject*); |
| 335 | 335 |
| 336 } // namespace WebCore | 336 } // namespace WebCore |
| 337 | 337 |
| 338 #endif // RenderBoxModelObject_h | 338 #endif // RenderBoxModelObject_h |
| OLD | NEW |