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