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

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

Issue 252783002: Make Range.detach() a no-op (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') | Source/core/page/DOMSelection.cpp » ('j') | 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 case AttrTextContent: 718 case AttrTextContent:
719 return "'Attr.textContent' is deprecated. Please use 'value' instead."; 719 return "'Attr.textContent' is deprecated. Please use 'value' instead.";
720 720
721 case NodeIteratorExpandEntityReferences: 721 case NodeIteratorExpandEntityReferences:
722 return "'NodeIterator.expandEntityReferences' is deprecated and has been removed from DOM. It always returns false."; 722 return "'NodeIterator.expandEntityReferences' is deprecated and has been removed from DOM. It always returns false.";
723 723
724 case TreeWalkerExpandEntityReferences: 724 case TreeWalkerExpandEntityReferences:
725 return "'TreeWalker.expandEntityReferences' is deprecated and has been r emoved from DOM. It always returns false."; 725 return "'TreeWalker.expandEntityReferences' is deprecated and has been r emoved from DOM. It always returns false.";
726 726
727 case RangeDetach:
728 return "'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatw g.org/#dom-range-detach).";
729
727 // Features that aren't deprecated don't have a deprecation message. 730 // Features that aren't deprecated don't have a deprecation message.
728 default: 731 default:
729 return String(); 732 return String();
730 } 733 }
731 } 734 }
732 735
733 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 736 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
734 { 737 {
735 ASSERT(feature >= firstCSSProperty); 738 ASSERT(feature >= firstCSSProperty);
736 ASSERT(feature <= lastCSSProperty); 739 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
765 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 768 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
766 { 769 {
767 // FIXME: We may want to handle stylesheets that have multiple owners 770 // FIXME: We may want to handle stylesheets that have multiple owners
768 // http://crbug.com/242125 771 // http://crbug.com/242125
769 if (sheetContents && sheetContents->hasSingleOwnerNode()) 772 if (sheetContents && sheetContents->hasSingleOwnerNode())
770 return getFrom(sheetContents->singleOwnerDocument()); 773 return getFrom(sheetContents->singleOwnerDocument());
771 return 0; 774 return 0;
772 } 775 }
773 776
774 } // namespace WebCore 777 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/page/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698