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

Side by Side Diff: third_party/WebKit/WebCore/platform/graphics/GraphicsContext.h

Issue 46097: WebKit merge 41660:41709 (WebKit side).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 #if PLATFORM(CG) 164 #if PLATFORM(CG)
165 void applyStrokePattern(); 165 void applyStrokePattern();
166 void applyFillPattern(); 166 void applyFillPattern();
167 #endif 167 #endif
168 168
169 void save(); 169 void save();
170 void restore(); 170 void restore();
171 171
172 // These draw methods will do both stroking and filling. 172 // These draw methods will do both stroking and filling.
173 // FIXME: ...except drawRect(), which fills properly but always strokes
174 // using a 1-pixel stroke inset from the rect borders (of the correct
175 // stroke color).
173 void drawRect(const IntRect&); 176 void drawRect(const IntRect&);
174 void drawLine(const IntPoint&, const IntPoint&); 177 void drawLine(const IntPoint&, const IntPoint&);
175 void drawEllipse(const IntRect&); 178 void drawEllipse(const IntRect&);
176 void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldA ntialias = false); 179 void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldA ntialias = false);
177 180
178 void drawPath(); 181 void drawPath();
179 void fillPath(); 182 void fillPath();
180 void strokePath(); 183 void strokePath();
181 184
182 // Arc drawing (used by border-radius in CSS) just supports stroking at the moment. 185 // Arc drawing (used by border-radius in CSS) just supports stroking at the moment.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 static void destroyGraphicsContextPrivate(GraphicsContextPrivate*); 363 static void destroyGraphicsContextPrivate(GraphicsContextPrivate*);
361 364
362 GraphicsContextPrivate* m_common; 365 GraphicsContextPrivate* m_common;
363 GraphicsContextPlatformPrivate* m_data; // Deprecated; m_commmon can jus t be downcasted. To be removed. 366 GraphicsContextPlatformPrivate* m_data; // Deprecated; m_commmon can jus t be downcasted. To be removed.
364 }; 367 };
365 368
366 } // namespace WebCore 369 } // namespace WebCore
367 370
368 #endif // GraphicsContext_h 371 #endif // GraphicsContext_h
369 372
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698