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

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

Issue 183803016: Rename ^ and ^^ combinator to /shadow-all/ and /shadow-deep/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSSelectorList.cpp ('k') | Source/core/css/SelectorChecker.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // FIXME: We should allow pseudo elements, but we need to change how the y hook 109 // FIXME: We should allow pseudo elements, but we need to change how the y hook
110 // into recalcStyle by moving them to recalcOwnStyle instead of recalcCh ildStyle. 110 // into recalcStyle by moving them to recalcOwnStyle instead of recalcCh ildStyle.
111 111
112 // FIXME: next up: Tag and Id. 112 // FIXME: next up: Tag and Id.
113 if (component->m_match == CSSSelector::Class) { 113 if (component->m_match == CSSSelector::Class) {
114 if (!foundDescendantRelation) 114 if (!foundDescendantRelation)
115 foundIdent = true; 115 foundIdent = true;
116 } else if (!isSkippableComponentForInvalidation(*component)) { 116 } else if (!isSkippableComponentForInvalidation(*component)) {
117 return false; 117 return false;
118 } 118 }
119 // FIXME: We can probably support ChildTree and DescendantTree. 119 // FIXME: We can probably support ShadowAll and ShadowDeep.
120 switch (component->relation()) { 120 switch (component->relation()) {
121 case CSSSelector::Descendant: 121 case CSSSelector::Descendant:
122 case CSSSelector::Child: 122 case CSSSelector::Child:
123 foundDescendantRelation = true; 123 foundDescendantRelation = true;
124 // Fall through! 124 // Fall through!
125 case CSSSelector::SubSelector: 125 case CSSSelector::SubSelector:
126 continue; 126 continue;
127 default: 127 default:
128 return false; 128 return false;
129 } 129 }
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 } 438 }
439 439
440 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize); 440 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize);
441 element->clearChildNeedsStyleInvalidation(); 441 element->clearChildNeedsStyleInvalidation();
442 element->clearNeedsStyleInvalidation(); 442 element->clearNeedsStyleInvalidation();
443 443
444 return thisElementNeedsStyleRecalc; 444 return thisElementNeedsStyleRecalc;
445 } 445 }
446 446
447 } // namespace WebCore 447 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSSelectorList.cpp ('k') | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698