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