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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 | 633 |
634 case PrefixedTransitionMediaFeature: | 634 case PrefixedTransitionMediaFeature: |
635 return "The '(-webkit-transition)' media query feature is deprecated; pl
ease consider using the more exact conditional \"@supports('(transition-property
: prop_name)')\" instead."; | 635 return "The '(-webkit-transition)' media query feature is deprecated; pl
ease consider using the more exact conditional \"@supports('(transition-property
: prop_name)')\" instead."; |
636 | 636 |
637 // Web Components | 637 // Web Components |
638 case HTMLShadowElementOlderShadowRoot: | 638 case HTMLShadowElementOlderShadowRoot: |
639 return "HTMLShadowElement.olderShadowRoot is deprecated."; | 639 return "HTMLShadowElement.olderShadowRoot is deprecated."; |
640 case PrefixedDocumentRegister: | 640 case PrefixedDocumentRegister: |
641 return "The document.webkitRegister method is deprecated. Use the docume
nt.register method instead."; | 641 return "The document.webkitRegister method is deprecated. Use the docume
nt.register method instead."; |
642 | 642 |
| 643 // HTML Media Capture |
| 644 case CaptureAttributeAsEnum: |
| 645 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 |
643 // Features that aren't deprecated don't have a deprecation message. | 647 // Features that aren't deprecated don't have a deprecation message. |
644 default: | 648 default: |
645 return String(); | 649 return String(); |
646 } | 650 } |
647 } | 651 } |
648 | 652 |
649 void UseCounter::count(CSSPropertyID feature) | 653 void UseCounter::count(CSSPropertyID feature) |
650 { | 654 { |
651 ASSERT(feature >= firstCSSProperty); | 655 ASSERT(feature >= firstCSSProperty); |
652 ASSERT(feature <= lastCSSProperty); | 656 ASSERT(feature <= lastCSSProperty); |
(...skipping 17 matching lines...) Expand all Loading... |
670 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
671 { | 675 { |
672 // FIXME: We may want to handle stylesheets that have multiple owners | 676 // FIXME: We may want to handle stylesheets that have multiple owners |
673 // http://crbug.com/242125 | 677 // http://crbug.com/242125 |
674 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
675 return getFrom(sheetContents->singleOwnerDocument()); | 679 return getFrom(sheetContents->singleOwnerDocument()); |
676 return 0; | 680 return 0; |
677 } | 681 } |
678 | 682 |
679 } // namespace WebCore | 683 } // namespace WebCore |
OLD | NEW |