⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 203511 in webkit


Ignore:
Timestamp:
Jul 21, 2016, 10:54:27 AM (10 years ago)
Author:
Chris Dumez
Message:

playsInline IDL attribute has the wrong casing
​https://bugs.webkit.org/show_bug.cgi?id=160029
<rdar://problem/27474031>

Reviewed by Jon Lee.

Source/WebCore:

Fix case from video.playsinline to video.playsInline in order to match
the specification:

It still reflects the "playsinline" content attribute though, as per
the specification:

No new tests, updated existing test.

  • html/HTMLVideoElement.idl:

LayoutTests:

Update test to use the correct case.

  • media/video-playsinline-expected.txt:
  • media/video-playsinline.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203510 r203511  
     12016-07-21  Chris Dumez  <cdumez@apple.com>
     2
     3        playsInline IDL attribute has the wrong casing
     4        https://bugs.webkit.org/show_bug.cgi?id=160029
     5        <rdar://problem/27474031>
     6
     7        Reviewed by Jon Lee.
     8
     9        Update test to use the correct case.
     10
     11        * media/video-playsinline-expected.txt:
     12        * media/video-playsinline.html:
     13
    1142016-07-21  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/LayoutTests/media/video-playsinline-expected.txt

    r203484 r203511  
    11RUN(internals.settings.setInlineMediaPlaybackRequiresPlaysInlineAttribute(true))
    2 RUN(video.playsinline = false)
     2RUN(video.playsInline = false)
    33EVENT(canplaythrough)
    44RUN(video.play())
    … …  
    66EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
    77RUN(internals.settings.setInlineMediaPlaybackRequiresPlaysInlineAttribute(true))
    8 RUN(video.playsinline = true)
     8RUN(video.playsInline = true)
    99EVENT(canplaythrough)
    1010RUN(video.play())
    … …  
    1212EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
    1313RUN(internals.settings.setInlineMediaPlaybackRequiresPlaysInlineAttribute(false))
    14 RUN(video.playsinline = false)
     14RUN(video.playsInline = false)
    1515EVENT(canplaythrough)
    1616RUN(video.play())
    … …  
    1818EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
    1919RUN(internals.settings.setInlineMediaPlaybackRequiresPlaysInlineAttribute(false))
    20 RUN(video.playsinline = true)
     20RUN(video.playsInline = true)
    2121EVENT(canplaythrough)
    2222RUN(video.play())
  • trunk/LayoutTests/media/video-playsinline.html

    r203484 r203511  
    2525    video.controls = true;
    2626    video.src = findMediaFile('video', 'content/test');
    27     run('video.playsinline = ' + hasPlaysInline);
     27    run('video.playsInline = ' + hasPlaysInline);
    2828    waitForEventOnce('canplaythrough', () => {
    2929        runWithKeyDown(() => {
  • trunk/Source/WebCore/ChangeLog

    r203510 r203511  
     12016-07-21  Chris Dumez  <cdumez@apple.com>
     2
     3        playsInline IDL attribute has the wrong casing
     4        https://bugs.webkit.org/show_bug.cgi?id=160029
     5        <rdar://problem/27474031>
     6
     7        Reviewed by Jon Lee.
     8
     9        Fix case from video.playsinline to video.playsInline in order to match
     10        the specification:
     11        - https://html.spec.whatwg.org/multipage/embedded-content.html#the-video-element:dom-video-playsinline
     12
     13        It still reflects the "playsinline" content attribute though, as per
     14        the specification:
     15        - https://html.spec.whatwg.org/multipage/embedded-content.html#dom-video-playsinline
     16
     17        No new tests, updated existing test.
     18
     19        * html/HTMLVideoElement.idl:
     20
    1212016-07-21  Chris Dumez  <cdumez@apple.com>
    222
  • trunk/Source/WebCore/html/HTMLVideoElement.idl

    r202660 r203511  
    3434    [Reflect, URL] attribute DOMString poster;
    3535
    36     [Reflect] attribute boolean playsinline;
     36    [Reflect=playsinline] attribute boolean playsInline;
    3737    readonly attribute boolean webkitSupportsFullscreen;
    3838    readonly attribute boolean webkitDisplayingFullscreen;
Note: See TracChangeset for help on using the changeset viewer.