OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 TextDecorationStyle style; | 793 TextDecorationStyle style; |
794 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio
nStyleSolid) { } | 794 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio
nStyleSolid) { } |
795 }; | 795 }; |
796 | 796 |
797 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli
ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu
irksMode = false, bool firstlineStyle = false); | 797 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli
ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu
irksMode = false, bool firstlineStyle = false); |
798 | 798 |
799 // Return the RenderLayerModelObject in the container chain which is respons
ible for painting this object, or 0 | 799 // Return the RenderLayerModelObject in the container chain which is respons
ible for painting this object, or 0 |
800 // if painting is root-relative. This is the container that should be passed
to the 'forPaintInvalidation' | 800 // if painting is root-relative. This is the container that should be passed
to the 'forPaintInvalidation' |
801 // methods. | 801 // methods. |
802 const RenderLayerModelObject* containerForPaintInvalidation() const; | 802 const RenderLayerModelObject* containerForPaintInvalidation() const; |
803 const RenderLayerModelObject* enclosingCompositedContainer() const; | |
804 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c
onst RenderLayerModelObject* paintInvalidationContainer) const; | 803 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c
onst RenderLayerModelObject* paintInvalidationContainer) const; |
805 bool isPaintInvalidationContainer() const; | 804 bool isPaintInvalidationContainer() const; |
806 | 805 |
807 LayoutRect computePaintInvalidationRect() | 806 LayoutRect computePaintInvalidationRect() |
808 { | 807 { |
809 return computePaintInvalidationRect(containerForPaintInvalidation()); | 808 return computePaintInvalidationRect(containerForPaintInvalidation()); |
810 } | 809 } |
811 | 810 |
812 // Returns the paint invalidation rect for this RenderObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. | 811 // Returns the paint invalidation rect for this RenderObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. |
813 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI
nvalidationContainer) const; | 812 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI
nvalidationContainer) const; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 // of this renderer within the current layer that should be used for each re
sult. | 1071 // of this renderer within the current layer that should be used for each re
sult. |
1073 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const { }; | 1072 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const { }; |
1074 | 1073 |
1075 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object* paintInvalidationContainer, | 1074 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object* paintInvalidationContainer, |
1076 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 1075 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
1077 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer); | 1076 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer); |
1078 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject* pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
); | 1077 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject* pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
); |
1079 void fullyInvalidatePaint(const RenderLayerModelObject* paintInvalidationCon
tainer, InvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBo
unds); | 1078 void fullyInvalidatePaint(const RenderLayerModelObject* paintInvalidationCon
tainer, InvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBo
unds); |
1080 | 1079 |
1081 private: | 1080 private: |
| 1081 const RenderLayerModelObject* enclosingCompositedContainer() const; |
| 1082 |
1082 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; | 1083 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; |
1083 | 1084 |
1084 RenderFlowThread* locateFlowThreadContainingBlock() const; | 1085 RenderFlowThread* locateFlowThreadContainingBlock() const; |
1085 void removeFromRenderFlowThread(); | 1086 void removeFromRenderFlowThread(); |
1086 void removeFromRenderFlowThreadRecursive(RenderFlowThread*); | 1087 void removeFromRenderFlowThreadRecursive(RenderFlowThread*); |
1087 | 1088 |
1088 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; | 1089 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; |
1089 | 1090 |
1090 RenderStyle* cachedFirstLineStyle() const; | 1091 RenderStyle* cachedFirstLineStyle() const; |
1091 StyleDifference adjustStyleDifference(StyleDifference, unsigned contextSensi
tiveProperties) const; | 1092 StyleDifference adjustStyleDifference(StyleDifference, unsigned contextSensi
tiveProperties) const; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 void showTree(const WebCore::RenderObject*); | 1477 void showTree(const WebCore::RenderObject*); |
1477 void showLineTree(const WebCore::RenderObject*); | 1478 void showLineTree(const WebCore::RenderObject*); |
1478 void showRenderTree(const WebCore::RenderObject* object1); | 1479 void showRenderTree(const WebCore::RenderObject* object1); |
1479 // We don't make object2 an optional parameter so that showRenderTree | 1480 // We don't make object2 an optional parameter so that showRenderTree |
1480 // can be called from gdb easily. | 1481 // can be called from gdb easily. |
1481 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1482 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1482 | 1483 |
1483 #endif | 1484 #endif |
1484 | 1485 |
1485 #endif // RenderObject_h | 1486 #endif // RenderObject_h |
OLD | NEW |