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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 347 |
348 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). | 348 // The content area of the box (excludes padding - and intrinsic padding for
table cells, etc... - and border). |
349 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } | 349 LayoutRect contentBoxRect() const { return LayoutRect(borderLeft() + padding
Left(), borderTop() + paddingTop(), contentWidth(), contentHeight()); } |
350 LayoutSize contentBoxOffset() const { return LayoutSize(borderLeft() + paddi
ngLeft(), borderTop() + paddingTop()); } | 350 LayoutSize contentBoxOffset() const { return LayoutSize(borderLeft() + paddi
ngLeft(), borderTop() + paddingTop()); } |
351 // The content box in absolute coords. Ignores transforms. | 351 // The content box in absolute coords. Ignores transforms. |
352 IntRect absoluteContentBox() const; | 352 IntRect absoluteContentBox() const; |
353 // The offset of the content box in absolute coords, ignoring transforms. | 353 // The offset of the content box in absolute coords, ignoring transforms. |
354 IntSize absoluteContentBoxOffset() const; | 354 IntSize absoluteContentBoxOffset() const; |
355 // The content box converted to absolute coords (taking transforms into acco
unt). | 355 // The content box converted to absolute coords (taking transforms into acco
unt). |
356 FloatQuad absoluteContentQuad() const; | 356 FloatQuad absoluteContentQuad() const; |
| 357 // The clip rect of the background. |
| 358 LayoutRect backgroundClipRect() const; |
357 | 359 |
358 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 360 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
359 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 361 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
360 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } | 362 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } |
361 | 363 |
362 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; | 364 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; |
363 | 365 |
364 // Use this with caution! No type checking is done! | 366 // Use this with caution! No type checking is done! |
365 LayoutBox* previousSiblingBox() const; | 367 LayoutBox* previousSiblingBox() const; |
366 LayoutBox* previousInFlowSiblingBox() const; | 368 LayoutBox* previousInFlowSiblingBox() const; |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 || breakValue == BreakLeft | 1232 || breakValue == BreakLeft |
1231 || breakValue == BreakPage | 1233 || breakValue == BreakPage |
1232 || breakValue == BreakRecto | 1234 || breakValue == BreakRecto |
1233 || breakValue == BreakRight | 1235 || breakValue == BreakRight |
1234 || breakValue == BreakVerso; | 1236 || breakValue == BreakVerso; |
1235 } | 1237 } |
1236 | 1238 |
1237 } // namespace blink | 1239 } // namespace blink |
1238 | 1240 |
1239 #endif // LayoutBox_h | 1241 #endif // LayoutBox_h |
OLD | NEW |