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

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

Issue 764083002: Deprecate getMatchedCSSRules() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update platform expectations Created 6 years 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 | Annotate | Revision Log
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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 792
793 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: 793 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
794 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k http://xhr.spec.whatwg.org/."; 794 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k http://xhr.spec.whatwg.org/.";
795 795
796 case FontFaceSetReady: 796 case FontFaceSetReady:
797 return "document.fonts.ready() method is going to be replaced with docum ent.fonts.ready attribute in future releases. Please be prepared. For more help, check https://code.google.com/p/chromium/issues/detail?id=392077#c3 ."; 797 return "document.fonts.ready() method is going to be replaced with docum ent.fonts.ready attribute in future releases. Please be prepared. For more help, check https://code.google.com/p/chromium/issues/detail?id=392077#c3 .";
798 798
799 case DOMImplementationHasFeatureReturnFalse: 799 case DOMImplementationHasFeatureReturnFalse:
800 return "'DOMImplementation.hasFeature()' returning false is deprecated. Please do not use it, as per DOM it should always return true (https://dom.spec. whatwg.org/#dom-domimplementation-hasfeature)."; 800 return "'DOMImplementation.hasFeature()' returning false is deprecated. Please do not use it, as per DOM it should always return true (https://dom.spec. whatwg.org/#dom-domimplementation-hasfeature).";
801 801
802 case GetMatchedCSSRules:
803 return "'getMatchedCSSRules()' is deprecated. For more help, check https ://code.google.com/p/chromium/issues/detail?id=437569#c2";
804
802 // Features that aren't deprecated don't have a deprecation message. 805 // Features that aren't deprecated don't have a deprecation message.
803 default: 806 default:
804 return String(); 807 return String();
805 } 808 }
806 } 809 }
807 810
808 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 811 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
809 { 812 {
810 ASSERT(feature >= firstCSSProperty); 813 ASSERT(feature >= firstCSSProperty);
811 ASSERT(feature <= lastCSSProperty); 814 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
840 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 843 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
841 { 844 {
842 // FIXME: We may want to handle stylesheets that have multiple owners 845 // FIXME: We may want to handle stylesheets that have multiple owners
843 // http://crbug.com/242125 846 // http://crbug.com/242125
844 if (sheetContents && sheetContents->hasSingleOwnerNode()) 847 if (sheetContents && sheetContents->hasSingleOwnerNode())
845 return getFrom(sheetContents->singleOwnerDocument()); 848 return getFrom(sheetContents->singleOwnerDocument());
846 return 0; 849 return 0;
847 } 850 }
848 851
849 } // namespace blink 852 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/fast/inspector-support/matchedrules-expected.txt ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698