OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 | 758 |
759 String UseCounter::deprecationMessage(Feature feature) | 759 String UseCounter::deprecationMessage(Feature feature) |
760 { | 760 { |
761 switch (feature) { | 761 switch (feature) { |
762 // Quota | 762 // Quota |
763 case PrefixedStorageInfo: | 763 case PrefixedStorageInfo: |
764 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor
aryStorage' or 'navigator.webkitPersistentStorage'"); | 764 return replacedBy("'window.webkitStorageInfo'", "'navigator.webkitTempor
aryStorage' or 'navigator.webkitPersistentStorage'"); |
765 | 765 |
766 // Keyboard Event (DOM Level 3) | 766 // Keyboard Event (DOM Level 3) |
767 case KeyboardEventKeyLocation: | 767 case KeyboardEventKeyLocation: |
768 return replacedBy("'KeyboardEvent.keyLocation'", "'KeyboardEvent.locatio
n'"); | 768 return replacedWillBeRemoved("'KeyboardEvent.keyLocation'", "'KeyboardEv
ent.location'", 50, "4997403308457984"); |
769 | 769 |
770 case ConsoleMarkTimeline: | 770 case ConsoleMarkTimeline: |
771 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); | 771 return replacedBy("'console.markTimeline'", "'console.timeStamp'"); |
772 | 772 |
773 case FileError: | 773 case FileError: |
774 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 774 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
775 | 775 |
776 case CSSStyleSheetInsertRuleOptionalArg: | 776 case CSSStyleSheetInsertRuleOptionalArg: |
777 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; | 777 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; |
778 | 778 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1001 { | 1001 { |
1002 // FIXME: We may want to handle stylesheets that have multiple owners | 1002 // FIXME: We may want to handle stylesheets that have multiple owners |
1003 // https://crbug.com/242125 | 1003 // https://crbug.com/242125 |
1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1005 return getFrom(sheetContents->singleOwnerDocument()); | 1005 return getFrom(sheetContents->singleOwnerDocument()); |
1006 return 0; | 1006 return 0; |
1007 } | 1007 } |
1008 | 1008 |
1009 } // namespace blink | 1009 } // namespace blink |
OLD | NEW |