Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 564973002: Move a bunch more painting code out of RenderBoxModelObject and into BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged, made more things static. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual LayoutRect viewRect() const;
1083 1083
1084 // FIXME: make this not public.
pdr. 2014/09/12 18:23:33 We could leave this as protected and use a friend
1085 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo xSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = false);
1086
1084 protected: 1087 protected:
1085 inline bool layerCreationAllowedForSubtree() const; 1088 inline bool layerCreationAllowedForSubtree() const;
1086 1089
1087 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time 1090 // Overrides should call the superclass at the end. m_style will be 0 the fi rst time
1088 // this function will be called. 1091 // this function will be called.
1089 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle); 1092 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle);
1090 // Overrides should call the superclass at the start. |oldStyle| will be 0 t he first 1093 // Overrides should call the superclass at the start. |oldStyle| will be 0 t he first
1091 // time this function is called. 1094 // time this function is called.
1092 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 1095 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
1093 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); 1096 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false);
1094 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl e* style) const { } 1097 virtual void updateAnonymousChildStyle(const RenderObject* child, RenderStyl e* style) const { }
1095 1098
1096 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo xSide,
1097 Color, EBorderStyle, int adjbw1, int adjbw2, bool an tialias = false);
1098 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 1099 void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
1099 BoxSide, Color, int thickness, EBorderStyle, bool antialias); 1100 BoxSide, Color, int thickness, EBorderStyle, bool antialias);
1100 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 1101 void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
1101 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias); 1102 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias);
1102 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 1103 void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
1103 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias); 1104 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias);
1104 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 1105 void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
1105 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); 1106 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias);
1106 1107
1107 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); 1108 void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*);
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 void showTree(const blink::RenderObject*); 1568 void showTree(const blink::RenderObject*);
1568 void showLineTree(const blink::RenderObject*); 1569 void showLineTree(const blink::RenderObject*);
1569 void showRenderTree(const blink::RenderObject* object1); 1570 void showRenderTree(const blink::RenderObject* object1);
1570 // We don't make object2 an optional parameter so that showRenderTree 1571 // We don't make object2 an optional parameter so that showRenderTree
1571 // can be called from gdb easily. 1572 // can be called from gdb easily.
1572 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1573 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1573 1574
1574 #endif 1575 #endif
1575 1576
1576 #endif // RenderObject_h 1577 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSet.cpp ('k') | Source/core/rendering/RenderTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698