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

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

Issue 22852020: Only allow reprojecting shadows between ShadowRoots of the same type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Delete another test Created 7 years, 4 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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 1629
1630 ShadowRoot* Element::ensureUserAgentShadowRoot() 1630 ShadowRoot* Element::ensureUserAgentShadowRoot()
1631 { 1631 {
1632 if (ShadowRoot* shadowRoot = userAgentShadowRoot()) 1632 if (ShadowRoot* shadowRoot = userAgentShadowRoot())
1633 return shadowRoot; 1633 return shadowRoot;
1634 ShadowRoot* shadowRoot = ensureShadow()->addShadowRoot(this, ShadowRoot::Use rAgentShadowRoot); 1634 ShadowRoot* shadowRoot = ensureShadow()->addShadowRoot(this, ShadowRoot::Use rAgentShadowRoot);
1635 didAddUserAgentShadowRoot(shadowRoot); 1635 didAddUserAgentShadowRoot(shadowRoot);
1636 return shadowRoot; 1636 return shadowRoot;
1637 } 1637 }
1638 1638
1639 bool Element::supportsShadowElementForUserAgentShadow() const
1640 {
1641 return true;
1642 }
1643
1644 bool Element::childTypeAllowed(NodeType type) const 1639 bool Element::childTypeAllowed(NodeType type) const
1645 { 1640 {
1646 switch (type) { 1641 switch (type) {
1647 case ELEMENT_NODE: 1642 case ELEMENT_NODE:
1648 case TEXT_NODE: 1643 case TEXT_NODE:
1649 case COMMENT_NODE: 1644 case COMMENT_NODE:
1650 case PROCESSING_INSTRUCTION_NODE: 1645 case PROCESSING_INSTRUCTION_NODE:
1651 case CDATA_SECTION_NODE: 1646 case CDATA_SECTION_NODE:
1652 return true; 1647 return true;
1653 default: 1648 default:
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
3635 return 0; 3630 return 0;
3636 } 3631 }
3637 3632
3638 Attribute* UniqueElementData::attributeItem(unsigned index) 3633 Attribute* UniqueElementData::attributeItem(unsigned index)
3639 { 3634 {
3640 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3635 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3641 return &m_attributeVector.at(index); 3636 return &m_attributeVector.at(index);
3642 } 3637 }
3643 3638
3644 } // namespace WebCore 3639 } // 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