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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 646853007: Remove fallback matching ::cue* pseudo-element selectors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix inspector dependency Created 6 years, 2 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/parser/BisonCSSParser-in.cpp ('k') | Source/core/frame/UseCounter.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) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 { 2365 {
2366 if (ShadowRoot* root = containingShadowRoot()) { 2366 if (ShadowRoot* root = containingShadowRoot()) {
2367 if (root->type() == ShadowRoot::UserAgentShadowRoot) 2367 if (root->type() == ShadowRoot::UserAgentShadowRoot)
2368 return fastGetAttribute(pseudoAttr); 2368 return fastGetAttribute(pseudoAttr);
2369 } 2369 }
2370 return nullAtom; 2370 return nullAtom;
2371 } 2371 }
2372 2372
2373 void Element::setShadowPseudoId(const AtomicString& id) 2373 void Element::setShadowPseudoId(const AtomicString& id)
2374 { 2374 {
2375 ASSERT(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoUs erAgentCustomElement); 2375 ASSERT(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement);
2376 setAttribute(pseudoAttr, id); 2376 setAttribute(pseudoAttr, id);
2377 } 2377 }
2378 2378
2379 bool Element::isInDescendantTreeOf(const Element* shadowHost) const 2379 bool Element::isInDescendantTreeOf(const Element* shadowHost) const
2380 { 2380 {
2381 ASSERT(shadowHost); 2381 ASSERT(shadowHost);
2382 ASSERT(isShadowHost(shadowHost)); 2382 ASSERT(isShadowHost(shadowHost));
2383 2383
2384 const ShadowRoot* shadowRoot = containingShadowRoot(); 2384 const ShadowRoot* shadowRoot = containingShadowRoot();
2385 while (shadowRoot) { 2385 while (shadowRoot) {
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3266 return wrapper; 3266 return wrapper;
3267 3267
3268 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition()); 3268 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition());
3269 3269
3270 wrapper->SetPrototype(binding->prototype()); 3270 wrapper->SetPrototype(binding->prototype());
3271 3271
3272 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType , wrapper, isolate); 3272 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType , wrapper, isolate);
3273 } 3273 }
3274 3274
3275 } // namespace blink 3275 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698