Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 709 | 709 |
| 710 case DocumentCreateAttributeNS: | 710 case DocumentCreateAttributeNS: |
| 711 return "'Document.createAttributeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; | 711 return "'Document.createAttributeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; |
| 712 | 712 |
| 713 case AttributeOwnerElement: | 713 case AttributeOwnerElement: |
| 714 return "'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; | 714 return "'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; |
| 715 | 715 |
| 716 case ElementSetAttributeNodeNS: | 716 case ElementSetAttributeNodeNS: |
| 717 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; | 717 return "'Element.setAttributeNodeNS' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom)."; |
| 718 | 718 |
| 719 case RangeDetach: | |
| 720 return "'Range.detach' is now a no-op, as per DOM4 (http://dom.spec.what wg.org/#dom-range-detach)."; | |
|
tkent
2014/04/28 08:50:50
It's not DOM*4*.
Inactive
2014/04/28 14:44:18
Done.
| |
| 721 | |
| 719 // Features that aren't deprecated don't have a deprecation message. | 722 // Features that aren't deprecated don't have a deprecation message. |
| 720 default: | 723 default: |
| 721 return String(); | 724 return String(); |
| 722 } | 725 } |
| 723 } | 726 } |
| 724 | 727 |
| 725 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 728 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 726 { | 729 { |
| 727 ASSERT(feature >= firstCSSProperty); | 730 ASSERT(feature >= firstCSSProperty); |
| 728 ASSERT(feature <= lastCSSProperty); | 731 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 760 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 758 { | 761 { |
| 759 // FIXME: We may want to handle stylesheets that have multiple owners | 762 // FIXME: We may want to handle stylesheets that have multiple owners |
| 760 // http://crbug.com/242125 | 763 // http://crbug.com/242125 |
| 761 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 764 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 762 return getFrom(sheetContents->singleOwnerDocument()); | 765 return getFrom(sheetContents->singleOwnerDocument()); |
| 763 return 0; | 766 return 0; |
| 764 } | 767 } |
| 765 | 768 |
| 766 } // namespace WebCore | 769 } // namespace WebCore |
| OLD | NEW |