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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |