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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 | 810 |
811 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: | 811 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: |
812 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/."; | 812 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/."; |
813 | 813 |
814 case FontFaceSetReady: | 814 case FontFaceSetReady: |
815 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 ."; | 815 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 ."; |
816 | 816 |
817 case DOMImplementationHasFeatureReturnFalse: | 817 case DOMImplementationHasFeatureReturnFalse: |
818 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)."; | 818 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)."; |
819 | 819 |
| 820 case BgPropertiesFixed: |
| 821 return "The 'bgproperties=fixed' attribute is deprecated. Please use CSS
'background-attachment:fixed' instead."; |
| 822 |
820 // Features that aren't deprecated don't have a deprecation message. | 823 // Features that aren't deprecated don't have a deprecation message. |
821 default: | 824 default: |
822 return String(); | 825 return String(); |
823 } | 826 } |
824 } | 827 } |
825 | 828 |
826 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 829 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
827 { | 830 { |
828 ASSERT(feature >= firstCSSProperty); | 831 ASSERT(feature >= firstCSSProperty); |
829 ASSERT(feature <= lastCSSProperty); | 832 ASSERT(feature <= lastCSSProperty); |
(...skipping 28 matching lines...) Expand all Loading... |
858 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 861 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
859 { | 862 { |
860 // FIXME: We may want to handle stylesheets that have multiple owners | 863 // FIXME: We may want to handle stylesheets that have multiple owners |
861 // http://crbug.com/242125 | 864 // http://crbug.com/242125 |
862 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 865 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
863 return getFrom(sheetContents->singleOwnerDocument()); | 866 return getFrom(sheetContents->singleOwnerDocument()); |
864 return 0; | 867 return 0; |
865 } | 868 } |
866 | 869 |
867 } // namespace blink | 870 } // namespace blink |
OLD | NEW |