Changeset 106876 in webkit
- Timestamp:
- Feb 6, 2012, 4:52:02 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/media/video-mouse-focus-expected.txt (added)
-
LayoutTests/media/video-mouse-focus.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLMediaElement.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106873 r106876 1 2012-02-03 Jer Noble <jer.noble@apple.com> 2 3 REGRESSION (r104303): Clicking inline video controls gives the video a focus ring 4 https://bugs.webkit.org/show_bug.cgi?id=77288 5 6 Reviewed by Darin Adler. 7 8 * media/video-mouse-focus-expected.txt: Added. 9 * media/video-mouse-focus.html: Added. 10 1 11 2012-02-06 Ehsan Akhgari <ehsan.akhgari@gmail.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r106875 r106876 1 2012-02-03 Jer Noble <jer.noble@apple.com> 2 3 REGRESSION (r104303): Clicking inline video controls gives the video a focus ring 4 https://bugs.webkit.org/show_bug.cgi?id=77288 5 6 Reviewed by Darin Adler. 7 8 Test: media/video-mouse-focus.html 9 10 Do not allow media elements to be focused by mouse click by overriding isMouseFocusable 11 and returning false. 12 13 * html/HTMLMediaElement.cpp: 14 (WebCore::HTMLMediaElement::isMouseFocusable): 15 * html/HTMLMediaElement.h: 16 1 17 2012-02-06 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r106769 r106876 314 314 // If no controls specified, we should still be able to focus the element if it has tabIndex. 315 315 return controls() || HTMLElement::supportsFocus(); 316 } 317 318 bool HTMLMediaElement::isMouseFocusable() const 319 { 320 return false; 316 321 } 317 322 -
trunk/Source/WebCore/html/HTMLMediaElement.h
r106769 r106876 337 337 338 338 virtual bool supportsFocus() const; 339 virtual bool isMouseFocusable() const; 339 340 virtual void attributeChanged(Attribute*) OVERRIDE; 340 341 virtual bool rendererIsNeeded(const NodeRenderingContext&);
Note:
See TracChangeset
for help on using the changeset viewer.