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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 case CSSPropertyBackfaceVisibility: return 451; | 488 case CSSPropertyBackfaceVisibility: return 451; |
489 case CSSPropertyGridTemplate: return 452; | 489 case CSSPropertyGridTemplate: return 452; |
490 case CSSPropertyGrid: return 453; | 490 case CSSPropertyGrid: return 453; |
491 case CSSPropertyAll: return 454; | 491 case CSSPropertyAll: return 454; |
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; |
| 499 case CSSPropertyY: return 462; |
498 | 500 |
499 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 501 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
500 // items). | 502 // items). |
501 // 2. Update maximumCSSSampleId() with the new maximum value. | 503 // 2. Update maximumCSSSampleId() with the new maximum value. |
502 // 3. Run the update_use_counter_css.py script in | 504 // 3. Run the update_use_counter_css.py script in |
503 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 505 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
504 | 506 |
505 case CSSPropertyInvalid: | 507 case CSSPropertyInvalid: |
506 ASSERT_NOT_REACHED(); | 508 ASSERT_NOT_REACHED(); |
507 return 0; | 509 return 0; |
508 } | 510 } |
509 | 511 |
510 ASSERT_NOT_REACHED(); | 512 ASSERT_NOT_REACHED(); |
511 return 0; | 513 return 0; |
512 } | 514 } |
513 | 515 |
514 static int maximumCSSSampleId() { return 460; } | 516 static int maximumCSSSampleId() { return 462; } |
515 | 517 |
516 void UseCounter::muteForInspector() | 518 void UseCounter::muteForInspector() |
517 { | 519 { |
518 UseCounter::m_muteCount++; | 520 UseCounter::m_muteCount++; |
519 } | 521 } |
520 | 522 |
521 void UseCounter::unmuteForInspector() | 523 void UseCounter::unmuteForInspector() |
522 { | 524 { |
523 UseCounter::m_muteCount--; | 525 UseCounter::m_muteCount--; |
524 } | 526 } |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 884 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
883 { | 885 { |
884 // FIXME: We may want to handle stylesheets that have multiple owners | 886 // FIXME: We may want to handle stylesheets that have multiple owners |
885 // http://crbug.com/242125 | 887 // http://crbug.com/242125 |
886 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 888 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
887 return getFrom(sheetContents->singleOwnerDocument()); | 889 return getFrom(sheetContents->singleOwnerDocument()); |
888 return 0; | 890 return 0; |
889 } | 891 } |
890 | 892 |
891 } // namespace blink | 893 } // namespace blink |
OLD | NEW |