| 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; | |
| 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 Loading... |
| 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 |
| OLD | NEW |