| 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; | |
| 61 | 60 |
| 62 LayoutSize relativePositionOffset() const; | 61 LayoutSize relativePositionOffset() const; |
| 63 LayoutSize relativePositionLogicalOffset() const { return style()->isHorizon
talWritingMode() ? relativePositionOffset() : relativePositionOffset().transpose
dSize(); } | 62 LayoutSize relativePositionLogicalOffset() const { return style()->isHorizon
talWritingMode() ? relativePositionOffset() : relativePositionOffset().transpose
dSize(); } |
| 64 | 63 |
| 65 LayoutSize offsetForInFlowPosition() const; | 64 LayoutSize offsetForInFlowPosition() const; |
| 66 | 65 |
| 67 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) | 66 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) |
| 68 // to return the remaining width on a given line (and the height of a single
line). | 67 // to return the remaining width on a given line (and the height of a single
line). |
| 69 virtual LayoutUnit offsetLeft() const; | 68 virtual LayoutUnit offsetLeft() const; |
| 70 virtual LayoutUnit offsetTop() const; | 69 virtual LayoutUnit offsetTop() const; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], | 321 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], |
| 323 float thickness, float drawThickness, BoxSide, const
RenderStyle*, | 322 float thickness, float drawThickness, BoxSide, const
RenderStyle*, |
| 324 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); | 323 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| 325 }; | 324 }; |
| 326 | 325 |
| 327 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 326 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
| 328 | 327 |
| 329 } // namespace blink | 328 } // namespace blink |
| 330 | 329 |
| 331 #endif // RenderBoxModelObject_h | 330 #endif // RenderBoxModelObject_h |
| OLD | NEW |