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

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

Issue 2340533002: Don't paint ellipsis selection (Closed)
Patch Set: bug 642460 Created 4 years, 3 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
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&);
32 31
33 const EllipsisBox& m_ellipsisBox; 32 const EllipsisBox& m_ellipsisBox;
34 }; 33 };
35 34
36 } // namespace blink 35 } // namespace blink
37 36
38 #endif // EllipsisBoxPainter_h 37 #endif // EllipsisBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698