Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1346)

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 153613002: Deprecate the HTMLSourceElement.media IDL attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: indent Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 699
700 case PrefixedMediaSourceOpen: 700 case PrefixedMediaSourceOpen:
701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead."; 701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst ead.";
702 702
703 case DOMImplementationCreateCSSStyleSheet: 703 case DOMImplementationCreateCSSStyleSheet:
704 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; 704 return "'DOMImplementation.createCSSStyleSheet()' is deprecated.";
705 705
706 case MediaErrorEncrypted: 706 case MediaErrorEncrypted:
707 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used."; 707 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used.";
708 708
709 case HTMLSourceElementMedia:
710 return "'HTMLSourceElement.media' is deprecated. This attribute doesn't do anything.";
711
709 // Features that aren't deprecated don't have a deprecation message. 712 // Features that aren't deprecated don't have a deprecation message.
710 default: 713 default:
711 return String(); 714 return String();
712 } 715 }
713 } 716 }
714 717
715 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 718 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
716 { 719 {
717 ASSERT(feature >= firstCSSProperty); 720 ASSERT(feature >= firstCSSProperty);
718 ASSERT(feature <= lastCSSProperty); 721 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
747 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 750 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
748 { 751 {
749 // FIXME: We may want to handle stylesheets that have multiple owners 752 // FIXME: We may want to handle stylesheets that have multiple owners
750 // http://crbug.com/242125 753 // http://crbug.com/242125
751 if (sheetContents && sheetContents->hasSingleOwnerNode()) 754 if (sheetContents && sheetContents->hasSingleOwnerNode())
752 return getFrom(sheetContents->singleOwnerDocument()); 755 return getFrom(sheetContents->singleOwnerDocument());
753 return 0; 756 return 0;
754 } 757 }
755 758
756 } // namespace WebCore 759 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/media/source-media-deprecated-expected.txt ('k') | Source/core/html/HTMLSourceElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698