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 // Performance | |
645 case PrefixedPerformanceTimeline: | |
646 return "'window.performance.webkitGet*' methods have been deprecated. Pl
ease use the unprefixed 'performance.get*' methods instead."; | |
647 | |
648 // HTML Media Capture | 644 // HTML Media Capture |
649 case CaptureAttributeAsEnum: | 645 case CaptureAttributeAsEnum: |
650 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."; | 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."; |
651 | 647 |
652 // Keyboard Event (DOM Level 3) | 648 // Keyboard Event (DOM Level 3) |
653 case KeyboardEventKeyLocation: | 649 case KeyboardEventKeyLocation: |
654 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; | 650 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; |
655 | 651 |
656 case ConsoleMarkTimeline: | 652 case ConsoleMarkTimeline: |
657 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 653 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 753 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
758 { | 754 { |
759 // FIXME: We may want to handle stylesheets that have multiple owners | 755 // FIXME: We may want to handle stylesheets that have multiple owners |
760 // http://crbug.com/242125 | 756 // http://crbug.com/242125 |
761 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 757 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
762 return getFrom(sheetContents->singleOwnerDocument()); | 758 return getFrom(sheetContents->singleOwnerDocument()); |
763 return 0; | 759 return 0; |
764 } | 760 } |
765 | 761 |
766 } // namespace WebCore | 762 } // namespace WebCore |
OLD | NEW |