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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp

Issue 2213223004: Revert of Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computedstyle_cleanup_rename_final_member_fields
Patch Set: Created 4 years, 4 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 matchedPropertyCacheAdded = 0; 49 matchedPropertyCacheAdded = 0;
50 rulesFastRejected = 0; 50 rulesFastRejected = 0;
51 rulesRejected = 0; 51 rulesRejected = 0;
52 rulesMatched = 0; 52 rulesMatched = 0;
53 stylesChanged = 0; 53 stylesChanged = 0;
54 stylesUnchanged = 0; 54 stylesUnchanged = 0;
55 stylesAnimated = 0; 55 stylesAnimated = 0;
56 elementsStyled = 0; 56 elementsStyled = 0;
57 pseudoElementsStyled = 0; 57 pseudoElementsStyled = 0;
58 baseStylesUsed = 0; 58 baseStylesUsed = 0;
59 independentInheritedStylesPropagated = 0;
60 } 59 }
61 60
62 bool StyleResolverStats::allCountersEnabled() const 61 bool StyleResolverStats::allCountersEnabled() const
63 { 62 {
64 bool allCountersEnabled; 63 bool allCountersEnabled;
65 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"), &allCountersEnabled); 64 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"), &allCountersEnabled);
66 return allCountersEnabled; 65 return allCountersEnabled;
67 } 66 }
68 67
69 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const 68 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const
(...skipping 13 matching lines...) Expand all
83 tracedValue->setInteger("matchedPropertyCacheAdded", matchedPropertyCacheAdd ed); 82 tracedValue->setInteger("matchedPropertyCacheAdded", matchedPropertyCacheAdd ed);
84 tracedValue->setInteger("rulesRejected", rulesRejected); 83 tracedValue->setInteger("rulesRejected", rulesRejected);
85 tracedValue->setInteger("rulesFastRejected", rulesFastRejected); 84 tracedValue->setInteger("rulesFastRejected", rulesFastRejected);
86 tracedValue->setInteger("rulesMatched", rulesMatched); 85 tracedValue->setInteger("rulesMatched", rulesMatched);
87 tracedValue->setInteger("stylesChanged", stylesChanged); 86 tracedValue->setInteger("stylesChanged", stylesChanged);
88 tracedValue->setInteger("stylesUnchanged", stylesUnchanged); 87 tracedValue->setInteger("stylesUnchanged", stylesUnchanged);
89 tracedValue->setInteger("stylesAnimated", stylesAnimated); 88 tracedValue->setInteger("stylesAnimated", stylesAnimated);
90 tracedValue->setInteger("elementsStyled", elementsStyled); 89 tracedValue->setInteger("elementsStyled", elementsStyled);
91 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled); 90 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled);
92 tracedValue->setInteger("baseStylesUsed", baseStylesUsed); 91 tracedValue->setInteger("baseStylesUsed", baseStylesUsed);
93 tracedValue->setInteger("independentInheritedStylesPropagated", independentI nheritedStylesPropagated);
94 return tracedValue; 92 return tracedValue;
95 } 93 }
96 94
97 95
98 } // namespace blink 96 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.h ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698