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/resolver/StyleResolver.cpp

Issue 19804005: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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') | Source/core/dom/CheckedRadioButtons.h » ('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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 if (property != CSSPropertyWebkitAnimationTimingFunction) 685 if (property != CSSPropertyWebkitAnimationTimingFunction)
686 keyframeValue.addProperty(property); 686 keyframeValue.addProperty(property);
687 } 687 }
688 } 688 }
689 689
690 document()->didAccessStyleResolver(); 690 document()->didAccessStyleResolver();
691 691
692 return state.takeStyle(); 692 return state.takeStyle();
693 } 693 }
694 694
695 const StyleRuleKeyframes* StyleResolver::matchScopedKeyframesRule(Element* e, co nst AtomicStringImpl* animationName) 695 const StyleRuleKeyframes* StyleResolver::matchScopedKeyframesRule(Element* e, co nst StringImpl* animationName)
696 { 696 {
697 if (m_styleTree.hasOnlyScopedResolverForDocument()) 697 if (m_styleTree.hasOnlyScopedResolverForDocument())
698 return m_styleTree.scopedStyleResolverForDocument()->keyframeStylesForAn imation(animationName); 698 return m_styleTree.scopedStyleResolverForDocument()->keyframeStylesForAn imation(animationName);
699 699
700 Vector<ScopedStyleResolver*, 8> stack; 700 Vector<ScopedStyleResolver*, 8> stack;
701 m_styleTree.resolveScopedKeyframesRules(e, stack); 701 m_styleTree.resolveScopedKeyframesRules(e, stack);
702 if (stack.isEmpty()) 702 if (stack.isEmpty())
703 return 0; 703 return 0;
704 704
705 for (size_t i = 0; i < stack.size(); ++i) { 705 for (size_t i = 0; i < stack.size(); ++i) {
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 fprintf(stderr, "This recalc style:\n"); 1444 fprintf(stderr, "This recalc style:\n");
1445 printStyleStats(m_searches, m_elementsEligibleForSharing, m_stylesShared, m_ searchFoundSiblingForSharing, m_searchesMissedSharing); 1445 printStyleStats(m_searches, m_elementsEligibleForSharing, m_stylesShared, m_ searchFoundSiblingForSharing, m_searchesMissedSharing);
1446 1446
1447 fprintf(stderr, "Total:\n"); 1447 fprintf(stderr, "Total:\n");
1448 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing); 1448 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing);
1449 fprintf(stderr, "----------------------------------------------------------- ---------------------\n"); 1449 fprintf(stderr, "----------------------------------------------------------- ---------------------\n");
1450 } 1450 }
1451 #endif 1451 #endif
1452 1452
1453 } // namespace WebCore 1453 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.h ('k') | Source/core/dom/CheckedRadioButtons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698