| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void paintBoxShadow(const PaintInfo&, const LayoutRect&, const RenderStyle*,
ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge =
true); | 160 void paintBoxShadow(const PaintInfo&, const LayoutRect&, const RenderStyle*,
ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge =
true); |
| 161 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*
, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutS
ize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderObject* back
groundObject = 0); | 161 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer*
, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutS
ize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderObject* back
groundObject = 0); |
| 162 | 162 |
| 163 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = 0) const; | 163 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = 0) const; |
| 164 | 164 |
| 165 // Overridden by subclasses to determine line height and baseline position. | 165 // Overridden by subclasses to determine line height and baseline position. |
| 166 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; | 166 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; |
| 167 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; | 167 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; |
| 168 | 168 |
| 169 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; | 169 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; |
| 170 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; |
| 170 | 171 |
| 171 void highQualityRepaintTimerFired(Timer<RenderBoxModelObject>*); | 172 void highQualityRepaintTimerFired(Timer<RenderBoxModelObject>*); |
| 172 | 173 |
| 173 virtual void setSelectionState(SelectionState s); | 174 virtual void setSelectionState(SelectionState s); |
| 174 | 175 |
| 175 bool canHaveBoxInfoInRegion() const { return !isFloating() && !isReplaced()
&& !isInline() && !hasColumns() && !isTableCell() && isBlockFlow(); } | 176 bool canHaveBoxInfoInRegion() const { return !isFloating() && !isReplaced()
&& !isInline() && !hasColumns() && !isTableCell() && isBlockFlow(); } |
| 176 | 177 |
| 177 void contentChanged(ContentChangeType); | 178 void contentChanged(ContentChangeType); |
| 178 bool hasAcceleratedCompositing() const; | 179 bool hasAcceleratedCompositing() const; |
| 179 | 180 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); | 330 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); |
| 330 return static_cast<const RenderBoxModelObject*>(object); | 331 return static_cast<const RenderBoxModelObject*>(object); |
| 331 } | 332 } |
| 332 | 333 |
| 333 // This will catch anyone doing an unnecessary cast. | 334 // This will catch anyone doing an unnecessary cast. |
| 334 void toRenderBoxModelObject(const RenderBoxModelObject*); | 335 void toRenderBoxModelObject(const RenderBoxModelObject*); |
| 335 | 336 |
| 336 } // namespace WebCore | 337 } // namespace WebCore |
| 337 | 338 |
| 338 #endif // RenderBoxModelObject_h | 339 #endif // RenderBoxModelObject_h |
| OLD | NEW |