Chromium Code Reviews| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 523 LayoutRectRecorder recorder(*this); | 523 LayoutRectRecorder recorder(*this); |
| 524 LayoutUnit oldWidth = width(); | 524 LayoutUnit oldWidth = width(); |
| 525 updateLogicalWidth(); | 525 updateLogicalWidth(); |
| 526 // If we shrink to fit our width may have changed, so we still need full layout. | 526 // If we shrink to fit our width may have changed, so we still need full layout. |
| 527 if (oldWidth != width()) | 527 if (oldWidth != width()) |
| 528 return false; | 528 return false; |
| 529 updateLogicalHeight(); | 529 updateLogicalHeight(); |
| 530 return true; | 530 return true; |
| 531 } | 531 } |
| 532 | 532 |
| 533 bool tryLayoutDoingResizeOnly() | |
|
esprehn
2014/03/24 22:40:04
This should not be inline in the header. Move it t
Xianzhu
2014/03/24 23:53:24
Done.
| |
| 534 { | |
| 535 // FIXME: For now this is for RenderView only. Needs more verifications before applied to generic objects. | |
| 536 ASSERT(isRenderView()); | |
| 537 | |
| 538 LayoutRectRecorder recorder(*this); | |
| 539 LayoutUnit oldWidth = width(); | |
| 540 updateLogicalWidth(); | |
| 541 // If we shrink to fit our width may have changed, so we still need full layout. | |
| 542 if (oldWidth != width()) | |
| 543 return false; | |
| 544 updateLogicalHeight(); | |
| 545 return true; | |
| 546 } | |
| 547 | |
| 533 LayoutRect maskClipRect(); | 548 LayoutRect maskClipRect(); |
| 534 | 549 |
| 535 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE; | 550 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE; |
| 536 | 551 |
| 537 void removeFloatingOrPositionedChildFromBlockLists(); | 552 void removeFloatingOrPositionedChildFromBlockLists(); |
| 538 | 553 |
| 539 RenderLayer* enclosingFloatPaintingLayer() const; | 554 RenderLayer* enclosingFloatPaintingLayer() const; |
| 540 | 555 |
| 541 virtual int firstLineBoxBaseline() const { return -1; } | 556 virtual int firstLineBoxBaseline() const { return -1; } |
| 542 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R eturns -1 if we should skip this box when computing the baseline of an inline-bl ock. | 557 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R eturns -1 if we should skip this box when computing the baseline of an inline-bl ock. |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 778 if (UNLIKELY(inlineBoxWrapper() != 0)) | 793 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 779 deleteLineBoxWrapper(); | 794 deleteLineBoxWrapper(); |
| 780 } | 795 } |
| 781 | 796 |
| 782 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 797 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 783 } | 798 } |
| 784 | 799 |
| 785 } // namespace WebCore | 800 } // namespace WebCore |
| 786 | 801 |
| 787 #endif // RenderBox_h | 802 #endif // RenderBox_h |
| OLD | NEW |