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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 654 |
655 case CSSStyleSheetInsertRuleOptionalArg: | 655 case CSSStyleSheetInsertRuleOptionalArg: |
656 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)."; |
657 | 657 |
658 case AttributeSpecified: | 658 case AttributeSpecified: |
659 return "Attr.specified is deprecated. Its value is always true."; | 659 return "Attr.specified is deprecated. Its value is always true."; |
660 | 660 |
661 case SVGElementGetPresentationAttribute: | 661 case SVGElementGetPresentationAttribute: |
662 return "CSSValue and SVGElement.getPresentationAttribute are deprecated.
Please use getPropertyValue and parse the return value instead."; | 662 return "CSSValue and SVGElement.getPresentationAttribute are deprecated.
Please use getPropertyValue and parse the return value instead."; |
663 | 663 |
664 case TextTrackCueConstructor: | |
665 return "The 'TextTrackCue' constructor is deprecated. Please use 'VTTCue
' instead."; | |
666 | |
667 case PrefixedMediaSourceOpen: | 664 case PrefixedMediaSourceOpen: |
668 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; | 665 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; |
669 | 666 |
670 case DOMImplementationCreateCSSStyleSheet: | 667 case DOMImplementationCreateCSSStyleSheet: |
671 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; | 668 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; |
672 | 669 |
673 case MediaErrorEncrypted: | 670 case MediaErrorEncrypted: |
674 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; | 671 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; |
675 | 672 |
676 case HTMLSourceElementMedia: | 673 case HTMLSourceElementMedia: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 726 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
730 { | 727 { |
731 // FIXME: We may want to handle stylesheets that have multiple owners | 728 // FIXME: We may want to handle stylesheets that have multiple owners |
732 // http://crbug.com/242125 | 729 // http://crbug.com/242125 |
733 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 730 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
734 return getFrom(sheetContents->singleOwnerDocument()); | 731 return getFrom(sheetContents->singleOwnerDocument()); |
735 return 0; | 732 return 0; |
736 } | 733 } |
737 | 734 |
738 } // namespace WebCore | 735 } // namespace WebCore |
OLD | NEW |