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

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

Issue 1299273002: [Line Layout API] Add needsLayout() to LineLayoutItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/line/AbstractInlineTextBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
33 { 33 {
34 } 34 }
35 35
36 LineLayoutItem() : m_layoutObject(0) { } 36 LineLayoutItem() : m_layoutObject(0) { }
37 37
38 // TODO(pilgrim): Remove this. It's only here to make things compile before 38 // TODO(pilgrim): Remove this. It's only here to make things compile before
39 // switching all of core/layout/line to using the API. 39 // switching all of core/layout/line to using the API.
40 // https://crbug.com/499321 40 // https://crbug.com/499321
41 operator LayoutObject*() const { return m_layoutObject; } 41 operator LayoutObject*() const { return m_layoutObject; }
42 42
43 bool needsLayout() const
44 {
45 return m_layoutObject->needsLayout();
46 }
47
43 Node* node() const 48 Node* node() const
44 { 49 {
45 return m_layoutObject->node(); 50 return m_layoutObject->node();
46 } 51 }
47 52
48 Node* nonPseudoNode() const 53 Node* nonPseudoNode() const
49 { 54 {
50 return m_layoutObject->nonPseudoNode(); 55 return m_layoutObject->nonPseudoNode();
51 } 56 }
52 57
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 LayoutObject* layoutObject() { return m_layoutObject; } 315 LayoutObject* layoutObject() { return m_layoutObject; }
311 const LayoutObject* layoutObject() const { return m_layoutObject; } 316 const LayoutObject* layoutObject() const { return m_layoutObject; }
312 317
313 private: 318 private:
314 LayoutObject* m_layoutObject; 319 LayoutObject* m_layoutObject;
315 }; 320 };
316 321
317 } // namespace blink 322 } // namespace blink
318 323
319 #endif // LineLayoutItem_h 324 #endif // LineLayoutItem_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/line/AbstractInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698