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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Remove any cases that are forcing the newStyle on the old LayoutObject Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 void inlineStyleChanged(); 677 void inlineStyleChanged();
678 void setInlineStyleFromString(const AtomicString&); 678 void setInlineStyleFromString(const AtomicString&);
679 679
680 // If the only inherited changes in the parent element are independent, 680 // If the only inherited changes in the parent element are independent,
681 // these changes can be directly propagated to this element (the child). 681 // these changes can be directly propagated to this element (the child).
682 // If these conditions are met, propagates the changes to the current style 682 // If these conditions are met, propagates the changes to the current style
683 // and returns the new style. Otherwise, returns null. 683 // and returns the new style. Otherwise, returns null.
684 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange); 684 PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
685 685
686 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 686 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
687 // TODO(nainar): Make this const ComputedStyle&. 687 StyleRecalcChange buildLayoutTree();
688 StyleRecalcChange buildLayoutTree(ComputedStyle&);
689 688
690 inline void checkForEmptyStyleChange(); 689 inline void checkForEmptyStyleChange();
691 690
692 void updatePseudoElement(PseudoId, StyleRecalcChange); 691 void updatePseudoElement(PseudoId, StyleRecalcChange);
693 bool updateFirstLetter(Element*); 692 bool updateFirstLetter(Element*);
694 693
695 inline void createPseudoElementIfNeeded(PseudoId); 694 inline void createPseudoElementIfNeeded(PseudoId);
696 695
697 ShadowRoot* shadowRoot() const; 696 ShadowRoot* shadowRoot() const;
698 697
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 static T* create(const QualifiedName&, Document&) 996 static T* create(const QualifiedName&, Document&)
998 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 997 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
999 T* T::create(const QualifiedName& tagName, Document& document) \ 998 T* T::create(const QualifiedName& tagName, Document& document) \
1000 { \ 999 { \
1001 return new T(tagName, document); \ 1000 return new T(tagName, document); \
1002 } 1001 }
1003 1002
1004 } // namespace blink 1003 } // namespace blink
1005 1004
1006 #endif // Element_h 1005 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698