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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. 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 | « Source/core/dom/FirstLetterPseudoElement.cpp ('k') | 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool inDetach() const; 537 bool inDetach() const;
538 #endif 538 #endif
539 539
540 void reattach(const AttachContext& = AttachContext()); 540 void reattach(const AttachContext& = AttachContext());
541 void lazyReattachIfAttached(); 541 void lazyReattachIfAttached();
542 542
543 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element). 543 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element).
544 bool shouldCallRecalcStyle(StyleRecalcChange); 544 bool shouldCallRecalcStyle(StyleRecalcChange);
545 545
546 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement). 546 // Wrapper for nodes that don't have a renderer, but still cache the style ( like HTMLOptionElement).
547 LayoutStyle* layoutStyle() const; 547 const LayoutStyle* layoutStyle() const;
548 LayoutStyle* parentLayoutStyle() const; 548 LayoutStyle* mutableLayoutStyle() const;
549 const LayoutStyle* parentLayoutStyle() const;
549 550
550 const LayoutStyle& layoutStyleRef() const; 551 const LayoutStyle& layoutStyleRef() const;
551 552
552 LayoutStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); } 553 LayoutStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); }
553 554
554 // ------------------------------------------------------------------------- ---- 555 // ------------------------------------------------------------------------- ----
555 // Notification of document structure changes (see ContainerNode.h for more notification methods) 556 // Notification of document structure changes (see ContainerNode.h for more notification methods)
556 // 557 //
557 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also 558 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also
558 // 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. 559 // 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
905 } // namespace blink 906 } // namespace blink
906 907
907 #ifndef NDEBUG 908 #ifndef NDEBUG
908 // Outside the WebCore namespace for ease of invocation from gdb. 909 // Outside the WebCore namespace for ease of invocation from gdb.
909 void showNode(const blink::Node*); 910 void showNode(const blink::Node*);
910 void showTree(const blink::Node*); 911 void showTree(const blink::Node*);
911 void showNodePath(const blink::Node*); 912 void showNodePath(const blink::Node*);
912 #endif 913 #endif
913 914
914 #endif // Node_h 915 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/FirstLetterPseudoElement.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698