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

Side by Side Diff: trunk/Source/core/dom/Node.h

Issue 948053002: Revert 190605 "Make RenderObject::style() return a const object" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « trunk/Source/core/dom/FirstLetterPseudoElement.cpp ('k') | trunk/Source/core/dom/Node.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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 bool inDetach() const; 534 bool inDetach() const;
535 #endif 535 #endif
536 536
537 void reattach(const AttachContext& = AttachContext()); 537 void reattach(const AttachContext& = AttachContext());
538 void lazyReattachIfAttached(); 538 void lazyReattachIfAttached();
539 539
540 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element). 540 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element).
541 bool shouldCallRecalcStyle(StyleRecalcChange); 541 bool shouldCallRecalcStyle(StyleRecalcChange);
542 542
543 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement). 543 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement).
544 const LayoutStyle* layoutStyle() const; 544 LayoutStyle* layoutStyle() const;
545 LayoutStyle* mutableLayoutStyle() const; 545 LayoutStyle* parentLayoutStyle() const;
546 const LayoutStyle* parentLayoutStyle() const;
547 546
548 const LayoutStyle& layoutStyleRef() const; 547 const LayoutStyle& layoutStyleRef() const;
549 548
550 LayoutStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); } 549 LayoutStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); }
551 550
552 // ------------------------------------------------------------------------- ---- 551 // ------------------------------------------------------------------------- ----
553 // Notification of document structure changes (see ContainerNode.h for more notification methods) 552 // Notification of document structure changes (see ContainerNode.h for more notification methods)
554 // 553 //
555 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also 554 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also
556 // when a node is added through the DOM methods insertBefore(), appendChild( ) or replaceChild(). The call happens _after_ the node has been added to the tre e. 555 // when a node is added through the DOM methods insertBefore(), appendChild( ) or replaceChild(). The call happens _after_ the node has been added to the tre e.
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 } // namespace blink 902 } // namespace blink
904 903
905 #ifndef NDEBUG 904 #ifndef NDEBUG
906 // Outside the WebCore namespace for ease of invocation from gdb. 905 // Outside the WebCore namespace for ease of invocation from gdb.
907 void showNode(const blink::Node*); 906 void showNode(const blink::Node*);
908 void showTree(const blink::Node*); 907 void showTree(const blink::Node*);
909 void showNodePath(const blink::Node*); 908 void showNodePath(const blink::Node*);
910 #endif 909 #endif
911 910
912 #endif // Node_h 911 #endif // Node_h
OLDNEW
« no previous file with comments | « trunk/Source/core/dom/FirstLetterPseudoElement.cpp ('k') | trunk/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698