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

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

Issue 2117143003: Add a fast-path for independent inherited properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computedstyle_cleanup_rename_final_member_fields
Patch Set: Small rename 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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 867
868 AttachContext context; 868 AttachContext context;
869 context.performingReattach = true; 869 context.performingReattach = true;
870 870
871 detach(context); 871 detach(context);
872 markAncestorsWithChildNeedsStyleRecalc(); 872 markAncestorsWithChildNeedsStyleRecalc();
873 } 873 }
874 874
875 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change) 875 inline bool Node::shouldCallRecalcStyle(StyleRecalcChange change)
876 { 876 {
877 return change >= Inherit || needsStyleRecalc() || childNeedsStyleRecalc(); 877 return change >= IndependentInherit || needsStyleRecalc() || childNeedsStyle Recalc();
878 } 878 }
879 879
880 inline bool isTreeScopeRoot(const Node* node) 880 inline bool isTreeScopeRoot(const Node* node)
881 { 881 {
882 return !node || node->isDocumentNode() || node->isShadowRoot(); 882 return !node || node->isDocumentNode() || node->isShadowRoot();
883 } 883 }
884 884
885 inline bool isTreeScopeRoot(const Node& node) 885 inline bool isTreeScopeRoot(const Node& node)
886 { 886 {
887 return node.isDocumentNode() || node.isShadowRoot(); 887 return node.isDocumentNode() || node.isShadowRoot();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 } // namespace blink 921 } // namespace blink
922 922
923 #ifndef NDEBUG 923 #ifndef NDEBUG
924 // Outside the WebCore namespace for ease of invocation from gdb. 924 // Outside the WebCore namespace for ease of invocation from gdb.
925 void showNode(const blink::Node*); 925 void showNode(const blink::Node*);
926 void showTree(const blink::Node*); 926 void showTree(const blink::Node*);
927 void showNodePath(const blink::Node*); 927 void showNodePath(const blink::Node*);
928 #endif 928 #endif
929 929
930 #endif // Node_h 930 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698