Changeset 194278 in webkit
- Timestamp:
- Dec 18, 2015 11:37:54 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r194275 r194278 1 2015-12-18 Olivier Blin <olivier.blin@softathome.com> 2 3 Fix the !ENABLE(VIDEO) build after r192953 for <picture> element introduction 4 https://bugs.webkit.org/show_bug.cgi?id=152431 5 6 Since r192953, HTMLSourceElement is built even if video is disabled, 7 since it is used by the picture element. 8 9 But build was broken with -no-video, since HTMLMediaElement usage 10 should be guarded by VIDEO guards, and its JS bindings were still 11 under a video conditional. 12 13 Reviewed by Alex Christensen. 14 15 No new tests, build fix only. 16 17 * html/HTMLSourceElement.cpp: 18 (WebCore::HTMLSourceElement::insertedInto): 19 (WebCore::HTMLSourceElement::removedFrom): 20 * html/HTMLSourceElement.idl: 21 1 22 2015-12-18 Brady Eidson <beidson@apple.com> 2 23 -
trunk/Source/WebCore/html/HTMLSourceElement.cpp
r193859 r194278 60 60 Element* parent = parentElement(); 61 61 if (parent) { 62 #if ENABLE(VIDEO) 62 63 if (is<HTMLMediaElement>(*parent)) 63 64 downcast<HTMLMediaElement>(*parent).sourceWasAdded(this); 64 else if (is<HTMLPictureElement>(*parent)) 65 else 66 #endif 67 if (is<HTMLPictureElement>(*parent)) 65 68 downcast<HTMLPictureElement>(*parent).sourcesChanged(); 66 69 } … … 74 77 parent = &downcast<Element>(removalRoot); 75 78 if (parent) { 79 #if ENABLE(VIDEO) 76 80 if (is<HTMLMediaElement>(*parent)) 77 81 downcast<HTMLMediaElement>(*parent).sourceWasRemoved(this); 78 else if (is<HTMLPictureElement>(*parent)) 82 else 83 #endif 84 if (is<HTMLPictureElement>(*parent)) 79 85 downcast<HTMLPictureElement>(*parent).sourcesChanged(); 80 86 } -
trunk/Source/WebCore/html/HTMLSourceElement.idl
r165676 r194278 24 24 */ 25 25 26 [ 27 Conditional=VIDEO, 28 ] interface HTMLSourceElement : HTMLElement { 26 interface HTMLSourceElement : HTMLElement { 29 27 [Reflect, URL] attribute DOMString src; 30 28 attribute DOMString type;
Note: See TracChangeset
for help on using the changeset viewer.