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

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

Issue 2117143003: 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: Added useful sizeof check comment Created 4 years, 5 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check. 642 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
643 643
644 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 644 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
645 645
646 void updatePresentationAttributeStyle(); 646 void updatePresentationAttributeStyle();
647 647
648 void inlineStyleChanged(); 648 void inlineStyleChanged();
649 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 649 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
650 void setInlineStyleFromString(const AtomicString&); 650 void setInlineStyleFromString(const AtomicString&);
651 651
652 // Returns whether the only inherited changes in the parent element are
653 // independent, and hence these changes can be directly propagated to this
654 // element (the child).
655 bool canPropagateInheritedProperties(StyleRecalcChange);
656
652 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 657 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
653 // TODO(nainar): Make this const ComputedStyle&. 658 // TODO(nainar): Make this const ComputedStyle&.
654 StyleRecalcChange buildOwnLayout(ComputedStyle&); 659 StyleRecalcChange buildOwnLayout(ComputedStyle&);
655 660
656 inline void checkForEmptyStyleChange(); 661 inline void checkForEmptyStyleChange();
657 662
658 void updatePseudoElement(PseudoId, StyleRecalcChange); 663 void updatePseudoElement(PseudoId, StyleRecalcChange);
659 bool updateFirstLetter(Element*); 664 bool updateFirstLetter(Element*);
660 665
661 inline void createPseudoElementIfNeeded(PseudoId); 666 inline void createPseudoElementIfNeeded(PseudoId);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 static T* create(const QualifiedName&, Document&) 973 static T* create(const QualifiedName&, Document&)
969 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 974 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
970 T* T::create(const QualifiedName& tagName, Document& document) \ 975 T* T::create(const QualifiedName& tagName, Document& document) \
971 { \ 976 { \
972 return new T(tagName, document); \ 977 return new T(tagName, document); \
973 } 978 }
974 979
975 } // namespace blink 980 } // namespace blink
976 981
977 #endif // Element_h 982 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698