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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 639 |
640 case DocumentClear: | 640 case DocumentClear: |
641 return "document.clear() is deprecated. This method doesn't do anything.
"; | 641 return "document.clear() is deprecated. This method doesn't do anything.
"; |
642 | 642 |
643 case PrefixedTransitionMediaFeature: | 643 case PrefixedTransitionMediaFeature: |
644 return "The '(-webkit-transition)' media query feature is deprecated; pl
ease consider using the more exact conditional \"@supports('(transition-property
: prop_name)')\" instead."; | 644 return "The '(-webkit-transition)' media query feature is deprecated; pl
ease consider using the more exact conditional \"@supports('(transition-property
: prop_name)')\" instead."; |
645 | 645 |
646 // Web Components | 646 // Web Components |
647 case HTMLShadowElementOlderShadowRoot: | 647 case HTMLShadowElementOlderShadowRoot: |
648 return "HTMLShadowElement.olderShadowRoot is deprecated."; | 648 return "HTMLShadowElement.olderShadowRoot is deprecated."; |
649 case PrefixedDocumentRegister: | |
650 return "The document.webkitRegister method is deprecated. Use the docume
nt.register method instead."; | |
651 | 649 |
652 // HTML Media Capture | 650 // HTML Media Capture |
653 case CaptureAttributeAsEnum: | 651 case CaptureAttributeAsEnum: |
654 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."; | 652 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."; |
655 | 653 |
656 // Keyboard Event (DOM Level 3) | 654 // Keyboard Event (DOM Level 3) |
657 case KeyboardEventKeyLocation: | 655 case KeyboardEventKeyLocation: |
658 return "'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboard
Event.location' instead."; | 656 return "'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboard
Event.location' instead."; |
659 | 657 |
660 case CaptureEvents: | 658 case CaptureEvents: |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
726 { | 724 { |
727 // FIXME: We may want to handle stylesheets that have multiple owners | 725 // FIXME: We may want to handle stylesheets that have multiple owners |
728 // http://crbug.com/242125 | 726 // http://crbug.com/242125 |
729 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 727 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
730 return getFrom(sheetContents->singleOwnerDocument()); | 728 return getFrom(sheetContents->singleOwnerDocument()); |
731 return 0; | 729 return 0; |
732 } | 730 } |
733 | 731 |
734 } // namespace WebCore | 732 } // namespace WebCore |
OLD | NEW |