Changeset 113780 in webkit
- Timestamp:
- Apr 10, 2012, 3:33:40 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/canvas/2d.backingStorePixelRatio-expected.txt (added)
-
LayoutTests/fast/canvas/2d.backingStorePixelRatio.html (added)
-
LayoutTests/platform/mac/fast/canvas/2d.backingStorePixelRatio-expected.txt (added)
-
LayoutTests/platform/win/fast/canvas/2d.backingStorePixelRatio-expected.txt (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLCanvasElement.h (modified) (1 diff)
-
Source/WebCore/html/canvas/CanvasRenderingContext2D.h (modified) (1 diff)
-
Source/WebCore/html/canvas/CanvasRenderingContext2D.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r113779 r113780 1 2012-04-10 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/10912486> CanvasRenderingContext2D does not expose its backing store resolution 4 https://bugs.webkit.org/show_bug.cgi?id=83619 5 6 Reviewed by Simon Fraser. 7 8 * fast/canvas/2d.backingStorePixelRatio-expected.txt: Added. 9 * fast/canvas/2d.backingStorePixelRatio.html: Added. 10 * platform/mac/fast/canvas/2d.backingStorePixelRatio-expected.txt: Added. 11 * platform/win/fast/canvas/2d.backingStorePixelRatio-expected.txt: Added. 12 1 13 2012-04-10 Dominik Röttsches <dominik.rottsches@linux.intel.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r113778 r113780 1 2012-04-10 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/10912486> CanvasRenderingContext2D does not expose its backing store resolution 4 https://bugs.webkit.org/show_bug.cgi?id=83619 5 6 Reviewed by Simon Fraser. 7 8 Test: fast/canvas/2d.backingStorePixelRatio.html 9 10 Added a backingStorePixelRatio attribute to CanvasRenderingContext2D, as proposed in 11 <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-March/035112.html>. The attribute 12 is prefixed with “webkit” for now. 13 14 * html/HTMLCanvasElement.h: 15 (WebCore::HTMLCanvasElement::deviceScaleFactor): Added this getter. 16 * html/canvas/CanvasRenderingContext2D.h: 17 (WebCore::CanvasRenderingContext2D::webkitBackingStorePixelRatio): Added. Returns the canvas 18 element’s device scale factor. 19 (CanvasRenderingContext2D): 20 * html/canvas/CanvasRenderingContext2D.idl: Added webkitBackingStorePixelRatio as a 21 read-only attribute. 22 1 23 2012-04-10 Mario Sanchez Prada <msanchez@igalia.com> 2 24 -
trunk/Source/WebCore/html/HTMLCanvasElement.h
r111872 r113780 136 136 bool shouldAccelerate(const IntSize&) const; 137 137 138 float deviceScaleFactor() const { return m_deviceScaleFactor; } 139 138 140 private: 139 141 HTMLCanvasElement(const QualifiedName&, Document*); -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h
r108597 r113780 201 201 void putImageData(ImageData*, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight, ExceptionCode&); 202 202 203 float webkitBackingStorePixelRatio() const { return canvas()->deviceScaleFactor(); } 204 203 205 void reset(); 204 206 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl
r107304 r113780 221 221 in [Optional=DefaultIsUndefined] float sw, in [Optional=DefaultIsUndefined] float sh) 222 222 raises(DOMException); 223 224 readonly attribute float webkitBackingStorePixelRatio; 223 225 }; 224 226
Note:
See TracChangeset
for help on using the changeset viewer.