| 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 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool hasHorizontalBordersPaddingOrMargin() const { return hasHorizontalBorde
rsOrPadding() || marginLeft() != 0 || marginRight() != 0; } | 83 bool hasHorizontalBordersPaddingOrMargin() const { return hasHorizontalBorde
rsOrPadding() || marginLeft() != 0 || marginRight() != 0; } |
| 84 bool hasHorizontalBordersOrPadding() const { return borderLeft() != 0 || bor
derRight() != 0 || paddingLeft() != 0 || paddingRight() != 0; } | 84 bool hasHorizontalBordersOrPadding() const { return borderLeft() != 0 || bor
derRight() != 0 || paddingLeft() != 0 || paddingRight() != 0; } |
| 85 | 85 |
| 86 virtual int containingBlockWidthForContent() const; | 86 virtual int containingBlockWidthForContent() const; |
| 87 | 87 |
| 88 virtual void childBecameNonInline(RenderObject* /*child*/) { } | 88 virtual void childBecameNonInline(RenderObject* /*child*/) { } |
| 89 | 89 |
| 90 void paintBorder(GraphicsContext*, int tx, int ty, int w, int h, const Rende
rStyle*, bool begin = true, bool end = true); | 90 void paintBorder(GraphicsContext*, int tx, int ty, int w, int h, const Rende
rStyle*, bool begin = true, bool end = true); |
| 91 bool paintNinePieceImage(GraphicsContext*, int tx, int ty, int w, int h, con
st RenderStyle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver)
; | 91 bool paintNinePieceImage(GraphicsContext*, int tx, int ty, int w, int h, con
st RenderStyle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver)
; |
| 92 void paintBoxShadow(GraphicsContext*, int tx, int ty, int w, int h, const Re
nderStyle*, ShadowStyle, bool begin = true, bool end = true); | 92 void paintBoxShadow(GraphicsContext*, int tx, int ty, int w, int h, const Re
nderStyle*, ShadowStyle, bool begin = true, bool end = true); |
| 93 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*
, int tx, int ty, int width, int height, InlineFlowBox* = 0, CompositeOperator =
CompositeSourceOver); | 93 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*
, int tx, int ty, int width, int height, InlineFlowBox* = 0, CompositeOperator =
CompositeSourceOver, RenderObject* backgroundObject = 0); |
| 94 | 94 |
| 95 // The difference between this inline's baseline position and the line's bas
eline position. | 95 // The difference between this inline's baseline position and the line's bas
eline position. |
| 96 int verticalPosition(bool firstLine) const; | 96 int verticalPosition(bool firstLine) const; |
| 97 | 97 |
| 98 // Called by RenderObject::destroy() (and RenderWidget::destroy()) and is th
e only way layers should ever be destroyed | 98 // Called by RenderObject::destroy() (and RenderWidget::destroy()) and is th
e only way layers should ever be destroyed |
| 99 void destroyLayer(); | 99 void destroyLayer(); |
| 100 | 100 |
| 101 protected: | 101 protected: |
| 102 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int
w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize); | 102 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int
w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize); |
| 103 | 103 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 127 ASSERT(!object || object->isBoxModelObject()); | 127 ASSERT(!object || object->isBoxModelObject()); |
| 128 return static_cast<const RenderBoxModelObject*>(object); | 128 return static_cast<const RenderBoxModelObject*>(object); |
| 129 } | 129 } |
| 130 | 130 |
| 131 // This will catch anyone doing an unnecessary cast. | 131 // This will catch anyone doing an unnecessary cast. |
| 132 void toRenderBoxModelObject(const RenderBoxModelObject*); | 132 void toRenderBoxModelObject(const RenderBoxModelObject*); |
| 133 | 133 |
| 134 } // namespace WebCore | 134 } // namespace WebCore |
| 135 | 135 |
| 136 #endif // RenderBoxModelObject_h | 136 #endif // RenderBoxModelObject_h |
| OLD | NEW |