| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 550 case CSSPropertyVariable: return 515; |
| 551 case CSSPropertyFontDisplay: return 516; | 551 case CSSPropertyFontDisplay: return 516; |
| 552 case CSSPropertyContain: return 517; | 552 case CSSPropertyContain: return 517; |
| 553 case CSSPropertyD: return 518; |
| 553 | 554 |
| 554 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 555 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 555 // items). | 556 // items). |
| 556 // 2. Update maximumCSSSampleId() with the new maximum value. | 557 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 557 // 3. Run the update_use_counter_css.py script in | 558 // 3. Run the update_use_counter_css.py script in |
| 558 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 559 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 559 | 560 |
| 560 case CSSPropertyInvalid: | 561 case CSSPropertyInvalid: |
| 561 ASSERT_NOT_REACHED(); | 562 ASSERT_NOT_REACHED(); |
| 562 return 0; | 563 return 0; |
| 563 } | 564 } |
| 564 | 565 |
| 565 ASSERT_NOT_REACHED(); | 566 ASSERT_NOT_REACHED(); |
| 566 return 0; | 567 return 0; |
| 567 } | 568 } |
| 568 | 569 |
| 569 static int maximumCSSSampleId() { return 517; } | 570 static int maximumCSSSampleId() { return 518; } |
| 570 | 571 |
| 571 void UseCounter::muteForInspector() | 572 void UseCounter::muteForInspector() |
| 572 { | 573 { |
| 573 UseCounter::m_muteCount++; | 574 UseCounter::m_muteCount++; |
| 574 } | 575 } |
| 575 | 576 |
| 576 void UseCounter::unmuteForInspector() | 577 void UseCounter::unmuteForInspector() |
| 577 { | 578 { |
| 578 UseCounter::m_muteCount--; | 579 UseCounter::m_muteCount--; |
| 579 } | 580 } |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 995 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 995 { | 996 { |
| 996 // FIXME: We may want to handle stylesheets that have multiple owners | 997 // FIXME: We may want to handle stylesheets that have multiple owners |
| 997 // https://crbug.com/242125 | 998 // https://crbug.com/242125 |
| 998 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 999 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 999 return getFrom(sheetContents->singleOwnerDocument()); | 1000 return getFrom(sheetContents->singleOwnerDocument()); |
| 1000 return 0; | 1001 return 0; |
| 1001 } | 1002 } |
| 1002 | 1003 |
| 1003 } // namespace blink | 1004 } // namespace blink |
| OLD | NEW |