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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 196243007: Implement CRC2D.scrollPathIntoView() on Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update layout test Created 6 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
OLDNEW
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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 303 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);
301 void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect); 304 void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect);
302 305
303 void fillInternal(const Path&, const String& windingRuleString); 306 void fillInternal(const Path&, const String& windingRuleString);
304 void strokeInternal(const Path&); 307 void strokeInternal(const Path&);
305 void clipInternal(const Path&, const String& windingRuleString); 308 void clipInternal(const Path&, const String& windingRuleString);
306 309
307 bool isPointInPathInternal(const Path&, const float x, const float y, const String& windingRuleString); 310 bool isPointInPathInternal(const Path&, const float x, const float y, const String& windingRuleString);
308 bool isPointInStrokeInternal(const Path&, const float x, const float y); 311 bool isPointInStrokeInternal(const Path&, const float x, const float y);
309 312
313 void scrollPathIntoViewInternal(const Path&);
314
310 void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false); 315 void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false);
311 316
312 const Font& accessFont(); 317 const Font& accessFont();
313 int getFontBaseline(const FontMetrics&) const; 318 int getFontBaseline(const FontMetrics&) const;
314 319
315 void clearCanvas(); 320 void clearCanvas();
316 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; 321 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const;
317 322
318 void inflateStrokeRect(FloatRect&) const; 323 void inflateStrokeRect(FloatRect&) const;
319 324
(...skipping 16 matching lines...) Expand all
336 bool m_usesCSSCompatibilityParseMode; 341 bool m_usesCSSCompatibilityParseMode;
337 bool m_hasAlpha; 342 bool m_hasAlpha;
338 MutableStylePropertyMap m_fetchedFonts; 343 MutableStylePropertyMap m_fetchedFonts;
339 }; 344 };
340 345
341 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 346 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
342 347
343 } // namespace WebCore 348 } // namespace WebCore
344 349
345 #endif 350 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698