WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
94307
Author Shadow DOM for <video>
https://bugs.webkit.org/show_bug.cgi?id=94307
Summary
Author Shadow DOM for <video>
Hajime Morrita
Reported
2012-08-17 01:01:17 PDT
<video> should accept Shadow DOM attachment.
Attachments
WIP, needs more test.
(24.48 KB, patch)
2012-08-24 02:00 PDT
,
Hajime Morrita
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from gce-cr-linux-04
(314.82 KB, application/zip)
2012-08-24 03:50 PDT
,
WebKit Review Bot
no flags
Details
Patch
(45.13 KB, patch)
2012-08-28 03:15 PDT
,
Hajime Morrita
no flags
Details
Formatted Diff
Diff
Patch
(51.75 KB, patch)
2012-09-05 01:56 PDT
,
Hajime Morrita
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Hajime Morrita
Comment 1
2012-08-24 02:00:23 PDT
Created
attachment 160362
[details]
WIP, needs more test.
WebKit Review Bot
Comment 2
2012-08-24 03:49:57 PDT
Comment on
attachment 160362
[details]
WIP, needs more test.
Attachment 160362
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13601050
New failing tests: fast/dom/shadow/shadowdom-for-media.html
WebKit Review Bot
Comment 3
2012-08-24 03:50:00 PDT
Created
attachment 160384
[details]
Archive of layout-test-results from gce-cr-linux-04 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-04 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Dimitri Glazkov (Google)
Comment 4
2012-08-24 09:16:59 PDT
Comment on
attachment 160362
[details]
WIP, needs more test. View in context:
https://bugs.webkit.org/attachment.cgi?id=160362&action=review
> Source/WebCore/html/HTMLMediaElement.cpp:123 > +class MediaInnerElement : public HTMLElement {
This is begging to be named more descriptively. Perhaps MediaSurfaceElement or something like this?
Eric Carlson
Comment 5
2012-08-24 09:42:18 PDT
+ if (!thisRenderer || thisRenderer->isMedia()) + return toRenderMedia(thisRenderer); toRenderMedia() ASSERTs when passed 0.
Hajime Morrita
Comment 6
2012-08-28 03:15:41 PDT
Created
attachment 160943
[details]
Patch
Hajime Morrita
Comment 7
2012-08-28 03:21:52 PDT
Eric, Dimitri, thanks for taking a look. I addressed your points and added a set of tests. Could you take another look?
Dimitri Glazkov (Google)
Comment 8
2012-08-28 08:57:08 PDT
Comment on
attachment 160943
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=160943&action=review
From the overall approach perspective, could we possibly get away with just always having the structure that uses <webkitmediasurface> element? In case of <img>, it was necessary because images are aplenty in the Web, and we had to be sensitive to memory use concerns. In case of video element, it's unlikely that we will have any significant impact with one extra element. In return, we'll have a much simpler logic. WDYT? R- due to a multitude spleeelling errors :P
> Source/WebCore/ChangeLog:10 > + then add new called MediaSurfaceElement to back the RenderMeedia object which is originally backed by the host element.
Meedia -> Media, and "which _was_ originally".
> Source/WebCore/ChangeLog:18 > + - #shadow-root - ... author shdodow with <shadow> ...
shdodow -> shadow
> Source/WebCore/ChangeLog:27 > + - Tells HTMLMediaElement::createRenderer() to create plain render objects instaed of RenderMedia when there is any author tree.
instaed -> instead.
> Source/WebCore/ChangeLog:36 > + (audio, video): Set these elememnts display: inline-block. This matters when the element has any author shadows.
elememnts -> elements
> Source/WebCore/ChangeLog:91 > + (WebCore::RenderVideo::updateIntrinsicSize): Repalced node() with videoElement().
Repalced -> Replaced
Hajime Morrita
Comment 9
2012-08-28 18:39:29 PDT
(In reply to
comment #8
)
> (From update of
attachment 160943
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=160943&action=review
> > From the overall approach perspective, could we possibly get away with just always having the structure that uses <webkitmediasurface> element? In case of <img>, it was necessary because images are aplenty in the Web, and we had to be sensitive to memory use concerns. In case of video element, it's unlikely that we will have any significant impact with one extra element. In return, we'll have a much simpler logic. > > WDYT?
Okay, let me try this way and see how it makes the code simpler.
> > R- due to a multitude spleeelling errors :P >
I should've never attempted to make any sentences in late ;-/
Hajime Morrita
Comment 10
2012-09-05 01:56:12 PDT
Created
attachment 162189
[details]
Patch
Eric Carlson
Comment 11
2012-09-05 21:06:13 PDT
Comment on
attachment 162189
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162189&action=review
> Source/WebCore/css/mediaControls.css:33 > +audio, video { > + display: inline-block; > +}
I am not sure this is correct, the 'display' property of an audio element without controls should be 'none'. See
bug #88105
. Why is this necessary?
> Source/WebCore/html/HTMLMediaElement.cpp:153 > + DEFINE_STATIC_LOCAL(AtomicString, pseudoId, ("-webkit-media-surface"));
Should this use AtomicString::ConstructFromLiteral?
Ryosuke Niwa
Comment 12
2019-10-04 22:17:00 PDT
We decided not to do this in V1 API.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug