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

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

Issue 2046863006: Dirty line boxes correctly when a float gets layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@618230
Patch Set: Updated 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 LineLayoutItem_h 5 #ifndef LineLayoutItem_h
6 #define LineLayoutItem_h 6 #define LineLayoutItem_h
7 7
8 #include "core/layout/LayoutObject.h" 8 #include "core/layout/LayoutObject.h"
9 #include "core/layout/LayoutObjectInlines.h" 9 #include "core/layout/LayoutObjectInlines.h"
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool preservesNewline() const 167 bool preservesNewline() const
168 { 168 {
169 return m_layoutObject->preservesNewline(); 169 return m_layoutObject->preservesNewline();
170 } 170 }
171 171
172 unsigned length() const 172 unsigned length() const
173 { 173 {
174 return m_layoutObject->length(); 174 return m_layoutObject->length();
175 } 175 }
176 176
177 void dirtyLinesFromChangedChild(LineLayoutItem item) const 177 void dirtyLinesFromChangedChild(LineLayoutItem item, MarkingBehavior marking Behaviour = MarkContainerChain) const
178 { 178 {
179 m_layoutObject->dirtyLinesFromChangedChild(item.layoutObject()); 179 m_layoutObject->dirtyLinesFromChangedChild(item.layoutObject(), markingB ehaviour);
180 } 180 }
181 181
182 bool ancestorLineBoxDirty() const 182 bool ancestorLineBoxDirty() const
183 { 183 {
184 return m_layoutObject->ancestorLineBoxDirty(); 184 return m_layoutObject->ancestorLineBoxDirty();
185 } 185 }
186 186
187 // TODO(dgrogan/eae): Remove this method and replace every call with an ||. 187 // TODO(dgrogan/eae): Remove this method and replace every call with an ||.
188 bool isFloatingOrOutOfFlowPositioned() const 188 bool isFloatingOrOutOfFlowPositioned() const
189 { 189 {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 template <> 497 template <>
498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo utItem> { 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo utItem> {
499 STATIC_ONLY(HashTraits); 499 STATIC_ONLY(HashTraits);
500 }; 500 };
501 501
502 } // namespace WTF 502 } // namespace WTF
503 503
504 504
505 #endif // LineLayoutItem_h 505 #endif // LineLayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/line/LineBoxList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698