diff options
Diffstat (limited to 'third_party/WebKit/Source/platform/graphics/GraphicsContext.h')
-rw-r--r-- | third_party/WebKit/Source/platform/graphics/GraphicsContext.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h index be487e6..2c9d439 100644 --- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h +++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h @@ -245,10 +245,17 @@ public: SkFilterQuality computeFilterQuality(Image*, const FloatRect& dest, const FloatRect& src) const; - // URL drawing + // Sets target URL of a clickable area. void setURLForRect(const KURL&, const IntRect&); + + // Sets destination of a URL fragment (in a URL pointing to the same web page) of a clickable area. + // When the area is clicked, the page should be scrolled to the location set by setURLDestinationLocation() + // for the destination whose name equals the fragment. void setURLFragmentForRect(const String& name, const IntRect&); + // Sets location of a URL destination (a.k.a. anchor) in the page. + void setURLDestinationLocation(const String& name, const IntPoint&); + static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, float strokeWidth, StrokeStyle); static int focusRingOutsetExtent(int offset, int width) |