| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 case CSSPropertyD: return 518; |
| 554 case CSSPropertySnapHeight: return 519; |
| 554 | 555 |
| 555 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 556 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 556 // items). | 557 // items). |
| 557 // 2. Update maximumCSSSampleId() with the new maximum value. | 558 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 558 // 3. Run the update_use_counter_css.py script in | 559 // 3. Run the update_use_counter_css.py script in |
| 559 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 560 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 560 | 561 |
| 561 case CSSPropertyInvalid: | 562 case CSSPropertyInvalid: |
| 562 ASSERT_NOT_REACHED(); | 563 ASSERT_NOT_REACHED(); |
| 563 return 0; | 564 return 0; |
| 564 } | 565 } |
| 565 | 566 |
| 566 ASSERT_NOT_REACHED(); | 567 ASSERT_NOT_REACHED(); |
| 567 return 0; | 568 return 0; |
| 568 } | 569 } |
| 569 | 570 |
| 570 static int maximumCSSSampleId() { return 518; } | 571 static int maximumCSSSampleId() { return 519; } |
| 571 | 572 |
| 572 static EnumerationHistogram& featureObserverHistogram() | 573 static EnumerationHistogram& featureObserverHistogram() |
| 573 { | 574 { |
| 574 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); | 575 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); |
| 575 return histogram; | 576 return histogram; |
| 576 } | 577 } |
| 577 | 578 |
| 578 void UseCounter::muteForInspector() | 579 void UseCounter::muteForInspector() |
| 579 { | 580 { |
| 580 UseCounter::m_muteCount++; | 581 UseCounter::m_muteCount++; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 747 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 747 { | 748 { |
| 748 // FIXME: We may want to handle stylesheets that have multiple owners | 749 // FIXME: We may want to handle stylesheets that have multiple owners |
| 749 // https://crbug.com/242125 | 750 // https://crbug.com/242125 |
| 750 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 751 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 751 return getFrom(sheetContents->singleOwnerDocument()); | 752 return getFrom(sheetContents->singleOwnerDocument()); |
| 752 return 0; | 753 return 0; |
| 753 } | 754 } |
| 754 | 755 |
| 755 } // namespace blink | 756 } // namespace blink |
| OLD | NEW |