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

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

Issue 23874007: Rename AttachBehavior to RecalcStyleBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix enum usage Created 7 years, 3 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
« no previous file with comments | « Source/core/dom/ContainerNode.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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 LazyAttachStyleChange = 3 << nodeStyleChangeShift, 93 LazyAttachStyleChange = 3 << nodeStyleChangeShift,
94 }; 94 };
95 95
96 // If the style change is from the renderer then we'll call setStyle on the 96 // If the style change is from the renderer then we'll call setStyle on the
97 // renderer even if the style computed from CSS is identical. 97 // renderer even if the style computed from CSS is identical.
98 enum StyleChangeSource { 98 enum StyleChangeSource {
99 StyleChangeFromCSS, 99 StyleChangeFromCSS,
100 StyleChangeFromRenderer 100 StyleChangeFromRenderer
101 }; 101 };
102 102
103 enum AttachBehavior {
104 DeprecatedAttachNow,
105 AttachLazily,
106 };
107
108 class NodeRareDataBase { 103 class NodeRareDataBase {
109 public: 104 public:
110 RenderObject* renderer() const { return m_renderer; } 105 RenderObject* renderer() const { return m_renderer; }
111 void setRenderer(RenderObject* renderer) { m_renderer = renderer; } 106 void setRenderer(RenderObject* renderer) { m_renderer = renderer; }
112 107
113 protected: 108 protected:
114 NodeRareDataBase(RenderObject* renderer) 109 NodeRareDataBase(RenderObject* renderer)
115 : m_renderer(renderer) 110 : m_renderer(renderer)
116 { } 111 { }
117 112
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 936
942 } //namespace 937 } //namespace
943 938
944 #ifndef NDEBUG 939 #ifndef NDEBUG
945 // Outside the WebCore namespace for ease of invocation from gdb. 940 // Outside the WebCore namespace for ease of invocation from gdb.
946 void showTree(const WebCore::Node*); 941 void showTree(const WebCore::Node*);
947 void showNodePath(const WebCore::Node*); 942 void showNodePath(const WebCore::Node*);
948 #endif 943 #endif
949 944
950 #endif 945 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698