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

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

Issue 23483045: Revert "Switch MutationEvents UseCounter to use countDeprecation." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/dom/Document.cpp ('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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 663
664 case ConsoleMarkTimeline: 664 case ConsoleMarkTimeline:
665 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 665 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
666 666
667 case FileError: 667 case FileError:
668 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 668 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
669 669
670 case EventReturnValue: 670 case EventReturnValue:
671 return "event.returnValue is deprecated. Please use the standard event.p reventDefault() instead."; 671 return "event.returnValue is deprecated. Please use the standard event.p reventDefault() instead.";
672 672
673 case DOMSubtreeModifiedEvent:
674 return "DOMSubtreeModified is deprecated. Use MutationObservers instead. ";
675
676 case DOMNodeInsertedEvent:
677 return "DOMNodeInserted is deprecated. Use MutationObservers instead.";
678
679 case DOMNodeRemovedEvent:
680 return "DOMNodeRemoved is deprecated. Use MutationObservers instead.";
681
682 case DOMNodeRemovedFromDocumentEvent:
683 return "DOMNodeRemovedFromDocument is deprecated. Use MutationObservers instead.";
684
685 case DOMNodeInsertedIntoDocumentEvent:
686 return "DOMNodeInsertedIntoDocument is deprecated. Use MutationObservers instead.";
687
688 case DOMCharacterDataModifiedEvent:
689 return "DOMCharacterDataModified is deprecated. Use MutationObservers in stead.";
690
691 // Features that aren't deprecated don't have a deprecation message. 673 // Features that aren't deprecated don't have a deprecation message.
692 default: 674 default:
693 return String(); 675 return String();
694 } 676 }
695 } 677 }
696 678
697 void UseCounter::count(CSSPropertyID feature) 679 void UseCounter::count(CSSPropertyID feature)
698 { 680 {
699 ASSERT(feature >= firstCSSProperty); 681 ASSERT(feature >= firstCSSProperty);
700 ASSERT(feature <= lastCSSProperty); 682 ASSERT(feature <= lastCSSProperty);
(...skipping 23 matching lines...) Expand all
724 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 706 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
725 { 707 {
726 // FIXME: We may want to handle stylesheets that have multiple owners 708 // FIXME: We may want to handle stylesheets that have multiple owners
727 // http://crbug.com/242125 709 // http://crbug.com/242125
728 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 710 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
729 return getFrom(sheetContents->singleOwnerDocument()); 711 return getFrom(sheetContents->singleOwnerDocument());
730 return 0; 712 return 0;
731 } 713 }
732 714
733 } // namespace WebCore 715 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698