| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 | 781 |
| 782 case HTMLTableElementVspace: | 782 case HTMLTableElementVspace: |
| 783 return "The 'vspace' attribute on table is deprecated. Please use CSS in
stead."; | 783 return "The 'vspace' attribute on table is deprecated. Please use CSS in
stead."; |
| 784 | 784 |
| 785 case HTMLTableElementHspace: | 785 case HTMLTableElementHspace: |
| 786 return "The 'hspace' attribute on table is deprecated. Please use CSS in
stead."; | 786 return "The 'hspace' attribute on table is deprecated. Please use CSS in
stead."; |
| 787 | 787 |
| 788 case PictureSourceSrc: | 788 case PictureSourceSrc: |
| 789 return "<source src> with a <picture> parent is invalid and therefore ig
nored. Please use <source srcset> instead."; | 789 return "<source src> with a <picture> parent is invalid and therefore ig
nored. Please use <source srcset> instead."; |
| 790 | 790 |
| 791 case XHRProgressEventPosition: |
| 792 return "The XMLHttpRequest progress event property 'position' is depreca
ted. Please use 'loaded' instead."; |
| 793 |
| 794 case XHRProgressEventTotalSize: |
| 795 return "The XMLHttpRequest progress event property 'totalSize' is deprec
ated. Please use 'total' instead."; |
| 796 |
| 791 // Features that aren't deprecated don't have a deprecation message. | 797 // Features that aren't deprecated don't have a deprecation message. |
| 792 default: | 798 default: |
| 793 return String(); | 799 return String(); |
| 794 } | 800 } |
| 795 } | 801 } |
| 796 | 802 |
| 797 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 803 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 798 { | 804 { |
| 799 ASSERT(feature >= firstCSSProperty); | 805 ASSERT(feature >= firstCSSProperty); |
| 800 ASSERT(feature <= lastCSSProperty); | 806 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 829 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 835 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 830 { | 836 { |
| 831 // FIXME: We may want to handle stylesheets that have multiple owners | 837 // FIXME: We may want to handle stylesheets that have multiple owners |
| 832 // http://crbug.com/242125 | 838 // http://crbug.com/242125 |
| 833 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 839 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 834 return getFrom(sheetContents->singleOwnerDocument()); | 840 return getFrom(sheetContents->singleOwnerDocument()); |
| 835 return 0; | 841 return 0; |
| 836 } | 842 } |
| 837 | 843 |
| 838 } // namespace blink | 844 } // namespace blink |
| OLD | NEW |