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 2140173002: Update histograms for TextSizeAdjust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment to UseCounter.cpp Created 4 years, 5 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 case CSSPropertyInvalid: 575 case CSSPropertyInvalid:
576 ASSERT_NOT_REACHED(); 576 ASSERT_NOT_REACHED();
577 return 0; 577 return 0;
578 } 578 }
579 579
580 ASSERT_NOT_REACHED(); 580 ASSERT_NOT_REACHED();
581 return 0; 581 return 0;
582 } 582 }
583 583
584 584 // Make sure update_use_counter_css.py was run which updates histograms.xml.
585 static int maximumCSSSampleId() { return 537; } 585 static int maximumCSSSampleId() { return 537; }
586 586
587 static EnumerationHistogram& featureObserverHistogram() 587 static EnumerationHistogram& featureObserverHistogram()
588 { 588 {
589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); 589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures));
590 return histogram; 590 return histogram;
591 } 591 }
592 592
593 void UseCounter::muteForInspector() 593 void UseCounter::muteForInspector()
594 { 594 {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 777 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
778 { 778 {
779 // FIXME: We may want to handle stylesheets that have multiple owners 779 // FIXME: We may want to handle stylesheets that have multiple owners
780 // https://crbug.com/242125 780 // https://crbug.com/242125
781 if (sheetContents && sheetContents->hasSingleOwnerNode()) 781 if (sheetContents && sheetContents->hasSingleOwnerNode())
782 return getFrom(sheetContents->singleOwnerDocument()); 782 return getFrom(sheetContents->singleOwnerDocument());
783 return 0; 783 return 0;
784 } 784 }
785 785
786 } // namespace blink 786 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698