Chromium Code Reviews| 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 821 | 821 |
| 822 case ShadowRootGetElementsByClassName: | 822 case ShadowRootGetElementsByClassName: |
| 823 return "ShadowRoot.getElementsByClassName() is deprecated. Please use 'q uerySelectorAll' instead"; | 823 return "ShadowRoot.getElementsByClassName() is deprecated. Please use 'q uerySelectorAll' instead"; |
| 824 | 824 |
| 825 case ShadowRootGetElementsByTagName: | 825 case ShadowRootGetElementsByTagName: |
| 826 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; | 826 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; |
| 827 | 827 |
| 828 case ShadowRootGetElementsByTagNameNS: | 828 case ShadowRootGetElementsByTagNameNS: |
| 829 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; | 829 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; |
| 830 | 830 |
| 831 case PrefixedWindowURL: | |
| 832 return replacedBy("webitURL", "URL"); | |
|
sof
2014/12/16 10:36:09
webit => webkit.
philipj_slow
2014/12/16 12:00:44
Done.
| |
| 833 | |
| 831 // Features that aren't deprecated don't have a deprecation message. | 834 // Features that aren't deprecated don't have a deprecation message. |
| 832 default: | 835 default: |
| 833 return String(); | 836 return String(); |
| 834 } | 837 } |
| 835 } | 838 } |
| 836 | 839 |
| 837 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 840 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 838 { | 841 { |
| 839 ASSERT(feature >= firstCSSProperty); | 842 ASSERT(feature >= firstCSSProperty); |
| 840 ASSERT(feature <= lastCSSProperty); | 843 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 869 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 872 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 870 { | 873 { |
| 871 // FIXME: We may want to handle stylesheets that have multiple owners | 874 // FIXME: We may want to handle stylesheets that have multiple owners |
| 872 // http://crbug.com/242125 | 875 // http://crbug.com/242125 |
| 873 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 876 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 874 return getFrom(sheetContents->singleOwnerDocument()); | 877 return getFrom(sheetContents->singleOwnerDocument()); |
| 875 return 0; | 878 return 0; |
| 876 } | 879 } |
| 877 | 880 |
| 878 } // namespace blink | 881 } // namespace blink |
| OLD | NEW |