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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 void AddVisualEffectOverflow(); | 491 void AddVisualEffectOverflow(); |
492 LayoutRectOutsets ComputeVisualEffectOverflowOutsets(); | 492 LayoutRectOutsets ComputeVisualEffectOverflowOutsets(); |
493 void AddOverflowFromChild(const LayoutBox& child) { | 493 void AddOverflowFromChild(const LayoutBox& child) { |
494 AddOverflowFromChild(child, child.LocationOffset()); | 494 AddOverflowFromChild(child, child.LocationOffset()); |
495 } | 495 } |
496 void AddOverflowFromChild(const LayoutBox& child, const LayoutSize& delta); | 496 void AddOverflowFromChild(const LayoutBox& child, const LayoutSize& delta); |
497 void ClearLayoutOverflow(); | 497 void ClearLayoutOverflow(); |
498 void ClearAllOverflows() { overflow_.reset(); } | 498 void ClearAllOverflows() { overflow_.reset(); } |
499 | 499 |
500 void UpdateLayerTransformAfterLayout(); | 500 virtual void UpdateAfterLayout(); |
501 | 501 |
502 DISABLE_CFI_PERF LayoutUnit ContentWidth() const { | 502 DISABLE_CFI_PERF LayoutUnit ContentWidth() const { |
503 // We're dealing with LayoutUnit and saturated arithmetic here, so we need | 503 // We're dealing with LayoutUnit and saturated arithmetic here, so we need |
504 // to guard against negative results. The value returned from clientWidth() | 504 // to guard against negative results. The value returned from clientWidth() |
505 // may in itself be a victim of saturated arithmetic; e.g. if both border | 505 // may in itself be a victim of saturated arithmetic; e.g. if both border |
506 // sides were sufficiently wide (close to LayoutUnit::max()). Here we | 506 // sides were sufficiently wide (close to LayoutUnit::max()). Here we |
507 // subtract two padding values from that result, which is another source of | 507 // subtract two padding values from that result, which is another source of |
508 // saturated arithmetic. | 508 // saturated arithmetic. |
509 return (ClientWidth() - PaddingLeft() - PaddingRight()) | 509 return (ClientWidth() - PaddingLeft() - PaddingRight()) |
510 .ClampNegativeToZero(); | 510 .ClampNegativeToZero(); |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 break_value == EBreakBetween::kLeft || | 1738 break_value == EBreakBetween::kLeft || |
1739 break_value == EBreakBetween::kPage || | 1739 break_value == EBreakBetween::kPage || |
1740 break_value == EBreakBetween::kRecto || | 1740 break_value == EBreakBetween::kRecto || |
1741 break_value == EBreakBetween::kRight || | 1741 break_value == EBreakBetween::kRight || |
1742 break_value == EBreakBetween::kVerso; | 1742 break_value == EBreakBetween::kVerso; |
1743 } | 1743 } |
1744 | 1744 |
1745 } // namespace blink | 1745 } // namespace blink |
1746 | 1746 |
1747 #endif // LayoutBox_h | 1747 #endif // LayoutBox_h |
OLD | NEW |