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

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

Issue 2118393002: Reorganize Layout Tree Construction code to be its own function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final patch for landinh 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
« no previous file with comments | « no previous file | 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 652 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
653 // TODO(nainar): Make this const ComputedStyle&.
654 StyleRecalcChange buildOwnLayout(ComputedStyle&);
653 655
654 inline void checkForEmptyStyleChange(); 656 inline void checkForEmptyStyleChange();
655 657
656 void updatePseudoElement(PseudoId, StyleRecalcChange); 658 void updatePseudoElement(PseudoId, StyleRecalcChange);
657 bool updateFirstLetter(Element*); 659 bool updateFirstLetter(Element*);
658 660
659 inline void createPseudoElementIfNeeded(PseudoId); 661 inline void createPseudoElementIfNeeded(PseudoId);
660 662
661 ShadowRoot* shadowRoot() const; 663 ShadowRoot* shadowRoot() const;
662 664
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 static T* create(const QualifiedName&, Document&) 968 static T* create(const QualifiedName&, Document&)
967 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 969 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
968 T* T::create(const QualifiedName& tagName, Document& document) \ 970 T* T::create(const QualifiedName& tagName, Document& document) \
969 { \ 971 { \
970 return new T(tagName, document); \ 972 return new T(tagName, document); \
971 } 973 }
972 974
973 } // namespace blink 975 } // namespace blink
974 976
975 #endif // Element_h 977 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698