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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 } | 634 } |
635 } | 635 } |
636 | 636 |
637 String UseCounter::deprecationMessage(Feature feature) | 637 String UseCounter::deprecationMessage(Feature feature) |
638 { | 638 { |
639 switch (feature) { | 639 switch (feature) { |
640 // Quota | 640 // Quota |
641 case PrefixedStorageInfo: | 641 case PrefixedStorageInfo: |
642 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; | 642 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; |
643 | 643 |
644 // HTML Media Capture | |
645 case CaptureAttributeAsEnum: | |
646 return "Using the 'capture' attribute as an enum is deprecated. Please u
se it as a boolean and specify the media types that should be accepted in the 'a
ccept' attribute."; | |
647 | |
648 // Keyboard Event (DOM Level 3) | 644 // Keyboard Event (DOM Level 3) |
649 case KeyboardEventKeyLocation: | 645 case KeyboardEventKeyLocation: |
650 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; | 646 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; |
651 | 647 |
652 case ConsoleMarkTimeline: | 648 case ConsoleMarkTimeline: |
653 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 649 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
654 | 650 |
655 case FileError: | 651 case FileError: |
656 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 652 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
657 | 653 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 768 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
773 { | 769 { |
774 // FIXME: We may want to handle stylesheets that have multiple owners | 770 // FIXME: We may want to handle stylesheets that have multiple owners |
775 // http://crbug.com/242125 | 771 // http://crbug.com/242125 |
776 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 772 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
777 return getFrom(sheetContents->singleOwnerDocument()); | 773 return getFrom(sheetContents->singleOwnerDocument()); |
778 return 0; | 774 return 0; |
779 } | 775 } |
780 | 776 |
781 } // namespace WebCore | 777 } // namespace WebCore |
OLD | NEW |