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

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

Issue 548693002: Share recalcChildStyle between Element and ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back parent scope for ShadowRoot. Created 6 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/ContainerNode.cpp ('k') | Source/core/dom/Element.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 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 558 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
559 559
560 void updatePresentationAttributeStyle(); 560 void updatePresentationAttributeStyle();
561 561
562 void inlineStyleChanged(); 562 void inlineStyleChanged();
563 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 563 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
564 void setInlineStyleFromString(const AtomicString&); 564 void setInlineStyleFromString(const AtomicString&);
565 565
566 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 566 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
567 void recalcChildStyle(StyleRecalcChange);
568 567
569 inline void checkForEmptyStyleChange(); 568 inline void checkForEmptyStyleChange();
570 569
571 void updatePseudoElement(PseudoId, StyleRecalcChange); 570 void updatePseudoElement(PseudoId, StyleRecalcChange);
572 571
573 inline void createPseudoElementIfNeeded(PseudoId); 572 inline void createPseudoElementIfNeeded(PseudoId);
574 573
575 // FIXME: Everyone should allow author shadows. 574 // FIXME: Everyone should allow author shadows.
576 virtual bool areAuthorShadowsAllowed() const { return true; } 575 virtual bool areAuthorShadowsAllowed() const { return true; }
577 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } 576 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { }
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
866 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
867 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
868 { \ 867 { \
869 return adoptRefWillBeNoop(new T(tagName, document)); \ 868 return adoptRefWillBeNoop(new T(tagName, document)); \
870 } 869 }
871 870
872 } // namespace 871 } // namespace
873 872
874 #endif // Element_h 873 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698