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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 case CSSPropertyJustifyItems: return 455; | 492 case CSSPropertyJustifyItems: return 455; |
493 case CSSPropertyScrollBlocksOn: return 456; | 493 case CSSPropertyScrollBlocksOn: return 456; |
494 case CSSPropertyMotionPath: return 457; | 494 case CSSPropertyMotionPath: return 457; |
495 case CSSPropertyMotionPosition: return 458; | 495 case CSSPropertyMotionPosition: 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 | 503 |
503 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 504 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
504 // items). | 505 // items). |
505 // 2. Update maximumCSSSampleId() with the new maximum value. | 506 // 2. Update maximumCSSSampleId() with the new maximum value. |
506 // 3. Run the update_use_counter_css.py script in | 507 // 3. Run the update_use_counter_css.py script in |
507 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 508 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
508 | 509 |
509 case CSSPropertyInvalid: | 510 case CSSPropertyInvalid: |
510 ASSERT_NOT_REACHED(); | 511 ASSERT_NOT_REACHED(); |
511 return 0; | 512 return 0; |
512 } | 513 } |
513 | 514 |
514 ASSERT_NOT_REACHED(); | 515 ASSERT_NOT_REACHED(); |
515 return 0; | 516 return 0; |
516 } | 517 } |
517 | 518 |
518 static int maximumCSSSampleId() { return 464; } | 519 static int maximumCSSSampleId() { return 465; } |
519 | 520 |
520 void UseCounter::muteForInspector() | 521 void UseCounter::muteForInspector() |
521 { | 522 { |
522 UseCounter::m_muteCount++; | 523 UseCounter::m_muteCount++; |
523 } | 524 } |
524 | 525 |
525 void UseCounter::unmuteForInspector() | 526 void UseCounter::unmuteForInspector() |
526 { | 527 { |
527 UseCounter::m_muteCount--; | 528 UseCounter::m_muteCount--; |
528 } | 529 } |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 905 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
905 { | 906 { |
906 // FIXME: We may want to handle stylesheets that have multiple owners | 907 // FIXME: We may want to handle stylesheets that have multiple owners |
907 // http://crbug.com/242125 | 908 // http://crbug.com/242125 |
908 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 909 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
909 return getFrom(sheetContents->singleOwnerDocument()); | 910 return getFrom(sheetContents->singleOwnerDocument()); |
910 return 0; | 911 return 0; |
911 } | 912 } |
912 | 913 |
913 } // namespace blink | 914 } // namespace blink |
OLD | NEW |