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

Side by Side Diff: third_party/WebKit/Source/core/paint/EllipsisBoxPainter.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EllipsisBoxPainter_h 5 #ifndef EllipsisBoxPainter_h
6 #define EllipsisBoxPainter_h 6 #define EllipsisBoxPainter_h
7 7
8 #include "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 10 matching lines...) Expand all
21 21
22 class EllipsisBoxPainter { 22 class EllipsisBoxPainter {
23 STACK_ALLOCATED(); 23 STACK_ALLOCATED();
24 public: 24 public:
25 EllipsisBoxPainter(const EllipsisBox& ellipsisBox) : m_ellipsisBox(ellipsisB ox) { } 25 EllipsisBoxPainter(const EllipsisBox& ellipsisBox) : m_ellipsisBox(ellipsisB ox) { }
26 26
27 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom); 27 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom);
28 28
29 private: 29 private:
30 void paintEllipsis(const PaintInfo&, const LayoutPoint& paintOffset, LayoutU nit lineTop, LayoutUnit lineBottom, const ComputedStyle&); 30 void paintEllipsis(const PaintInfo&, const LayoutPoint& paintOffset, LayoutU nit lineTop, LayoutUnit lineBottom, const ComputedStyle&);
31 void paintSelection(GraphicsContext*, const LayoutPoint&, const ComputedStyl e&, const Font&); 31 void paintSelection(GraphicsContext&, const LayoutPoint&, const ComputedStyl e&, const Font&);
32 32
33 const EllipsisBox& m_ellipsisBox; 33 const EllipsisBox& m_ellipsisBox;
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // EllipsisBoxPainter_h 38 #endif // EllipsisBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698