| 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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 975 |
| 976 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). | 976 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). |
| 977 // Returns the renderer which was mapped to (container or ancestorToStopAt). | 977 // Returns the renderer which was mapped to (container or ancestorToStopAt). |
| 978 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; | 978 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; |
| 979 | 979 |
| 980 bool shouldUseTransformFromContainer(const RenderObject* container) const; | 980 bool shouldUseTransformFromContainer(const RenderObject* container) const; |
| 981 void getTransformFromContainer(const RenderObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; | 981 void getTransformFromContainer(const RenderObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; |
| 982 | 982 |
| 983 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
() || hasBlendMode(); } | 983 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
() || hasBlendMode(); } |
| 984 | 984 |
| 985 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset, const RenderLayerModelObject* paintContainer) const { } | 985 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit
ionalOffset) const { } |
| 986 | 986 |
| 987 // Compute a list of hit-test rectangles per layer rooted at this renderer. | 987 // Compute a list of hit-test rectangles per layer rooted at this renderer. |
| 988 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; | 988 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; |
| 989 | 989 |
| 990 // Return the renderer whose background style is used to paint the root back
ground. Should only be called on the renderer for which isDocumentElement() is t
rue. | 990 // Return the renderer whose background style is used to paint the root back
ground. Should only be called on the renderer for which isDocumentElement() is t
rue. |
| 991 RenderObject* rendererForRootBackground(); | 991 RenderObject* rendererForRootBackground(); |
| 992 | 992 |
| 993 RespectImageOrientationEnum shouldRespectImageOrientation() const; | 993 RespectImageOrientationEnum shouldRespectImageOrientation() const; |
| 994 | 994 |
| 995 bool isRelayoutBoundaryForInspector() const; | 995 bool isRelayoutBoundaryForInspector() const; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time | 1132 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time |
| 1133 // this function will be called. | 1133 // this function will be called. |
| 1134 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); | 1134 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); |
| 1135 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first | 1135 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first |
| 1136 // time this function is called. | 1136 // time this function is called. |
| 1137 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 1137 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
| 1138 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 1138 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); |
| 1139 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } | 1139 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } |
| 1140 | 1140 |
| 1141 protected: | 1141 protected: |
| 1142 void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer) const; | |
| 1143 | |
| 1144 void clearLayoutRootIfNeeded() const; | 1142 void clearLayoutRootIfNeeded() const; |
| 1145 virtual void willBeDestroyed(); | 1143 virtual void willBeDestroyed(); |
| 1146 void postDestroy(); | 1144 void postDestroy(); |
| 1147 | 1145 |
| 1148 virtual void insertedIntoTree(); | 1146 virtual void insertedIntoTree(); |
| 1149 virtual void willBeRemovedFromTree(); | 1147 virtual void willBeRemovedFromTree(); |
| 1150 | 1148 |
| 1151 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } | 1149 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } |
| 1152 | 1150 |
| 1153 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a | 1151 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 void showTree(const blink::RenderObject*); | 1611 void showTree(const blink::RenderObject*); |
| 1614 void showLineTree(const blink::RenderObject*); | 1612 void showLineTree(const blink::RenderObject*); |
| 1615 void showRenderTree(const blink::RenderObject* object1); | 1613 void showRenderTree(const blink::RenderObject* object1); |
| 1616 // We don't make object2 an optional parameter so that showRenderTree | 1614 // We don't make object2 an optional parameter so that showRenderTree |
| 1617 // can be called from gdb easily. | 1615 // can be called from gdb easily. |
| 1618 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1616 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1619 | 1617 |
| 1620 #endif | 1618 #endif |
| 1621 | 1619 |
| 1622 #endif // RenderObject_h | 1620 #endif // RenderObject_h |
| OLD | NEW |