OLD | NEW |
---|---|
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 // Also provides utility functions for all table parts. |
19 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { | 19 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { |
20 public: | 20 public: |
21 static void InvalidateCollapsedBordersOnStyleChange( | 21 static bool NeedsInvalidateCollapsedBordersOnStyleChange( |
wkorman
2017/04/27 22:05:36
Document this method in particular what it returns
| |
22 const LayoutObject& table_part, | 22 const LayoutObject& table_part, |
23 LayoutTable&, | 23 const LayoutTable&, |
24 const StyleDifference&, | 24 const StyleDifference&, |
25 const ComputedStyle& old_style); | 25 const ComputedStyle& old_style); |
26 | 26 |
27 static bool DoCellsHaveDirtyWidth(const LayoutObject& table_part, | 27 static bool DoCellsHaveDirtyWidth(const LayoutObject& table_part, |
28 const LayoutTable&, | 28 const LayoutTable&, |
29 const StyleDifference&, | 29 const StyleDifference&, |
30 const ComputedStyle& old_style); | 30 const ComputedStyle& old_style); |
31 | 31 |
32 class MutableForPainting : public LayoutObject::MutableForPainting { | 32 class MutableForPainting : public LayoutObject::MutableForPainting { |
33 public: | 33 public: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 LayoutObjectChildList children_; | 71 LayoutObjectChildList children_; |
72 | 72 |
73 friend class MutableForPainting; | 73 friend class MutableForPainting; |
74 PaintResult last_paint_result_; | 74 PaintResult last_paint_result_; |
75 CullRect last_paint_rect_; | 75 CullRect last_paint_rect_; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // LayoutTableBoxComponent_h | 80 #endif // LayoutTableBoxComponent_h |
OLD | NEW |