Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 140743002: Deprecate unused feature DOMImplementationCreateCSSStyleSheet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout tests fix. Added deprecation message Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DOMImplementation.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/DOMImplementation.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698