Changeset 145397 in webkit
- Timestamp:
- Mar 11, 2013, 1:43:43 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/media/media-controls.js (modified) (1 diff)
-
LayoutTests/media/track/track-css-all-cues-expected.txt (modified) (1 diff)
-
LayoutTests/media/track/track-css-all-cues.html (modified) (2 diffs)
-
LayoutTests/media/track/track-css-cue-lifetime.html (modified) (1 diff)
-
LayoutTests/media/track/track-css-matching-default.html (modified) (1 diff)
-
LayoutTests/media/track/track-css-matching-lang.html (modified) (1 diff)
-
LayoutTests/media/track/track-css-matching-timestamps.html (modified) (1 diff)
-
LayoutTests/media/track/track-css-matching.html (modified) (1 diff)
-
LayoutTests/media/track/track-css-property-whitelist.html (modified) (1 diff)
-
LayoutTests/media/track/track-in-band-style.html (modified) (1 diff)
-
LayoutTests/platform/mac/media/track/track-cue-rendering-horizontal-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/RuleSet.h (modified) (1 diff)
-
Source/WebCore/css/StyleResolver.cpp (modified) (1 diff)
-
Source/WebCore/css/mediaControls.css (modified) (1 diff)
-
Source/WebCore/html/shadow/MediaControlElements.cpp (modified) (3 diffs)
-
Source/WebCore/html/shadow/MediaControlElements.h (modified) (2 diffs)
-
Source/WebCore/html/shadow/MediaControls.cpp (modified) (1 diff)
-
Source/WebCore/html/shadow/MediaControlsChromium.cpp (modified) (1 diff)
-
Source/WebCore/html/shadow/MediaControlsGtk.cpp (modified) (1 diff)
-
Source/WebCore/html/track/TextTrackCue.cpp (modified) (4 diffs)
-
Source/WebCore/html/track/TextTrackCue.h (modified) (3 diffs)
-
Source/WebCore/page/CaptionUserPreferencesMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r145394 r145397 1 2013-02-26 Dima Gorbik <dgorbik@apple.com> 2 3 Not all properties apply to the '::cue' pseudo-element 4 https://bugs.webkit.org/show_bug.cgi?id=110705 5 6 Reviewed by Eric Carlson. 7 8 * media/media-controls.js: 9 (textTrackDisplayElement): 10 * media/track/track-css-all-cues-expected.txt: 11 * media/track/track-css-all-cues.html: 12 * media/track/track-css-cue-lifetime.html: 13 * media/track/track-css-matching-default.html: 14 * media/track/track-css-matching-lang.html: 15 * media/track/track-css-matching-timestamps.html: 16 * media/track/track-css-matching.html: 17 * media/track/track-css-property-whitelist.html: 18 * media/track/track-in-band-style.html: 19 * platform/mac/media/track/track-cue-rendering-horizontal-expected.txt: 20 1 21 2013-03-11 James Robinson <jamesr@chromium.org> 2 22 -
trunk/LayoutTests/media/media-controls.js
r119547 r145397 55 55 return containerElement; 56 56 57 var controlID = "-webkit-media-text-track-" + arguments[1]; 57 if (arguments[1] != 'cue') 58 var controlID = "-webkit-media-text-track-" + arguments[1]; 59 else 60 var controlID = arguments[1]; 58 61 59 62 var displayElement = mediaControlsElement(containerElement.firstChild, controlID); -
trunk/LayoutTests/media/track/track-css-all-cues-expected.txt
r136991 r145397 2 2 EVENT(canplaythrough) 3 3 EVENT(seeked) 4 EXPECTED (getComputedStyle(textTrackDisplayElement(video).firstChild).color == 'rgb(255, 0, 0)') OK 4 EXPECTED (getComputedStyle(textTrackDisplayElement(video, 'cue')).color == 'rgb(128, 0, 128)') OK 5 EXPECTED (getComputedStyle(textTrackDisplayElement(video, 'cue')).backgroundColor == 'rgb(0, 255, 0)') OK 5 6 END OF TEST 6 7 -
trunk/LayoutTests/media/track/track-css-all-cues.html
r136991 r145397 10 10 <style> 11 11 12 video::cue { color: red}12 video::cue { color: purple; background-color: lime; } 13 13 14 14 </style> … … 18 18 function seeked() 19 19 { 20 testExpected("getComputedStyle(textTrackDisplayElement(video).firstChild).color", "rgb(255, 0, 0)"); 20 testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).color", "rgb(128, 0, 128)"); 21 testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).backgroundColor", "rgb(0, 255, 0)"); 21 22 endTest(); 22 23 } -
trunk/LayoutTests/media/track/track-css-cue-lifetime.html
r139737 r145397 35 35 return; 36 36 37 cueNode = skipNonElements(textTrackDisplayElement(video, ' all-nodes').firstChild);37 cueNode = skipNonElements(textTrackDisplayElement(video, 'cue').firstChild); 38 38 skipNonElements(cueNode); 39 39 testExpected("getComputedStyle(cueNode).color", "rgb(255, 0, 0)"); -
trunk/LayoutTests/media/track/track-css-matching-default.html
r141817 r145397 17 17 return; 18 18 19 cueNode = textTrackDisplayElement(video, ' all-nodes').firstElementChild;19 cueNode = textTrackDisplayElement(video, 'cue').firstElementChild; 20 20 testExpected("getComputedStyle(cueNode).fontWeight", "bold"); 21 21 cueNode = cueNode.nextElementSibling; -
trunk/LayoutTests/media/track/track-css-matching-lang.html
r142043 r145397 27 27 return; 28 28 29 cueNode = textTrackDisplayElement(video, ' all-nodes').firstElementChild.firstElementChild;29 cueNode = textTrackDisplayElement(video, 'cue').firstElementChild.firstElementChild; 30 30 testExpected("getComputedStyle(cueNode).color", info[seekedCount][0]); 31 31 cueNode = cueNode.firstElementChild.firstElementChild; -
trunk/LayoutTests/media/track/track-css-matching-timestamps.html
r140707 r145397 31 31 return; 32 32 33 cueNode = textTrackDisplayElement(video, ' all-nodes').firstElementChild;33 cueNode = textTrackDisplayElement(video, 'cue').firstElementChild; 34 34 testExpected("getComputedStyle(cueNode).color", info[seekedCount][0]); 35 35 cueNode = cueNode.nextElementSibling; -
trunk/LayoutTests/media/track/track-css-matching.html
r139803 r145397 59 59 } 60 60 61 cueNode = skipNonElements(textTrackDisplayElement(video, ' all-nodes').firstChild);61 cueNode = skipNonElements(textTrackDisplayElement(video, 'cue').firstChild); 62 62 skipNonElements(cueNode); 63 63 testExpected("getComputedStyle(cueNode).color", info[seekedCount][0]); -
trunk/LayoutTests/media/track/track-css-property-whitelist.html
r141806 r145397 29 29 consoleWrite("Test that only allowed for the ::cue pseudo-element properties are applied to WebVTT node objects."); 30 30 31 cueNode = textTrackDisplayElement(video, ' all-nodes').firstElementChild;31 cueNode = textTrackDisplayElement(video, 'cue').firstElementChild; 32 32 testExpected("getComputedStyle(cueNode).color", "rgb(255, 0, 0)"); 33 33 testExpected("getComputedStyle(cueNode).padding", "0px"); -
trunk/LayoutTests/media/track/track-in-band-style.html
r142349 r145397 17 17 testExpected("getComputedStyle(cueDisplayElement).color", "rgb(255, 255, 255)"); 18 18 19 cueNode = textTrackDisplayElement(video, ' all-nodes');19 cueNode = textTrackDisplayElement(video, 'cue'); 20 20 testExpected("getComputedStyle(cueNode).backgroundColor", "rgb(0, 0, 0)"); 21 21 -
trunk/LayoutTests/platform/mac/media/track/track-cue-rendering-horizontal-expected.txt
r126372 r145397 22 22 RenderVideo {VIDEO} at (0,0) size 320x240 23 23 layer at (8,8) size 320x240 24 Render DeprecatedFlexibleBox (relative positioned){DIV} at (0,0) size 320x24024 RenderFlexibleBox {DIV} at (0,0) size 320x240 25 25 layer at (8,8) size 320x215 26 RenderBlock (relative positioned) {DIV} at (0,0) size 320x215 [color=#FFFFFF 00]27 layer at (8,8) size 320x14 28 RenderBlock (positioned) {DIV} at (0,0) size 320x14 [color=#FFFFFF]26 RenderBlock (relative positioned) {DIV} at (0,0) size 320x215 [color=#FFFFFF] 27 layer at (8,8) size 320x14 scrollHeight 16 28 RenderBlock (positioned) {DIV} at (0,0) size 320x14 29 29 RenderInline {DIV} at (0,0) size 280x18 [bgcolor=#000000CC] 30 30 RenderText {#text} at (22,0) size 276x14 31 31 text run at (22,0) width 276: "Cue 1: should be positioned at the top of the video." 32 RenderInline {DIV} at (0,0) size 3x18 [bgcolor=#000000CC] 33 layer at (8,26) size 320x14 34 RenderBlock (positioned) {DIV} at (0,18) size 320x14 [color=#FFFFFF] 32 layer at (8,26) size 320x14 scrollHeight 16 33 RenderBlock (positioned) {DIV} at (0,18) size 320x14 35 34 RenderInline {DIV} at (0,0) size 308x18 [bgcolor=#000000CC] 36 35 RenderText {#text} at (8,0) size 304x14 37 36 text run at (8,0) width 304: "Cue 2: should be the second cue and not overlap cue 1." 38 RenderInline {DIV} at (0,0) size 3x18 [bgcolor=#000000CC] 39 layer at (8,44) size 320x14 40 RenderBlock (positioned) {DIV} at (0,36) size 320x14 [color=#FFFFFF] 37 layer at (8,44) size 320x14 scrollHeight 16 38 RenderBlock (positioned) {DIV} at (0,36) size 320x14 41 39 RenderInline {DIV} at (0,0) size 300x18 [bgcolor=#000000CC] 42 40 RenderText {#text} at (12,0) size 296x14 43 41 text run at (12,0) width 296: "Cue 3: should become the third line from top to bottom." 44 RenderInline {DIV} at (0,0) size 2x18 [bgcolor=#000000CC] 45 layer at (8,98) size 320x14 46 RenderBlock (positioned) {DIV} at (0,90) size 320x14 [color=#FFFFFF] 42 layer at (8,98) size 320x14 scrollHeight 16 43 RenderBlock (positioned) {DIV} at (0,90) size 320x14 47 44 RenderInline {DIV} at (0,0) size 292x18 [bgcolor=#000000CC] 48 45 RenderText {#text} at (16,0) size 288x14 49 46 text run at (16,0) width 288: "Cue 4: should be fixed positioned around the middle." 50 RenderInline {DIV} at (0,0) size 3x18 [bgcolor=#000000CC] 51 layer at (8,205) size 320x14 52 RenderBlock (positioned) {DIV} at (0,197) size 320x14 [color=#FFFFFF] 47 layer at (8,205) size 320x14 scrollHeight 16 48 RenderBlock (positioned) {DIV} at (0,197) size 320x14 53 49 RenderInline {DIV} at (0,0) size 296x18 [bgcolor=#000000CC] 54 50 RenderText {#text} at (14,0) size 292x14 55 51 text run at (14,0) width 292: "Cue 5: should be displayed at the bottom of the video." 56 RenderInline {DIV} at (0,0) size 3x18 [bgcolor=#000000CC] 57 layer at (8,187) size 320x14 58 RenderBlock (positioned) {DIV} at (0,179) size 320x14 [color=#FFFFFF] 52 layer at (8,187) size 320x14 scrollHeight 16 53 RenderBlock (positioned) {DIV} at (0,179) size 320x14 59 54 RenderInline {DIV} at (0,0) size 284x18 [bgcolor=#000000CC] 60 55 RenderText {#text} at (20,0) size 280x14 61 56 text run at (20,0) width 280: "Cue 6: should be on top of bottom positioned cue 5." 62 RenderInline {DIV} at (0,0) size 3x18 [bgcolor=#000000CC]63 57 layer at (8,223) size 320x25 64 Render DeprecatedFlexibleBox (relative positioned){DIV} at (0,215) size 320x2558 RenderFlexibleBox {DIV} at (0,215) size 320x25 65 59 RenderButton {INPUT} at (6,3) size 18x18 66 RenderButton {INPUT} at (32,4) size 16x16 67 RenderDeprecatedFlexibleBox {DIV} at (49,5) size 216x15 68 RenderSlider {INPUT} at (45,2) size 126x13 69 RenderDeprecatedFlexibleBox {DIV} at (0,0) size 126x13 70 RenderBlock {DIV} at (0,2) size 116x8 71 RenderBlock {DIV} at (116,2) size 10x8 72 RenderButton {INPUT} at (297,4) size 16x16 73 RenderBlock {DIV} at (265,6) size 25x12 60 RenderButton {INPUT} at (32,4) size 16x17 61 RenderFlexibleBox {DIV} at (49,5) size 219x15 62 RenderSlider {INPUT} at (45,2) size 129x13 63 RenderFlexibleBox {DIV} at (0,0) size 129x13 64 RenderBlock {DIV} at (0,2) size 129x9 65 RenderBlock {DIV} at (4,0) size 11x8 66 RenderButton {INPUT} at (300,4) size 16x17 67 RenderButton {INPUT} at (330,4) size 16x17 68 RenderBlock {DIV} at (268,6) size 25x13 74 69 layer at (57,230) size 45x11 75 Render DeprecatedFlexibleBox {DIV} at (0,2) size 45x11 [color=#FFFFFF]76 RenderBlock (anonymous) at (9,0) size 2 6x1170 RenderFlexibleBox {DIV} at (0,2) size 45x11 [color=#FFFFFF] 71 RenderBlock (anonymous) at (9,0) size 27x11 77 72 RenderText {#text} at (0,0) size 26x11 78 73 text run at (0,0) width 26: "00:00" 79 layer at (2 28,230) size 45x1180 Render DeprecatedFlexibleBox {DIV} at (171,2) size 45x11 [color=#FFFFFF]74 layer at (231,230) size 45x11 75 RenderFlexibleBox {DIV} at (174,2) size 45x11 [color=#FFFFFF] 81 76 RenderBlock (anonymous) at (7,0) size 31x11 82 77 RenderText {#text} at (0,0) size 31x11 83 78 text run at (0,0) width 31: "-00:05" 84 layer at (106,232) size 10x8 85 RenderBlock (relative positioned) {DIV} at (0,0) size 10x8 86 layer at (275,229) size 14x12 79 layer at (278,230) size 14x12 87 80 RenderButton zI: 1 {INPUT} at (2,0) size 14x12 -
trunk/Source/WebCore/ChangeLog
r145393 r145397 1 2013-02-26 Dima Gorbik <dgorbik@apple.com> 2 3 Not all properties apply to the '::cue' pseudo-element 4 https://bugs.webkit.org/show_bug.cgi?id=110705 5 6 Reviewed by Eric Carlson. 7 8 Background properties are not inherited and they were not applied to right elements. 9 Now we apply all ::cue properties to WebVTT cue background box, which -webkit-media-text-track-all-nodes 10 container was corresponding to. Now it has 'cue' pseudoId instead of '-webkit-media-text-track-all-nodes'. 11 Property filtering is turned off for user agent rules so that we are still able to apply filtered rules 12 to this container internally. m_cueContainer is removed because it is no longer needed. 13 m_allDocumentNodes container was renamed to m_cueBackgroundBox. 14 15 Existing tests modified to cover this case. 16 17 * css/RuleSet.h: 18 (WebCore::RuleData::propertyWhitelistType): disable filtering for UA rules. 19 * css/StyleResolver.cpp: 20 (WebCore::StyleResolver::sortAndTransferMatchedRules): pass the UA scope to propertyWhitelistType(). 21 * css/mediaControls.css: rename -webkit-media-text-track-all-nodes to 'cue' 22 (video::cue): 23 * html/shadow/MediaControlElements.cpp: 24 (WebCore::MediaControlTextTrackContainerElement::updateDisplay): 25 * html/shadow/MediaControlElements.h: 26 (MediaControlTextTrackContainerElement): 27 * html/shadow/MediaControls.cpp: 28 (WebCore::MediaControls::createTextTrackDisplay): 29 * html/shadow/MediaControlsChromium.cpp: 30 (WebCore::MediaControlsChromium::createTextTrackDisplay): 31 * html/shadow/MediaControlsGtk.cpp: 32 (WebCore::MediaControlsGtk::createTextTrackDisplay): 33 * html/track/TextTrackCue.cpp: 34 (WebCore::TextTrackCue::TextTrackCue): 35 (WebCore::TextTrackCue::updateDisplayTree): 36 (WebCore::TextTrackCue::getDisplayTree): 37 * html/track/TextTrackCue.h: 38 (WebCore::TextTrackCue::element): 39 * page/CaptionUserPreferencesMac.mm: 40 (WebCore::CaptionUserPreferencesMac::captionsStyleSheetOverride): 41 1 42 2013-03-11 Tim Horton <timothy_horton@apple.com> 2 43 -
trunk/Source/WebCore/css/RuleSet.h
r145034 r145397 70 70 unsigned linkMatchType() const { return m_linkMatchType; } 71 71 bool hasDocumentSecurityOrigin() const { return m_hasDocumentSecurityOrigin; } 72 PropertyWhitelistType propertyWhitelistType( ) const { returnstatic_cast<PropertyWhitelistType>(m_propertyWhitelistType); }72 PropertyWhitelistType propertyWhitelistType(bool isMatchingUARules = false) const { return isMatchingUARules ? PropertyWhitelistNone : static_cast<PropertyWhitelistType>(m_propertyWhitelistType); } 73 73 // Try to balance between memory usage (there can be lots of RuleData objects) and good filtering performance. 74 74 static const unsigned maximumIdentifierCount = 4; -
trunk/Source/WebCore/css/StyleResolver.cpp
r145377 r145397 538 538 if (state.style() && matchedRules[i]->containsUncommonAttributeSelector()) 539 539 state.style()->setUnique(); 540 addMatchedProperties(result, matchedRules[i]->rule()->properties(), matchedRules[i]->rule(), matchedRules[i]->linkMatchType(), matchedRules[i]->propertyWhitelistType( ));540 addMatchedProperties(result, matchedRules[i]->rule()->properties(), matchedRules[i]->rule(), matchedRules[i]->linkMatchType(), matchedRules[i]->propertyWhitelistType(MatchingUARulesScope::isMatchingUARules())); 541 541 } 542 542 } -
trunk/Source/WebCore/css/mediaControls.css
r144814 r145397 238 238 } 239 239 240 video:: -webkit-media-text-track-all-nodes{240 video::cue { 241 241 display: inline; 242 242 -
trunk/Source/WebCore/html/shadow/MediaControlElements.cpp
r145320 r145397 1186 1186 } 1187 1187 1188 void MediaControlTextTrackContainerElement::createSubtrees(Document* document)1189 {1190 m_cueContainer = HTMLElement::create(spanTag, document);1191 m_cueContainer->setPseudo(TextTrackCue::cueShadowPseudoId());1192 appendChild(m_cueContainer, ASSERT_NO_EXCEPTION, AttachNow);1193 }1194 1195 1188 PassRefPtr<MediaControlTextTrackContainerElement> MediaControlTextTrackContainerElement::create(Document* document) 1196 1189 { … … 1219 1212 { 1220 1213 if (!mediaController()->closedCaptionsVisible()) { 1221 m_cueContainer->removeChildren();1214 removeChildren(); 1222 1215 return; 1223 1216 } … … 1278 1271 if (displayBox->hasChildNodes() && !contains(static_cast<Node*>(displayBox.get()))) 1279 1272 // Note: the display tree of a cue is removed when the active flag of the cue is unset. 1280 m_cueContainer->appendChild(displayBox, ASSERT_NO_EXCEPTION, AttachNow);1273 appendChild(displayBox, ASSERT_NO_EXCEPTION, false); 1281 1274 } 1282 1275 -
trunk/Source/WebCore/html/shadow/MediaControlElements.h
r143857 r145397 440 440 void updateDisplay(); 441 441 void updateSizes(bool forceUpdate = false); 442 void createSubtrees(Document*);443 442 static const AtomicString& textTrackContainerElementShadowPseudoId(); 444 443 … … 455 454 IntRect m_videoDisplaySize; 456 455 float m_fontSize; 457 RefPtr<HTMLElement> m_cueContainer;458 456 }; 459 457 -
trunk/Source/WebCore/html/shadow/MediaControls.cpp
r145003 r145397 383 383 384 384 // Insert it before the first controller element so it always displays behind the controls. 385 insertBefore(textDisplayContainer, m_panel, IGNORE_EXCEPTION, AttachLazily); 386 textDisplayContainer->createSubtrees(document()); 387 textDisplayContainer.release(); 385 insertBefore(textDisplayContainer.release(), m_panel, IGNORE_EXCEPTION, true); 388 386 } 389 387 -
trunk/Source/WebCore/html/shadow/MediaControlsChromium.cpp
r144891 r145397 216 216 // Insert it before the first controller element so it always displays behind the controls. 217 217 // In the Chromium case, that's the enclosure element. 218 insertBefore(textDisplayContainer, m_enclosure, ASSERT_NO_EXCEPTION, AttachLazily); 219 textDisplayContainer->createSubtrees(document()); 220 textDisplayContainer.release(); 218 insertBefore(textDisplayContainer.release(), m_enclosure, ASSERT_NO_EXCEPTION, true); 221 219 } 222 220 #endif -
trunk/Source/WebCore/html/shadow/MediaControlsGtk.cpp
r144891 r145397 224 224 225 225 // Insert it before the first controller element so it always displays behind the controls. 226 insertBefore(textDisplayContainer, m_enclosure, ASSERT_NO_EXCEPTION, AttachLazily); 227 textDisplayContainer->createSubtrees(document()); 228 textDisplayContainer.release(); 226 insertBefore(textDisplayContainer.release(), m_enclosure, ASSERT_NO_EXCEPTION, true); 229 227 } 230 228 #endif -
trunk/Source/WebCore/html/track/TextTrackCue.cpp
r144891 r145397 186 186 // ---------------------------- 187 187 188 const AtomicString& TextTrackCue::allNodesShadowPseudoId()189 {190 DEFINE_STATIC_LOCAL(const AtomicString, subtitles, ("-webkit-media-text-track-all-nodes", AtomicString::ConstructFromLiteral));191 return subtitles;192 }193 194 188 TextTrackCue::TextTrackCue(ScriptExecutionContext* context, double start, double end, const String& content) 195 189 : m_startTime(start) … … 209 203 , m_pauseOnExit(false) 210 204 , m_snapToLines(true) 211 , m_ allDocumentNodes(HTMLDivElement::create(static_cast<Document*>(context)))205 , m_cueBackgroundBox(HTMLDivElement::create(static_cast<Document*>(context))) 212 206 , m_displayTreeShouldChange(true) 213 207 { … … 720 714 721 715 // Clear the contents of the set. 722 m_ allDocumentNodes->removeChildren();716 m_cueBackgroundBox->removeChildren(); 723 717 724 718 // Update the two sets containing past and future WebVTT objects. 725 719 RefPtr<DocumentFragment> referenceTree = createCueRenderingTree(); 726 720 markFutureAndPastNodes(referenceTree.get(), startTime(), movieTime); 727 m_ allDocumentNodes->appendChild(referenceTree);721 m_cueBackgroundBox->appendChild(referenceTree); 728 722 } 729 723 … … 748 742 // background box. 749 743 750 // Note: This is contained by default in m_ allDocumentNodes.751 m_ allDocumentNodes->setPseudo(allNodesShadowPseudoId());752 displayTree->appendChild(m_ allDocumentNodes, ASSERT_NO_EXCEPTION, AttachLazily);744 // Note: This is contained by default in m_cueBackgroundBox. 745 m_cueBackgroundBox->setPseudo(cueShadowPseudoId()); 746 displayTree->appendChild(m_cueBackgroundBox, ASSERT_NO_EXCEPTION, true); 753 747 754 748 // FIXME(BUG 79916): Runs of children of WebVTT Ruby Objects that are not -
trunk/Source/WebCore/html/track/TextTrackCue.h
r142349 r145397 88 88 virtual ~TextTrackCue(); 89 89 90 static const AtomicString& allNodesShadowPseudoId();91 92 90 TextTrack* track() const; 93 91 void setTrack(TextTrack*); … … 142 140 143 141 PassRefPtr<TextTrackCueBox> getDisplayTree(const IntSize& videoSize); 144 PassRefPtr<HTMLDivElement> element() const { return m_ allDocumentNodes; }142 PassRefPtr<HTMLDivElement> element() const { return m_cueBackgroundBox; } 145 143 146 144 void updateDisplayTree(float); … … 241 239 bool m_snapToLines; 242 240 243 RefPtr<HTMLDivElement> m_ allDocumentNodes;241 RefPtr<HTMLDivElement> m_cueBackgroundBox; 244 242 245 243 bool m_displayTreeShouldChange; -
trunk/Source/WebCore/page/CaptionUserPreferencesMac.mm
r145127 r145397 380 380 if (!background.isEmpty()) { 381 381 captionsOverrideStyleSheet.append(" video::"); 382 captionsOverrideStyleSheet.append(TextTrackCue:: allNodesShadowPseudoId());382 captionsOverrideStyleSheet.append(TextTrackCue::cueShadowPseudoId()); 383 383 captionsOverrideStyleSheet.append('{'); 384 384 captionsOverrideStyleSheet.append(background);
Note:
See TracChangeset
for help on using the changeset viewer.