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

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

Issue 1105103003: Update renderer in core/css. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.cpp ('k') | Source/core/css/CSSGradientValue.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 r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static const MediaQueryEvaluator& printEval() 59 static const MediaQueryEvaluator& printEval()
60 { 60 {
61 DEFINE_STATIC_LOCAL(const MediaQueryEvaluator, staticPrintEval, ("print")); 61 DEFINE_STATIC_LOCAL(const MediaQueryEvaluator, staticPrintEval, ("print"));
62 return staticPrintEval; 62 return staticPrintEval;
63 } 63 }
64 64
65 static PassRefPtrWillBeRawPtr<StyleSheetContents> parseUASheet(const String& str ) 65 static PassRefPtrWillBeRawPtr<StyleSheetContents> parseUASheet(const String& str )
66 { 66 {
67 RefPtrWillBeRawPtr<StyleSheetContents> sheet = StyleSheetContents::create(CS SParserContext(UASheetMode, 0)); 67 RefPtrWillBeRawPtr<StyleSheetContents> sheet = StyleSheetContents::create(CS SParserContext(UASheetMode, 0));
68 sheet->parseString(str); 68 sheet->parseString(str);
69 // User Agent stylesheets are parsed once for the lifetime of the renderer 69 // User Agent stylesheets are parsed once for the lifetime of the layoutObje ct
70 // and are intentionally leaked. 70 // and are intentionally leaked.
71 WTF_ANNOTATE_LEAKING_OBJECT_PTR(sheet.get()); 71 WTF_ANNOTATE_LEAKING_OBJECT_PTR(sheet.get());
72 return sheet.release(); 72 return sheet.release();
73 } 73 }
74 74
75 CSSDefaultStyleSheets::CSSDefaultStyleSheets() 75 CSSDefaultStyleSheets::CSSDefaultStyleSheets()
76 : m_defaultStyle(nullptr) 76 : m_defaultStyle(nullptr)
77 , m_defaultMobileViewportStyle(nullptr) 77 , m_defaultMobileViewportStyle(nullptr)
78 , m_defaultQuirksStyle(nullptr) 78 , m_defaultQuirksStyle(nullptr)
79 , m_defaultPrintStyle(nullptr) 79 , m_defaultPrintStyle(nullptr)
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 visitor->trace(m_defaultStyleSheet); 201 visitor->trace(m_defaultStyleSheet);
202 visitor->trace(m_mobileViewportStyleSheet); 202 visitor->trace(m_mobileViewportStyleSheet);
203 visitor->trace(m_quirksStyleSheet); 203 visitor->trace(m_quirksStyleSheet);
204 visitor->trace(m_svgStyleSheet); 204 visitor->trace(m_svgStyleSheet);
205 visitor->trace(m_mathmlStyleSheet); 205 visitor->trace(m_mathmlStyleSheet);
206 visitor->trace(m_mediaControlsStyleSheet); 206 visitor->trace(m_mediaControlsStyleSheet);
207 visitor->trace(m_fullscreenStyleSheet); 207 visitor->trace(m_fullscreenStyleSheet);
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.cpp ('k') | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698