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

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

Issue 1441443003: [Line Layout API] Convert LayoutBlockFlowLine to use new line layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: promote selectionState() to LineLayoutItem, simplify caller 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool visibleToHitTestRequest(const HitTestRequest& request) const 297 bool visibleToHitTestRequest(const HitTestRequest& request) const
298 { 298 {
299 return m_layoutObject->visibleToHitTestRequest(request); 299 return m_layoutObject->visibleToHitTestRequest(request);
300 } 300 }
301 301
302 bool hitTest(HitTestResult& result, const HitTestLocation& locationInContain er, const LayoutPoint& accumulatedOffset, HitTestFilter filter = HitTestAll) 302 bool hitTest(HitTestResult& result, const HitTestLocation& locationInContain er, const LayoutPoint& accumulatedOffset, HitTestFilter filter = HitTestAll)
303 { 303 {
304 return m_layoutObject->hitTest(result, locationInContainer, accumulatedO ffset, filter); 304 return m_layoutObject->hitTest(result, locationInContainer, accumulatedO ffset, filter);
305 } 305 }
306 306
307 SelectionState selectionState() const
308 {
309 return m_layoutObject->selectionState();
310 }
311
307 Color selectionBackgroundColor() const 312 Color selectionBackgroundColor() const
308 { 313 {
309 return m_layoutObject->selectionBackgroundColor(); 314 return m_layoutObject->selectionBackgroundColor();
310 } 315 }
311 316
312 bool isInFlowPositioned() const 317 bool isInFlowPositioned() const
313 { 318 {
314 return m_layoutObject->isInFlowPositioned(); 319 return m_layoutObject->isInFlowPositioned();
315 } 320 }
316 321
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 356
352 private: 357 private:
353 LayoutObject* m_layoutObject; 358 LayoutObject* m_layoutObject;
354 359
355 friend class LineLayoutPaintShim; 360 friend class LineLayoutPaintShim;
356 }; 361 };
357 362
358 } // namespace blink 363 } // namespace blink
359 364
360 #endif // LineLayoutItem_h 365 #endif // LineLayoutItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698