Changeset 208000 in webkit
- Timestamp:
- Oct 27, 2016 1:08:51 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207995 r208000 1 2016-10-27 Chris Dumez <cdumez@apple.com> 2 3 Element parameter to CanvasRenderingContext2D.drawFocusIfNeeded() should not be nullable 4 https://bugs.webkit.org/show_bug.cgi?id=164062 5 6 Reviewed by Darin Adler. 7 8 Add layout test coverage. 9 10 * fast/canvas/draw-focus-if-needed-null-element-expected.txt: Added. 11 * fast/canvas/draw-focus-if-needed-null-element.html: Added. 12 1 13 2016-10-27 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r207999 r208000 1 2016-10-27 Chris Dumez <cdumez@apple.com> 2 3 Element parameter to CanvasRenderingContext2D.drawFocusIfNeeded() should not be nullable 4 https://bugs.webkit.org/show_bug.cgi?id=164062 5 6 Reviewed by Darin Adler. 7 8 Element parameter to CanvasRenderingContext2D.drawFocusIfNeeded() should not be nullable: 9 - https://html.spec.whatwg.org/#canvasuserinterface 10 11 Firefox and Chrome agree with the specification. 12 13 Test: fast/canvas/draw-focus-if-needed-null-element.html 14 15 * html/canvas/CanvasRenderingContext2D.cpp: 16 (WebCore::CanvasRenderingContext2D::drawFocusIfNeeded): 17 (WebCore::CanvasRenderingContext2D::drawFocusIfNeededInternal): 18 * html/canvas/CanvasRenderingContext2D.h: 19 * html/canvas/CanvasRenderingContext2D.idl: 20 1 21 2016-10-27 Yusuke Suzuki <utatane.tea@gmail.com> 2 22 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r207720 r208000 2042 2042 } 2043 2043 2044 void CanvasRenderingContext2D::drawFocusIfNeeded(Element *element)2044 void CanvasRenderingContext2D::drawFocusIfNeeded(Element& element) 2045 2045 { 2046 2046 drawFocusIfNeededInternal(m_path, element); 2047 2047 } 2048 2048 2049 void CanvasRenderingContext2D::drawFocusIfNeeded(DOMPath& path, Element *element)2049 void CanvasRenderingContext2D::drawFocusIfNeeded(DOMPath& path, Element& element) 2050 2050 { 2051 2051 drawFocusIfNeededInternal(path.path(), element); 2052 2052 } 2053 2053 2054 void CanvasRenderingContext2D::drawFocusIfNeededInternal(const Path& path, Element *element)2054 void CanvasRenderingContext2D::drawFocusIfNeededInternal(const Path& path, Element& element) 2055 2055 { 2056 2056 GraphicsContext* context = drawingContext(); 2057 2057 2058 if (!element || !element->focused() || !state().hasInvertibleTransform || path.isEmpty() || !element->isDescendantOf(canvas()) || !context)2058 if (!element.focused() || !state().hasInvertibleTransform || path.isEmpty() || !element.isDescendantOf(canvas()) || !context) 2059 2059 return; 2060 2060 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.h
r207720 r208000 198 198 void webkitPutImageDataHD(ImageData&, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); 199 199 200 void drawFocusIfNeeded(Element *);201 void drawFocusIfNeeded(DOMPath&, Element *);200 void drawFocusIfNeeded(Element&); 201 void drawFocusIfNeeded(DOMPath&, Element&); 202 202 203 203 float webkitBackingStorePixelRatio() const { return 1; } … … 354 354 bool isPointInStrokeInternal(const Path&, float x, float y); 355 355 356 void drawFocusIfNeededInternal(const Path&, Element *);356 void drawFocusIfNeededInternal(const Path&, Element&); 357 357 358 358 void clearCanvas(); -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl
r207720 r208000 177 177 178 178 // Focus rings 179 void drawFocusIfNeeded(Element ? element); // FIXME: The element parameter should not be nullable.180 void drawFocusIfNeeded(DOMPath path, Element ? element); // FIXME: The element parameter should not be nullable.179 void drawFocusIfNeeded(Element element); 180 void drawFocusIfNeeded(DOMPath path, Element element); 181 181 182 182 readonly attribute float webkitBackingStorePixelRatio;
Note: See TracChangeset
for help on using the changeset viewer.