| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 class RenderTextFragment; | 51 class RenderTextFragment; |
| 52 | 52 |
| 53 // This class is the base for all objects that adhere to the CSS box model as de
scribed | 53 // This class is the base for all objects that adhere to the CSS box model as de
scribed |
| 54 // at http://www.w3.org/TR/CSS21/box.html | 54 // at http://www.w3.org/TR/CSS21/box.html |
| 55 | 55 |
| 56 class RenderBoxModelObject : public RenderLayerModelObject { | 56 class RenderBoxModelObject : public RenderLayerModelObject { |
| 57 public: | 57 public: |
| 58 RenderBoxModelObject(ContainerNode*); | 58 RenderBoxModelObject(ContainerNode*); |
| 59 virtual ~RenderBoxModelObject(); | 59 virtual ~RenderBoxModelObject(); |
| 60 virtual void destroy() OVERRIDE; |
| 60 | 61 |
| 61 LayoutSize relativePositionOffset() const; | 62 LayoutSize relativePositionOffset() const; |
| 62 LayoutSize relativePositionLogicalOffset() const { return style()->isHorizon
talWritingMode() ? relativePositionOffset() : relativePositionOffset().transpose
dSize(); } | 63 LayoutSize relativePositionLogicalOffset() const { return style()->isHorizon
talWritingMode() ? relativePositionOffset() : relativePositionOffset().transpose
dSize(); } |
| 63 | 64 |
| 64 LayoutSize offsetForInFlowPosition() const; | 65 LayoutSize offsetForInFlowPosition() const; |
| 65 | 66 |
| 66 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) | 67 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) |
| 67 // to return the remaining width on a given line (and the height of a single
line). | 68 // to return the remaining width on a given line (and the height of a single
line). |
| 68 virtual LayoutUnit offsetLeft() const; | 69 virtual LayoutUnit offsetLeft() const; |
| 69 virtual LayoutUnit offsetTop() const; | 70 virtual LayoutUnit offsetTop() const; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], | 322 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], |
| 322 float thickness, float drawThickness, BoxSide, const
RenderStyle*, | 323 float thickness, float drawThickness, BoxSide, const
RenderStyle*, |
| 323 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); | 324 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| 324 }; | 325 }; |
| 325 | 326 |
| 326 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 327 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
| 327 | 328 |
| 328 } // namespace blink | 329 } // namespace blink |
| 329 | 330 |
| 330 #endif // RenderBoxModelObject_h | 331 #endif // RenderBoxModelObject_h |
| OLD | NEW |