| 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 643 // HTML Media Capture |
| 644 case CaptureAttributeAsEnum: | 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."; | 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 | 646 |
| 647 case CaptureEvents: |
| 648 return "captureEvents() is deprecated. This method doesn't do anything."
; |
| 649 |
| 650 case ReleaseEvents: |
| 651 return "releaseEvents() is deprecated. This method doesn't do anything."
; |
| 652 |
| 647 // Features that aren't deprecated don't have a deprecation message. | 653 // Features that aren't deprecated don't have a deprecation message. |
| 648 default: | 654 default: |
| 649 return String(); | 655 return String(); |
| 650 } | 656 } |
| 651 } | 657 } |
| 652 | 658 |
| 653 void UseCounter::count(CSSPropertyID feature) | 659 void UseCounter::count(CSSPropertyID feature) |
| 654 { | 660 { |
| 655 ASSERT(feature >= firstCSSProperty); | 661 ASSERT(feature >= firstCSSProperty); |
| 656 ASSERT(feature <= lastCSSProperty); | 662 ASSERT(feature <= lastCSSProperty); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 680 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 675 { | 681 { |
| 676 // FIXME: We may want to handle stylesheets that have multiple owners | 682 // FIXME: We may want to handle stylesheets that have multiple owners |
| 677 // http://crbug.com/242125 | 683 // http://crbug.com/242125 |
| 678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 684 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
| 679 return getFrom(sheetContents->singleOwnerDocument()); | 685 return getFrom(sheetContents->singleOwnerDocument()); |
| 680 return 0; | 686 return 0; |
| 681 } | 687 } |
| 682 | 688 |
| 683 } // namespace WebCore | 689 } // namespace WebCore |
| OLD | NEW |