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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 659 |
660 case ReleaseEvents: | 660 case ReleaseEvents: |
661 return "releaseEvents() is deprecated. This method doesn't do anything."
; | 661 return "releaseEvents() is deprecated. This method doesn't do anything."
; |
662 | 662 |
663 case ConsoleMarkTimeline: | 663 case ConsoleMarkTimeline: |
664 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; | 664 return "console.markTimeline is deprecated. Please use the console.timeS
tamp instead."; |
665 | 665 |
666 case FileError: | 666 case FileError: |
667 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 667 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
668 | 668 |
| 669 case EventReturnValue: |
| 670 return "event.returnValue is deprecated. Please use the standard event.p
reventDefault() instead."; |
| 671 |
669 // Features that aren't deprecated don't have a deprecation message. | 672 // Features that aren't deprecated don't have a deprecation message. |
670 default: | 673 default: |
671 return String(); | 674 return String(); |
672 } | 675 } |
673 } | 676 } |
674 | 677 |
675 void UseCounter::count(CSSPropertyID feature) | 678 void UseCounter::count(CSSPropertyID feature) |
676 { | 679 { |
677 ASSERT(feature >= firstCSSProperty); | 680 ASSERT(feature >= firstCSSProperty); |
678 ASSERT(feature <= lastCSSProperty); | 681 ASSERT(feature <= lastCSSProperty); |
(...skipping 23 matching lines...) Expand all Loading... |
702 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 705 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
703 { | 706 { |
704 // FIXME: We may want to handle stylesheets that have multiple owners | 707 // FIXME: We may want to handle stylesheets that have multiple owners |
705 // http://crbug.com/242125 | 708 // http://crbug.com/242125 |
706 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 709 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
707 return getFrom(sheetContents->singleOwnerDocument()); | 710 return getFrom(sheetContents->singleOwnerDocument()); |
708 return 0; | 711 return 0; |
709 } | 712 } |
710 | 713 |
711 } // namespace WebCore | 714 } // namespace WebCore |
OLD | NEW |