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

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

Issue 1647473002: [Line Layout API] Add LineLayoutItem::resolveColor() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | third_party/WebKit/Source/core/paint/EllipsisBoxPainter.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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 SelectionState selectionState() const 317 SelectionState selectionState() const
318 { 318 {
319 return m_layoutObject->selectionState(); 319 return m_layoutObject->selectionState();
320 } 320 }
321 321
322 Color selectionBackgroundColor() const 322 Color selectionBackgroundColor() const
323 { 323 {
324 return m_layoutObject->selectionBackgroundColor(); 324 return m_layoutObject->selectionBackgroundColor();
325 } 325 }
326 326
327 Color resolveColor(const ComputedStyle& styleToUse, int colorProperty)
328 {
329 return m_layoutObject->resolveColor(styleToUse, colorProperty);
330 }
331
327 bool isInFlowPositioned() const 332 bool isInFlowPositioned() const
328 { 333 {
329 return m_layoutObject->isInFlowPositioned(); 334 return m_layoutObject->isInFlowPositioned();
330 } 335 }
331 336
332 PositionWithAffinity positionForPoint(const LayoutPoint& point) 337 PositionWithAffinity positionForPoint(const LayoutPoint& point)
333 { 338 {
334 return m_layoutObject->positionForPoint(point); 339 return m_layoutObject->positionForPoint(point);
335 } 340 }
336 341
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 386
382 private: 387 private:
383 LayoutObject* m_layoutObject; 388 LayoutObject* m_layoutObject;
384 389
385 friend class LineLayoutAPIShim; 390 friend class LineLayoutAPIShim;
386 }; 391 };
387 392
388 } // namespace blink 393 } // namespace blink
389 394
390 #endif // LineLayoutItem_h 395 #endif // LineLayoutItem_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/EllipsisBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698