| 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 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow. | 13 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow. |
| 14 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { | 14 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { |
| 15 public: | 15 public: |
| 16 bool backgroundChangedSinceLastPaintInvalidation() const { return m_backgrou
ndChangedSinceLastPaintInvalidation; } | 16 bool backgroundChangedSinceLastPaintInvalidation() const { return m_backgrou
ndChangedSinceLastPaintInvalidation; } |
| 17 void clearBackgroundChangedSinceLastPaintInvalidation() { m_backgroundChange
dSinceLastPaintInvalidation = false; } | 17 void clearBackgroundChangedSinceLastPaintInvalidation() { m_backgroundChange
dSinceLastPaintInvalidation = false; } |
| 18 static bool borderWidthChanged(const ComputedStyle* oldStyle, const Computed
Style* newStyle); |
| 18 | 19 |
| 19 protected: | 20 protected: |
| 20 explicit LayoutTableBoxComponent(Element* element) | 21 explicit LayoutTableBoxComponent(Element* element) |
| 21 : LayoutBox(element) | 22 : LayoutBox(element) |
| 22 , m_backgroundChangedSinceLastPaintInvalidation(false) | 23 , m_backgroundChangedSinceLastPaintInvalidation(false) |
| 23 { | 24 { |
| 24 } | 25 } |
| 25 | 26 |
| 26 const LayoutObjectChildList* children() const { return &m_children; } | 27 const LayoutObjectChildList* children() const { return &m_children; } |
| 27 LayoutObjectChildList* children() { return &m_children; } | 28 LayoutObjectChildList* children() { return &m_children; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 50 LayoutObjectChildList* virtualChildren() override { return children(); } | 51 LayoutObjectChildList* virtualChildren() override { return children(); } |
| 51 const LayoutObjectChildList* virtualChildren() const override { return child
ren(); } | 52 const LayoutObjectChildList* virtualChildren() const override { return child
ren(); } |
| 52 | 53 |
| 53 LayoutObjectChildList m_children; | 54 LayoutObjectChildList m_children; |
| 54 bool m_backgroundChangedSinceLastPaintInvalidation; | 55 bool m_backgroundChangedSinceLastPaintInvalidation; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace blink | 58 } // namespace blink |
| 58 | 59 |
| 59 #endif // LayoutTableBoxComponent_h | 60 #endif // LayoutTableBoxComponent_h |
| OLD | NEW |