| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 virtual LayoutRect overflowClipRect(const LayoutPoint& location); | 431 virtual LayoutRect overflowClipRect(const LayoutPoint& location); |
| 432 LayoutRect clipRect(const LayoutPoint& location); | 432 LayoutRect clipRect(const LayoutPoint& location); |
| 433 virtual bool hasControlClip() const { return false; } | 433 virtual bool hasControlClip() const { return false; } |
| 434 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } | 434 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } |
| 435 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); | 435 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); |
| 436 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); | 436 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); |
| 437 | 437 |
| 438 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } | 438 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } |
| 439 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); | 439 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); |
| 440 virtual void paintMask(PaintInfo&, const LayoutPoint&); | 440 virtual void paintMask(PaintInfo&, const LayoutPoint&); |
| 441 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | |
| 442 | 441 |
| 443 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted | 442 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted |
| 444 // that just updates the object's position. If the size does change, the obj
ect remains dirty. | 443 // that just updates the object's position. If the size does change, the obj
ect remains dirty. |
| 445 bool tryLayoutDoingPositionedMovementOnly() | 444 bool tryLayoutDoingPositionedMovementOnly() |
| 446 { | 445 { |
| 447 LayoutUnit oldWidth = width(); | 446 LayoutUnit oldWidth = width(); |
| 448 updateLogicalWidth(); | 447 updateLogicalWidth(); |
| 449 // If we shrink to fit our width may have changed, so we still need full
layout. | 448 // If we shrink to fit our width may have changed, so we still need full
layout. |
| 450 if (oldWidth != width()) | 449 if (oldWidth != width()) |
| 451 return false; | 450 return false; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 | 528 |
| 530 void paintRootBoxFillLayers(const PaintInfo&); | 529 void paintRootBoxFillLayers(const PaintInfo&); |
| 531 | 530 |
| 532 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); | 531 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); |
| 533 | 532 |
| 534 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH
eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight;
} | 533 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH
eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight;
} |
| 535 | 534 |
| 536 private: | 535 private: |
| 537 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; | 536 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; |
| 538 | 537 |
| 539 // Returns true if we queued up a paint invalidation. | |
| 540 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); | |
| 541 | |
| 542 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; | 538 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; |
| 543 | 539 |
| 544 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock) const; | 540 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock) const; |
| 545 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock) const; | 541 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock) const; |
| 546 | 542 |
| 547 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; | 543 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; |
| 548 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, | 544 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, |
| 549 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, | 545 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, |
| 550 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, | 546 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, |
| 551 const Length& marginLogicalRight, Lo
gicalExtentComputedValues&) const; | 547 const Length& marginLogicalRight, Lo
gicalExtentComputedValues&) const; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 if (UNLIKELY(inlineBoxWrapper() != 0)) | 640 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 645 deleteLineBoxWrapper(); | 641 deleteLineBoxWrapper(); |
| 646 } | 642 } |
| 647 | 643 |
| 648 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 644 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 649 } | 645 } |
| 650 | 646 |
| 651 } // namespace blink | 647 } // namespace blink |
| 652 | 648 |
| 653 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 649 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |