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

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

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebaselined tests. Created 3 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
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/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "platform/RuntimeEnabledFeatures.h" 9 #include "platform/RuntimeEnabledFeatures.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 ObjectPainter(const LayoutObject& layoutObject) 25 ObjectPainter(const LayoutObject& layoutObject)
26 : m_layoutObject(layoutObject) {} 26 : m_layoutObject(layoutObject) {}
27 27
28 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset); 28 void paintOutline(const PaintInfo&, const LayoutPoint& paintOffset);
29 void paintInlineChildrenOutlines(const PaintInfo&, 29 void paintInlineChildrenOutlines(const PaintInfo&,
30 const LayoutPoint& paintOffset); 30 const LayoutPoint& paintOffset);
31 void addPDFURLRectIfNeeded(const PaintInfo&, const LayoutPoint& paintOffset); 31 void addPDFURLRectIfNeeded(const PaintInfo&, const LayoutPoint& paintOffset);
32 32
33 static void drawLineForBoxSide(GraphicsContext&, 33 static void drawLineForBoxSide(GraphicsContext&,
34 int x1, 34 float x1,
35 int y1, 35 float y1,
36 int x2, 36 float x2,
37 int y2, 37 float y2,
38 BoxSide, 38 BoxSide,
39 Color, 39 Color,
40 EBorderStyle, 40 EBorderStyle,
41 int adjbw1, 41 int adjbw1,
42 int adjbw2, 42 int adjbw2,
43 bool antialias = false); 43 bool antialias = false);
44 44
45 // Paints the object atomically as if it created a new stacking context, for: 45 // Paints the object atomically as if it created a new stacking context, for:
46 // - inline blocks, inline tables, inline-level replaced elements (Section 46 // - inline blocks, inline tables, inline-level replaced elements (Section
47 // 7.2.1.4 in http://www.w3.org/TR/CSS2/zindex.html#painting-order), 47 // 7.2.1.4 in http://www.w3.org/TR/CSS2/zindex.html#painting-order),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 EBorderStyle, 87 EBorderStyle,
88 bool antialias); 88 bool antialias);
89 static void drawDoubleBoxSide(GraphicsContext&, 89 static void drawDoubleBoxSide(GraphicsContext&,
90 int x1, 90 int x1,
91 int y1, 91 int y1,
92 int x2, 92 int x2,
93 int y2, 93 int y2,
94 int length, 94 int length,
95 BoxSide, 95 BoxSide,
96 Color, 96 Color,
97 int thickness, 97 float thickness,
98 int adjacentWidth1, 98 int adjacentWidth1,
99 int adjacentWidth2, 99 int adjacentWidth2,
100 bool antialias); 100 bool antialias);
101 static void drawRidgeOrGrooveBoxSide(GraphicsContext&, 101 static void drawRidgeOrGrooveBoxSide(GraphicsContext&,
102 int x1, 102 int x1,
103 int y1, 103 int y1,
104 int x2, 104 int x2,
105 int y2, 105 int y2,
106 BoxSide, 106 BoxSide,
107 Color, 107 Color,
(...skipping 15 matching lines...) Expand all
123 #if DCHECK_IS_ON() 123 #if DCHECK_IS_ON()
124 void doCheckPaintOffset(const PaintInfo&, const LayoutPoint& paintOffset); 124 void doCheckPaintOffset(const PaintInfo&, const LayoutPoint& paintOffset);
125 #endif 125 #endif
126 126
127 const LayoutObject& m_layoutObject; 127 const LayoutObject& m_layoutObject;
128 }; 128 };
129 129
130 } // namespace blink 130 } // namespace blink
131 131
132 #endif 132 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp ('k') | third_party/WebKit/Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698