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

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

Issue 2727233005: Remove calls to styleForLayoutObject() in LayoutTreeBuilder::style() (Closed)
Patch Set: Created 3 years, 9 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 virtual void copyNonAttributePropertiesFromElement(const Element&) {} 412 virtual void copyNonAttributePropertiesFromElement(const Element&) {}
413 413
414 void attachLayoutTree(const AttachContext& = AttachContext()) override; 414 void attachLayoutTree(const AttachContext& = AttachContext()) override;
415 void detachLayoutTree(const AttachContext& = AttachContext()) override; 415 void detachLayoutTree(const AttachContext& = AttachContext()) override;
416 416
417 virtual LayoutObject* createLayoutObject(const ComputedStyle&); 417 virtual LayoutObject* createLayoutObject(const ComputedStyle&);
418 virtual bool layoutObjectIsNeeded(const ComputedStyle&); 418 virtual bool layoutObjectIsNeeded(const ComputedStyle&);
419 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); 419 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr);
420 void rebuildLayoutTree(); 420 void rebuildLayoutTree();
421 void recalcStyleForLayout();
421 void pseudoStateChanged(CSSSelector::PseudoType); 422 void pseudoStateChanged(CSSSelector::PseudoType);
422 void setAnimationStyleChange(bool); 423 void setAnimationStyleChange(bool);
423 void clearAnimationStyleChange(); 424 void clearAnimationStyleChange();
424 void setNeedsAnimationStyleRecalc(); 425 void setNeedsAnimationStyleRecalc();
425 426
426 void setNeedsCompositingUpdate(); 427 void setNeedsCompositingUpdate();
427 428
428 bool supportsStyleSharing() const; 429 bool supportsStyleSharing() const;
429 430
430 ElementShadow* shadow() const; 431 ElementShadow* shadow() const;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 843
843 // If the only inherited changes in the parent element are independent, 844 // If the only inherited changes in the parent element are independent,
844 // these changes can be directly propagated to this element (the child). 845 // these changes can be directly propagated to this element (the child).
845 // If these conditions are met, propagates the changes to the current style 846 // If these conditions are met, propagates the changes to the current style
846 // and returns the new style. Otherwise, returns null. 847 // and returns the new style. Otherwise, returns null.
847 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); 848 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
848 849
849 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); 850 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*);
850 void reattachPseudoElementLayoutTree(PseudoId); 851 void reattachPseudoElementLayoutTree(PseudoId);
851 void rebuildShadowRootLayoutTree(); 852 void rebuildShadowRootLayoutTree();
853 void recalcOwnStyleForLayout();
854 void recalcShadowRootStylesForLayout();
852 inline void checkForEmptyStyleChange(); 855 inline void checkForEmptyStyleChange();
853 856
854 void updatePseudoElement(PseudoId, StyleRecalcChange); 857 void updatePseudoElement(PseudoId, StyleRecalcChange);
855 bool updateFirstLetter(Element*); 858 bool updateFirstLetter(Element*);
856 859
857 inline void createPseudoElementIfNeeded(PseudoId); 860 inline void createPseudoElementIfNeeded(PseudoId);
858 861
859 ShadowRoot* shadowRoot() const; 862 ShadowRoot* shadowRoot() const;
860 863
861 // FIXME: Everyone should allow author shadows. 864 // FIXME: Everyone should allow author shadows.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1207 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1205 static T* create(const QualifiedName&, Document&) 1208 static T* create(const QualifiedName&, Document&)
1206 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1209 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1207 T* T::create(const QualifiedName& tagName, Document& document) { \ 1210 T* T::create(const QualifiedName& tagName, Document& document) { \
1208 return new T(tagName, document); \ 1211 return new T(tagName, document); \
1209 } 1212 }
1210 1213
1211 } // namespace blink 1214 } // namespace blink
1212 1215
1213 #endif // Element_h 1216 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698