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

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

Issue 995583002: [S.P.] Use a correct bounding box for outlines of LayoutInlines for cull rects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/paint/InlinePainter.cpp ('k') | Source/core/paint/ObjectPainter.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 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 ObjectPainter_h 5 #ifndef ObjectPainter_h
6 #define ObjectPainter_h 6 #define ObjectPainter_h
7 7
8 #include "core/layout/style/LayoutStyleConstants.h" 8 #include "core/layout/style/LayoutStyleConstants.h"
9 #include "wtf/Vector.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class Color; 13 class Color;
13 class GraphicsContext; 14 class GraphicsContext;
14 class LayoutPoint; 15 class LayoutPoint;
15 class LayoutRect; 16 class LayoutRect;
16 struct PaintInfo; 17 struct PaintInfo;
17 class LayoutObject; 18 class LayoutObject;
18 class LayoutStyle; 19 class LayoutStyle;
19 20
20 class ObjectPainter { 21 class ObjectPainter {
21 public: 22 public:
22 ObjectPainter(LayoutObject& layoutObject) : m_layoutObject(layoutObject) { } 23 ObjectPainter(LayoutObject& layoutObject) : m_layoutObject(layoutObject) { }
23 24
24 void paintOutline(const PaintInfo&, const LayoutRect& objectBounds, const La youtRect& visualOverflowBounds); 25 void paintOutline(const PaintInfo&, const LayoutRect& objectBounds, const La youtRect& visualOverflowBounds);
25 void paintFocusRing(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutStyle&); 26 void paintFocusRing(const PaintInfo&, const LayoutStyle&, const Vector<Layou tRect>& focusRingRects);
26 27
27 static void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, BoxSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = fals e); 28 static void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, BoxSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = fals e);
28 private: 29 private:
29 static void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 30 static void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
30 BoxSide, Color, int thickness, EBorderStyle, bool antialias); 31 BoxSide, Color, int thickness, EBorderStyle, bool antialias);
31 static void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 32 static void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
32 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias); 33 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias);
33 static void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x 2, int y2, 34 static void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x 2, int y2,
34 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias); 35 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias);
35 static void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y 2, 36 static void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y 2,
36 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); 37 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias);
37 38
38 LayoutObject& m_layoutObject; 39 LayoutObject& m_layoutObject;
39 }; 40 };
40 41
41 } // namespace blink 42 } // namespace blink
42 43
43 #endif 44 #endif
OLDNEW
« no previous file with comments | « Source/core/paint/InlinePainter.cpp ('k') | Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698