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