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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 { | 615 { |
616 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*t
his) : 0; | 616 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*t
his) : 0; |
617 } | 617 } |
618 | 618 |
619 void markShapeOutsideDependentsForLayout() | 619 void markShapeOutsideDependentsForLayout() |
620 { | 620 { |
621 if (isFloating()) | 621 if (isFloating()) |
622 removeFloatingOrPositionedChildFromBlockLists(); | 622 removeFloatingOrPositionedChildFromBlockLists(); |
623 } | 623 } |
624 | 624 |
625 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE; | |
626 | |
627 protected: | 625 protected: |
628 virtual void willBeDestroyed() OVERRIDE; | 626 virtual void willBeDestroyed() OVERRIDE; |
629 | 627 |
630 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) O
VERRIDE; | 628 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) O
VERRIDE; |
631 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | 629 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
632 virtual void updateFromStyle() OVERRIDE; | 630 virtual void updateFromStyle() OVERRIDE; |
633 | 631 |
634 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 632 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
635 bool getBackgroundPaintedExtent(LayoutRect&) const; | 633 bool getBackgroundPaintedExtent(LayoutRect&) const; |
636 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 634 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 RenderBoxRareData& ensureRareData() | 720 RenderBoxRareData& ensureRareData() |
723 { | 721 { |
724 if (!m_rareData) | 722 if (!m_rareData) |
725 m_rareData = adoptPtr(new RenderBoxRareData()); | 723 m_rareData = adoptPtr(new RenderBoxRareData()); |
726 return *m_rareData.get(); | 724 return *m_rareData.get(); |
727 } | 725 } |
728 | 726 |
729 void savePreviousBorderBoxSizeIfNeeded(); | 727 void savePreviousBorderBoxSizeIfNeeded(); |
730 bool logicalHeightComputesAsNone(SizeType) const; | 728 bool logicalHeightComputesAsNone(SizeType) const; |
731 | 729 |
732 void invalidatePaintIfNeeded(const PaintInvalidationState&, const RenderLaye
rModelObject& newPaintInvalidationContainer); | 730 virtual void invalidatePaintIfNeeded(const PaintInvalidationState&, const Re
nderLayerModelObject& newPaintInvalidationContainer) OVERRIDE FINAL; |
733 | 731 |
734 bool isBox() const WTF_DELETED_FUNCTION; // This will catch anyone doing an
unnecessary check. | 732 bool isBox() const WTF_DELETED_FUNCTION; // This will catch anyone doing an
unnecessary check. |
735 | 733 |
736 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). | 734 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). |
737 LayoutRect m_frameRect; | 735 LayoutRect m_frameRect; |
738 | 736 |
739 // Our intrinsic height, used for min-height: min-content etc. Maintained by | 737 // Our intrinsic height, used for min-height: min-content etc. Maintained by |
740 // updateLogicalHeight. This is logicalHeight() before it is clamped to | 738 // updateLogicalHeight. This is logicalHeight() before it is clamped to |
741 // min/max. | 739 // min/max. |
742 mutable LayoutUnit m_intrinsicContentLogicalHeight; | 740 mutable LayoutUnit m_intrinsicContentLogicalHeight; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 if (UNLIKELY(inlineBoxWrapper() != 0)) | 793 if (UNLIKELY(inlineBoxWrapper() != 0)) |
796 deleteLineBoxWrapper(); | 794 deleteLineBoxWrapper(); |
797 } | 795 } |
798 | 796 |
799 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 797 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
800 } | 798 } |
801 | 799 |
802 } // namespace blink | 800 } // namespace blink |
803 | 801 |
804 #endif // RenderBox_h | 802 #endif // RenderBox_h |
OLD | NEW |