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

Side by Side Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 1320013005: Make CSSParserMode parameter not optional for MutableStylePropertySet::create() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/resolver/MatchResultTest.cpp ('k') | Source/core/editing/EditingStyle.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, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } // namespace 102 } // namespace
103 103
104 namespace blink { 104 namespace blink {
105 105
106 using namespace HTMLNames; 106 using namespace HTMLNames;
107 107
108 ComputedStyle* StyleResolver::s_styleNotYetAvailable; 108 ComputedStyle* StyleResolver::s_styleNotYetAvailable;
109 109
110 static StylePropertySet* leftToRightDeclaration() 110 static StylePropertySet* leftToRightDeclaration()
111 { 111 {
112 DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, leftToRightDec l, (MutableStylePropertySet::create())); 112 DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, leftToRightDec l, (MutableStylePropertySet::create(HTMLQuirksMode)));
113 if (leftToRightDecl->isEmpty()) 113 if (leftToRightDecl->isEmpty())
114 leftToRightDecl->setProperty(CSSPropertyDirection, CSSValueLtr); 114 leftToRightDecl->setProperty(CSSPropertyDirection, CSSValueLtr);
115 return leftToRightDecl; 115 return leftToRightDecl;
116 } 116 }
117 117
118 static StylePropertySet* rightToLeftDeclaration() 118 static StylePropertySet* rightToLeftDeclaration()
119 { 119 {
120 DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, rightToLeftDec l, (MutableStylePropertySet::create())); 120 DEFINE_STATIC_REF_WILL_BE_PERSISTENT(MutableStylePropertySet, rightToLeftDec l, (MutableStylePropertySet::create(HTMLQuirksMode)));
121 if (rightToLeftDecl->isEmpty()) 121 if (rightToLeftDecl->isEmpty())
122 rightToLeftDecl->setProperty(CSSPropertyDirection, CSSValueRtl); 122 rightToLeftDecl->setProperty(CSSPropertyDirection, CSSValueRtl);
123 return rightToLeftDecl; 123 return rightToLeftDecl;
124 } 124 }
125 125
126 static void collectScopedResolversForHostedShadowTrees(const Element* element, W illBeHeapVector<RawPtrWillBeMember<ScopedStyleResolver>, 8>& resolvers) 126 static void collectScopedResolversForHostedShadowTrees(const Element* element, W illBeHeapVector<RawPtrWillBeMember<ScopedStyleResolver>, 8>& resolvers)
127 { 127 {
128 ElementShadow* shadow = element->shadow(); 128 ElementShadow* shadow = element->shadow();
129 if (!shadow) 129 if (!shadow)
130 return; 130 return;
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 visitor->trace(m_watchedSelectorsRules); 1448 visitor->trace(m_watchedSelectorsRules);
1449 visitor->trace(m_treeBoundaryCrossingRules); 1449 visitor->trace(m_treeBoundaryCrossingRules);
1450 visitor->trace(m_styleResourceLoader); 1450 visitor->trace(m_styleResourceLoader);
1451 visitor->trace(m_styleSharingLists); 1451 visitor->trace(m_styleSharingLists);
1452 visitor->trace(m_pendingStyleSheets); 1452 visitor->trace(m_pendingStyleSheets);
1453 visitor->trace(m_document); 1453 visitor->trace(m_document);
1454 #endif 1454 #endif
1455 } 1455 }
1456 1456
1457 } // namespace blink 1457 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/MatchResultTest.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698