| 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 | 663 |
| 664 case ConsoleMarkTimeline: | 664 case ConsoleMarkTimeline: |
| 665 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 665 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
| 666 | 666 |
| 667 case FileError: | 667 case FileError: |
| 668 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 668 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
| 669 | 669 |
| 670 case EventReturnValue: | 670 case EventReturnValue: |
| 671 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; | 671 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; |
| 672 | 672 |
| 673 case DOMSubtreeModifiedEvent: | |
| 674 return "DOMSubtreeModified is deprecated. Use MutationObservers instead.
"; | |
| 675 | |
| 676 case DOMNodeInsertedEvent: | |
| 677 return "DOMNodeInserted is deprecated. Use MutationObservers instead."; | |
| 678 | |
| 679 case DOMNodeRemovedEvent: | |
| 680 return "DOMNodeRemoved is deprecated. Use MutationObservers instead."; | |
| 681 | |
| 682 case DOMNodeRemovedFromDocumentEvent: | |
| 683 return "DOMNodeRemovedFromDocument is deprecated. Use MutationObservers
instead."; | |
| 684 | |
| 685 case DOMNodeInsertedIntoDocumentEvent: | |
| 686 return "DOMNodeInsertedIntoDocument is deprecated. Use MutationObservers
instead."; | |
| 687 | |
| 688 case DOMCharacterDataModifiedEvent: | |
| 689 return "DOMCharacterDataModified is deprecated. Use MutationObservers in
stead."; | |
| 690 | |
| 691 // Features that aren't deprecated don't have a deprecation message. | 673 // Features that aren't deprecated don't have a deprecation message. |
| 692 default: | 674 default: |
| 693 return String(); | 675 return String(); |
| 694 } | 676 } |
| 695 } | 677 } |
| 696 | 678 |
| 697 void UseCounter::count(CSSPropertyID feature) | 679 void UseCounter::count(CSSPropertyID feature) |
| 698 { | 680 { |
| 699 ASSERT(feature >= firstCSSProperty); | 681 ASSERT(feature >= firstCSSProperty); |
| 700 ASSERT(feature <= lastCSSProperty); | 682 ASSERT(feature <= lastCSSProperty); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 724 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 706 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 725 { | 707 { |
| 726 // FIXME: We may want to handle stylesheets that have multiple owners | 708 // FIXME: We may want to handle stylesheets that have multiple owners |
| 727 // http://crbug.com/242125 | 709 // http://crbug.com/242125 |
| 728 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 710 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
| 729 return getFrom(sheetContents->singleOwnerDocument()); | 711 return getFrom(sheetContents->singleOwnerDocument()); |
| 730 return 0; | 712 return 0; |
| 731 } | 713 } |
| 732 | 714 |
| 733 } // namespace WebCore | 715 } // namespace WebCore |
| OLD | NEW |