Chromium Code Reviews| 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 CSSPropertyColumnCount: return 523; | 558 case CSSPropertyColumnCount: return 523; |
| 559 case CSSPropertyColumnGap: return 524; | 559 case CSSPropertyColumnGap: return 524; |
| 560 case CSSPropertyColumnRule: return 525; | 560 case CSSPropertyColumnRule: return 525; |
| 561 case CSSPropertyColumnRuleColor: return 526; | 561 case CSSPropertyColumnRuleColor: return 526; |
| 562 case CSSPropertyColumnRuleStyle: return 527; | 562 case CSSPropertyColumnRuleStyle: return 527; |
| 563 case CSSPropertyColumnRuleWidth: return 528; | 563 case CSSPropertyColumnRuleWidth: return 528; |
| 564 case CSSPropertyColumnSpan: return 529; | 564 case CSSPropertyColumnSpan: return 529; |
| 565 case CSSPropertyColumnWidth: return 530; | 565 case CSSPropertyColumnWidth: return 530; |
| 566 case CSSPropertyColumns: return 531; | 566 case CSSPropertyColumns: return 531; |
| 567 case CSSPropertyApplyAtRule: return 532; | 567 case CSSPropertyApplyAtRule: return 532; |
| 568 case CSSPropertyNavDown: return 533; | |
| 569 case CSSPropertyNavLeft: return 534; | |
| 570 case CSSPropertyNavRight: return 535; | |
| 571 case CSSPropertyNavUp: return 536; | |
| 572 | |
|
fs
2016/05/18 15:55:05
Drop dangling vspace.
| |
| 568 | 573 |
| 569 // 1. Add new features above this line (don't change the assigned numbers of the existing | 574 // 1. Add new features above this line (don't change the assigned numbers of the existing |
| 570 // items). | 575 // items). |
| 571 // 2. Update maximumCSSSampleId() with the new maximum value. | 576 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 572 // 3. Run the update_use_counter_css.py script in | 577 // 3. Run the update_use_counter_css.py script in |
| 573 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 578 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 574 | 579 |
| 575 case CSSPropertyInvalid: | 580 case CSSPropertyInvalid: |
| 576 ASSERT_NOT_REACHED(); | 581 ASSERT_NOT_REACHED(); |
| 577 return 0; | 582 return 0; |
| 578 } | 583 } |
| 579 | 584 |
| 580 ASSERT_NOT_REACHED(); | 585 ASSERT_NOT_REACHED(); |
| 581 return 0; | 586 return 0; |
| 582 } | 587 } |
| 583 | 588 |
| 584 static int maximumCSSSampleId() { return 532; } | 589 static int maximumCSSSampleId() { return 536; } |
| 585 | 590 |
| 586 static EnumerationHistogram& featureObserverHistogram() | 591 static EnumerationHistogram& featureObserverHistogram() |
| 587 { | 592 { |
| 588 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); | 593 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); |
| 589 return histogram; | 594 return histogram; |
| 590 } | 595 } |
| 591 | 596 |
| 592 void UseCounter::muteForInspector() | 597 void UseCounter::muteForInspector() |
| 593 { | 598 { |
| 594 UseCounter::m_muteCount++; | 599 UseCounter::m_muteCount++; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 781 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 786 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 782 { | 787 { |
| 783 // FIXME: We may want to handle stylesheets that have multiple owners | 788 // FIXME: We may want to handle stylesheets that have multiple owners |
| 784 // https://crbug.com/242125 | 789 // https://crbug.com/242125 |
| 785 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 790 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 786 return getFrom(sheetContents->singleOwnerDocument()); | 791 return getFrom(sheetContents->singleOwnerDocument()); |
| 787 return 0; | 792 return 0; |
| 788 } | 793 } |
| 789 | 794 |
| 790 } // namespace blink | 795 } // namespace blink |
| OLD | NEW |