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 CSSPropertyTransform: return 446; | 492 case CSSPropertyTransform: return 446; |
493 case CSSPropertyTransformOrigin: return 447; | 493 case CSSPropertyTransformOrigin: return 447; |
494 case CSSPropertyTransformStyle: return 448; | 494 case CSSPropertyTransformStyle: return 448; |
495 case CSSPropertyPerspective: return 449; | 495 case CSSPropertyPerspective: return 449; |
496 case CSSPropertyPerspectiveOrigin: return 450; | 496 case CSSPropertyPerspectiveOrigin: return 450; |
497 case CSSPropertyBackfaceVisibility: return 451; | 497 case CSSPropertyBackfaceVisibility: return 451; |
498 case CSSPropertyGridTemplate: return 452; | 498 case CSSPropertyGridTemplate: return 452; |
499 case CSSPropertyGrid: return 453; | 499 case CSSPropertyGrid: return 453; |
500 case CSSPropertyAll: return 454; | 500 case CSSPropertyAll: return 454; |
501 case CSSPropertyJustifyItems: return 455; | 501 case CSSPropertyJustifyItems: return 455; |
| 502 case CSSPropertyNavDown: return 456; |
| 503 case CSSPropertyNavLeft: return 457; |
| 504 case CSSPropertyNavRight: return 458; |
| 505 case CSSPropertyNavUp: return 459; |
502 | 506 |
503 // 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 |
504 // items). | 508 // items). |
505 // 2. Update maximumCSSSampleId() with the new maximum value. | 509 // 2. Update maximumCSSSampleId() with the new maximum value. |
506 // 3. Run the update_use_counter_css.py script in | 510 // 3. Run the update_use_counter_css.py script in |
507 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 511 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
508 | 512 |
509 // Internal properties should not be counted. | 513 // Internal properties should not be counted. |
510 case CSSPropertyInternalMarqueeDirection: | 514 case CSSPropertyInternalMarqueeDirection: |
511 case CSSPropertyInternalMarqueeIncrement: | 515 case CSSPropertyInternalMarqueeIncrement: |
512 case CSSPropertyInternalMarqueeRepetition: | 516 case CSSPropertyInternalMarqueeRepetition: |
513 case CSSPropertyInternalMarqueeSpeed: | 517 case CSSPropertyInternalMarqueeSpeed: |
514 case CSSPropertyInternalMarqueeStyle: | 518 case CSSPropertyInternalMarqueeStyle: |
515 case CSSPropertyInvalid: | 519 case CSSPropertyInvalid: |
516 ASSERT_NOT_REACHED(); | 520 ASSERT_NOT_REACHED(); |
517 return 0; | 521 return 0; |
518 } | 522 } |
519 | 523 |
520 ASSERT_NOT_REACHED(); | 524 ASSERT_NOT_REACHED(); |
521 return 0; | 525 return 0; |
522 } | 526 } |
523 | 527 |
524 static int maximumCSSSampleId() { return 455; } | 528 static int maximumCSSSampleId() { return 459; } |
525 | 529 |
526 void UseCounter::muteForInspector() | 530 void UseCounter::muteForInspector() |
527 { | 531 { |
528 UseCounter::m_muteCount++; | 532 UseCounter::m_muteCount++; |
529 } | 533 } |
530 | 534 |
531 void UseCounter::unmuteForInspector() | 535 void UseCounter::unmuteForInspector() |
532 { | 536 { |
533 UseCounter::m_muteCount--; | 537 UseCounter::m_muteCount--; |
534 } | 538 } |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 837 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
834 { | 838 { |
835 // FIXME: We may want to handle stylesheets that have multiple owners | 839 // FIXME: We may want to handle stylesheets that have multiple owners |
836 // http://crbug.com/242125 | 840 // http://crbug.com/242125 |
837 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 841 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
838 return getFrom(sheetContents->singleOwnerDocument()); | 842 return getFrom(sheetContents->singleOwnerDocument()); |
839 return 0; | 843 return 0; |
840 } | 844 } |
841 | 845 |
842 } // namespace blink | 846 } // namespace blink |
OLD | NEW |