| OLD | NEW |
| 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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("blink.feature_usage"), | 1239 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("blink.feature_usage"), |
| 1240 "CSSFirstUsed", "feature", sampleId); | 1240 "CSSFirstUsed", "feature", sampleId); |
| 1241 cssHistogram().count(sampleId); | 1241 cssHistogram().count(sampleId); |
| 1242 } | 1242 } |
| 1243 m_CSSRecorded.quickSet(property); | 1243 m_CSSRecorded.quickSet(property); |
| 1244 } | 1244 } |
| 1245 m_legacyCounter.countCSS(property); | 1245 m_legacyCounter.countCSS(property); |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 void UseCounter::count(Feature feature) { | 1248 void UseCounter::count(Feature feature) { |
| 1249 DCHECK(Deprecation::deprecationMessage(feature).isEmpty()); | |
| 1250 recordMeasurement(feature); | 1249 recordMeasurement(feature); |
| 1251 } | 1250 } |
| 1252 | 1251 |
| 1253 UseCounter* UseCounter::getFrom(const Document* document) { | 1252 UseCounter* UseCounter::getFrom(const Document* document) { |
| 1254 if (document && document->frameHost()) | 1253 if (document && document->frameHost()) |
| 1255 return &document->frameHost()->useCounter(); | 1254 return &document->frameHost()->useCounter(); |
| 1256 return 0; | 1255 return 0; |
| 1257 } | 1256 } |
| 1258 | 1257 |
| 1259 UseCounter* UseCounter::getFrom(const CSSStyleSheet* sheet) { | 1258 UseCounter* UseCounter::getFrom(const CSSStyleSheet* sheet) { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 } | 1355 } |
| 1357 } | 1356 } |
| 1358 | 1357 |
| 1359 if (needsPagesMeasuredUpdate) | 1358 if (needsPagesMeasuredUpdate) |
| 1360 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId()); | 1359 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId()); |
| 1361 | 1360 |
| 1362 m_CSSBits.clearAll(); | 1361 m_CSSBits.clearAll(); |
| 1363 } | 1362 } |
| 1364 | 1363 |
| 1365 } // namespace blink | 1364 } // namespace blink |
| OLD | NEW |