| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/css/StyleSheetContents.h" | 29 #include "core/css/StyleSheetContents.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/ExecutionContext.h" | 31 #include "core/dom/ExecutionContext.h" |
| 32 #include "core/frame/Deprecation.h" | 32 #include "core/frame/Deprecation.h" |
| 33 #include "core/frame/FrameConsole.h" | 33 #include "core/frame/FrameConsole.h" |
| 34 #include "core/frame/FrameHost.h" | 34 #include "core/frame/FrameHost.h" |
| 35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 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/tracing/TraceEvent.h" |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 int totalPagesMeasuredCSSSampleId() { | 43 int totalPagesMeasuredCSSSampleId() { |
| 44 return 1; | 44 return 1; |
| 45 } | 45 } |
| 46 | 46 |
| 47 // Make sure update_use_counter_css.py was run which updates histograms.xml. | 47 // Make sure update_use_counter_css.py was run which updates histograms.xml. |
| 48 constexpr int kMaximumCSSSampleId = 545; | 48 constexpr int kMaximumCSSSampleId = 545; |
| 49 | 49 |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 } | 1337 } |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 if (needsPagesMeasuredUpdate) | 1340 if (needsPagesMeasuredUpdate) |
| 1341 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId()); | 1341 cssPropertiesHistogram.count(totalPagesMeasuredCSSSampleId()); |
| 1342 | 1342 |
| 1343 m_CSSBits.clearAll(); | 1343 m_CSSBits.clearAll(); |
| 1344 } | 1344 } |
| 1345 | 1345 |
| 1346 } // namespace blink | 1346 } // namespace blink |
| OLD | NEW |