Changeset 209439 in webkit
- Timestamp:
- Dec 6, 2016, 5:23:54 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r209437 r209439 1 2016-12-06 Dean Jackson <dino@apple.com> 2 3 Apply styling to media documents with modern controls 4 https://bugs.webkit.org/show_bug.cgi?id=165499 5 <rdar://problems/29543847> 6 7 Reviewed by Antoine Quint. 8 9 Make sure that the small test video has the correct background, 10 and is not anchored to the top left of the page. 11 12 * media/modern-media-controls/media-documents/background-color-and-centering-expected.html: Added. 13 * media/modern-media-controls/media-documents/background-color-and-centering.html: Added. 14 1 15 2016-12-05 Jiewen Tan <jiewen_tan@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r209438 r209439 1 2016-12-06 Dean Jackson <dino@apple.com> 2 3 Apply styling to media documents with modern controls 4 https://bugs.webkit.org/show_bug.cgi?id=165499 5 <rdar://problems/29543847> 6 7 Reviewed by Antoine Quint. 8 9 Existing MediaDocuments got styling from the injected style 10 sheet, which had rules for such documents. The modern media controls 11 use a scoped style rule, so we can't touch the document style. Instead, 12 inline the style directly from MediaDocument. 13 14 Test: media/modern-media-controls/media-documents/background-color-and-centering.html 15 16 * html/MediaDocument.cpp: 17 (WebCore::MediaDocumentParser::createDocumentStructure): 18 1 19 2016-12-06 Zalan Bujtas <zalan@apple.com> 2 20 -
trunk/Source/WebCore/html/MediaDocument.cpp
r208658 r209439 99 99 auto metaElement = HTMLMetaElement::create(document); 100 100 metaElement->setAttributeWithoutSynchronization(nameAttr, AtomicString("viewport", AtomicString::ConstructFromLiteral)); 101 metaElement->setAttributeWithoutSynchronization(contentAttr, AtomicString("width=device-width,initial-scale=1 ,user-scalable=no", AtomicString::ConstructFromLiteral));101 metaElement->setAttributeWithoutSynchronization(contentAttr, AtomicString("width=device-width,initial-scale=1", AtomicString::ConstructFromLiteral)); 102 102 headElement->appendChild(metaElement); 103 103 #endif
Note:
See TracChangeset
for help on using the changeset viewer.