| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 // Returns the renderer which was mapped to (container or ancestorToStopAt). | 814 // Returns the renderer which was mapped to (container or ancestorToStopAt). |
| 815 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; | 815 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; |
| 816 | 816 |
| 817 bool shouldUseTransformFromContainer(const RenderObject* container) const; | 817 bool shouldUseTransformFromContainer(const RenderObject* container) const; |
| 818 void getTransformFromContainer(const RenderObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; | 818 void getTransformFromContainer(const RenderObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; |
| 819 | 819 |
| 820 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
() || hasBlendMode(); } | 820 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
() || hasBlendMode(); } |
| 821 | 821 |
| 822 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit
ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const {
}; | 822 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit
ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const {
}; |
| 823 | 823 |
| 824 // Compute a list of hit-test rectangles per layer rooted at this renderer. | |
| 825 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; | |
| 826 | |
| 827 RespectImageOrientationEnum shouldRespectImageOrientation() const; | 824 RespectImageOrientationEnum shouldRespectImageOrientation() const; |
| 828 | 825 |
| 829 bool isRelayoutBoundaryForInspector() const; | 826 bool isRelayoutBoundaryForInspector() const; |
| 830 | 827 |
| 831 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } | 828 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP
aintInvalidationRect; } |
| 832 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } | 829 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa
intInvalidationRect = rect; } |
| 833 | 830 |
| 834 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const {
return m_previousPositionFromPaintInvalidationContainer; } | 831 const LayoutPoint& previousPositionFromPaintInvalidationContainer() const {
return m_previousPositionFromPaintInvalidationContainer; } |
| 835 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo
cation) { m_previousPositionFromPaintInvalidationContainer = location; } | 832 void setPreviousPositionFromPaintInvalidationContainer(const LayoutPoint& lo
cation) { m_previousPositionFromPaintInvalidationContainer = location; } |
| 836 | 833 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 | 921 |
| 925 void clearLayoutRootIfNeeded() const; | 922 void clearLayoutRootIfNeeded() const; |
| 926 virtual void willBeDestroyed(); | 923 virtual void willBeDestroyed(); |
| 927 void postDestroy(); | 924 void postDestroy(); |
| 928 | 925 |
| 929 virtual void insertedIntoTree(); | 926 virtual void insertedIntoTree(); |
| 930 virtual void willBeRemovedFromTree(); | 927 virtual void willBeRemovedFromTree(); |
| 931 | 928 |
| 932 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } | 929 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } |
| 933 | 930 |
| 934 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a | |
| 935 // per-RenderLayer basis. | |
| 936 // currentLayer must be the enclosing layer, and layerOffset is the current
offset within | |
| 937 // this layer. Subclass implementations will add any offset for this rendere
r within it's | |
| 938 // container, so callers should provide only the offset of the container wit
hin it's layer. | |
| 939 // containerRect is a rect that has already been added for the currentLayer
which is likely to | |
| 940 // be a container for child elements. Any rect wholly contained by container
Rect can be | |
| 941 // skipped. | |
| 942 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons
t; | |
| 943 | |
| 944 // Add hit-test rects for this renderer only to the provided list. layerOffs
et is the offset | |
| 945 // of this renderer within the current layer that should be used for each re
sult. | |
| 946 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const { }; | |
| 947 | |
| 948 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object& paintInvalidationContainer, | 931 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object& paintInvalidationContainer, |
| 949 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 932 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
| 950 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer); | 933 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer); |
| 951 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
, const LayoutPoint& positionFromPaintInvalidationContainer); | 934 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
, const LayoutPoint& positionFromPaintInvalidationContainer); |
| 952 void fullyInvalidatePaint(const RenderLayerModelObject& paintInvalidationCon
tainer, InvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBo
unds); | 935 void fullyInvalidatePaint(const RenderLayerModelObject& paintInvalidationCon
tainer, InvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBo
unds); |
| 953 | 936 |
| 954 #if ENABLE(ASSERT) | 937 #if ENABLE(ASSERT) |
| 955 virtual bool paintInvalidationStateIsDirty() const | 938 virtual bool paintInvalidationStateIsDirty() const |
| 956 { | 939 { |
| 957 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should
DoFullPaintInvalidationIfSelfPaintingLayer() | 940 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should
DoFullPaintInvalidationIfSelfPaintingLayer() |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 void showTree(const blink::RenderObject*); | 1304 void showTree(const blink::RenderObject*); |
| 1322 void showLineTree(const blink::RenderObject*); | 1305 void showLineTree(const blink::RenderObject*); |
| 1323 void showRenderTree(const blink::RenderObject* object1); | 1306 void showRenderTree(const blink::RenderObject* object1); |
| 1324 // We don't make object2 an optional parameter so that showRenderTree | 1307 // We don't make object2 an optional parameter so that showRenderTree |
| 1325 // can be called from gdb easily. | 1308 // can be called from gdb easily. |
| 1326 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1309 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1327 | 1310 |
| 1328 #endif | 1311 #endif |
| 1329 | 1312 |
| 1330 #endif // RenderObject_h | 1313 #endif // RenderObject_h |
| OLD | NEW |