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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.h

Issue 2838643003: Invalidate collapsed borders using currentColor when color changes (Closed)
Patch Set: - Created 3 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutTableBoxComponent_h 5 #ifndef LayoutTableBoxComponent_h
6 #define LayoutTableBoxComponent_h 6 #define LayoutTableBoxComponent_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/LayoutBox.h" 9 #include "core/layout/LayoutBox.h"
10 #include "core/paint/PaintResult.h" 10 #include "core/paint/PaintResult.h"
11 #include "platform/graphics/paint/CullRect.h" 11 #include "platform/graphics/paint/CullRect.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LayoutTable; 15 class LayoutTable;
16 16
17 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow. 17 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow.
18 // Also provides utility functions for all table parts.
18 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { 19 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox {
19 public: 20 public:
21 static void InvalidateCollapsedBordersOnStyleChange(
22 const LayoutObject& table_part,
23 LayoutTable&,
24 const StyleDifference&,
25 const ComputedStyle& old_style);
26
20 static bool DoCellsHaveDirtyWidth(const LayoutObject& table_part, 27 static bool DoCellsHaveDirtyWidth(const LayoutObject& table_part,
21 const LayoutTable&, 28 const LayoutTable&,
22 const StyleDifference&, 29 const StyleDifference&,
23 const ComputedStyle& old_style); 30 const ComputedStyle& old_style);
24 31
25 class MutableForPainting : public LayoutObject::MutableForPainting { 32 class MutableForPainting : public LayoutObject::MutableForPainting {
26 public: 33 public:
27 void UpdatePaintResult(PaintResult, const CullRect& paint_rect); 34 void UpdatePaintResult(PaintResult, const CullRect& paint_rect);
28 35
29 private: 36 private:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 LayoutObjectChildList children_; 71 LayoutObjectChildList children_;
65 72
66 friend class MutableForPainting; 73 friend class MutableForPainting;
67 PaintResult last_paint_result_; 74 PaintResult last_paint_result_;
68 CullRect last_paint_rect_; 75 CullRect last_paint_rect_;
69 }; 76 };
70 77
71 } // namespace blink 78 } // namespace blink
72 79
73 #endif // LayoutTableBoxComponent_h 80 #endif // LayoutTableBoxComponent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698