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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintInfo.h

Issue 1925703003: Set needsPaintPhaseDescendantBlockBackgrounds if a table has collapsed borders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a dynamic test Created 4 years, 7 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
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 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 : context(newContext) 66 : context(newContext)
67 , phase(copyOtherFieldsFrom.phase) 67 , phase(copyOtherFieldsFrom.phase)
68 , m_cullRect(copyOtherFieldsFrom.m_cullRect) 68 , m_cullRect(copyOtherFieldsFrom.m_cullRect)
69 , m_paintContainer(copyOtherFieldsFrom.m_paintContainer) 69 , m_paintContainer(copyOtherFieldsFrom.m_paintContainer)
70 , m_paintFlags(copyOtherFieldsFrom.m_paintFlags) 70 , m_paintFlags(copyOtherFieldsFrom.m_paintFlags)
71 , m_globalPaintFlags(copyOtherFieldsFrom.m_globalPaintFlags) 71 , m_globalPaintFlags(copyOtherFieldsFrom.m_globalPaintFlags)
72 { } 72 { }
73 73
74 // Creates a PaintInfo for painting descendants. See comments about the pain t phases 74 // Creates a PaintInfo for painting descendants. See comments about the pain t phases
75 // in PaintPhase.h for details. 75 // in PaintPhase.h for details.
76 // TODO(wangxianzhu): Actually use this method.
77 PaintInfo forDescendants() const 76 PaintInfo forDescendants() const
78 { 77 {
79 PaintInfo result(*this); 78 PaintInfo result(*this);
80 if (phase == PaintPhaseDescendantOutlinesOnly) 79 if (phase == PaintPhaseDescendantOutlinesOnly)
81 result.phase = PaintPhaseOutline; 80 result.phase = PaintPhaseOutline;
82 else if (phase == PaintPhaseDescendantBlockBackgroundsOnly) 81 else if (phase == PaintPhaseDescendantBlockBackgroundsOnly)
83 result.phase = PaintPhaseBlockBackground; 82 result.phase = PaintPhaseBlockBackground;
84 return result; 83 return result;
85 } 84 }
86 85
(...skipping 28 matching lines...) Expand all
115 const GlobalPaintFlags m_globalPaintFlags; 114 const GlobalPaintFlags m_globalPaintFlags;
116 115
117 // TODO(chrishtr): temporary while we implement CullRect everywhere. 116 // TODO(chrishtr): temporary while we implement CullRect everywhere.
118 friend class SVGPaintContext; 117 friend class SVGPaintContext;
119 friend class SVGShapePainter; 118 friend class SVGShapePainter;
120 }; 119 };
121 120
122 } // namespace blink 121 } // namespace blink
123 122
124 #endif // PaintInfo_h 123 #endif // PaintInfo_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698