| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 726 |
| 727 case HTMLHeadElementProfile: | 727 case HTMLHeadElementProfile: |
| 728 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute
has no effect."; | 728 return "'HTMLHeadElement.profile' is deprecated. The reflected attribute
has no effect."; |
| 729 | 729 |
| 730 case ElementSetPrefix: | 730 case ElementSetPrefix: |
| 731 return "Setting 'Element.prefix' is deprecated, as it is read-only per D
OM (http://dom.spec.whatwg.org/#element)."; | 731 return "Setting 'Element.prefix' is deprecated, as it is read-only per D
OM (http://dom.spec.whatwg.org/#element)."; |
| 732 | 732 |
| 733 case SyncXHRWithCredentials: | 733 case SyncXHRWithCredentials: |
| 734 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request
s is deprecated."; | 734 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request
s is deprecated."; |
| 735 | 735 |
| 736 case OpenWebDatabaseInWorker: |
| 737 return "'openDatabase' in Workers is deprecated. Please switch to Indexe
d Database API."; |
| 738 |
| 739 case OpenWebDatabaseSyncInWorker: |
| 740 return "'openDatabaseSync' is deprecated. Please switch to Indexed Datab
ase API."; |
| 741 |
| 736 // Features that aren't deprecated don't have a deprecation message. | 742 // Features that aren't deprecated don't have a deprecation message. |
| 737 default: | 743 default: |
| 738 return String(); | 744 return String(); |
| 739 } | 745 } |
| 740 } | 746 } |
| 741 | 747 |
| 742 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 748 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 743 { | 749 { |
| 744 ASSERT(feature >= firstCSSProperty); | 750 ASSERT(feature >= firstCSSProperty); |
| 745 ASSERT(feature <= lastCSSProperty); | 751 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 774 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 780 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 775 { | 781 { |
| 776 // FIXME: We may want to handle stylesheets that have multiple owners | 782 // FIXME: We may want to handle stylesheets that have multiple owners |
| 777 // http://crbug.com/242125 | 783 // http://crbug.com/242125 |
| 778 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 784 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 779 return getFrom(sheetContents->singleOwnerDocument()); | 785 return getFrom(sheetContents->singleOwnerDocument()); |
| 780 return 0; | 786 return 0; |
| 781 } | 787 } |
| 782 | 788 |
| 783 } // namespace blink | 789 } // namespace blink |
| OLD | NEW |