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

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

Issue 243333003: Add back three deprecated DOM APIs removed from Chrome 34 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make urls clickable Created 6 years, 8 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 case PrefixedCancelAnimationFrame: 704 case PrefixedCancelAnimationFrame:
705 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead."; 705 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead.";
706 706
707 case PrefixedCancelRequestAnimationFrame: 707 case PrefixedCancelRequestAnimationFrame:
708 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; 708 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead.";
709 709
710 case HTMLHtmlElementManifest: 710 case HTMLHtmlElementManifest:
711 return "'HTMLHtmlElement.manifest' is deprecated. The manifest attribute only has an effect during the early stages of document load."; 711 return "'HTMLHtmlElement.manifest' is deprecated. The manifest attribute only has an effect during the early stages of document load.";
712 712
713 case DocumentCreateAttributeNS:
714 return "'Document.createAttributeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
715
716 case AttributeOwnerElement:
717 return "'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
718
719 case ElementSetAttributeNodeNS:
720 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
721
713 // Features that aren't deprecated don't have a deprecation message. 722 // Features that aren't deprecated don't have a deprecation message.
714 default: 723 default:
715 return String(); 724 return String();
716 } 725 }
717 } 726 }
718 727
719 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 728 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
720 { 729 {
721 ASSERT(feature >= firstCSSProperty); 730 ASSERT(feature >= firstCSSProperty);
722 ASSERT(feature <= lastCSSProperty); 731 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
751 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 760 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
752 { 761 {
753 // FIXME: We may want to handle stylesheets that have multiple owners 762 // FIXME: We may want to handle stylesheets that have multiple owners
754 // http://crbug.com/242125 763 // http://crbug.com/242125
755 if (sheetContents && sheetContents->hasSingleOwnerNode()) 764 if (sheetContents && sheetContents->hasSingleOwnerNode())
756 return getFrom(sheetContents->singleOwnerDocument()); 765 return getFrom(sheetContents->singleOwnerDocument());
757 return 0; 766 return 0;
758 } 767 }
759 768
760 } // namespace WebCore 769 } // 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