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

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

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 3 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 14 matching lines...) Expand all
25 #include "core/css/StyleRule.h" 25 #include "core/css/StyleRule.h"
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/TraceEvent.h" 35 #include "platform/tracing/TraceEvent.h"
36 #include "platform/weborigin/SecurityOrigin.h" 36 #include "platform/weborigin/SecurityOrigin.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 // Rough size estimate for the memory cache. 40 // Rough size estimate for the memory cache.
41 unsigned StyleSheetContents::estimatedSizeInBytes() const 41 unsigned StyleSheetContents::estimatedSizeInBytes() const
42 { 42 {
43 // Note that this does not take into account size of the strings hanging fro m various objects. 43 // Note that this does not take into account size of the strings hanging fro m various objects.
44 // The assumption is that nearly all of of them are atomic and would exist a nyway. 44 // The assumption is that nearly all of of them are atomic and would exist a nyway.
45 unsigned size = sizeof(*this); 45 unsigned size = sizeof(*this);
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 visitor->trace(m_importRules); 664 visitor->trace(m_importRules);
665 visitor->trace(m_namespaceRules); 665 visitor->trace(m_namespaceRules);
666 visitor->trace(m_childRules); 666 visitor->trace(m_childRules);
667 visitor->trace(m_loadingClients); 667 visitor->trace(m_loadingClients);
668 visitor->trace(m_completedClients); 668 visitor->trace(m_completedClients);
669 visitor->trace(m_ruleSet); 669 visitor->trace(m_ruleSet);
670 visitor->trace(m_referencedFromResource); 670 visitor->trace(m_referencedFromResource);
671 } 671 }
672 672
673 } // namespace blink 673 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698