| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 void applyStrokePattern(); | 307 void applyStrokePattern(); |
| 308 void applyFillPattern(); | 308 void applyFillPattern(); |
| 309 | 309 |
| 310 void fillInternal(const Path&, const String& windingRuleString); | 310 void fillInternal(const Path&, const String& windingRuleString); |
| 311 void strokeInternal(const Path&); | 311 void strokeInternal(const Path&); |
| 312 void clipInternal(const Path&, const String& windingRuleString); | 312 void clipInternal(const Path&, const String& windingRuleString); |
| 313 | 313 |
| 314 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); | 314 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); |
| 315 | 315 |
| 316 const Font& accessFont(); | 316 const Font& accessFont(); |
| 317 int getFontBaseline(const FontMetrics&) const; |
| 317 | 318 |
| 318 void clearCanvas(); | 319 void clearCanvas(); |
| 319 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; | 320 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; |
| 320 | 321 |
| 321 void inflateStrokeRect(FloatRect&) const; | 322 void inflateStrokeRect(FloatRect&) const; |
| 322 | 323 |
| 323 template<class T> void fullCanvasCompositedFill(const T&); | 324 template<class T> void fullCanvasCompositedFill(const T&); |
| 324 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); | 325 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); |
| 325 | 326 |
| 326 bool focusRingCallIsValid(const Path&, Element*); | 327 bool focusRingCallIsValid(const Path&, Element*); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 339 bool m_usesCSSCompatibilityParseMode; | 340 bool m_usesCSSCompatibilityParseMode; |
| 340 bool m_hasAlpha; | 341 bool m_hasAlpha; |
| 341 MutableStylePropertyMap m_fetchedFonts; | 342 MutableStylePropertyMap m_fetchedFonts; |
| 342 }; | 343 }; |
| 343 | 344 |
| 344 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 345 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 345 | 346 |
| 346 } // namespace WebCore | 347 } // namespace WebCore |
| 347 | 348 |
| 348 #endif | 349 #endif |
| OLD | NEW |