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

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: Sending for Bugs' input 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 660
661 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason); 661 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi ficationReason);
662 662
663 void updatePresentationAttributeStyle(); 663 void updatePresentationAttributeStyle();
664 664
665 void inlineStyleChanged(); 665 void inlineStyleChanged();
666 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 666 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
667 void setInlineStyleFromString(const AtomicString&); 667 void setInlineStyleFromString(const AtomicString&);
668 668
669 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 669 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
670 // TODO(nainar): Make this const ComputedStyle&. 670 StyleRecalcChange buildLayoutTree();
671 StyleRecalcChange buildLayoutTree(ComputedStyle&);
672 671
673 inline void checkForEmptyStyleChange(); 672 inline void checkForEmptyStyleChange();
674 673
675 void updatePseudoElement(PseudoId, StyleRecalcChange); 674 void updatePseudoElement(PseudoId, StyleRecalcChange);
676 bool updateFirstLetter(Element*); 675 bool updateFirstLetter(Element*);
677 676
678 inline void createPseudoElementIfNeeded(PseudoId); 677 inline void createPseudoElementIfNeeded(PseudoId);
679 678
680 ShadowRoot* shadowRoot() const; 679 ShadowRoot* shadowRoot() const;
681 680
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 static T* create(const QualifiedName&, Document&) 983 static T* create(const QualifiedName&, Document&)
985 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 984 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
986 T* T::create(const QualifiedName& tagName, Document& document) \ 985 T* T::create(const QualifiedName& tagName, Document& document) \
987 { \ 986 { \
988 return new T(tagName, document); \ 987 return new T(tagName, document); \
989 } 988 }
990 989
991 } // namespace blink 990 } // namespace blink
992 991
993 #endif // Element_h 992 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | third_party/WebKit/Source/core/dom/NodeComputedStyle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698