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

Side by Side Diff: Source/core/paint/InlinePainter.h

Issue 1163913002: Improve outline bounds estimation in InlinePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use linesVisualOverflowBoundingBox. Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/InlinePainter.cpp » ('j') | Source/core/paint/InlinePainter.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 InlinePainter_h 5 #ifndef InlinePainter_h
6 #define InlinePainter_h 6 #define InlinePainter_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Color; 12 class Color;
13 class GraphicsContext; 13 class GraphicsContext;
14 class LayoutPoint; 14 class LayoutPoint;
15 class LayoutRect; 15 class LayoutRect;
16 struct PaintInfo; 16 struct PaintInfo;
17 class LayoutInline; 17 class LayoutInline;
18 18
19 class InlinePainter { 19 class InlinePainter {
20 public: 20 public:
21 InlinePainter(LayoutInline& layoutInline) : m_layoutInline(layoutInline) { } 21 InlinePainter(LayoutInline& layoutInline) : m_layoutInline(layoutInline) { }
22 22
23 void paint(const PaintInfo&, const LayoutPoint& paintOffset); 23 void paint(const PaintInfo&, const LayoutPoint& paintOffset);
24 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset); 24 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset);
25 25
26 private: 26 private:
27 LayoutRect outlinePaintRect(const LayoutPoint& paintOffset) const;
27 void paintOutlineForLine(GraphicsContext*, const LayoutPoint&, const LayoutR ect& prevLine, const LayoutRect& thisLine, 28 void paintOutlineForLine(GraphicsContext*, const LayoutPoint&, const LayoutR ect& prevLine, const LayoutRect& thisLine,
28 const LayoutRect& nextLine, const Color); 29 const LayoutRect& nextLine, const Color);
29 LayoutInline& m_layoutInline; 30 LayoutInline& m_layoutInline;
30 }; 31 };
31 32
32 } // namespace blink 33 } // namespace blink
33 34
34 #endif // InlinePainter_h 35 #endif // InlinePainter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/InlinePainter.cpp » ('j') | Source/core/paint/InlinePainter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698