| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 case CSSPropertyScrollBlocksOn: return 456; | 493 case CSSPropertyScrollBlocksOn: return 456; |
| 494 case CSSPropertyMotionPath: return 457; | 494 case CSSPropertyMotionPath: return 457; |
| 495 case CSSPropertyMotionOffset: return 458; | 495 case CSSPropertyMotionOffset: return 458; |
| 496 case CSSPropertyMotionRotation: return 459; | 496 case CSSPropertyMotionRotation: return 459; |
| 497 case CSSPropertyMotion: return 460; | 497 case CSSPropertyMotion: return 460; |
| 498 case CSSPropertyX: return 461; | 498 case CSSPropertyX: return 461; |
| 499 case CSSPropertyY: return 462; | 499 case CSSPropertyY: return 462; |
| 500 case CSSPropertyRx: return 463; | 500 case CSSPropertyRx: return 463; |
| 501 case CSSPropertyRy: return 464; | 501 case CSSPropertyRy: return 464; |
| 502 case CSSPropertyFontSizeAdjust: return 465; | 502 case CSSPropertyFontSizeAdjust: return 465; |
| 503 case CSSPropertyCx: return 466; |
| 504 case CSSPropertyCy: return 467; |
| 505 case CSSPropertyR: return 468; |
| 503 | 506 |
| 504 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 507 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 505 // items). | 508 // items). |
| 506 // 2. Update maximumCSSSampleId() with the new maximum value. | 509 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 507 // 3. Run the update_use_counter_css.py script in | 510 // 3. Run the update_use_counter_css.py script in |
| 508 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 511 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 509 | 512 |
| 510 case CSSPropertyInvalid: | 513 case CSSPropertyInvalid: |
| 511 ASSERT_NOT_REACHED(); | 514 ASSERT_NOT_REACHED(); |
| 512 return 0; | 515 return 0; |
| 513 } | 516 } |
| 514 | 517 |
| 515 ASSERT_NOT_REACHED(); | 518 ASSERT_NOT_REACHED(); |
| 516 return 0; | 519 return 0; |
| 517 } | 520 } |
| 518 | 521 |
| 519 static int maximumCSSSampleId() { return 465; } | 522 static int maximumCSSSampleId() { return 468; } |
| 520 | 523 |
| 521 void UseCounter::muteForInspector() | 524 void UseCounter::muteForInspector() |
| 522 { | 525 { |
| 523 UseCounter::m_muteCount++; | 526 UseCounter::m_muteCount++; |
| 524 } | 527 } |
| 525 | 528 |
| 526 void UseCounter::unmuteForInspector() | 529 void UseCounter::unmuteForInspector() |
| 527 { | 530 { |
| 528 UseCounter::m_muteCount--; | 531 UseCounter::m_muteCount--; |
| 529 } | 532 } |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 902 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 900 { | 903 { |
| 901 // FIXME: We may want to handle stylesheets that have multiple owners | 904 // FIXME: We may want to handle stylesheets that have multiple owners |
| 902 // http://crbug.com/242125 | 905 // http://crbug.com/242125 |
| 903 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 906 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 904 return getFrom(sheetContents->singleOwnerDocument()); | 907 return getFrom(sheetContents->singleOwnerDocument()); |
| 905 return 0; | 908 return 0; |
| 906 } | 909 } |
| 907 | 910 |
| 908 } // namespace blink | 911 } // namespace blink |
| OLD | NEW |