| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 693 |
| 694 case PrefixedVideoEnterFullScreen: | 694 case PrefixedVideoEnterFullScreen: |
| 695 return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; | 695 return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; |
| 696 | 696 |
| 697 case PrefixedVideoExitFullScreen: | 697 case PrefixedVideoExitFullScreen: |
| 698 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; | 698 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
| 699 | 699 |
| 700 case PrefixedMediaSourceOpen: | 700 case PrefixedMediaSourceOpen: |
| 701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; | 701 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; |
| 702 | 702 |
| 703 case DOMImplementationCreateCSSStyleSheet: |
| 704 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; |
| 705 |
| 703 // Features that aren't deprecated don't have a deprecation message. | 706 // Features that aren't deprecated don't have a deprecation message. |
| 704 default: | 707 default: |
| 705 return String(); | 708 return String(); |
| 706 } | 709 } |
| 707 } | 710 } |
| 708 | 711 |
| 709 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 712 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 710 { | 713 { |
| 711 ASSERT(feature >= firstCSSProperty); | 714 ASSERT(feature >= firstCSSProperty); |
| 712 ASSERT(feature <= lastCSSProperty); | 715 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 741 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 744 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 742 { | 745 { |
| 743 // FIXME: We may want to handle stylesheets that have multiple owners | 746 // FIXME: We may want to handle stylesheets that have multiple owners |
| 744 // http://crbug.com/242125 | 747 // http://crbug.com/242125 |
| 745 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 748 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 746 return getFrom(sheetContents->singleOwnerDocument()); | 749 return getFrom(sheetContents->singleOwnerDocument()); |
| 747 return 0; | 750 return 0; |
| 748 } | 751 } |
| 749 | 752 |
| 750 } // namespace WebCore | 753 } // namespace WebCore |
| OLD | NEW |