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

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

Issue 2013693002: [css-tables] Set table and cell widths dirty when section border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: now with layout test Created 4 years, 6 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 // 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698