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

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

Issue 21165005: Support author Shadow DOM for INPUT elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test should work on Windows and Linux. Created 7 years, 3 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/dom/Element.h ('k') | Source/core/dom/shadow/ElementShadow.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 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 { 1612 {
1613 ElementShadow* elementShadow = shadow(); 1613 ElementShadow* elementShadow = shadow();
1614 if (!elementShadow) 1614 if (!elementShadow)
1615 return 0; 1615 return 0;
1616 ShadowRoot* shadowRoot = elementShadow->youngestShadowRoot(); 1616 ShadowRoot* shadowRoot = elementShadow->youngestShadowRoot();
1617 if (shadowRoot->type() == ShadowRoot::AuthorShadowRoot) 1617 if (shadowRoot->type() == ShadowRoot::AuthorShadowRoot)
1618 return shadowRoot; 1618 return shadowRoot;
1619 return 0; 1619 return 0;
1620 } 1620 }
1621 1621
1622 void Element::didAddShadowRoot(ShadowRoot&)
1623 {
1624 }
1625
1622 ShadowRoot* Element::userAgentShadowRoot() const 1626 ShadowRoot* Element::userAgentShadowRoot() const
1623 { 1627 {
1624 if (ElementShadow* elementShadow = shadow()) { 1628 if (ElementShadow* elementShadow = shadow()) {
1625 if (ShadowRoot* shadowRoot = elementShadow->oldestShadowRoot()) { 1629 if (ShadowRoot* shadowRoot = elementShadow->oldestShadowRoot()) {
1626 ASSERT(shadowRoot->type() == ShadowRoot::UserAgentShadowRoot); 1630 ASSERT(shadowRoot->type() == ShadowRoot::UserAgentShadowRoot);
1627 return shadowRoot; 1631 return shadowRoot;
1628 } 1632 }
1629 } 1633 }
1630 1634
1631 return 0; 1635 return 0;
(...skipping 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after
3625 return 0; 3629 return 0;
3626 } 3630 }
3627 3631
3628 Attribute* UniqueElementData::attributeItem(unsigned index) 3632 Attribute* UniqueElementData::attributeItem(unsigned index)
3629 { 3633 {
3630 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3634 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3631 return &m_attributeVector.at(index); 3635 return &m_attributeVector.at(index);
3632 } 3636 }
3633 3637
3634 } // namespace WebCore 3638 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698