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

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

Issue 2213223004: Revert of Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computedstyle_cleanup_rename_final_member_fields
Patch Set: Created 4 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
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check. 647 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
648 648
649 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 649 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
650 650
651 void updatePresentationAttributeStyle(); 651 void updatePresentationAttributeStyle();
652 652
653 void inlineStyleChanged(); 653 void inlineStyleChanged();
654 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 654 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
655 void setInlineStyleFromString(const AtomicString&); 655 void setInlineStyleFromString(const AtomicString&);
656 656
657 // If the only inherited changes in the parent element are independent,
658 // these changes can be directly propagated to this element (the child).
659 // If these conditions are met, propagates the changes to the current style
660 // and returns the new style. Otherwise, returns null.
661 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
662
663 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 657 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
664 // TODO(nainar): Make this const ComputedStyle&. 658 // TODO(nainar): Make this const ComputedStyle&.
665 StyleRecalcChange buildLayoutTree(ComputedStyle&); 659 StyleRecalcChange buildLayoutTree(ComputedStyle&);
666 660
667 inline void checkForEmptyStyleChange(); 661 inline void checkForEmptyStyleChange();
668 662
669 void updatePseudoElement(PseudoId, StyleRecalcChange); 663 void updatePseudoElement(PseudoId, StyleRecalcChange);
670 bool updateFirstLetter(Element*); 664 bool updateFirstLetter(Element*);
671 665
672 inline void createPseudoElementIfNeeded(PseudoId); 666 inline void createPseudoElementIfNeeded(PseudoId);
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 static T* create(const QualifiedName&, Document&) 972 static T* create(const QualifiedName&, Document&)
979 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 973 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
980 T* T::create(const QualifiedName& tagName, Document& document) \ 974 T* T::create(const QualifiedName& tagName, Document& document) \
981 { \ 975 { \
982 return new T(tagName, document); \ 976 return new T(tagName, document); \
983 } 977 }
984 978
985 } // namespace blink 979 } // namespace blink
986 980
987 #endif // Element_h 981 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolverStats.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698