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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Remove any cases that are forcing the newStyle on the old LayoutObject Created 4 years, 2 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 void reattachLayoutTree(const AttachContext& = AttachContext()); 521 void reattachLayoutTree(const AttachContext& = AttachContext());
522 void lazyReattachIfAttached(); 522 void lazyReattachIfAttached();
523 523
524 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element). 524 // Returns true if recalcStyle should be called on the object, if there is s uch a method (on Document and Element).
525 bool shouldCallRecalcStyle(StyleRecalcChange); 525 bool shouldCallRecalcStyle(StyleRecalcChange);
526 526
527 // Wrapper for nodes that don't have a layoutObject, but still cache the sty le (like HTMLOptionElement). 527 // Wrapper for nodes that don't have a layoutObject, but still cache the sty le (like HTMLOptionElement).
528 ComputedStyle* mutableComputedStyle() const; 528 ComputedStyle* mutableComputedStyle() const;
529 const ComputedStyle* computedStyle() const; 529 const ComputedStyle* computedStyle() const;
530 void setComputedStyle(PassRefPtr<ComputedStyle>);
530 const ComputedStyle* parentComputedStyle() const; 531 const ComputedStyle* parentComputedStyle() const;
531 532
532 const ComputedStyle& computedStyleRef() const; 533 const ComputedStyle& computedStyleRef() const;
533 534
534 const ComputedStyle* ensureComputedStyle(PseudoId pseudoElementSpecifier = P seudoIdNone) { return virtualEnsureComputedStyle(pseudoElementSpecifier); } 535 const ComputedStyle* ensureComputedStyle(PseudoId pseudoElementSpecifier = P seudoIdNone) { return virtualEnsureComputedStyle(pseudoElementSpecifier); }
535 536
536 // ------------------------------------------------------------------------- ---- 537 // ------------------------------------------------------------------------- ----
537 // Notification of document structure changes (see ContainerNode.h for more notification methods) 538 // Notification of document structure changes (see ContainerNode.h for more notification methods)
538 // 539 //
539 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also 540 // At first, WebKit notifies the node that it has been inserted into the doc ument. This is called during document parsing, and also
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } // namespace blink 885 } // namespace blink
885 886
886 #ifndef NDEBUG 887 #ifndef NDEBUG
887 // Outside the WebCore namespace for ease of invocation from gdb. 888 // Outside the WebCore namespace for ease of invocation from gdb.
888 void showNode(const blink::Node*); 889 void showNode(const blink::Node*);
889 void showTree(const blink::Node*); 890 void showTree(const blink::Node*);
890 void showNodePath(const blink::Node*); 891 void showNodePath(const blink::Node*);
891 #endif 892 #endif
892 893
893 #endif // Node_h 894 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareDataTest.cpp ('k') | third_party/WebKit/Source/core/dom/NodeComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698