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

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

Issue 21165005: Support author Shadow DOM for INPUT elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests 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
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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 virtual bool rendererIsNeeded(const RenderStyle&); 437 virtual bool rendererIsNeeded(const RenderStyle&);
438 bool recalcStyle(StyleRecalcChange); 438 bool recalcStyle(StyleRecalcChange);
439 void didAffectSelector(AffectedSelectorMask); 439 void didAffectSelector(AffectedSelectorMask);
440 440
441 ElementShadow* shadow() const; 441 ElementShadow* shadow() const;
442 ElementShadow* ensureShadow(); 442 ElementShadow* ensureShadow();
443 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionState&); 443 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionState&);
444 ShadowRoot* shadowRoot() const; 444 ShadowRoot* shadowRoot() const;
445 445
446 bool hasAuthorShadowRoot() const { return shadowRoot(); } 446 bool hasAuthorShadowRoot() const { return shadowRoot(); }
447 447 virtual void didAddShadowRoot(ShadowRoot&);
Hajime Morrita 2013/09/10 06:35:59 It isn't great to have both didAddShadowRoot() and
tkent 2013/09/10 06:42:35 We can. We need to update all of existing didAddUs
448 ShadowRoot* userAgentShadowRoot() const; 448 ShadowRoot* userAgentShadowRoot() const;
449 ShadowRoot* ensureUserAgentShadowRoot(); 449 ShadowRoot* ensureUserAgentShadowRoot();
450 virtual const AtomicString& shadowPseudoId() const { return !part().isEmpty( ) ? part() : pseudo(); } 450 virtual const AtomicString& shadowPseudoId() const { return !part().isEmpty( ) ? part() : pseudo(); }
451 451
452 RenderStyle* computedStyle(PseudoId = NOPSEUDO); 452 RenderStyle* computedStyle(PseudoId = NOPSEUDO);
453 453
454 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.) 454 // Methods for indicating the style is affected by dynamic updates (e.g., ch ildren changing, our position changing in our sibling list, etc.)
455 bool styleAffectedByEmpty() const { return hasRareData() && rareDataStyleAff ectedByEmpty(); } 455 bool styleAffectedByEmpty() const { return hasRareData() && rareDataStyleAff ectedByEmpty(); }
456 bool childrenAffectedByHover() const { return hasRareData() && rareDataChild renAffectedByHover(); } 456 bool childrenAffectedByHover() const { return hasRareData() && rareDataChild renAffectedByHover(); }
457 bool childrenAffectedByActive() const { return hasRareData() && rareDataChil drenAffectedByActive(); } 457 bool childrenAffectedByActive() const { return hasRareData() && rareDataChil drenAffectedByActive(); }
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 1092
1093 inline const Attribute* ElementData::attributeItem(unsigned index) const 1093 inline const Attribute* ElementData::attributeItem(unsigned index) const
1094 { 1094 {
1095 RELEASE_ASSERT(index < length()); 1095 RELEASE_ASSERT(index < length());
1096 return attributeBase() + index; 1096 return attributeBase() + index;
1097 } 1097 }
1098 1098
1099 } // namespace 1099 } // namespace
1100 1100
1101 #endif 1101 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698