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

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

Issue 2208463003: First step of PaintInvalidator implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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
(...skipping 16 matching lines...) Expand all
27 27
28 const LayoutObjectChildList* children() const { return &m_children; } 28 const LayoutObjectChildList* children() const { return &m_children; }
29 LayoutObjectChildList* children() { return &m_children; } 29 LayoutObjectChildList* children() { return &m_children; }
30 30
31 LayoutObject* firstChild() const { DCHECK(children() == virtualChildren()); return children()->firstChild(); } 31 LayoutObject* firstChild() const { DCHECK(children() == virtualChildren()); return children()->firstChild(); }
32 LayoutObject* lastChild() const { DCHECK(children() == virtualChildren()); r eturn children()->lastChild(); } 32 LayoutObject* lastChild() const { DCHECK(children() == virtualChildren()); r eturn children()->lastChild(); }
33 33
34 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 34 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
35 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; 35 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
36 36
37 void clearPaintInvalidationFlags(const PaintInvalidationState& paintInvalida tionState) override 37 void clearPaintInvalidationFlags() override
38 { 38 {
39 LayoutBox::clearPaintInvalidationFlags(paintInvalidationState); 39 LayoutBox::clearPaintInvalidationFlags();
40 m_backgroundChangedSinceLastPaintInvalidation = false; 40 m_backgroundChangedSinceLastPaintInvalidation = false;
41 } 41 }
42 42
43 #if ENABLE(ASSERT) 43 #if ENABLE(ASSERT)
44 bool paintInvalidationStateIsDirty() const override { return m_backgroundCha ngedSinceLastPaintInvalidation || LayoutBox::paintInvalidationStateIsDirty(); } 44 bool paintInvalidationStateIsDirty() const override { return m_backgroundCha ngedSinceLastPaintInvalidation || LayoutBox::paintInvalidationStateIsDirty(); }
45 #endif 45 #endif
46 46
47 private: 47 private:
48 // If you have a LayoutTableBoxComponent, use firstChild or lastChild instea d. 48 // If you have a LayoutTableBoxComponent, use firstChild or lastChild instea d.
49 void slowFirstChild() const = delete; 49 void slowFirstChild() const = delete;
50 void slowLastChild() const = delete; 50 void slowLastChild() const = delete;
51 51
52 LayoutObjectChildList* virtualChildren() override { return children(); } 52 LayoutObjectChildList* virtualChildren() override { return children(); }
53 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } 53 const LayoutObjectChildList* virtualChildren() const override { return child ren(); }
54 54
55 LayoutObjectChildList m_children; 55 LayoutObjectChildList m_children;
56 bool m_backgroundChangedSinceLastPaintInvalidation; 56 bool m_backgroundChangedSinceLastPaintInvalidation;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // LayoutTableBoxComponent_h 61 #endif // LayoutTableBoxComponent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/PaintInvalidationState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698