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

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

Issue 2153283002: [css-tables] Clean up code that detects significant border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the big refactor Created 4 years, 5 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 10
11 namespace blink { 11 namespace blink {
12 12
13 class LayoutTable;
14
13 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow. 15 // Common super class for LayoutTableCol, LayoutTableSection and LayoutTableRow.
14 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox { 16 class CORE_EXPORT LayoutTableBoxComponent : public LayoutBox {
15 public: 17 public:
16 bool backgroundChangedSinceLastPaintInvalidation() const { return m_backgrou ndChangedSinceLastPaintInvalidation; } 18 bool backgroundChangedSinceLastPaintInvalidation() const { return m_backgrou ndChangedSinceLastPaintInvalidation; }
17 void clearBackgroundChangedSinceLastPaintInvalidation() { m_backgroundChange dSinceLastPaintInvalidation = false; } 19 void clearBackgroundChangedSinceLastPaintInvalidation() { m_backgroundChange dSinceLastPaintInvalidation = false; }
18 20 static bool doCellsHaveDirtyWidth(const LayoutObject& tablePart, const Layou tTable&, const StyleDifference&, const ComputedStyle& oldStyle);
19 protected: 21 protected:
20 explicit LayoutTableBoxComponent(Element* element) 22 explicit LayoutTableBoxComponent(Element* element)
21 : LayoutBox(element) 23 : LayoutBox(element)
22 , m_backgroundChangedSinceLastPaintInvalidation(false) 24 , m_backgroundChangedSinceLastPaintInvalidation(false)
23 { 25 {
24 } 26 }
25 27
26 const LayoutObjectChildList* children() const { return &m_children; } 28 const LayoutObjectChildList* children() const { return &m_children; }
27 LayoutObjectChildList* children() { return &m_children; } 29 LayoutObjectChildList* children() { return &m_children; }
28 30
(...skipping 21 matching lines...) Expand all
50 LayoutObjectChildList* virtualChildren() override { return children(); } 52 LayoutObjectChildList* virtualChildren() override { return children(); }
51 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } 53 const LayoutObjectChildList* virtualChildren() const override { return child ren(); }
52 54
53 LayoutObjectChildList m_children; 55 LayoutObjectChildList m_children;
54 bool m_backgroundChangedSinceLastPaintInvalidation; 56 bool m_backgroundChangedSinceLastPaintInvalidation;
55 }; 57 };
56 58
57 } // namespace blink 59 } // namespace blink
58 60
59 #endif // LayoutTableBoxComponent_h 61 #endif // LayoutTableBoxComponent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698