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

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

Issue 208263005: Deprecate webkitRequestAnimationFrame and friends as vendor-specific (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test expectations Created 6 years, 9 months 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/frame/UseCounter.h ('k') | Source/core/frame/Window.idl » ('j') | 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 case ShadowRootApplyAuthorStyles: 679 case ShadowRootApplyAuthorStyles:
680 return "'ShadowRoot.applyAuthorStyles' is deprecated."; 680 return "'ShadowRoot.applyAuthorStyles' is deprecated.";
681 681
682 case PrefixedSpeechAttribute: 682 case PrefixedSpeechAttribute:
683 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead."; 683 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead.";
684 684
685 case PrefixedGamepad: 685 case PrefixedGamepad:
686 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat or.getGamepads' instead."; 686 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat or.getGamepads' instead.";
687 687
688 case PrefixedRequestAnimationFrame:
689 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead.";
690
691 case PrefixedCancelAnimationFrame:
692 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead.";
693
694 case PrefixedCancelRequestAnimationFrame:
695 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead.";
696
688 // Features that aren't deprecated don't have a deprecation message. 697 // Features that aren't deprecated don't have a deprecation message.
689 default: 698 default:
690 return String(); 699 return String();
691 } 700 }
692 } 701 }
693 702
694 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 703 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
695 { 704 {
696 ASSERT(feature >= firstCSSProperty); 705 ASSERT(feature >= firstCSSProperty);
697 ASSERT(feature <= lastCSSProperty); 706 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
726 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 735 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
727 { 736 {
728 // FIXME: We may want to handle stylesheets that have multiple owners 737 // FIXME: We may want to handle stylesheets that have multiple owners
729 // http://crbug.com/242125 738 // http://crbug.com/242125
730 if (sheetContents && sheetContents->hasSingleOwnerNode()) 739 if (sheetContents && sheetContents->hasSingleOwnerNode())
731 return getFrom(sheetContents->singleOwnerDocument()); 740 return getFrom(sheetContents->singleOwnerDocument());
732 return 0; 741 return 0;
733 } 742 }
734 743
735 } // namespace WebCore 744 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698