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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 case CSSPropertyAliasWebkitShapeOutside: return 498; | 533 case CSSPropertyAliasWebkitShapeOutside: return 498; |
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 | 544 |
544 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 545 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
545 // items). | 546 // items). |
546 // 2. Update maximumCSSSampleId() with the new maximum value. | 547 // 2. Update maximumCSSSampleId() with the new maximum value. |
547 // 3. Run the update_use_counter_css.py script in | 548 // 3. Run the update_use_counter_css.py script in |
548 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 549 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
549 | 550 |
550 case CSSPropertyInvalid: | 551 case CSSPropertyInvalid: |
551 ASSERT_NOT_REACHED(); | 552 ASSERT_NOT_REACHED(); |
552 return 0; | 553 return 0; |
553 } | 554 } |
554 | 555 |
555 ASSERT_NOT_REACHED(); | 556 ASSERT_NOT_REACHED(); |
556 return 0; | 557 return 0; |
557 } | 558 } |
558 | 559 |
559 static int maximumCSSSampleId() { return 507; } | 560 static int maximumCSSSampleId() { return 508; } |
560 | 561 |
561 void UseCounter::muteForInspector() | 562 void UseCounter::muteForInspector() |
562 { | 563 { |
563 UseCounter::m_muteCount++; | 564 UseCounter::m_muteCount++; |
564 } | 565 } |
565 | 566 |
566 void UseCounter::unmuteForInspector() | 567 void UseCounter::unmuteForInspector() |
567 { | 568 { |
568 UseCounter::m_muteCount--; | 569 UseCounter::m_muteCount--; |
569 } | 570 } |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1012 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1012 { | 1013 { |
1013 // FIXME: We may want to handle stylesheets that have multiple owners | 1014 // FIXME: We may want to handle stylesheets that have multiple owners |
1014 // http://crbug.com/242125 | 1015 // http://crbug.com/242125 |
1015 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1016 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1016 return getFrom(sheetContents->singleOwnerDocument()); | 1017 return getFrom(sheetContents->singleOwnerDocument()); |
1017 return 0; | 1018 return 0; |
1018 } | 1019 } |
1019 | 1020 |
1020 } // namespace blink | 1021 } // namespace blink |
OLD | NEW |