OLD | NEW |
---|---|
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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
826 | 826 |
827 case ShadowRootGetElementsByTagName: | 827 case ShadowRootGetElementsByTagName: |
828 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; | 828 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; |
829 | 829 |
830 case ShadowRootGetElementsByTagNameNS: | 830 case ShadowRootGetElementsByTagNameNS: |
831 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; | 831 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; |
832 | 832 |
833 case PrefixedWindowURL: | 833 case PrefixedWindowURL: |
834 return replacedBy("webkitURL", "URL"); | 834 return replacedBy("webkitURL", "URL"); |
835 | 835 |
836 case PrefixedAudioContext: | |
837 return "webkitAudioContext is deprecated; use AudioContext instead"; | |
Ken Russell (switch to Gerrit)
2014/12/17 00:44:30
Use replacedBy("webkitAudioContext", "AudioContext
Raymond Toy
2014/12/17 05:53:08
Done.
| |
838 | |
839 case PrefixedOfflineAudioContext: | |
840 return "webkitOfflineAudioContext is deprecated; use OfflineAudioContext instead"; | |
Ken Russell (switch to Gerrit)
2014/12/17 00:44:30
Similar comment here.
Raymond Toy
2014/12/17 05:53:08
Done.
| |
841 | |
836 // Features that aren't deprecated don't have a deprecation message. | 842 // Features that aren't deprecated don't have a deprecation message. |
837 default: | 843 default: |
838 return String(); | 844 return String(); |
839 } | 845 } |
840 } | 846 } |
841 | 847 |
842 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 848 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
843 { | 849 { |
844 ASSERT(feature >= firstCSSProperty); | 850 ASSERT(feature >= firstCSSProperty); |
845 ASSERT(feature <= lastCSSProperty); | 851 ASSERT(feature <= lastCSSProperty); |
(...skipping 28 matching lines...) Expand all Loading... | |
874 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 880 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
875 { | 881 { |
876 // FIXME: We may want to handle stylesheets that have multiple owners | 882 // FIXME: We may want to handle stylesheets that have multiple owners |
877 // http://crbug.com/242125 | 883 // http://crbug.com/242125 |
878 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 884 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
879 return getFrom(sheetContents->singleOwnerDocument()); | 885 return getFrom(sheetContents->singleOwnerDocument()); |
880 return 0; | 886 return 0; |
881 } | 887 } |
882 | 888 |
883 } // namespace blink | 889 } // namespace blink |
OLD | NEW |