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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp

Issue 1982003002: Rename v0 custom element flags to V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 || toHTMLOptionElement(candidate).spatialNavigationFocused() != toHTMLOp tionElement(element()).spatialNavigationFocused())) 246 || toHTMLOptionElement(candidate).spatialNavigationFocused() != toHTMLOp tionElement(element()).spatialNavigationFocused()))
247 return false; 247 return false;
248 248
249 // FIXME: This line is surprisingly hot, we may wish to inline hasDirectionA uto into StyleResolver. 249 // FIXME: This line is surprisingly hot, we may wish to inline hasDirectionA uto into StyleResolver.
250 if (candidate.isHTMLElement() && toHTMLElement(candidate).hasDirectionAuto() ) 250 if (candidate.isHTMLElement() && toHTMLElement(candidate).hasDirectionAuto() )
251 return false; 251 return false;
252 252
253 if (candidate.isLink() && m_context.elementLinkState() != style->insideLink( )) 253 if (candidate.isLink() && m_context.elementLinkState() != style->insideLink( ))
254 return false; 254 return false;
255 255
256 if (candidate.isUnresolvedCustomElement() != element().isUnresolvedCustomEle ment()) 256 if (candidate.isUnresolvedV0CustomElement() != element().isUnresolvedV0Custo mElement())
257 return false; 257 return false;
258 258
259 if (element().parentOrShadowHostElement() != parent) { 259 if (element().parentOrShadowHostElement() != parent) {
260 if (!parent->isStyledElement()) 260 if (!parent->isStyledElement())
261 return false; 261 return false;
262 if (parent->inlineStyle()) 262 if (parent->inlineStyle())
263 return false; 263 return false;
264 if (parent->isSVGElement() && toSVGElement(parent)->animatedSMILStylePro perties()) 264 if (parent->isSVGElement() && toSVGElement(parent)->animatedSMILStylePro perties())
265 return false; 265 return false;
266 if (parent->hasID() && m_features.hasSelectorForId(parent->idForStyleRes olution())) 266 if (parent->hasID() && m_features.hasSelectorForId(parent->idForStyleRes olution()))
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // Tracking child index requires unique style for each node. This may get se t by the sibling rule match above. 350 // Tracking child index requires unique style for each node. This may get se t by the sibling rule match above.
351 if (!element().parentElementOrShadowRoot()->childrenSupportStyleSharing()) { 351 if (!element().parentElementOrShadowRoot()->childrenSupportStyleSharing()) {
352 INCREMENT_STYLE_STATS_COUNTER(document().styleEngine(), sharedStyleRejec tedByParent, 1); 352 INCREMENT_STYLE_STATS_COUNTER(document().styleEngine(), sharedStyleRejec tedByParent, 1);
353 return nullptr; 353 return nullptr;
354 } 354 }
355 355
356 return shareElement->mutableComputedStyle(); 356 return shareElement->mutableComputedStyle();
357 } 357 }
358 358
359 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorChecker.cpp ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698