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

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: remove layoutObject() method Created 5 years 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 PositionWithAffinity createPositionWithAffinity(int offset, TextAffinity aff inity) 327 PositionWithAffinity createPositionWithAffinity(int offset, TextAffinity aff inity)
328 { 328 {
329 return m_layoutObject->createPositionWithAffinity(offset, affinity); 329 return m_layoutObject->createPositionWithAffinity(offset, affinity);
330 } 330 }
331 331
332 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const 332 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const
333 { 333 {
334 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin)); 334 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin));
335 } 335 }
336 336
337 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = nullptr) const
338 {
339 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed);
340 }
341
337 #ifndef NDEBUG 342 #ifndef NDEBUG
338 343
339 const char* name() const 344 const char* name() const
340 { 345 {
341 return m_layoutObject->name(); 346 return m_layoutObject->name();
342 } 347 }
343 348
344 // Intentionally returns a void* to avoid exposing LayoutObject* to the line 349 // Intentionally returns a void* to avoid exposing LayoutObject* to the line
345 // layout code. 350 // layout code.
346 void* debugPointer() const 351 void* debugPointer() const
347 { 352 {
348 return m_layoutObject; 353 return m_layoutObject;
349 } 354 }
350 355
351 #endif 356 #endif
352 357
353 protected: 358 protected:
354 LayoutObject* layoutObject() { return m_layoutObject; } 359 LayoutObject* layoutObject() { return m_layoutObject; }
355 const LayoutObject* layoutObject() const { return m_layoutObject; } 360 const LayoutObject* layoutObject() const { return m_layoutObject; }
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