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

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

Issue 2352273002: CSS Motion Path: offset-anchor and offset-position (Closed)
Patch Set: rebase Created 4 years, 2 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 25 matching lines...) Expand all
36 #include "core/inspector/ConsoleMessage.h" 36 #include "core/inspector/ConsoleMessage.h"
37 #include "core/workers/WorkerGlobalScope.h" 37 #include "core/workers/WorkerGlobalScope.h"
38 #include "platform/Histogram.h" 38 #include "platform/Histogram.h"
39 #include "platform/TraceEvent.h" 39 #include "platform/TraceEvent.h"
40 40
41 namespace { 41 namespace {
42 42
43 int totalPagesMeasuredCSSSampleId() { return 1; } 43 int totalPagesMeasuredCSSSampleId() { return 1; }
44 44
45 // Make sure update_use_counter_css.py was run which updates histograms.xml. 45 // Make sure update_use_counter_css.py was run which updates histograms.xml.
46 int maximumCSSSampleId() { return 543; } 46 int maximumCSSSampleId() { return 545; }
47 47
48 } // namespace 48 } // namespace
49 49
50 namespace blink { 50 namespace blink {
51 51
52 int UseCounter::mapCSSPropertyIdToCSSSampleIdForHistogram(CSSPropertyID cssPrope rtyID) 52 int UseCounter::mapCSSPropertyIdToCSSSampleIdForHistogram(CSSPropertyID cssPrope rtyID)
53 { 53 {
54 switch (cssPropertyID) { 54 switch (cssPropertyID) {
55 // Begin at 2, because 1 is reserved for totalPagesMeasuredCSSSampleId. 55 // Begin at 2, because 1 is reserved for totalPagesMeasuredCSSSampleId.
56 case CSSPropertyColor: return 2; 56 case CSSPropertyColor: return 2;
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 case CSSPropertyHyphens: return 534; 568 case CSSPropertyHyphens: return 534;
569 case CSSPropertyFontVariantNumeric: return 535; 569 case CSSPropertyFontVariantNumeric: return 535;
570 case CSSPropertyTextSizeAdjust: return 536; 570 case CSSPropertyTextSizeAdjust: return 536;
571 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; 571 case CSSPropertyAliasWebkitTextSizeAdjust: return 537;
572 case CSSPropertyOverflowAnchor: return 538; 572 case CSSPropertyOverflowAnchor: return 538;
573 case CSSPropertyUserSelect: return 539; 573 case CSSPropertyUserSelect: return 539;
574 case CSSPropertyOffsetDistance: return 540; 574 case CSSPropertyOffsetDistance: return 540;
575 case CSSPropertyOffsetPath: return 541; 575 case CSSPropertyOffsetPath: return 541;
576 case CSSPropertyOffsetRotation: return 542; 576 case CSSPropertyOffsetRotation: return 542;
577 case CSSPropertyOffset: return 543; 577 case CSSPropertyOffset: return 543;
578 case CSSPropertyOffsetAnchor: return 544;
579 case CSSPropertyOffsetPosition: return 545;
578 // 1. Add new features above this line (don't change the assigned numbers of the existing 580 // 1. Add new features above this line (don't change the assigned numbers of the existing
579 // items). 581 // items).
580 // 2. Update maximumCSSSampleId() with the new maximum value. 582 // 2. Update maximumCSSSampleId() with the new maximum value.
581 // 3. Run the update_use_counter_css.py script in 583 // 3. Run the update_use_counter_css.py script in
582 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 584 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
583 585
584 case CSSPropertyInvalid: 586 case CSSPropertyInvalid:
585 ASSERT_NOT_REACHED(); 587 ASSERT_NOT_REACHED();
586 return 0; 588 return 0;
587 } 589 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 } 861 }
860 } 862 }
861 863
862 if (needsPagesMeasuredUpdate) 864 if (needsPagesMeasuredUpdate)
863 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId()); 865 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId());
864 866
865 m_CSSBits.clearAll(); 867 m_CSSBits.clearAll();
866 } 868 }
867 869
868 } // namespace blink 870 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698