| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = 0) const = 0; | 142 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = 0) const = 0; |
| 143 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = 0) const = 0; | 143 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = 0) const = 0; |
| 144 LayoutUnit marginHeight() const { return marginTop() + marginBottom(); } | 144 LayoutUnit marginHeight() const { return marginTop() + marginBottom(); } |
| 145 LayoutUnit marginWidth() const { return marginLeft() + marginRight(); } | 145 LayoutUnit marginWidth() const { return marginLeft() + marginRight(); } |
| 146 LayoutUnit marginLogicalHeight() const { return marginBefore() + marginAfter
(); } | 146 LayoutUnit marginLogicalHeight() const { return marginBefore() + marginAfter
(); } |
| 147 LayoutUnit marginLogicalWidth() const { return marginStart() + marginEnd();
} | 147 LayoutUnit marginLogicalWidth() const { return marginStart() + marginEnd();
} |
| 148 | 148 |
| 149 bool hasInlineDirectionBordersPaddingOrMargin() const { return hasInlineDire
ctionBordersOrPadding() || marginStart()|| marginEnd(); } | 149 bool hasInlineDirectionBordersPaddingOrMargin() const { return hasInlineDire
ctionBordersOrPadding() || marginStart()|| marginEnd(); } |
| 150 bool hasInlineDirectionBordersOrPadding() const { return borderStart() || bo
rderEnd() || paddingStart()|| paddingEnd(); } | 150 bool hasInlineDirectionBordersOrPadding() const { return borderStart() || bo
rderEnd() || paddingStart()|| paddingEnd(); } |
| 151 | 151 |
| 152 virtual LayoutUnit containingBlockLogicalWidthForContent() const; | 152 LayoutUnit containingBlockLogicalWidthForContent() const; |
| 153 | 153 |
| 154 virtual void childBecameNonInline(RenderObject* /*child*/) { } | 154 virtual void childBecameNonInline(RenderObject* /*child*/) { } |
| 155 | 155 |
| 156 void paintBorder(const PaintInfo&, const LayoutRect&, const RenderStyle*, Ba
ckgroundBleedAvoidance = BackgroundBleedNone, bool includeLogicalLeftEdge = true
, bool includeLogicalRightEdge = true); | 156 void paintBorder(const PaintInfo&, const LayoutRect&, const RenderStyle*, Ba
ckgroundBleedAvoidance = BackgroundBleedNone, bool includeLogicalLeftEdge = true
, bool includeLogicalRightEdge = true); |
| 157 bool paintNinePieceImage(GraphicsContext*, const LayoutRect&, const RenderSt
yle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver); | 157 bool paintNinePieceImage(GraphicsContext*, const LayoutRect&, const RenderSt
yle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver); |
| 158 void paintBoxShadow(const PaintInfo&, const LayoutRect&, const RenderStyle*,
ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge =
true); | 158 void paintBoxShadow(const PaintInfo&, const LayoutRect&, const RenderStyle*,
ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge =
true); |
| 159 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer&
, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutS
ize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderObject* back
groundObject = 0, bool skipBaseColor = false); | 159 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer&
, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutS
ize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderObject* back
groundObject = 0, bool skipBaseColor = false); |
| 160 | 160 |
| 161 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = 0) const; | 161 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = 0) const; |
| 162 | 162 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], | 317 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], |
| 318 float thickness, float drawThickness, BoxSide, const
RenderStyle*, | 318 float thickness, float drawThickness, BoxSide, const
RenderStyle*, |
| 319 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); | 319 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 322 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
| 323 | 323 |
| 324 } // namespace blink | 324 } // namespace blink |
| 325 | 325 |
| 326 #endif // RenderBoxModelObject_h | 326 #endif // RenderBoxModelObject_h |
| OLD | NEW |