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

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

Issue 1438043012: Avoid int coercion of box-shadow args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac theme update, subpixel test Created 5 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void drawFocusRing(const Path&, int width, int offset, const Color&); 224 void drawFocusRing(const Path&, int width, int offset, const Color&);
225 225
226 enum Edge { 226 enum Edge {
227 NoEdge = 0, 227 NoEdge = 0,
228 TopEdge = 1 << 1, 228 TopEdge = 1 << 1,
229 RightEdge = 1 << 2, 229 RightEdge = 1 << 2,
230 BottomEdge = 1 << 3, 230 BottomEdge = 1 << 3,
231 LeftEdge = 1 << 4 231 LeftEdge = 1 << 4
232 }; 232 };
233 typedef unsigned Edges; 233 typedef unsigned Edges;
234 void drawInnerShadow(const FloatRoundedRect&, const Color& shadowColor, cons t IntSize shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = N oEdge); 234 void drawInnerShadow(const FloatRoundedRect&, const Color& shadowColor,
235 const FloatSize& shadowOffset, float shadowBlur, float shadowSpread,
236 Edges clippedEdges = NoEdge);
235 237
236 const SkPaint& fillPaint() const { return immutableState()->fillPaint(); } 238 const SkPaint& fillPaint() const { return immutableState()->fillPaint(); }
237 239
238 // ---------- Transformation methods ----------------- 240 // ---------- Transformation methods -----------------
239 void concatCTM(const AffineTransform&); 241 void concatCTM(const AffineTransform&);
240 242
241 void scale(float x, float y); 243 void scale(float x, float y);
242 void rotate(float angleInRadians); 244 void rotate(float angleInRadians);
243 void translate(float x, float y); 245 void translate(float x, float y);
244 // ---------- End transformation methods ----------------- 246 // ---------- End transformation methods -----------------
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 365
364 float m_deviceScaleFactor; 366 float m_deviceScaleFactor;
365 367
366 unsigned m_printing : 1; 368 unsigned m_printing : 1;
367 unsigned m_hasMetaData : 1; 369 unsigned m_hasMetaData : 1;
368 }; 370 };
369 371
370 } // namespace blink 372 } // namespace blink
371 373
372 #endif // GraphicsContext_h 374 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698