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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 case CSSPropertyScrollSnapType: return 499; | 534 case CSSPropertyScrollSnapType: return 499; |
535 case CSSPropertyScrollSnapPointsX: return 500; | 535 case CSSPropertyScrollSnapPointsX: return 500; |
536 case CSSPropertyScrollSnapPointsY: return 501; | 536 case CSSPropertyScrollSnapPointsY: return 501; |
537 case CSSPropertyScrollSnapCoordinate: return 502; | 537 case CSSPropertyScrollSnapCoordinate: return 502; |
538 case CSSPropertyScrollSnapDestination: return 503; | 538 case CSSPropertyScrollSnapDestination: return 503; |
539 case CSSPropertyTranslate: return 504; | 539 case CSSPropertyTranslate: return 504; |
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 CSSPropertyGridColumnGap: return 509; |
| 545 case CSSPropertyGridRowGap: return 510; |
| 546 case CSSPropertyGridGap: return 511; |
544 | 547 |
545 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 548 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
546 // items). | 549 // items). |
547 // 2. Update maximumCSSSampleId() with the new maximum value. | 550 // 2. Update maximumCSSSampleId() with the new maximum value. |
548 // 3. Run the update_use_counter_css.py script in | 551 // 3. Run the update_use_counter_css.py script in |
549 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 552 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
550 | 553 |
551 case CSSPropertyInvalid: | 554 case CSSPropertyInvalid: |
552 ASSERT_NOT_REACHED(); | 555 ASSERT_NOT_REACHED(); |
553 return 0; | 556 return 0; |
554 } | 557 } |
555 | 558 |
556 ASSERT_NOT_REACHED(); | 559 ASSERT_NOT_REACHED(); |
557 return 0; | 560 return 0; |
558 } | 561 } |
559 | 562 |
560 static int maximumCSSSampleId() { return 508; } | 563 static int maximumCSSSampleId() { return 511; } |
561 | 564 |
562 void UseCounter::muteForInspector() | 565 void UseCounter::muteForInspector() |
563 { | 566 { |
564 UseCounter::m_muteCount++; | 567 UseCounter::m_muteCount++; |
565 } | 568 } |
566 | 569 |
567 void UseCounter::unmuteForInspector() | 570 void UseCounter::unmuteForInspector() |
568 { | 571 { |
569 UseCounter::m_muteCount--; | 572 UseCounter::m_muteCount--; |
570 } | 573 } |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 981 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
979 { | 982 { |
980 // FIXME: We may want to handle stylesheets that have multiple owners | 983 // FIXME: We may want to handle stylesheets that have multiple owners |
981 // http://crbug.com/242125 | 984 // http://crbug.com/242125 |
982 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 985 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
983 return getFrom(sheetContents->singleOwnerDocument()); | 986 return getFrom(sheetContents->singleOwnerDocument()); |
984 return 0; | 987 return 0; |
985 } | 988 } |
986 | 989 |
987 } // namespace blink | 990 } // namespace blink |
OLD | NEW |