| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 357 // The clip rect of the background. |
| 358 LayoutRect backgroundClipRect() const; | 358 LayoutRect backgroundClipRect() const; |
| 359 // The clip rect of the opaque background. |
| 360 LayoutRect opaqueBackgroundClipRect() const; |
| 359 | 361 |
| 360 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect | 362 // This returns the content area of the box (excluding padding and border).
The only difference with contentBoxRect is that computedCSSContentBoxRect |
| 361 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). | 363 // does include the intrinsic padding in the content box as this is what som
e callers expect (like getComputedStyle). |
| 362 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } | 364 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft(
) + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth
() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - comp
utedCSSPaddingTop() - computedCSSPaddingBottom()); } |
| 363 | 365 |
| 364 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; | 366 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const override; |
| 365 | 367 |
| 366 // Use this with caution! No type checking is done! | 368 // Use this with caution! No type checking is done! |
| 367 LayoutBox* previousSiblingBox() const; | 369 LayoutBox* previousSiblingBox() const; |
| 368 LayoutBox* previousInFlowSiblingBox() const; | 370 LayoutBox* previousInFlowSiblingBox() const; |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1238 || breakValue == BreakLeft | 1240 || breakValue == BreakLeft |
| 1239 || breakValue == BreakPage | 1241 || breakValue == BreakPage |
| 1240 || breakValue == BreakRecto | 1242 || breakValue == BreakRecto |
| 1241 || breakValue == BreakRight | 1243 || breakValue == BreakRight |
| 1242 || breakValue == BreakVerso; | 1244 || breakValue == BreakVerso; |
| 1243 } | 1245 } |
| 1244 | 1246 |
| 1245 } // namespace blink | 1247 } // namespace blink |
| 1246 | 1248 |
| 1247 #endif // LayoutBox_h | 1249 #endif // LayoutBox_h |
| OLD | NEW |