Changeset 139562 in webkit
- Timestamp:
- Jan 13, 2013 4:25:21 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139561 r139562 1 2013-01-13 Dima Gorbik <dgorbik@apple.com> 2 3 Styling disappears from the cue that's being styled by ::cue pseudo element 4 https://bugs.webkit.org/show_bug.cgi?id=106723 5 6 Reviewed by Antti Koivisto. 7 8 * media/track/captions-webvtt/styling-lifetime.vtt: Added. 9 * media/track/track-css-cue-lifetime-expected.txt: Added. 10 * media/track/track-css-cue-lifetime.html: Added. 11 1 12 2013-01-13 Csaba Osztrogonác <ossy@webkit.org> 2 13 -
trunk/Source/WebCore/ChangeLog
r139556 r139562 1 2013-01-13 Dima Gorbik <dgorbik@apple.com> 2 3 Styling disappears from the cue that's being styled by ::cue pseudo element 4 https://bugs.webkit.org/show_bug.cgi?id=106723 5 6 Reviewed by Antti Koivisto. 7 8 Fixes a regression caused by r138966. Setting a pseudoId in TextTrackCue::updateDisplayTree for m_allDocumentNodes 9 was triggering recalculating styles the next run loop. Now when this was removed we append the WebVTT tree after its children have 10 been marked by markFutureAndPastNodes so that correct styles are set within this append call. 11 12 Test: media/track/track-css-cue-lifetime.html 13 14 * html/track/TextTrackCue.cpp: 15 (WebCore::TextTrackCue::markFutureAndPastNodes): changing the type of the first argument because DocumentFragment is not a subclass 16 of Element. 17 (WebCore::TextTrackCue::updateDisplayTree): appending the WebVTT rendering tree after its children have been marked properly. 18 * html/track/TextTrackCue.h: 19 (TextTrackCue): 20 1 21 2013-01-12 David Grogan <dgrogan@chromium.org> 2 22 -
trunk/Source/WebCore/html/track/TextTrackCue.cpp
r138966 r139562 659 659 } 660 660 661 void TextTrackCue::markFutureAndPastNodes( Element* root, double previousTimestamp, double movieTime)661 void TextTrackCue::markFutureAndPastNodes(Node* root, double previousTimestamp, double movieTime) 662 662 { 663 663 DEFINE_STATIC_LOCAL(const String, timestampTag, (ASCIILiteral("timestamp"))); … … 701 701 // Update the two sets containing past and future WebVTT objects. 702 702 RefPtr<DocumentFragment> referenceTree = getCueAsHTML(); 703 703 markFutureAndPastNodes(referenceTree.get(), startTime(), movieTime); 704 704 m_allDocumentNodes->appendChild(referenceTree); 705 markFutureAndPastNodes(m_allDocumentNodes.get(), startTime(), movieTime);706 705 } 707 706 -
trunk/Source/WebCore/html/track/TextTrackCue.h
r138784 r139562 136 136 void updateDisplayTree(float); 137 137 void removeDisplayTree(); 138 void markFutureAndPastNodes( Element*, double, double);138 void markFutureAndPastNodes(Node*, double, double); 139 139 140 140 int calculateComputedLinePosition();
Note: See TracChangeset
for help on using the changeset viewer.