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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual LayoutRect viewRect() const; |
1079 | 1079 |
| 1080 // FIXME: make this not public. |
| 1081 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
xSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = false); |
| 1082 |
1080 protected: | 1083 protected: |
1081 inline bool layerCreationAllowedForSubtree() const; | 1084 inline bool layerCreationAllowedForSubtree() const; |
1082 | 1085 |
1083 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time | 1086 // Overrides should call the superclass at the end. m_style will be 0 the fi
rst time |
1084 // this function will be called. | 1087 // this function will be called. |
1085 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); | 1088 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); |
1086 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first | 1089 // Overrides should call the superclass at the start. |oldStyle| will be 0 t
he first |
1087 // time this function is called. | 1090 // time this function is called. |
1088 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 1091 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
1089 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 1092 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); |
1090 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } | 1093 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl
e* style) const { } |
1091 | 1094 |
1092 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
xSide, | |
1093 Color, EBorderStyle, int adjbw1, int adjbw2, bool an
tialias = false); | |
1094 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, | 1095 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, |
1095 BoxSide, Color, int thickness, EBorderStyle, bool antialias); | 1096 BoxSide, Color, int thickness, EBorderStyle, bool antialias); |
1096 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, | 1097 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, |
1097 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac
entWidth2, bool antialias); | 1098 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac
entWidth2, bool antialias); |
1098 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, | 1099 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int
y2, |
1099 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo
ol antialias); | 1100 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo
ol antialias); |
1100 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, | 1101 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, |
1101 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); | 1102 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); |
1102 | 1103 |
1103 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); | 1104 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 void showTree(const blink::RenderObject*); | 1559 void showTree(const blink::RenderObject*); |
1559 void showLineTree(const blink::RenderObject*); | 1560 void showLineTree(const blink::RenderObject*); |
1560 void showRenderTree(const blink::RenderObject* object1); | 1561 void showRenderTree(const blink::RenderObject* object1); |
1561 // We don't make object2 an optional parameter so that showRenderTree | 1562 // We don't make object2 an optional parameter so that showRenderTree |
1562 // can be called from gdb easily. | 1563 // can be called from gdb easily. |
1563 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1564 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1564 | 1565 |
1565 #endif | 1566 #endif |
1566 | 1567 |
1567 #endif // RenderObject_h | 1568 #endif // RenderObject_h |
OLD | NEW |