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

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

Issue 1955723004: Implement font-variant-numeric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 case CSSPropertyColumnRule: return 525; 555 case CSSPropertyColumnRule: return 525;
556 case CSSPropertyColumnRuleColor: return 526; 556 case CSSPropertyColumnRuleColor: return 526;
557 case CSSPropertyColumnRuleStyle: return 527; 557 case CSSPropertyColumnRuleStyle: return 527;
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;
566
565 567
566 // 1. Add new features above this line (don't change the assigned numbers of the existing 568 // 1. Add new features above this line (don't change the assigned numbers of the existing
567 // items). 569 // items).
568 // 2. Update maximumCSSSampleId() with the new maximum value. 570 // 2. Update maximumCSSSampleId() with the new maximum value.
569 // 3. Run the update_use_counter_css.py script in 571 // 3. Run the update_use_counter_css.py script in
570 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 572 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
571 573
572 case CSSPropertyInvalid: 574 case CSSPropertyInvalid:
573 ASSERT_NOT_REACHED(); 575 ASSERT_NOT_REACHED();
574 return 0; 576 return 0;
575 } 577 }
576 578
577 ASSERT_NOT_REACHED(); 579 ASSERT_NOT_REACHED();
578 return 0; 580 return 0;
579 } 581 }
580 582
581 static int maximumCSSSampleId() { return 534; } 583
584 static int maximumCSSSampleId() { return 535; }
582 585
583 static EnumerationHistogram& featureObserverHistogram() 586 static EnumerationHistogram& featureObserverHistogram()
584 { 587 {
585 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); 588 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures));
586 return histogram; 589 return histogram;
587 } 590 }
588 591
589 void UseCounter::muteForInspector() 592 void UseCounter::muteForInspector()
590 { 593 {
591 UseCounter::m_muteCount++; 594 UseCounter::m_muteCount++;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 776 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
774 { 777 {
775 // FIXME: We may want to handle stylesheets that have multiple owners 778 // FIXME: We may want to handle stylesheets that have multiple owners
776 // https://crbug.com/242125 779 // https://crbug.com/242125
777 if (sheetContents && sheetContents->hasSingleOwnerNode()) 780 if (sheetContents && sheetContents->hasSingleOwnerNode())
778 return getFrom(sheetContents->singleOwnerDocument()); 781 return getFrom(sheetContents->singleOwnerDocument());
779 return 0; 782 return 0;
780 } 783 }
781 784
782 } // namespace blink 785 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698