| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 case CSSPropertyColumnRuleWidth: return 528; | 558 case CSSPropertyColumnRuleWidth: return 528; |
| 559 case CSSPropertyColumnSpan: return 529; | 559 case CSSPropertyColumnSpan: return 529; |
| 560 case CSSPropertyColumnWidth: return 530; | 560 case CSSPropertyColumnWidth: return 530; |
| 561 case CSSPropertyColumns: return 531; | 561 case CSSPropertyColumns: return 531; |
| 562 case CSSPropertyApplyAtRule: return 532; | 562 case CSSPropertyApplyAtRule: return 532; |
| 563 case CSSPropertyFontVariantCaps: return 533; | 563 case CSSPropertyFontVariantCaps: return 533; |
| 564 case CSSPropertyHyphens: return 534; | 564 case CSSPropertyHyphens: return 534; |
| 565 case CSSPropertyFontVariantNumeric: return 535; | 565 case CSSPropertyFontVariantNumeric: return 535; |
| 566 case CSSPropertyTextSizeAdjust: return 536; | 566 case CSSPropertyTextSizeAdjust: return 536; |
| 567 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; | 567 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; |
| 568 case CSSPropertyOverflowAnchor: return 538; |
| 568 | 569 |
| 569 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 570 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 570 // items). | 571 // items). |
| 571 // 2. Update maximumCSSSampleId() with the new maximum value. | 572 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 572 // 3. Run the update_use_counter_css.py script in | 573 // 3. Run the update_use_counter_css.py script in |
| 573 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 574 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 574 | 575 |
| 575 case CSSPropertyInvalid: | 576 case CSSPropertyInvalid: |
| 576 ASSERT_NOT_REACHED(); | 577 ASSERT_NOT_REACHED(); |
| 577 return 0; | 578 return 0; |
| 578 } | 579 } |
| 579 | 580 |
| 580 ASSERT_NOT_REACHED(); | 581 ASSERT_NOT_REACHED(); |
| 581 return 0; | 582 return 0; |
| 582 } | 583 } |
| 583 | 584 |
| 584 // Make sure update_use_counter_css.py was run which updates histograms.xml. | 585 // Make sure update_use_counter_css.py was run which updates histograms.xml. |
| 585 static int maximumCSSSampleId() { return 537; } | 586 static int maximumCSSSampleId() { return 538; } |
| 586 | 587 |
| 587 static EnumerationHistogram& featureObserverHistogram() | 588 static EnumerationHistogram& featureObserverHistogram() |
| 588 { | 589 { |
| 589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); | 590 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); |
| 590 return histogram; | 591 return histogram; |
| 591 } | 592 } |
| 592 | 593 |
| 593 void UseCounter::muteForInspector() | 594 void UseCounter::muteForInspector() |
| 594 { | 595 { |
| 595 UseCounter::m_muteCount++; | 596 UseCounter::m_muteCount++; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 778 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 778 { | 779 { |
| 779 // FIXME: We may want to handle stylesheets that have multiple owners | 780 // FIXME: We may want to handle stylesheets that have multiple owners |
| 780 // https://crbug.com/242125 | 781 // https://crbug.com/242125 |
| 781 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 782 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 782 return getFrom(sheetContents->singleOwnerDocument()); | 783 return getFrom(sheetContents->singleOwnerDocument()); |
| 783 return 0; | 784 return 0; |
| 784 } | 785 } |
| 785 | 786 |
| 786 } // namespace blink | 787 } // namespace blink |
| OLD | NEW |