| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void clip(const String& winding = "nonzero"); | 157 void clip(const String& winding = "nonzero"); |
| 158 void clip(Path2D*, ExceptionState&); | 158 void clip(Path2D*, ExceptionState&); |
| 159 void clip(Path2D*, const String& winding, ExceptionState&); | 159 void clip(Path2D*, const String& winding, ExceptionState&); |
| 160 | 160 |
| 161 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); | 161 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); |
| 162 bool isPointInPath(Path2D*, const float x, const float y, ExceptionState&); | 162 bool isPointInPath(Path2D*, const float x, const float y, ExceptionState&); |
| 163 bool isPointInPath(Path2D*, const float x, const float y, const String& wind
ing, ExceptionState&); | 163 bool isPointInPath(Path2D*, const float x, const float y, const String& wind
ing, ExceptionState&); |
| 164 bool isPointInStroke(const float x, const float y); | 164 bool isPointInStroke(const float x, const float y); |
| 165 bool isPointInStroke(Path2D*, const float x, const float y, ExceptionState&)
; | 165 bool isPointInStroke(Path2D*, const float x, const float y, ExceptionState&)
; |
| 166 | 166 |
| 167 void scrollPathIntoView(); |
| 168 void scrollPathIntoView(Path2D*, ExceptionState&); |
| 169 |
| 167 void clearRect(float x, float y, float width, float height); | 170 void clearRect(float x, float y, float width, float height); |
| 168 void fillRect(float x, float y, float width, float height); | 171 void fillRect(float x, float y, float width, float height); |
| 169 void strokeRect(float x, float y, float width, float height); | 172 void strokeRect(float x, float y, float width, float height); |
| 170 | 173 |
| 171 void setShadow(float width, float height, float blur); | 174 void setShadow(float width, float height, float blur); |
| 172 void setShadow(float width, float height, float blur, const String& color); | 175 void setShadow(float width, float height, float blur, const String& color); |
| 173 void setShadow(float width, float height, float blur, float grayLevel); | 176 void setShadow(float width, float height, float blur, float grayLevel); |
| 174 void setShadow(float width, float height, float blur, const String& color, f
loat alpha); | 177 void setShadow(float width, float height, float blur, const String& color, f
loat alpha); |
| 175 void setShadow(float width, float height, float blur, float grayLevel, float
alpha); | 178 void setShadow(float width, float height, float blur, float grayLevel, float
alpha); |
| 176 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); | 179 void setShadow(float width, float height, float blur, float r, float g, floa
t b, float a); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, flo
at sh, float dx, float dy, float dw, float dh, ExceptionState&, CompositeOperato
r, blink::WebBlendMode); | 300 void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, flo
at sh, float dx, float dy, float dw, float dh, ExceptionState&, CompositeOperato
r, blink::WebBlendMode); |
| 298 void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect); | 301 void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect); |
| 299 | 302 |
| 300 void fillInternal(const Path&, const String& windingRuleString); | 303 void fillInternal(const Path&, const String& windingRuleString); |
| 301 void strokeInternal(const Path&); | 304 void strokeInternal(const Path&); |
| 302 void clipInternal(const Path&, const String& windingRuleString); | 305 void clipInternal(const Path&, const String& windingRuleString); |
| 303 | 306 |
| 304 bool isPointInPathInternal(const Path&, const float x, const float y, const
String& windingRuleString); | 307 bool isPointInPathInternal(const Path&, const float x, const float y, const
String& windingRuleString); |
| 305 bool isPointInStrokeInternal(const Path&, const float x, const float y); | 308 bool isPointInStrokeInternal(const Path&, const float x, const float y); |
| 306 | 309 |
| 310 void scrollPathIntoViewInternal(const Path&); |
| 311 |
| 307 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); | 312 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); |
| 308 | 313 |
| 309 const Font& accessFont(); | 314 const Font& accessFont(); |
| 310 int getFontBaseline(const FontMetrics&) const; | 315 int getFontBaseline(const FontMetrics&) const; |
| 311 | 316 |
| 312 void clearCanvas(); | 317 void clearCanvas(); |
| 313 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; | 318 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; |
| 314 | 319 |
| 315 void inflateStrokeRect(FloatRect&) const; | 320 void inflateStrokeRect(FloatRect&) const; |
| 316 | 321 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 335 bool m_usesCSSCompatibilityParseMode; | 340 bool m_usesCSSCompatibilityParseMode; |
| 336 bool m_hasAlpha; | 341 bool m_hasAlpha; |
| 337 MutableStylePropertyMap m_fetchedFonts; | 342 MutableStylePropertyMap m_fetchedFonts; |
| 338 }; | 343 }; |
| 339 | 344 |
| 340 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 345 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 341 | 346 |
| 342 } // namespace WebCore | 347 } // namespace WebCore |
| 343 | 348 |
| 344 #endif | 349 #endif |
| OLD | NEW |