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

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

Issue 1645433002: Basic implementation of @apply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expted.txt for failing test Created 4 years, 9 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 case CSSPropertyBreakInside: return 522; 557 case CSSPropertyBreakInside: return 522;
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 568
568 // 1. Add new features above this line (don't change the assigned numbers of the existing 569 // 1. Add new features above this line (don't change the assigned numbers of the existing
569 // items). 570 // items).
570 // 2. Update maximumCSSSampleId() with the new maximum value. 571 // 2. Update maximumCSSSampleId() with the new maximum value.
571 // 3. Run the update_use_counter_css.py script in 572 // 3. Run the update_use_counter_css.py script in
drott 2016/03/17 07:38:44 Could you run this to update the histograms.xml fi
572 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 573 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
573 574
574 case CSSPropertyInvalid: 575 case CSSPropertyInvalid:
575 ASSERT_NOT_REACHED(); 576 ASSERT_NOT_REACHED();
576 return 0; 577 return 0;
577 } 578 }
578 579
579 ASSERT_NOT_REACHED(); 580 ASSERT_NOT_REACHED();
580 return 0; 581 return 0;
581 } 582 }
582 583
583 static int maximumCSSSampleId() { return 531; } 584 static int maximumCSSSampleId() { return 532; }
584 585
585 static EnumerationHistogram& featureObserverHistogram() 586 static EnumerationHistogram& featureObserverHistogram()
586 { 587 {
587 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); 588 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures));
588 return histogram; 589 return histogram;
589 } 590 }
590 591
591 void UseCounter::muteForInspector() 592 void UseCounter::muteForInspector()
592 { 593 {
593 UseCounter::m_muteCount++; 594 UseCounter::m_muteCount++;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 760 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
760 { 761 {
761 // FIXME: We may want to handle stylesheets that have multiple owners 762 // FIXME: We may want to handle stylesheets that have multiple owners
762 // https://crbug.com/242125 763 // https://crbug.com/242125
763 if (sheetContents && sheetContents->hasSingleOwnerNode()) 764 if (sheetContents && sheetContents->hasSingleOwnerNode())
764 return getFrom(sheetContents->singleOwnerDocument()); 765 return getFrom(sheetContents->singleOwnerDocument());
765 return 0; 766 return 0;
766 } 767 }
767 768
768 } // namespace blink 769 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698