OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 case CSSPropertyRotate: return 505; | 540 case CSSPropertyRotate: return 505; |
541 case CSSPropertyScale: return 506; | 541 case CSSPropertyScale: return 506; |
542 case CSSPropertyImageOrientation: return 507; | 542 case CSSPropertyImageOrientation: return 507; |
543 case CSSPropertyBackdropFilter: return 508; | 543 case CSSPropertyBackdropFilter: return 508; |
544 case CSSPropertyTextCombineUpright: return 509; | 544 case CSSPropertyTextCombineUpright: return 509; |
545 case CSSPropertyTextOrientation: return 510; | 545 case CSSPropertyTextOrientation: return 510; |
546 case CSSPropertyGridColumnGap: return 511; | 546 case CSSPropertyGridColumnGap: return 511; |
547 case CSSPropertyGridRowGap: return 512; | 547 case CSSPropertyGridRowGap: return 512; |
548 case CSSPropertyGridGap: return 513; | 548 case CSSPropertyGridGap: return 513; |
549 case CSSPropertyFontFeatureSettings: return 514; | 549 case CSSPropertyFontFeatureSettings: return 514; |
| 550 case CSSPropertyOnclickType: return 515; |
| 551 case CSSPropertyOnclickVduration: return 516; |
| 552 case CSSPropertyOnclickVpi: return 517; |
| 553 case CSSPropertyOnclickVpu: return 518; |
| 554 case CSSPropertyOntouchstartType: return 519; |
| 555 case CSSPropertyOntouchstartVduration: return 520; |
| 556 case CSSPropertyOntouchstartVpi: return 521; |
| 557 case CSSPropertyOntouchstartVpu: return 522; |
| 558 case CSSPropertyOntouchmoveType: return 523; |
| 559 case CSSPropertyOntouchmoveVduration: return 524; |
| 560 case CSSPropertyOntouchmoveVpi: return 525; |
| 561 case CSSPropertyOntouchmoveVpu: return 526; |
| 562 case CSSPropertyOnscrollType: return 527; |
| 563 case CSSPropertyOnscrollVduration: return 528; |
| 564 case CSSPropertyOnscrollVpi: return 529; |
| 565 case CSSPropertyOnscrollVpu: return 530; |
| 566 case CSSPropertyOntouchendType: return 531; |
| 567 case CSSPropertyOntouchendVduration: return 532; |
| 568 case CSSPropertyOntouchendVpi: return 533; |
| 569 case CSSPropertyOntouchendVpu: return 534; |
550 | 570 |
551 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 571 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
552 // items). | 572 // items). |
553 // 2. Update maximumCSSSampleId() with the new maximum value. | 573 // 2. Update maximumCSSSampleId() with the new maximum value. |
554 // 3. Run the update_use_counter_css.py script in | 574 // 3. Run the update_use_counter_css.py script in |
555 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 575 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
556 | 576 |
557 case CSSPropertyInvalid: | 577 case CSSPropertyInvalid: |
558 ASSERT_NOT_REACHED(); | 578 ASSERT_NOT_REACHED(); |
559 return 0; | 579 return 0; |
560 } | 580 } |
561 | 581 |
562 ASSERT_NOT_REACHED(); | 582 ASSERT_NOT_REACHED(); |
563 return 0; | 583 return 0; |
564 } | 584 } |
565 | 585 |
566 static int maximumCSSSampleId() { return 514; } | 586 static int maximumCSSSampleId() { return 534; } |
567 | 587 |
568 void UseCounter::muteForInspector() | 588 void UseCounter::muteForInspector() |
569 { | 589 { |
570 UseCounter::m_muteCount++; | 590 UseCounter::m_muteCount++; |
571 } | 591 } |
572 | 592 |
573 void UseCounter::unmuteForInspector() | 593 void UseCounter::unmuteForInspector() |
574 { | 594 { |
575 UseCounter::m_muteCount--; | 595 UseCounter::m_muteCount--; |
576 } | 596 } |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 995 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
976 { | 996 { |
977 // FIXME: We may want to handle stylesheets that have multiple owners | 997 // FIXME: We may want to handle stylesheets that have multiple owners |
978 // https://crbug.com/242125 | 998 // https://crbug.com/242125 |
979 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 999 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
980 return getFrom(sheetContents->singleOwnerDocument()); | 1000 return getFrom(sheetContents->singleOwnerDocument()); |
981 return 0; | 1001 return 0; |
982 } | 1002 } |
983 | 1003 |
984 } // namespace blink | 1004 } // namespace blink |
OLD | NEW |