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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleDifference.h

Issue 2751653003: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ (Closed)
Patch Set: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 StyleDifference_h 5 #ifndef StyleDifference_h
6 #define StyleDifference_h 6 #define StyleDifference_h
7 7
8 #include "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 bool needsLayout() const { return m_layoutType != NoLayout; } 75 bool needsLayout() const { return m_layoutType != NoLayout; }
76 void clearNeedsLayout() { m_layoutType = NoLayout; } 76 void clearNeedsLayout() { m_layoutType = NoLayout; }
77 77
78 // The offset of this positioned object has been updated. 78 // The offset of this positioned object has been updated.
79 bool needsPositionedMovementLayout() const { 79 bool needsPositionedMovementLayout() const {
80 return m_layoutType == PositionedMovement; 80 return m_layoutType == PositionedMovement;
81 } 81 }
82 void setNeedsPositionedMovementLayout() { 82 void setNeedsPositionedMovementLayout() {
83 ASSERT(!needsFullLayout()); 83 DCHECK(!needsFullLayout());
84 m_layoutType = PositionedMovement; 84 m_layoutType = PositionedMovement;
85 } 85 }
86 86
87 bool needsFullLayout() const { return m_layoutType == FullLayout; } 87 bool needsFullLayout() const { return m_layoutType == FullLayout; }
88 void setNeedsFullLayout() { m_layoutType = FullLayout; } 88 void setNeedsFullLayout() { m_layoutType = FullLayout; }
89 89
90 bool needsRecomputeOverflow() const { return m_recomputeOverflow; } 90 bool needsRecomputeOverflow() const { return m_recomputeOverflow; }
91 void setNeedsRecomputeOverflow() { m_recomputeOverflow = true; } 91 void setNeedsRecomputeOverflow() { m_recomputeOverflow = true; }
92 92
93 bool transformChanged() const { 93 bool transformChanged() const {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 enum LayoutType { NoLayout = 0, PositionedMovement, FullLayout }; 149 enum LayoutType { NoLayout = 0, PositionedMovement, FullLayout };
150 unsigned m_layoutType : 2; 150 unsigned m_layoutType : 2;
151 unsigned m_recomputeOverflow : 1; 151 unsigned m_recomputeOverflow : 1;
152 unsigned m_propertySpecificDifferences : 7; 152 unsigned m_propertySpecificDifferences : 7;
153 unsigned m_scrollAnchorDisablingPropertyChanged : 1; 153 unsigned m_scrollAnchorDisablingPropertyChanged : 1;
154 }; 154 };
155 155
156 } // namespace blink 156 } // namespace blink
157 157
158 #endif // StyleDifference_h 158 #endif // StyleDifference_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698