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

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

Issue 1833653002: Move LayoutObject::nextOffset/previousOffset() to editing utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test cases. Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | no next file » | 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const 383 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const
384 { 384 {
385 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin)); 385 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin));
386 } 386 }
387 387
388 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = nullptr) const 388 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = nullptr) const
389 { 389 {
390 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed); 390 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed);
391 } 391 }
392 392
393 int previousOffset(int current) const
394 {
395 return m_layoutObject->previousOffset(current);
396 }
397
398 int nextOffset(int current) const
399 {
400 return m_layoutObject->nextOffset(current);
401 }
402
403 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags flags = 0) const 393 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags flags = 0) const
404 { 394 {
405 return m_layoutObject->localToAbsolute(localPoint, flags); 395 return m_layoutObject->localToAbsolute(localPoint, flags);
406 } 396 }
407 397
408 bool hasOverflowClip() const 398 bool hasOverflowClip() const
409 { 399 {
410 return m_layoutObject->hasOverflowClip(); 400 return m_layoutObject->hasOverflowClip();
411 } 401 }
412 402
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 481
492 template <> 482 template <>
493 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo utItem> { 483 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo utItem> {
494 STATIC_ONLY(HashTraits); 484 STATIC_ONLY(HashTraits);
495 }; 485 };
496 486
497 } // namespace WTF 487 } // namespace WTF
498 488
499 489
500 #endif // LineLayoutItem_h 490 #endif // LineLayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698