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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
800 | 800 |
801 // Return the RenderLayerModelObject in the container chain which is respons ible for painting this object, or 0 | 801 // Return the RenderLayerModelObject in the container chain which is respons ible for painting this object, or 0 |
802 // if painting is root-relative. This is the container that should be passed to the 'forRepaint' | 802 // if painting is root-relative. This is the container that should be passed to the 'forRepaint' |
803 // methods. | 803 // methods. |
804 const RenderLayerModelObject* containerForRepaint() const; | 804 const RenderLayerModelObject* containerForRepaint() const; |
805 const RenderLayerModelObject* enclosingCompositedContainer() const; | 805 const RenderLayerModelObject* enclosingCompositedContainer() const; |
806 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c onst RenderLayerModelObject* repaintContainer) const; | 806 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c onst RenderLayerModelObject* repaintContainer) const; |
807 bool isRepaintContainer() const; | 807 bool isRepaintContainer() const; |
808 | 808 |
809 // Returns the repaint rect for this RenderObject in the coordinate space of the composited layer that this RenderObject paints into, or the RenderView if n ot | 809 // Returns the repaint rect for this RenderObject in the coordinate space of the composited layer that this RenderObject paints into, or the RenderView if n ot |
810 // composited. | 810 // composited. If |repaintContainer| is 0, uses containerForRepaint(). |
811 LayoutRect computeRepaintRect() const; | 811 LayoutRect computeRepaintRect(const RenderLayerModelObject* repaintContainer = 0) const; |
leviw_travelin_and_unemployed
2014/05/29 18:27:08
How about a computeRepaintRect that takes no param
chrishtr
2014/05/29 18:34:11
Never be in this code without a repaint container?
| |
812 | |
813 // Returns the rect bounds needed to repaint this object, in the coordinate space of the rendering backing of |repaintContainer| | |
814 LayoutRect boundsRectForRepaint(const RenderLayerModelObject* repaintContain er) const; | |
812 | 815 |
813 // Actually do the repaint of rect r for this object which has been computed in the coordinate space | 816 // Actually do the repaint of rect r for this object which has been computed in the coordinate space |
814 // of repaintContainer. If repaintContainer is 0, repaint via the view. | 817 // of repaintContainer. If repaintContainer is 0, repaint via the view. |
815 void repaintUsingContainer(const RenderLayerModelObject* repaintContainer, c onst IntRect&, InvalidationReason) const; | 818 void repaintUsingContainer(const RenderLayerModelObject* repaintContainer, c onst IntRect&, InvalidationReason) const; |
816 | 819 |
817 // Repaint the entire object. Called when, e.g., the color of a border chan ges, or when a border | 820 // Repaint the entire object. Called when, e.g., the color of a border chan ges, or when a border |
818 // style changes. | 821 // style changes. |
819 void repaint() const; | 822 void repaint() const; |
820 | 823 |
821 // Repaint a specific subrectangle within a given object. The rect |r| is i n the object's coordinate space. | 824 // Repaint a specific subrectangle within a given object. The rect |r| is i n the object's coordinate space. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1070 // containerRect is a rect that has already been added for the currentLayer which is likely to | 1073 // containerRect is a rect that has already been added for the currentLayer which is likely to |
1071 // be a container for child elements. Any rect wholly contained by container Rect can be | 1074 // be a container for child elements. Any rect wholly contained by container Rect can be |
1072 // skipped. | 1075 // skipped. |
1073 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t; | 1076 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons t; |
1074 | 1077 |
1075 // Add hit-test rects for this renderer only to the provided list. layerOffs et is the offset | 1078 // Add hit-test rects for this renderer only to the provided list. layerOffs et is the offset |
1076 // of this renderer within the current layer that should be used for each re sult. | 1079 // of this renderer within the current layer that should be used for each re sult. |
1077 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const { }; | 1080 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const { }; |
1078 | 1081 |
1079 private: | 1082 private: |
1080 LayoutRect computeRepaintRectInternal(const RenderLayerModelObject* repaintC ontainer) const; | |
1081 | |
1082 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* repaint Container = 0, bool* repaintContainerSkipped = 0) const; | 1083 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* repaint Container = 0, bool* repaintContainerSkipped = 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1484 void showTree(const WebCore::RenderObject*); | 1485 void showTree(const WebCore::RenderObject*); |
1485 void showLineTree(const WebCore::RenderObject*); | 1486 void showLineTree(const WebCore::RenderObject*); |
1486 void showRenderTree(const WebCore::RenderObject* object1); | 1487 void showRenderTree(const WebCore::RenderObject* object1); |
1487 // We don't make object2 an optional parameter so that showRenderTree | 1488 // We don't make object2 an optional parameter so that showRenderTree |
1488 // can be called from gdb easily. | 1489 // can be called from gdb easily. |
1489 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); | 1490 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); |
1490 | 1491 |
1491 #endif | 1492 #endif |
1492 | 1493 |
1493 #endif // RenderObject_h | 1494 #endif // RenderObject_h |
OLD | NEW |