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

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

Issue 329223004: [DeprecateAs] if call addEventListener or removeEventListener without enough arguments Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix template condition Created 6 years, 6 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') | 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 741
742 case HTMLHeadElementProfile: 742 case HTMLHeadElementProfile:
743 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute has no effect."; 743 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute has no effect.";
744 744
745 case ElementSetPrefix: 745 case ElementSetPrefix:
746 return "Setting 'Element.prefix' is deprecated, as it is read-only per D OM (http://dom.spec.whatwg.org/#element)."; 746 return "Setting 'Element.prefix' is deprecated, as it is read-only per D OM (http://dom.spec.whatwg.org/#element).";
747 747
748 case SyncXHRWithCredentials: 748 case SyncXHRWithCredentials:
749 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated."; 749 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated.";
750 750
751 // http://crbug.com/353484
752 case EventTargetMissingArgs:
753 return "Omitting either of the first two arguments of 'EventTarget.addEv entListener' or 'EventTarget.removeEventListener' is deprecated, as these are re quired (http://dom.spec.whatwg.org/#interface-eventtarget).";
754
751 // Features that aren't deprecated don't have a deprecation message. 755 // Features that aren't deprecated don't have a deprecation message.
752 default: 756 default:
753 return String(); 757 return String();
754 } 758 }
755 } 759 }
756 760
757 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 761 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
758 { 762 {
759 ASSERT(feature >= firstCSSProperty); 763 ASSERT(feature >= firstCSSProperty);
760 ASSERT(feature <= lastCSSProperty); 764 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
789 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 793 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
790 { 794 {
791 // FIXME: We may want to handle stylesheets that have multiple owners 795 // FIXME: We may want to handle stylesheets that have multiple owners
792 // http://crbug.com/242125 796 // http://crbug.com/242125
793 if (sheetContents && sheetContents->hasSingleOwnerNode()) 797 if (sheetContents && sheetContents->hasSingleOwnerNode())
794 return getFrom(sheetContents->singleOwnerDocument()); 798 return getFrom(sheetContents->singleOwnerDocument());
795 return 0; 799 return 0;
796 } 800 }
797 801
798 } // namespace WebCore 802 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698