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

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

Issue 2704133004: Perf bots for https://codereview.chromium.org/2473743003 (Closed)
Patch Set: Created 3 years, 10 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 bool hasEquivalentAttributes(const Element* other) const; 410 bool hasEquivalentAttributes(const Element* other) const;
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 StyleRecalcChange rebuildLayoutTree(); 420 void rebuildLayoutTree();
421 void pseudoStateChanged(CSSSelector::PseudoType); 421 void pseudoStateChanged(CSSSelector::PseudoType);
422 void setAnimationStyleChange(bool); 422 void setAnimationStyleChange(bool);
423 void clearAnimationStyleChange(); 423 void clearAnimationStyleChange();
424 void setNeedsAnimationStyleRecalc(); 424 void setNeedsAnimationStyleRecalc();
425 425
426 void setNeedsCompositingUpdate(); 426 void setNeedsCompositingUpdate();
427 427
428 bool supportsStyleSharing() const; 428 bool supportsStyleSharing() const;
429 429
430 ElementShadow* shadow() const; 430 ElementShadow* shadow() const;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 void inlineStyleChanged(); 829 void inlineStyleChanged();
830 void setInlineStyleFromString(const AtomicString&); 830 void setInlineStyleFromString(const AtomicString&);
831 831
832 // If the only inherited changes in the parent element are independent, 832 // If the only inherited changes in the parent element are independent,
833 // these changes can be directly propagated to this element (the child). 833 // these changes can be directly propagated to this element (the child).
834 // If these conditions are met, propagates the changes to the current style 834 // If these conditions are met, propagates the changes to the current style
835 // and returns the new style. Otherwise, returns null. 835 // and returns the new style. Otherwise, returns null.
836 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); 836 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
837 837
838 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*); 838 StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*);
839 void reattachPseudoElementLayoutTree(PseudoId);
840 void rebuildShadowRootLayoutTree();
839 inline void checkForEmptyStyleChange(); 841 inline void checkForEmptyStyleChange();
840 842
841 void updatePseudoElement(PseudoId, StyleRecalcChange); 843 void updatePseudoElement(PseudoId, StyleRecalcChange);
842 bool updateFirstLetter(Element*); 844 bool updateFirstLetter(Element*);
843 845
844 inline void createPseudoElementIfNeeded(PseudoId); 846 inline void createPseudoElementIfNeeded(PseudoId);
845 847
846 ShadowRoot* shadowRoot() const; 848 ShadowRoot* shadowRoot() const;
847 849
848 // FIXME: Everyone should allow author shadows. 850 // FIXME: Everyone should allow author shadows.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1193 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1192 static T* create(const QualifiedName&, Document&) 1194 static T* create(const QualifiedName&, Document&)
1193 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1195 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1194 T* T::create(const QualifiedName& tagName, Document& document) { \ 1196 T* T::create(const QualifiedName& tagName, Document& document) { \
1195 return new T(tagName, document); \ 1197 return new T(tagName, document); \
1196 } 1198 }
1197 1199
1198 } // namespace blink 1200 } // namespace blink
1199 1201
1200 #endif // Element_h 1202 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.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