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

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

Issue 723913003: Deprecate <body bgproperties=fixed> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use js-test.js to avoid checking in testharness.js expectations Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/body-bgproperties-expected.txt ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698