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

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

Issue 993713002: Fix template angle bracket syntax in CSS subdirs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | 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) 2012-2013 Intel Corporation. All rights reserved. 2 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 : m_document(document) 48 : m_document(document)
49 , m_hasAuthorStyle(false) 49 , m_hasAuthorStyle(false)
50 { 50 {
51 ASSERT(m_document); 51 ASSERT(m_document);
52 } 52 }
53 53
54 void ViewportStyleResolver::collectViewportRules(RuleSet* rules, Origin origin) 54 void ViewportStyleResolver::collectViewportRules(RuleSet* rules, Origin origin)
55 { 55 {
56 rules->compactRulesIfNeeded(); 56 rules->compactRulesIfNeeded();
57 57
58 const WillBeHeapVector<RawPtrWillBeMember<StyleRuleViewport> >& viewportRule s = rules->viewportRules(); 58 const WillBeHeapVector<RawPtrWillBeMember<StyleRuleViewport>>& viewportRules = rules->viewportRules();
59 for (size_t i = 0; i < viewportRules.size(); ++i) 59 for (size_t i = 0; i < viewportRules.size(); ++i)
60 addViewportRule(viewportRules[i], origin); 60 addViewportRule(viewportRules[i], origin);
61 } 61 }
62 62
63 void ViewportStyleResolver::addViewportRule(StyleRuleViewport* viewportRule, Ori gin origin) 63 void ViewportStyleResolver::addViewportRule(StyleRuleViewport* viewportRule, Ori gin origin)
64 { 64 {
65 StylePropertySet& propertySet = viewportRule->mutableProperties(); 65 StylePropertySet& propertySet = viewportRule->mutableProperties();
66 66
67 unsigned propertyCount = propertySet.propertyCount(); 67 unsigned propertyCount = propertySet.propertyCount();
68 if (!propertyCount) 68 if (!propertyCount)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return result; 203 return result;
204 } 204 }
205 205
206 DEFINE_TRACE(ViewportStyleResolver) 206 DEFINE_TRACE(ViewportStyleResolver)
207 { 207 {
208 visitor->trace(m_propertySet); 208 visitor->trace(m_propertySet);
209 visitor->trace(m_document); 209 visitor->trace(m_document);
210 } 210 }
211 211
212 } // namespace blink 212 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698