| 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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul
lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer(); | 1072 return layoutDidGetCalled() || mayNeedPaintInvalidation() || shouldDoFul
lPaintInvalidation() || shouldDoFullPaintInvalidationIfSelfPaintingLayer(); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasColumn
s() && !hasTransform() && !hasReflection() && !style()->isFlippedBlocksWritingMo
de(); } | 1075 bool supportsPaintInvalidationStateCachedOffsets() const { return !hasColumn
s() && !hasTransform() && !hasReflection() && !style()->isFlippedBlocksWritingMo
de(); } |
| 1076 | 1076 |
| 1077 void setNeedsOverflowRecalcAfterStyleChange(); | 1077 void setNeedsOverflowRecalcAfterStyleChange(); |
| 1078 void markContainingBlocksForOverflowRecalc(); | 1078 void markContainingBlocksForOverflowRecalc(); |
| 1079 | 1079 |
| 1080 // FIXME: This is temporary for cases that setShouldDoFullPaintInvalidation(
true) doesn't work yet. | 1080 // FIXME: This is temporary for cases that setShouldDoFullPaintInvalidation(
true) doesn't work yet. |
| 1081 void doNotUseInvalidatePaintForWholeRendererSynchronously() const { invalida
tePaintForWholeRenderer(); } | 1081 void doNotUseInvalidatePaintForWholeRendererSynchronously() const { invalida
tePaintForWholeRenderer(); } |
| 1082 virtual LayoutRect viewRect() const; |
| 1082 | 1083 |
| 1083 protected: | 1084 protected: |
| 1084 inline bool layerCreationAllowedForSubtree() const; | 1085 inline bool layerCreationAllowedForSubtree() const; |
| 1085 | 1086 |
| 1086 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time | 1087 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time |
| 1087 // this function will be called. | 1088 // this function will be called. |
| 1088 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); | 1089 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); |
| 1089 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first | 1090 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first |
| 1090 // time this function is called. | 1091 // time this function is called. |
| 1091 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 1092 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
| 1092 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 1093 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); |
| 1093 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } | 1094 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } |
| 1094 | 1095 |
| 1095 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
xSide, | 1096 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
xSide, |
| 1096 Color, EBorderStyle, int adjbw1, int adjbw2, bool an
tialias = false); | 1097 Color, EBorderStyle, int adjbw1, int adjbw2, bool an
tialias = false); |
| 1097 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, | 1098 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, |
| 1098 BoxSide, Color, int thickness, EBorderStyle, bool antialias); | 1099 BoxSide, Color, int thickness, EBorderStyle, bool antialias); |
| 1099 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, | 1100 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, |
| 1100 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac
entWidth2, bool antialias); | 1101 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac
entWidth2, bool antialias); |
| 1101 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, | 1102 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, |
| 1102 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo
ol antialias); | 1103 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo
ol antialias); |
| 1103 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, | 1104 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, |
| 1104 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); | 1105 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); |
| 1105 | 1106 |
| 1106 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); | 1107 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); |
| 1107 void paintOutline(PaintInfo&, const LayoutRect&); | 1108 void paintOutline(PaintInfo&, const LayoutRect&); |
| 1108 void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer) const; | 1109 void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer) const; |
| 1109 | 1110 |
| 1110 virtual LayoutRect viewRect() const; | |
| 1111 | |
| 1112 void clearLayoutRootIfNeeded() const; | 1111 void clearLayoutRootIfNeeded() const; |
| 1113 virtual void willBeDestroyed(); | 1112 virtual void willBeDestroyed(); |
| 1114 void postDestroy(); | 1113 void postDestroy(); |
| 1115 | 1114 |
| 1116 virtual void insertedIntoTree(); | 1115 virtual void insertedIntoTree(); |
| 1117 virtual void willBeRemovedFromTree(); | 1116 virtual void willBeRemovedFromTree(); |
| 1118 | 1117 |
| 1119 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } | 1118 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } |
| 1120 | 1119 |
| 1121 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a | 1120 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 void showTree(const blink::RenderObject*); | 1567 void showTree(const blink::RenderObject*); |
| 1569 void showLineTree(const blink::RenderObject*); | 1568 void showLineTree(const blink::RenderObject*); |
| 1570 void showRenderTree(const blink::RenderObject* object1); | 1569 void showRenderTree(const blink::RenderObject* object1); |
| 1571 // We don't make object2 an optional parameter so that showRenderTree | 1570 // We don't make object2 an optional parameter so that showRenderTree |
| 1572 // can be called from gdb easily. | 1571 // can be called from gdb easily. |
| 1573 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1572 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1574 | 1573 |
| 1575 #endif | 1574 #endif |
| 1576 | 1575 |
| 1577 #endif // RenderObject_h | 1576 #endif // RenderObject_h |
| OLD | NEW |