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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 { | 616 { |
617 switch (feature) { | 617 switch (feature) { |
618 // Quota | 618 // Quota |
619 case PrefixedStorageInfo: | 619 case PrefixedStorageInfo: |
620 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; | 620 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; |
621 | 621 |
622 // Performance | 622 // Performance |
623 case PrefixedPerformanceTimeline: | 623 case PrefixedPerformanceTimeline: |
624 return "'window.performance.webkitGet*' methods have been deprecated. Pl
ease use the unprefixed 'performance.get*' methods instead."; | 624 return "'window.performance.webkitGet*' methods have been deprecated. Pl
ease use the unprefixed 'performance.get*' methods instead."; |
625 | 625 |
626 case DocumentClear: | |
627 return "document.clear() is deprecated. This method doesn't do anything.
"; | |
628 | |
629 // HTML Media Capture | 626 // HTML Media Capture |
630 case CaptureAttributeAsEnum: | 627 case CaptureAttributeAsEnum: |
631 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."; | 628 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."; |
632 | 629 |
633 // Keyboard Event (DOM Level 3) | 630 // Keyboard Event (DOM Level 3) |
634 case KeyboardEventKeyLocation: | 631 case KeyboardEventKeyLocation: |
635 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; | 632 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; |
636 | 633 |
637 case CaptureEvents: | |
638 return "captureEvents() is deprecated. This method doesn't do anything."
; | |
639 | |
640 case ReleaseEvents: | |
641 return "releaseEvents() is deprecated. This method doesn't do anything."
; | |
642 | |
643 case ConsoleMarkTimeline: | 634 case ConsoleMarkTimeline: |
644 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 635 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
645 | 636 |
646 case FileError: | 637 case FileError: |
647 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 638 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
648 | 639 |
649 case EventReturnValue: | 640 case EventReturnValue: |
650 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; | 641 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; |
651 | 642 |
652 case ShowModalDialog: | 643 case ShowModalDialog: |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 717 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
727 { | 718 { |
728 // FIXME: We may want to handle stylesheets that have multiple owners | 719 // FIXME: We may want to handle stylesheets that have multiple owners |
729 // http://crbug.com/242125 | 720 // http://crbug.com/242125 |
730 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 721 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
731 return getFrom(sheetContents->singleOwnerDocument()); | 722 return getFrom(sheetContents->singleOwnerDocument()); |
732 return 0; | 723 return 0; |
733 } | 724 } |
734 | 725 |
735 } // namespace WebCore | 726 } // namespace WebCore |
OLD | NEW |