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

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

Issue 662243003: Use ::-internal-media-controls* instead of ::-webkit-media-controls* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: introduce PseudoInternalCustomElement 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/CSSGrammar.y ('k') | Source/core/html/shadow/MediaControlElements.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) 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 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 { 2361 {
2362 if (ShadowRoot* root = containingShadowRoot()) { 2362 if (ShadowRoot* root = containingShadowRoot()) {
2363 if (root->type() == ShadowRoot::UserAgentShadowRoot) 2363 if (root->type() == ShadowRoot::UserAgentShadowRoot)
2364 return fastGetAttribute(pseudoAttr); 2364 return fastGetAttribute(pseudoAttr);
2365 } 2365 }
2366 return nullAtom; 2366 return nullAtom;
2367 } 2367 }
2368 2368
2369 void Element::setShadowPseudoId(const AtomicString& id) 2369 void Element::setShadowPseudoId(const AtomicString& id)
2370 { 2370 {
2371 ASSERT(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoUs erAgentCustomElement); 2371 ASSERT(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoInterna lCustomElement
2372 || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoUserAge ntCustomElement
2373 || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement);
2372 setAttribute(pseudoAttr, id); 2374 setAttribute(pseudoAttr, id);
2373 } 2375 }
2374 2376
2375 bool Element::isInDescendantTreeOf(const Element* shadowHost) const 2377 bool Element::isInDescendantTreeOf(const Element* shadowHost) const
2376 { 2378 {
2377 ASSERT(shadowHost); 2379 ASSERT(shadowHost);
2378 ASSERT(isShadowHost(shadowHost)); 2380 ASSERT(isShadowHost(shadowHost));
2379 2381
2380 const ShadowRoot* shadowRoot = containingShadowRoot(); 2382 const ShadowRoot* shadowRoot = containingShadowRoot();
2381 while (shadowRoot) { 2383 while (shadowRoot) {
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 return wrapper; 3266 return wrapper;
3265 3267
3266 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition()); 3268 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition());
3267 3269
3268 wrapper->SetPrototype(binding->prototype()); 3270 wrapper->SetPrototype(binding->prototype());
3269 3271
3270 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType , wrapper, isolate); 3272 return V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType , wrapper, isolate);
3271 } 3273 }
3272 3274
3273 } // namespace blink 3275 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSGrammar.y ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698