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

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

Issue 252713004: Make default for deep parameter in importNode false (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use countDeprecation 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
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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 case DocumentCreateAttributeNS: 706 case DocumentCreateAttributeNS:
707 return "'Document.createAttributeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; 707 return "'Document.createAttributeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
708 708
709 case AttributeOwnerElement: 709 case AttributeOwnerElement:
710 return "'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; 710 return "'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
711 711
712 case ElementSetAttributeNodeNS: 712 case ElementSetAttributeNodeNS:
713 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; 713 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).";
714 714
715 case DocumentImportNodeOptionalArgument:
716 return "The behavior of importNode() with no boolean argument is about t o change from doing a deep clone to doing a shallow clone. "
717 "Make sure to pass an explicit boolean argument to keep your current behavior.";
718
715 // Features that aren't deprecated don't have a deprecation message. 719 // Features that aren't deprecated don't have a deprecation message.
716 default: 720 default:
717 return String(); 721 return String();
718 } 722 }
719 } 723 }
720 724
721 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 725 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
722 { 726 {
723 ASSERT(feature >= firstCSSProperty); 727 ASSERT(feature >= firstCSSProperty);
724 ASSERT(feature <= lastCSSProperty); 728 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
753 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
754 { 758 {
755 // FIXME: We may want to handle stylesheets that have multiple owners 759 // FIXME: We may want to handle stylesheets that have multiple owners
756 // http://crbug.com/242125 760 // http://crbug.com/242125
757 if (sheetContents && sheetContents->hasSingleOwnerNode()) 761 if (sheetContents && sheetContents->hasSingleOwnerNode())
758 return getFrom(sheetContents->singleOwnerDocument()); 762 return getFrom(sheetContents->singleOwnerDocument());
759 return 0; 763 return 0;
760 } 764 }
761 765
762 } // namespace WebCore 766 } // namespace WebCore
OLDNEW
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698