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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: | 626 case DocumentClear: |
627 return "document.clear() is deprecated. This method doesn't do anything.
"; | 627 return "document.clear() is deprecated. This method doesn't do anything.
"; |
628 | 628 |
629 // Web Components | |
630 case HTMLShadowElementOlderShadowRoot: | |
631 return "HTMLShadowElement.olderShadowRoot is deprecated."; | |
632 | |
633 // HTML Media Capture | 629 // HTML Media Capture |
634 case CaptureAttributeAsEnum: | 630 case CaptureAttributeAsEnum: |
635 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."; | 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."; |
636 | 632 |
637 // Keyboard Event (DOM Level 3) | 633 // Keyboard Event (DOM Level 3) |
638 case KeyboardEventKeyLocation: | 634 case KeyboardEventKeyLocation: |
639 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; | 635 return "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardE
vent.location' instead."; |
640 | 636 |
641 case CaptureEvents: | 637 case CaptureEvents: |
642 return "captureEvents() is deprecated. This method doesn't do anything."
; | 638 return "captureEvents() is deprecated. This method doesn't do anything."
; |
643 | 639 |
644 case ReleaseEvents: | 640 case ReleaseEvents: |
645 return "releaseEvents() is deprecated. This method doesn't do anything."
; | 641 return "releaseEvents() is deprecated. This method doesn't do anything."
; |
646 | 642 |
647 case ConsoleMarkTimeline: | 643 case ConsoleMarkTimeline: |
648 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 644 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
649 | 645 |
650 case FileError: | 646 case FileError: |
651 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 647 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
652 | 648 |
653 case EventReturnValue: | 649 case EventReturnValue: |
654 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; | 650 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; |
655 | 651 |
656 case ScrollTopBodyNotQuirksMode: | |
657 return "body.scrollTop is deprecated in strict mode. Please use 'documen
tElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mod
e."; | |
658 | |
659 case ScrollLeftBodyNotQuirksMode: | |
660 return "body.scrollLeft is deprecated in strict mode. Please use 'docume
ntElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks
mode."; | |
661 | |
662 case ShowModalDialog: | 652 case ShowModalDialog: |
663 return "Chromium is considering deprecating showModalDialog. Please use
window.open and postMessage instead."; | 653 return "Chromium is considering deprecating showModalDialog. Please use
window.open and postMessage instead."; |
664 | 654 |
665 case CSSStyleSheetInsertRuleOptionalArg: | 655 case CSSStyleSheetInsertRuleOptionalArg: |
666 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; | 656 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; |
667 | 657 |
668 case AttributeSpecified: | 658 case AttributeSpecified: |
669 return "Attr.specified is deprecated. Its value is always true."; | 659 return "Attr.specified is deprecated. Its value is always true."; |
670 | 660 |
671 case SVGElementGetPresentationAttribute: | 661 case SVGElementGetPresentationAttribute: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 747 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
758 { | 748 { |
759 // FIXME: We may want to handle stylesheets that have multiple owners | 749 // FIXME: We may want to handle stylesheets that have multiple owners |
760 // http://crbug.com/242125 | 750 // http://crbug.com/242125 |
761 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 751 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
762 return getFrom(sheetContents->singleOwnerDocument()); | 752 return getFrom(sheetContents->singleOwnerDocument()); |
763 return 0; | 753 return 0; |
764 } | 754 } |
765 | 755 |
766 } // namespace WebCore | 756 } // namespace WebCore |
OLD | NEW |