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

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

Issue 804733002: Deprecate Window.webkitURL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: webit => webkit Created 6 years 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 821
822 case ShadowRootGetElementsByClassName: 822 case ShadowRootGetElementsByClassName:
823 return "ShadowRoot.getElementsByClassName() is deprecated. Please use 'q uerySelectorAll' instead"; 823 return "ShadowRoot.getElementsByClassName() is deprecated. Please use 'q uerySelectorAll' instead";
824 824
825 case ShadowRootGetElementsByTagName: 825 case ShadowRootGetElementsByTagName:
826 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead"; 826 return "ShadowRoot.getElementsByTagName() is deprecated. Please use 'que rySelectorAll' instead";
827 827
828 case ShadowRootGetElementsByTagNameNS: 828 case ShadowRootGetElementsByTagNameNS:
829 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead"; 829 return "ShadowRoot.getElementsByTagNameNS() is deprecated. Please use 'q uerySelectorAll' instead";
830 830
831 case PrefixedWindowURL:
832 return replacedBy("webkitURL", "URL");
833
831 // Features that aren't deprecated don't have a deprecation message. 834 // Features that aren't deprecated don't have a deprecation message.
832 default: 835 default:
833 return String(); 836 return String();
834 } 837 }
835 } 838 }
836 839
837 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 840 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
838 { 841 {
839 ASSERT(feature >= firstCSSProperty); 842 ASSERT(feature >= firstCSSProperty);
840 ASSERT(feature <= lastCSSProperty); 843 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
869 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 872 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
870 { 873 {
871 // FIXME: We may want to handle stylesheets that have multiple owners 874 // FIXME: We may want to handle stylesheets that have multiple owners
872 // http://crbug.com/242125 875 // http://crbug.com/242125
873 if (sheetContents && sheetContents->hasSingleOwnerNode()) 876 if (sheetContents && sheetContents->hasSingleOwnerNode())
874 return getFrom(sheetContents->singleOwnerDocument()); 877 return getFrom(sheetContents->singleOwnerDocument());
875 return 0; 878 return 0;
876 } 879 }
877 880
878 } // namespace blink 881 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698