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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } | 507 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } |
508 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&); | 508 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&); |
509 virtual void paintMask(PaintInfo&, const LayoutPoint&); | 509 virtual void paintMask(PaintInfo&, const LayoutPoint&); |
510 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); | 510 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); |
511 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; | 511 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; |
512 | 512 |
513 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted | 513 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted |
514 // that just updates the object's position. If the size does change, the obj
ect remains dirty. | 514 // that just updates the object's position. If the size does change, the obj
ect remains dirty. |
515 bool tryLayoutDoingPositionedMovementOnly() | 515 bool tryLayoutDoingPositionedMovementOnly() |
516 { | 516 { |
| 517 setMayNeedInvalidation(true); |
| 518 |
517 LayoutUnit oldWidth = width(); | 519 LayoutUnit oldWidth = width(); |
518 updateLogicalWidth(); | 520 updateLogicalWidth(); |
519 // If we shrink to fit our width may have changed, so we still need full
layout. | 521 // If we shrink to fit our width may have changed, so we still need full
layout. |
520 if (oldWidth != width()) | 522 if (oldWidth != width()) |
521 return false; | 523 return false; |
522 updateLogicalHeight(); | 524 updateLogicalHeight(); |
523 return true; | 525 return true; |
524 } | 526 } |
525 | 527 |
526 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE; | 528 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 if (UNLIKELY(inlineBoxWrapper() != 0)) | 776 if (UNLIKELY(inlineBoxWrapper() != 0)) |
775 deleteLineBoxWrapper(); | 777 deleteLineBoxWrapper(); |
776 } | 778 } |
777 | 779 |
778 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 780 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
779 } | 781 } |
780 | 782 |
781 } // namespace WebCore | 783 } // namespace WebCore |
782 | 784 |
783 #endif // RenderBox_h | 785 #endif // RenderBox_h |
OLD | NEW |