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

Unified 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: TestExpectations 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index c5b9efadd002a6999f58f16aa4f27baf7a0b752a..3566bcd4cc9e57db44413bb3897c355f04aebefa 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -164,6 +164,9 @@ public:
bool isPointInStroke(const float x, const float y);
bool isPointInStroke(Path2D*, const float x, const float y, ExceptionState&);
+ void scrollPathIntoView();
+ void scrollPathIntoView(Path2D*, ExceptionState&);
+
void clearRect(float x, float y, float width, float height);
void fillRect(float x, float y, float width, float height);
void strokeRect(float x, float y, float width, float height);
@@ -304,6 +307,8 @@ private:
bool isPointInPathInternal(const Path&, const float x, const float y, const String& windingRuleString);
bool isPointInStrokeInternal(const Path&, const float x, const float y);
+ void scrollPathIntoViewInternal(const Path&);
+
void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false);
const Font& accessFont();

Powered by Google App Engine
This is Rietveld 408576698