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

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

Issue 23264017: Implement support for unprefixed keyframes rules resolution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/StyleResolver.h ('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) 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 ASSERT(shadowRoot->host()); 274 ASSERT(shadowRoot->host());
275 m_styleTree.pushStyleCache(shadowRoot, shadowRoot->host()); 275 m_styleTree.pushStyleCache(shadowRoot, shadowRoot->host());
276 } 276 }
277 277
278 void StyleResolver::popParentShadowRoot(const ShadowRoot* shadowRoot) 278 void StyleResolver::popParentShadowRoot(const ShadowRoot* shadowRoot)
279 { 279 {
280 ASSERT(shadowRoot->host()); 280 ASSERT(shadowRoot->host());
281 m_styleTree.popStyleCache(shadowRoot); 281 m_styleTree.popStyleCache(shadowRoot);
282 } 282 }
283 283
284 // This is a simplified style setting function for keyframe styles
285 void StyleResolver::addKeyframeStyle(PassRefPtr<StyleRuleKeyframes> rule)
286 {
287 AtomicString s(rule->name());
288 m_keyframesRuleMap.set(s.impl(), rule);
289 }
290
291 StyleResolver::~StyleResolver() 284 StyleResolver::~StyleResolver()
292 { 285 {
293 m_fontSelector->clearDocument(); 286 m_fontSelector->clearDocument();
294 m_viewportStyleResolver->clearDocument(); 287 m_viewportStyleResolver->clearDocument();
295 } 288 }
296 289
297 inline void StyleResolver::matchShadowDistributedRules(ElementRuleCollector& col lector, bool includeEmptyRules) 290 inline void StyleResolver::matchShadowDistributedRules(ElementRuleCollector& col lector, bool includeEmptyRules)
298 { 291 {
299 // FIXME: Determine tree position. 292 // FIXME: Determine tree position.
300 CascadeScope cascadeScope = ignoreCascadeScope; 293 CascadeScope cascadeScope = ignoreCascadeScope;
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa che); 1528 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa che);
1536 1529
1537 fprintf(stderr, "Total:\n"); 1530 fprintf(stderr, "Total:\n");
1538 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, 1531 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing,
1539 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch edPropertiesEnteredIntoCache); 1532 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch edPropertiesEnteredIntoCache);
1540 fprintf(stderr, "----------------------------------------------------------- ---------------------\n"); 1533 fprintf(stderr, "----------------------------------------------------------- ---------------------\n");
1541 } 1534 }
1542 #endif 1535 #endif
1543 1536
1544 } // namespace WebCore 1537 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698