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