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

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

Issue 739193002: Un-deprecate Attr.nodeValue and Attr.textContent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/Attr.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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 753
754 case PrefixedCancelRequestAnimationFrame: 754 case PrefixedCancelRequestAnimationFrame:
755 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; 755 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead.";
756 756
757 case ElementSetAttributeNodeNS: 757 case ElementSetAttributeNodeNS:
758 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; 758 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
759 759
760 case NodeIteratorDetach: 760 case NodeIteratorDetach:
761 return "'NodeIterator.detach' is now a no-op, as per DOM (http://dom.spe c.whatwg.org/#dom-nodeiterator-detach)."; 761 return "'NodeIterator.detach' is now a no-op, as per DOM (http://dom.spe c.whatwg.org/#dom-nodeiterator-detach).";
762 762
763 case AttrNodeValue:
764 return replacedBy("Attr.nodeValue", "value");
765
766 case AttrTextContent:
767 return replacedBy("Attr.textContent", "value");
768
769 case NodeIteratorExpandEntityReferences: 763 case NodeIteratorExpandEntityReferences:
770 return "'NodeIterator.expandEntityReferences' is deprecated and has been removed from DOM. It always returns false."; 764 return "'NodeIterator.expandEntityReferences' is deprecated and has been removed from DOM. It always returns false.";
771 765
772 case TreeWalkerExpandEntityReferences: 766 case TreeWalkerExpandEntityReferences:
773 return "'TreeWalker.expandEntityReferences' is deprecated and has been r emoved from DOM. It always returns false."; 767 return "'TreeWalker.expandEntityReferences' is deprecated and has been r emoved from DOM. It always returns false.";
774 768
775 case RangeDetach: 769 case RangeDetach:
776 return "'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatw g.org/#dom-range-detach)."; 770 return "'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatw g.org/#dom-range-detach).";
777 771
778 case OverflowChangedEvent: 772 case OverflowChangedEvent:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 852 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
859 { 853 {
860 // FIXME: We may want to handle stylesheets that have multiple owners 854 // FIXME: We may want to handle stylesheets that have multiple owners
861 // http://crbug.com/242125 855 // http://crbug.com/242125
862 if (sheetContents && sheetContents->hasSingleOwnerNode()) 856 if (sheetContents && sheetContents->hasSingleOwnerNode())
863 return getFrom(sheetContents->singleOwnerDocument()); 857 return getFrom(sheetContents->singleOwnerDocument());
864 return 0; 858 return 0;
865 } 859 }
866 860
867 } // namespace blink 861 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Attr.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698