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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 case ServiceWorkerClientPostMessage: | 859 case ServiceWorkerClientPostMessage: |
860 return "'Client.postMessage()' is an experimental API and may change. Se
e https://github.com/slightlyoff/ServiceWorker/issues/609."; | 860 return "'Client.postMessage()' is an experimental API and may change. Se
e https://github.com/slightlyoff/ServiceWorker/issues/609."; |
861 | 861 |
862 case ServiceWorkerClientsGetAll: | 862 case ServiceWorkerClientsGetAll: |
863 return "'Clients.getAll()' is deprecated and will be removed soon. Pleas
e use 'Clients.matchAll()' instead."; | 863 return "'Clients.getAll()' is deprecated and will be removed soon. Pleas
e use 'Clients.matchAll()' instead."; |
864 | 864 |
865 case AttrChildAccess: | 865 case AttrChildAccess: |
866 case AttrChildChange: | 866 case AttrChildChange: |
867 return "Attr child nodes are deprecated and will be removed in M45, arou
nd August 2015. Please use 'Attr.value' instead."; | 867 return "Attr child nodes are deprecated and will be removed in M45, arou
nd August 2015. Please use 'Attr.value' instead."; |
868 | 868 |
| 869 case CSSKeyframesRuleInsertRule: |
| 870 return "'CSSKeyframesRule.insertRule()' is deprecated and will be remove
d in M45, around August 2015. Please use 'CSSKeyframesRule.appendRule()' instead
."; |
| 871 |
869 // Features that aren't deprecated don't have a deprecation message. | 872 // Features that aren't deprecated don't have a deprecation message. |
870 default: | 873 default: |
871 return String(); | 874 return String(); |
872 } | 875 } |
873 } | 876 } |
874 | 877 |
875 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 878 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
876 { | 879 { |
877 ASSERT(feature >= firstCSSProperty); | 880 ASSERT(feature >= firstCSSProperty); |
878 ASSERT(feature <= lastCSSProperty); | 881 ASSERT(feature <= lastCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... |
906 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 909 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
907 { | 910 { |
908 // FIXME: We may want to handle stylesheets that have multiple owners | 911 // FIXME: We may want to handle stylesheets that have multiple owners |
909 // http://crbug.com/242125 | 912 // http://crbug.com/242125 |
910 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 913 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
911 return getFrom(sheetContents->singleOwnerDocument()); | 914 return getFrom(sheetContents->singleOwnerDocument()); |
912 return 0; | 915 return 0; |
913 } | 916 } |
914 | 917 |
915 } // namespace blink | 918 } // namespace blink |
OLD | NEW |