Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.cpp

Issue 1915343003: Add CSS hyphens property behind the test flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split histograms.xml to a separate CL Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyFontVariantCaps: return 533; 568 case CSSPropertyFontVariantCaps: return 533;
569 case CSSPropertyHyphens: return 534;
569 570
570 // 1. Add new features above this line (don't change the assigned numbers of the existing 571 // 1. Add new features above this line (don't change the assigned numbers of the existing
571 // items). 572 // items).
572 // 2. Update maximumCSSSampleId() with the new maximum value. 573 // 2. Update maximumCSSSampleId() with the new maximum value.
573 // 3. Run the update_use_counter_css.py script in 574 // 3. Run the update_use_counter_css.py script in
574 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 575 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
575 576
576 case CSSPropertyInvalid: 577 case CSSPropertyInvalid:
577 ASSERT_NOT_REACHED(); 578 ASSERT_NOT_REACHED();
578 return 0; 579 return 0;
579 } 580 }
580 581
581 ASSERT_NOT_REACHED(); 582 ASSERT_NOT_REACHED();
582 return 0; 583 return 0;
583 } 584 }
584 585
585 static int maximumCSSSampleId() { return 533; } 586 static int maximumCSSSampleId() { return 534; }
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 783 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
783 { 784 {
784 // FIXME: We may want to handle stylesheets that have multiple owners 785 // FIXME: We may want to handle stylesheets that have multiple owners
785 // https://crbug.com/242125 786 // https://crbug.com/242125
786 if (sheetContents && sheetContents->hasSingleOwnerNode()) 787 if (sheetContents && sheetContents->hasSingleOwnerNode())
787 return getFrom(sheetContents->singleOwnerDocument()); 788 return getFrom(sheetContents->singleOwnerDocument());
788 return 0; 789 return 0;
789 } 790 }
790 791
791 } // namespace blink 792 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698