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

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

Issue 2391383002: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 2 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 15 matching lines...) Expand all
26 #include "core/css/StyleRuleImport.h" 26 #include "core/css/StyleRuleImport.h"
27 #include "core/css/StyleRuleNamespace.h" 27 #include "core/css/StyleRuleNamespace.h"
28 #include "core/css/parser/CSSParser.h" 28 #include "core/css/parser/CSSParser.h"
29 #include "core/dom/Document.h" 29 #include "core/dom/Document.h"
30 #include "core/dom/Node.h" 30 #include "core/dom/Node.h"
31 #include "core/dom/StyleEngine.h" 31 #include "core/dom/StyleEngine.h"
32 #include "core/fetch/CSSStyleSheetResource.h" 32 #include "core/fetch/CSSStyleSheetResource.h"
33 #include "core/frame/UseCounter.h" 33 #include "core/frame/UseCounter.h"
34 #include "core/inspector/InspectorTraceEvents.h" 34 #include "core/inspector/InspectorTraceEvents.h"
35 #include "platform/Histogram.h" 35 #include "platform/Histogram.h"
36 #include "platform/TraceEvent.h" 36 #include "platform/tracing/TraceEvent.h"
37 #include "platform/weborigin/SecurityOrigin.h" 37 #include "platform/weborigin/SecurityOrigin.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 // Rough size estimate for the memory cache. 41 // Rough size estimate for the memory cache.
42 unsigned StyleSheetContents::estimatedSizeInBytes() const { 42 unsigned StyleSheetContents::estimatedSizeInBytes() const {
43 // Note that this does not take into account size of the strings hanging from various objects. 43 // Note that this does not take into account size of the strings hanging from various objects.
44 // The assumption is that nearly all of of them are atomic and would exist any way. 44 // The assumption is that nearly all of of them are atomic and would exist any way.
45 unsigned size = sizeof(*this); 45 unsigned size = sizeof(*this);
46 46
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 visitor->trace(m_importRules); 650 visitor->trace(m_importRules);
651 visitor->trace(m_namespaceRules); 651 visitor->trace(m_namespaceRules);
652 visitor->trace(m_childRules); 652 visitor->trace(m_childRules);
653 visitor->trace(m_loadingClients); 653 visitor->trace(m_loadingClients);
654 visitor->trace(m_completedClients); 654 visitor->trace(m_completedClients);
655 visitor->trace(m_ruleSet); 655 visitor->trace(m_ruleSet);
656 visitor->trace(m_referencedFromResource); 656 visitor->trace(m_referencedFromResource);
657 } 657 }
658 658
659 } // namespace blink 659 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleSet.cpp ('k') | third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698