OLD | NEW |
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 Loading... |
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; |
59 } | 60 } |
60 | 61 |
61 bool StyleResolverStats::allCountersEnabled() const | 62 bool StyleResolverStats::allCountersEnabled() const |
62 { | 63 { |
63 bool allCountersEnabled; | 64 bool allCountersEnabled; |
64 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"),
&allCountersEnabled); | 65 TRACE_EVENT_CATEGORY_GROUP_ENABLED(TRACE_DISABLED_BY_DEFAULT("blink.style"),
&allCountersEnabled); |
65 return allCountersEnabled; | 66 return allCountersEnabled; |
66 } | 67 } |
67 | 68 |
68 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const | 69 std::unique_ptr<TracedValue> StyleResolverStats::toTracedValue() const |
(...skipping 13 matching lines...) Expand all Loading... |
82 tracedValue->setInteger("matchedPropertyCacheAdded", matchedPropertyCacheAdd
ed); | 83 tracedValue->setInteger("matchedPropertyCacheAdded", matchedPropertyCacheAdd
ed); |
83 tracedValue->setInteger("rulesRejected", rulesRejected); | 84 tracedValue->setInteger("rulesRejected", rulesRejected); |
84 tracedValue->setInteger("rulesFastRejected", rulesFastRejected); | 85 tracedValue->setInteger("rulesFastRejected", rulesFastRejected); |
85 tracedValue->setInteger("rulesMatched", rulesMatched); | 86 tracedValue->setInteger("rulesMatched", rulesMatched); |
86 tracedValue->setInteger("stylesChanged", stylesChanged); | 87 tracedValue->setInteger("stylesChanged", stylesChanged); |
87 tracedValue->setInteger("stylesUnchanged", stylesUnchanged); | 88 tracedValue->setInteger("stylesUnchanged", stylesUnchanged); |
88 tracedValue->setInteger("stylesAnimated", stylesAnimated); | 89 tracedValue->setInteger("stylesAnimated", stylesAnimated); |
89 tracedValue->setInteger("elementsStyled", elementsStyled); | 90 tracedValue->setInteger("elementsStyled", elementsStyled); |
90 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled); | 91 tracedValue->setInteger("pseudoElementsStyled", pseudoElementsStyled); |
91 tracedValue->setInteger("baseStylesUsed", baseStylesUsed); | 92 tracedValue->setInteger("baseStylesUsed", baseStylesUsed); |
| 93 tracedValue->setInteger("independentInheritedStylesPropagated", independentI
nheritedStylesPropagated); |
92 return tracedValue; | 94 return tracedValue; |
93 } | 95 } |
94 | 96 |
95 | 97 |
96 } // namespace blink | 98 } // namespace blink |
OLD | NEW |