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

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

Issue 1108293002: Make DOMImplementation.hasFeature() always return true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: windows compilefix attempt Created 5 years, 7 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') | Source/core/svg/SVGTests.cpp » ('j') | 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 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 823
824 case ConsoleTimelineEnd: 824 case ConsoleTimelineEnd:
825 return replacedBy("console.timelineEnd", "console.timeEnd"); 825 return replacedBy("console.timelineEnd", "console.timeEnd");
826 826
827 case CanvasRenderingContext2DCompositeOperationDarker: 827 case CanvasRenderingContext2DCompositeOperationDarker:
828 return replacedBy("darker", "darken"); 828 return replacedBy("darker", "darken");
829 829
830 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: 830 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
831 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/."; 831 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/.";
832 832
833 case DOMImplementationHasFeatureReturnFalse:
834 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).";
835
836 case GetMatchedCSSRules: 833 case GetMatchedCSSRules:
837 return "'getMatchedCSSRules()' is deprecated. For more help, check https ://code.google.com/p/chromium/issues/detail?id=437569#c2"; 834 return "'getMatchedCSSRules()' is deprecated. For more help, check https ://code.google.com/p/chromium/issues/detail?id=437569#c2";
838 835
839 case DocumentSetCharset: 836 case DocumentSetCharset:
840 return "Setting 'Document.charset' is deprecated. Please use '<meta char set=\"UTF-8\">' instead."; 837 return "Setting 'Document.charset' is deprecated. Please use '<meta char set=\"UTF-8\">' instead.";
841 838
842 case PrefixedImageSmoothingEnabled: 839 case PrefixedImageSmoothingEnabled:
843 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled" , "CanvasRenderingContext2D.imageSmoothingEnabled"); 840 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled" , "CanvasRenderingContext2D.imageSmoothingEnabled");
844 841
845 case AudioListenerDopplerFactor: 842 case AudioListenerDopplerFactor:
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 936 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
940 { 937 {
941 // FIXME: We may want to handle stylesheets that have multiple owners 938 // FIXME: We may want to handle stylesheets that have multiple owners
942 // http://crbug.com/242125 939 // http://crbug.com/242125
943 if (sheetContents && sheetContents->hasSingleOwnerNode()) 940 if (sheetContents && sheetContents->hasSingleOwnerNode())
944 return getFrom(sheetContents->singleOwnerDocument()); 941 return getFrom(sheetContents->singleOwnerDocument());
945 return 0; 942 return 0;
946 } 943 }
947 944
948 } // namespace blink 945 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/DOMImplementation.idl ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698