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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 // Clipped by the contents clip, if one exists. | 225 // Clipped by the contents clip, if one exists. |
226 void addContentsVisualOverflow(const LayoutRect&); | 226 void addContentsVisualOverflow(const LayoutRect&); |
227 | 227 |
228 void addVisualEffectOverflow(); | 228 void addVisualEffectOverflow(); |
229 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch
ild->locationOffset()); } | 229 void addOverflowFromChild(RenderBox* child) { addOverflowFromChild(child, ch
ild->locationOffset()); } |
230 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta); | 230 void addOverflowFromChild(RenderBox* child, const LayoutSize& delta); |
231 void clearLayoutOverflow(); | 231 void clearLayoutOverflow(); |
232 void clearAllOverflows() { m_overflow.clear(); } | 232 void clearAllOverflows() { m_overflow.clear(); } |
233 | 233 |
234 void updateLayerTransform(); | 234 void updateLayerTransformAfterLayout(); |
235 | 235 |
236 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad
dingRight(); } | 236 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad
dingRight(); } |
237 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa
ddingBottom(); } | 237 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa
ddingBottom(); } |
238 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting
Mode() ? contentWidth() : contentHeight(); } | 238 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting
Mode() ? contentWidth() : contentHeight(); } |
239 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin
gMode() ? contentHeight() : contentWidth(); } | 239 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin
gMode() ? contentHeight() : contentWidth(); } |
240 | 240 |
241 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) | 241 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin
es (RenderFlow) |
242 // to return the remaining width on a given line (and the height of a single
line). | 242 // to return the remaining width on a given line (and the height of a single
line). |
243 virtual LayoutUnit offsetWidth() const OVERRIDE { return width(); } | 243 virtual LayoutUnit offsetWidth() const OVERRIDE { return width(); } |
244 virtual LayoutUnit offsetHeight() const OVERRIDE { return height(); } | 244 virtual LayoutUnit offsetHeight() const OVERRIDE { return height(); } |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 if (UNLIKELY(inlineBoxWrapper() != 0)) | 774 if (UNLIKELY(inlineBoxWrapper() != 0)) |
775 deleteLineBoxWrapper(); | 775 deleteLineBoxWrapper(); |
776 } | 776 } |
777 | 777 |
778 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 778 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
779 } | 779 } |
780 | 780 |
781 } // namespace WebCore | 781 } // namespace WebCore |
782 | 782 |
783 #endif // RenderBox_h | 783 #endif // RenderBox_h |
OLD | NEW |