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

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

Issue 819093002: Deprecate Range.compareNode() and Range.expand() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update expectations 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
« no previous file with comments | « Source/core/dom/Range.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PrefixedWindowURL: 822 case PrefixedWindowURL:
823 return replacedBy("webkitURL", "URL"); 823 return replacedBy("webkitURL", "URL");
824 824
825 case PrefixedAudioContext: 825 case PrefixedAudioContext:
826 return replacedBy("webkitAudioContext", "AudioContext"); 826 return replacedBy("webkitAudioContext", "AudioContext");
827 827
828 case PrefixedOfflineAudioContext: 828 case PrefixedOfflineAudioContext:
829 return replacedBy("webkitOfflineAudioContext", "OfflineAudioContext"); 829 return replacedBy("webkitOfflineAudioContext", "OfflineAudioContext");
830 830
831 case RangeCompareNode:
832 return replacedBy("Range.compareNode()", "Range.compareBoundaryPoints()" );
833
834 case RangeExpand:
835 return replacedBy("Range.expand()", "Selection.modify()");
836
831 // Features that aren't deprecated don't have a deprecation message. 837 // Features that aren't deprecated don't have a deprecation message.
832 default: 838 default:
833 return String(); 839 return String();
834 } 840 }
835 } 841 }
836 842
837 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 843 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
838 { 844 {
839 ASSERT(feature >= firstCSSProperty); 845 ASSERT(feature >= firstCSSProperty);
840 ASSERT(feature <= lastCSSProperty); 846 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
869 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 875 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
870 { 876 {
871 // FIXME: We may want to handle stylesheets that have multiple owners 877 // FIXME: We may want to handle stylesheets that have multiple owners
872 // http://crbug.com/242125 878 // http://crbug.com/242125
873 if (sheetContents && sheetContents->hasSingleOwnerNode()) 879 if (sheetContents && sheetContents->hasSingleOwnerNode())
874 return getFrom(sheetContents->singleOwnerDocument()); 880 return getFrom(sheetContents->singleOwnerDocument());
875 return 0; 881 return 0;
876 } 882 }
877 883
878 } // namespace blink 884 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Range.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698