| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 case CSSPropertyTransform: return 446; | 476 case CSSPropertyTransform: return 446; |
| 477 case CSSPropertyTransformOrigin: return 447; | 477 case CSSPropertyTransformOrigin: return 447; |
| 478 case CSSPropertyTransformStyle: return 448; | 478 case CSSPropertyTransformStyle: return 448; |
| 479 case CSSPropertyPerspective: return 449; | 479 case CSSPropertyPerspective: return 449; |
| 480 case CSSPropertyPerspectiveOrigin: return 450; | 480 case CSSPropertyPerspectiveOrigin: return 450; |
| 481 case CSSPropertyBackfaceVisibility: return 451; | 481 case CSSPropertyBackfaceVisibility: return 451; |
| 482 case CSSPropertyGridTemplate: return 452; | 482 case CSSPropertyGridTemplate: return 452; |
| 483 case CSSPropertyGrid: return 453; | 483 case CSSPropertyGrid: return 453; |
| 484 case CSSPropertyAll: return 454; | 484 case CSSPropertyAll: return 454; |
| 485 case CSSPropertyJustifyItems: return 455; | 485 case CSSPropertyJustifyItems: return 455; |
| 486 case CSSPropertyMotionPath: return 457; | 486 case CSSPropertyAliasMotionPath: return 457; |
| 487 case CSSPropertyMotionOffset: return 458; | 487 case CSSPropertyAliasMotionOffset: return 458; |
| 488 case CSSPropertyMotionRotation: return 459; | 488 case CSSPropertyAliasMotionRotation: return 459; |
| 489 case CSSPropertyMotion: return 460; | 489 case CSSPropertyMotion: return 460; |
| 490 case CSSPropertyX: return 461; | 490 case CSSPropertyX: return 461; |
| 491 case CSSPropertyY: return 462; | 491 case CSSPropertyY: return 462; |
| 492 case CSSPropertyRx: return 463; | 492 case CSSPropertyRx: return 463; |
| 493 case CSSPropertyRy: return 464; | 493 case CSSPropertyRy: return 464; |
| 494 case CSSPropertyFontSizeAdjust: return 465; | 494 case CSSPropertyFontSizeAdjust: return 465; |
| 495 case CSSPropertyCx: return 466; | 495 case CSSPropertyCx: return 466; |
| 496 case CSSPropertyCy: return 467; | 496 case CSSPropertyCy: return 467; |
| 497 case CSSPropertyR: return 468; | 497 case CSSPropertyR: return 468; |
| 498 case CSSPropertyAliasEpubCaptionSide: return 469; | 498 case CSSPropertyAliasEpubCaptionSide: return 469; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 case CSSPropertyColumnWidth: return 530; | 559 case CSSPropertyColumnWidth: return 530; |
| 560 case CSSPropertyColumns: return 531; | 560 case CSSPropertyColumns: return 531; |
| 561 case CSSPropertyApplyAtRule: return 532; | 561 case CSSPropertyApplyAtRule: return 532; |
| 562 case CSSPropertyFontVariantCaps: return 533; | 562 case CSSPropertyFontVariantCaps: return 533; |
| 563 case CSSPropertyHyphens: return 534; | 563 case CSSPropertyHyphens: return 534; |
| 564 case CSSPropertyFontVariantNumeric: return 535; | 564 case CSSPropertyFontVariantNumeric: return 535; |
| 565 case CSSPropertyTextSizeAdjust: return 536; | 565 case CSSPropertyTextSizeAdjust: return 536; |
| 566 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; | 566 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; |
| 567 case CSSPropertyOverflowAnchor: return 538; | 567 case CSSPropertyOverflowAnchor: return 538; |
| 568 case CSSPropertyUserSelect: return 539; | 568 case CSSPropertyUserSelect: return 539; |
| 569 case CSSPropertyOffsetDistance: return 540; |
| 570 case CSSPropertyOffsetPath: return 541; |
| 571 case CSSPropertyOffsetRotation: return 542; |
| 572 case CSSPropertyOffset: return 543; |
| 573 case CSSPropertyOffsetAnchor: return 544; |
| 574 case CSSPropertyOffsetPosition: return 545; |
| 575 |
| 569 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 576 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 570 // items). | 577 // items). |
| 571 // 2. Update maximumCSSSampleId() with the new maximum value. | 578 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 572 // 3. Run the update_use_counter_css.py script in | 579 // 3. Run the update_use_counter_css.py script in |
| 573 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 580 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 574 | 581 |
| 575 case CSSPropertyInvalid: | 582 case CSSPropertyInvalid: |
| 576 ASSERT_NOT_REACHED(); | 583 ASSERT_NOT_REACHED(); |
| 577 return 0; | 584 return 0; |
| 578 } | 585 } |
| 579 | 586 |
| 580 ASSERT_NOT_REACHED(); | 587 ASSERT_NOT_REACHED(); |
| 581 return 0; | 588 return 0; |
| 582 } | 589 } |
| 583 | 590 |
| 584 // Make sure update_use_counter_css.py was run which updates histograms.xml. | 591 // Make sure update_use_counter_css.py was run which updates histograms.xml. |
| 585 static int maximumCSSSampleId() { return 539; } | 592 static int maximumCSSSampleId() { return 545; } |
| 586 | 593 |
| 587 static EnumerationHistogram& featureObserverHistogram() | 594 static EnumerationHistogram& featureObserverHistogram() |
| 588 { | 595 { |
| 589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); | 596 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv
er", UseCounter::NumberOfFeatures)); |
| 590 return histogram; | 597 return histogram; |
| 591 } | 598 } |
| 592 | 599 |
| 593 void UseCounter::muteForInspector() | 600 void UseCounter::muteForInspector() |
| 594 { | 601 { |
| 595 m_muteCount++; | 602 m_muteCount++; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 798 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 792 { | 799 { |
| 793 // FIXME: We may want to handle stylesheets that have multiple owners | 800 // FIXME: We may want to handle stylesheets that have multiple owners |
| 794 // https://crbug.com/242125 | 801 // https://crbug.com/242125 |
| 795 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 802 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 796 return getFrom(sheetContents->singleOwnerDocument()); | 803 return getFrom(sheetContents->singleOwnerDocument()); |
| 797 return 0; | 804 return 0; |
| 798 } | 805 } |
| 799 | 806 |
| 800 } // namespace blink | 807 } // namespace blink |
| OLD | NEW |