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