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

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: update and 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 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 022b9cf5189b763db2276fd6238e27192e41ae3a..11c99e22ce553f20bd608eefd5ed1c293c84ceb8 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);
@@ -307,6 +310,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();
@@ -316,6 +321,7 @@ private:
bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const;
void inflateStrokeRect(FloatRect&) const;
+ void absoluteBoundingPathRect(const Path&, LayoutRect&) const;
template<class T> void fullCanvasCompositedFill(const T&);
template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, const FloatRect&, CompositeOperator);

Powered by Google App Engine
This is Rietveld 408576698