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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 802 |
803 case DOMImplementationHasFeatureReturnFalse: | 803 case DOMImplementationHasFeatureReturnFalse: |
804 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)."; | 804 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)."; |
805 | 805 |
806 case GetMatchedCSSRules: | 806 case GetMatchedCSSRules: |
807 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; | 807 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
808 | 808 |
809 case DocumentSetCharset: | 809 case DocumentSetCharset: |
810 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; | 810 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; |
811 | 811 |
| 812 case PrefixedImageSmoothingEnabled: |
| 813 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled"
, "CanvasRenderingContext2D.imageSmoothingEnabled"); |
| 814 |
812 // Features that aren't deprecated don't have a deprecation message. | 815 // Features that aren't deprecated don't have a deprecation message. |
813 default: | 816 default: |
814 return String(); | 817 return String(); |
815 } | 818 } |
816 } | 819 } |
817 | 820 |
818 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 821 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
819 { | 822 { |
820 ASSERT(feature >= firstCSSProperty); | 823 ASSERT(feature >= firstCSSProperty); |
821 ASSERT(feature <= lastCSSProperty); | 824 ASSERT(feature <= lastCSSProperty); |
(...skipping 28 matching lines...) Expand all Loading... |
850 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 853 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
851 { | 854 { |
852 // FIXME: We may want to handle stylesheets that have multiple owners | 855 // FIXME: We may want to handle stylesheets that have multiple owners |
853 // http://crbug.com/242125 | 856 // http://crbug.com/242125 |
854 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 857 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
855 return getFrom(sheetContents->singleOwnerDocument()); | 858 return getFrom(sheetContents->singleOwnerDocument()); |
856 return 0; | 859 return 0; |
857 } | 860 } |
858 | 861 |
859 } // namespace blink | 862 } // namespace blink |
OLD | NEW |