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

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

Issue 1433253003: [Line Layout API] Convert AbstractInlineTextBox to new line layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add constructors so we can assign nullptr to LineLayoutItem descendants Created 5 years, 1 month 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool isDescendantOf(const LineLayoutItem item) const 87 bool isDescendantOf(const LineLayoutItem item) const
88 { 88 {
89 return m_layoutObject->isDescendantOf(item); 89 return m_layoutObject->isDescendantOf(item);
90 } 90 }
91 91
92 void updateHitTestResult(HitTestResult& result, const LayoutPoint& point) 92 void updateHitTestResult(HitTestResult& result, const LayoutPoint& point)
93 { 93 {
94 return m_layoutObject->updateHitTestResult(result, point); 94 return m_layoutObject->updateHitTestResult(result, point);
95 } 95 }
96 96
97 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = nullptr) const
98 {
99 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed);
100 }
101
97 LineLayoutItem nextSibling() const 102 LineLayoutItem nextSibling() const
98 { 103 {
99 return LineLayoutItem(m_layoutObject->nextSibling()); 104 return LineLayoutItem(m_layoutObject->nextSibling());
100 } 105 }
101 106
102 LineLayoutItem previousSibling() const 107 LineLayoutItem previousSibling() const
103 { 108 {
104 return LineLayoutItem(m_layoutObject->previousSibling()); 109 return LineLayoutItem(m_layoutObject->previousSibling());
105 } 110 }
106 111
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 361
357 private: 362 private:
358 LayoutObject* m_layoutObject; 363 LayoutObject* m_layoutObject;
359 364
360 friend class LineLayoutPaintShim; 365 friend class LineLayoutPaintShim;
361 }; 366 };
362 367
363 } // namespace blink 368 } // namespace blink
364 369
365 #endif // LineLayoutItem_h 370 #endif // LineLayoutItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698