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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 ComputedStyle* resolvedStyle = nullptr; 529 ComputedStyle* resolvedStyle = nullptr;
530 bool performingReattach = false; 530 bool performingReattach = false;
531 bool clearInvalidation = false; 531 bool clearInvalidation = false;
532 532
533 AttachContext() { } 533 AttachContext() { }
534 }; 534 };
535 535
536 // Attaches this node to the layout tree. This calculates the style to be ap plied to the node and creates an 536 // Attaches this node to the layout tree. This calculates the style to be ap plied to the node and creates an
537 // appropriate LayoutObject which will be inserted into the tree (except whe n the style has display: none). This 537 // appropriate LayoutObject which will be inserted into the tree (except whe n the style has display: none). This
538 // makes the node visible in the FrameView. 538 // makes the node visible in the FrameView.
539 virtual void attach(const AttachContext& = AttachContext()); 539 virtual void attachLayoutTree(const AttachContext& = AttachContext());
540 540
541 // Detaches the node from the layout tree, making it invisible in the render ed view. This method will remove 541 // Detaches the node from the layout tree, making it invisible in the render ed view. This method will remove
542 // the node's layout object from the layout tree and delete it. 542 // the node's layout object from the layout tree and delete it.
543 virtual void detach(const AttachContext& = AttachContext()); 543 virtual void detach(const AttachContext& = AttachContext());
544 544
545 void reattach(const AttachContext& = AttachContext()); 545 void reattach(const AttachContext& = AttachContext());
546 void lazyReattachIfAttached(); 546 void lazyReattachIfAttached();
547 547
548 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element). 548 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element).
549 bool shouldCallRecalcStyle(StyleRecalcChange); 549 bool shouldCallRecalcStyle(StyleRecalcChange);
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 } // namespace blink 917 } // namespace blink
918 918
919 #ifndef NDEBUG 919 #ifndef NDEBUG
920 // Outside the WebCore namespace for ease of invocation from gdb. 920 // Outside the WebCore namespace for ease of invocation from gdb.
921 void showNode(const blink::Node*); 921 void showNode(const blink::Node*);
922 void showTree(const blink::Node*); 922 void showTree(const blink::Node*);
923 void showNodePath(const blink::Node*); 923 void showNodePath(const blink::Node*);
924 #endif 924 #endif
925 925
926 #endif // Node_h 926 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698