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

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: Fix a crashers (everything is building!) 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
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 RenderStyle* renderStyle() const; 547 const RenderStyle* renderStyle() const;
548 RenderStyle* parentRenderStyle() const; 548 RenderStyle* mutableRenderStyle() const;
549 const RenderStyle* parentRenderStyle() const;
549 550
550 RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); } 551 RenderStyle* computedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { ret urn virtualComputedStyle(pseudoElementSpecifier); }
551 552
552 // ------------------------------------------------------------------------- ---- 553 // ------------------------------------------------------------------------- ----
553 // Notification of document structure changes (see ContainerNode.h for more notification methods) 554 // Notification of document structure changes (see ContainerNode.h for more notification methods)
554 // 555 //
555 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also 556 // 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. 557 // 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.
557 // This is similar to the DOMNodeInsertedIntoDocument DOM event, but does no t require the overhead of event 558 // This is similar to the DOMNodeInsertedIntoDocument DOM event, but does no t require the overhead of event
558 // dispatching. 559 // dispatching.
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 } // namespace blink 904 } // namespace blink
904 905
905 #ifndef NDEBUG 906 #ifndef NDEBUG
906 // Outside the WebCore namespace for ease of invocation from gdb. 907 // Outside the WebCore namespace for ease of invocation from gdb.
907 void showNode(const blink::Node*); 908 void showNode(const blink::Node*);
908 void showTree(const blink::Node*); 909 void showTree(const blink::Node*);
909 void showNodePath(const blink::Node*); 910 void showNodePath(const blink::Node*);
910 #endif 911 #endif
911 912
912 #endif // Node_h 913 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698