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

Unified Diff: Source/core/dom/Node.h

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/LayoutTreeBuilder.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 23fcfb70fec692097e2088331b0d1c8268b8f559..cd28ab1871366679d2b56f05f43375cfc88566b1 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -99,7 +99,7 @@ enum StyleChangeType {
class NodeRareDataBase {
public:
- LayoutObject* renderer() const { return m_layoutObject; }
+ LayoutObject* layoutObject() const { return m_layoutObject; }
void setLayoutObject(LayoutObject* layoutObject) { m_layoutObject = layoutObject; }
protected:
@@ -498,9 +498,9 @@ public:
// -----------------------------------------------------------------------------
// Integration with rendering tree
- // As renderer() includes a branch you should avoid calling it repeatedly in hot code paths.
+ // As layoutObject() includes a branch you should avoid calling it repeatedly in hot code paths.
// Note that if a Node has a renderer, it's parentNode is guaranteed to have one as well.
- LayoutObject* renderer() const { return hasRareData() ? m_data.m_rareData->renderer() : m_data.m_layoutObject; };
+ LayoutObject* layoutObject() const { return hasRareData() ? m_data.m_rareData->layoutObject() : m_data.m_layoutObject; };
void setLayoutObject(LayoutObject* layoutObject)
{
if (hasRareData())
« no previous file with comments | « Source/core/dom/LayoutTreeBuilder.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698