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

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

Issue 2694283003: Annotate ScriptWrappable-embedding singletons.
Patch Set: add XPathValue singleton Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSStyleRule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 28 matching lines...) Expand all
39 #include "core/html/HTMLHtmlElement.h" 39 #include "core/html/HTMLHtmlElement.h"
40 #include "core/layout/LayoutTheme.h" 40 #include "core/layout/LayoutTheme.h"
41 #include "platform/PlatformResourceLoader.h" 41 #include "platform/PlatformResourceLoader.h"
42 #include "wtf/LeakAnnotations.h" 42 #include "wtf/LeakAnnotations.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 using namespace HTMLNames; 46 using namespace HTMLNames;
47 47
48 CSSDefaultStyleSheets& CSSDefaultStyleSheets::instance() { 48 CSSDefaultStyleSheets& CSSDefaultStyleSheets::instance() {
49 ALLOW_UNSAFE_SINGLETON()
49 DEFINE_STATIC_LOCAL(CSSDefaultStyleSheets, cssDefaultStyleSheets, 50 DEFINE_STATIC_LOCAL(CSSDefaultStyleSheets, cssDefaultStyleSheets,
50 (new CSSDefaultStyleSheets)); 51 (new CSSDefaultStyleSheets));
51 return cssDefaultStyleSheets; 52 return cssDefaultStyleSheets;
52 } 53 }
53 54
54 static const MediaQueryEvaluator& screenEval() { 55 static const MediaQueryEvaluator& screenEval() {
55 DEFINE_STATIC_LOCAL(MediaQueryEvaluator, staticScreenEval, 56 DEFINE_STATIC_LOCAL(MediaQueryEvaluator, staticScreenEval,
56 (new MediaQueryEvaluator("screen"))); 57 (new MediaQueryEvaluator("screen")));
57 return staticScreenEval; 58 return staticScreenEval;
58 } 59 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 visitor->trace(m_televisionViewportStyleSheet); 186 visitor->trace(m_televisionViewportStyleSheet);
186 visitor->trace(m_xhtmlMobileProfileStyleSheet); 187 visitor->trace(m_xhtmlMobileProfileStyleSheet);
187 visitor->trace(m_quirksStyleSheet); 188 visitor->trace(m_quirksStyleSheet);
188 visitor->trace(m_svgStyleSheet); 189 visitor->trace(m_svgStyleSheet);
189 visitor->trace(m_mathmlStyleSheet); 190 visitor->trace(m_mathmlStyleSheet);
190 visitor->trace(m_mediaControlsStyleSheet); 191 visitor->trace(m_mediaControlsStyleSheet);
191 visitor->trace(m_fullscreenStyleSheet); 192 visitor->trace(m_fullscreenStyleSheet);
192 } 193 }
193 194
194 } // namespace blink 195 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSStyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698