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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "core/platform/ScrollTypes.h" | 26 #include "core/platform/ScrollTypes.h" |
27 #include "core/rendering/RenderBoxModelObject.h" | 27 #include "core/rendering/RenderBoxModelObject.h" |
28 #include "core/rendering/RenderOverflow.h" | 28 #include "core/rendering/RenderOverflow.h" |
29 #include "core/rendering/shapes/ShapeOutsideInfo.h" | 29 #include "core/rendering/shapes/ShapeOutsideInfo.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class RenderBoxRegionInfo; | 33 class RenderBoxRegionInfo; |
34 class RenderRegion; | 34 class RenderRegion; |
35 struct PaintInfo; | 35 class PaintInfo; |
36 | 36 |
37 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; | 37 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; |
38 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; | 38 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; |
39 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; | 39 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; |
40 | 40 |
41 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; | 41 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; |
42 | 42 |
43 class RenderBox : public RenderBoxModelObject { | 43 class RenderBox : public RenderBoxModelObject { |
44 public: | 44 public: |
45 explicit RenderBox(ContainerNode*); | 45 explicit RenderBox(ContainerNode*); |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 virtual void willBeDestroyed(); | 586 virtual void willBeDestroyed(); |
587 | 587 |
588 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); | 588 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); |
589 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 589 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
590 virtual void updateFromStyle() OVERRIDE; | 590 virtual void updateFromStyle() OVERRIDE; |
591 | 591 |
592 LayoutRect backgroundPaintedExtent() const; | 592 LayoutRect backgroundPaintedExtent() const; |
593 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 593 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
594 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE; | 594 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE; |
595 | 595 |
596 void paintBackground(const PaintInfo&, const LayoutRect&, BackgroundBleedAvo
idance = BackgroundBleedNone); | 596 void paintBackground(PaintInfo&, const LayoutRect&, BackgroundBleedAvoidance
= BackgroundBleedNone); |
597 | 597 |
598 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou
ndObject); | 598 void paintFillLayer(PaintInfo&, const Color&, const FillLayer*, const Layout
Rect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgroundObje
ct); |
599 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator
= CompositeSourceOver, RenderObject* backgroundObject = 0); | 599 void paintFillLayers(PaintInfo&, const Color&, const FillLayer*, const Layou
tRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = Comp
ositeSourceOver, RenderObject* backgroundObject = 0); |
600 | 600 |
601 void paintMaskImages(const PaintInfo&, const LayoutRect&); | 601 void paintMaskImages(PaintInfo&, const LayoutRect&); |
602 | 602 |
603 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*)
const; | 603 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*)
const; |
604 bool backgroundHasOpaqueTopLayer() const; | 604 bool backgroundHasOpaqueTopLayer() const; |
605 | 605 |
606 void computePositionedLogicalWidth(LogicalExtentComputedValues&, RenderRegio
n* = 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; | 606 void computePositionedLogicalWidth(LogicalExtentComputedValues&, RenderRegio
n* = 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; |
607 | 607 |
608 LayoutUnit computeIntrinsicLogicalWidthUsing(Length logicalWidthLength, Layo
utUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 608 LayoutUnit computeIntrinsicLogicalWidthUsing(Length logicalWidthLength, Layo
utUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
609 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen
gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const; | 609 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen
gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const; |
610 | 610 |
611 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } | 611 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } |
612 | 612 |
613 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | 613 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; |
614 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; | 614 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; |
615 | 615 |
616 void paintRootBoxFillLayers(const PaintInfo&); | 616 void paintRootBoxFillLayers(PaintInfo&); |
617 | 617 |
618 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); | 618 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); |
619 | 619 |
620 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE; | 620 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE; |
621 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 621 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
622 | 622 |
623 private: | 623 private: |
624 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside,
const ShapeValue* oldShapeOutside); | 624 void updateShapeOutsideInfoAfterStyleChange(const ShapeValue* shapeOutside,
const ShapeValue* oldShapeOutside); |
625 | 625 |
626 bool includeVerticalScrollbarSize() const; | 626 bool includeVerticalScrollbarSize() const; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 742 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
743 deleteLineBoxWrapper(); | 743 deleteLineBoxWrapper(); |
744 } | 744 } |
745 | 745 |
746 m_inlineBoxWrapper = boxWrapper; | 746 m_inlineBoxWrapper = boxWrapper; |
747 } | 747 } |
748 | 748 |
749 } // namespace WebCore | 749 } // namespace WebCore |
750 | 750 |
751 #endif // RenderBox_h | 751 #endif // RenderBox_h |
OLD | NEW |