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