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