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

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

Issue 251183002: Deprecate NodeIterator.expandEntityReferences / TreeWalker.expandEntityReferences (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 case NodeIteratorDetach: 715 case NodeIteratorDetach:
716 return "'NodeIterator.detach' is now a no-op, as per DOM (http://dom.spe c.whatwg.org/#dom-nodeiterator-detach)."; 716 return "'NodeIterator.detach' is now a no-op, as per DOM (http://dom.spe c.whatwg.org/#dom-nodeiterator-detach).";
717 717
718 case AttrNodeValue: 718 case AttrNodeValue:
719 return "'Attr.nodeValue' is deprecated. Please use 'value' instead."; 719 return "'Attr.nodeValue' is deprecated. Please use 'value' instead.";
720 720
721 case AttrTextContent: 721 case AttrTextContent:
722 return "'Attr.textContent' is deprecated. Please use 'value' instead."; 722 return "'Attr.textContent' is deprecated. Please use 'value' instead.";
723 723
724 case NodeIteratorExpandEntityReferences:
725 return "'NodeIterator.expandEntityReferences' is deprecated and has been removed from DOM. It always returns false.";
726
727 case TreeWalkerExpandEntityReferences:
728 return "'TreeWalker.expandEntityReferences' is deprecated and has been r emoved from DOM. It always returns false.";
729
724 // Features that aren't deprecated don't have a deprecation message. 730 // Features that aren't deprecated don't have a deprecation message.
725 default: 731 default:
726 return String(); 732 return String();
727 } 733 }
728 } 734 }
729 735
730 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 736 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
731 { 737 {
732 ASSERT(feature >= firstCSSProperty); 738 ASSERT(feature >= firstCSSProperty);
733 ASSERT(feature <= lastCSSProperty); 739 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
762 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 768 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
763 { 769 {
764 // FIXME: We may want to handle stylesheets that have multiple owners 770 // FIXME: We may want to handle stylesheets that have multiple owners
765 // http://crbug.com/242125 771 // http://crbug.com/242125
766 if (sheetContents && sheetContents->hasSingleOwnerNode()) 772 if (sheetContents && sheetContents->hasSingleOwnerNode())
767 return getFrom(sheetContents->singleOwnerDocument()); 773 return getFrom(sheetContents->singleOwnerDocument());
768 return 0; 774 return 0;
769 } 775 }
770 776
771 } // namespace WebCore 777 } // 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