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

Unified Diff: third_party/WebKit/Source/core/dom/Text.cpp

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 10 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
Index: third_party/WebKit/Source/core/dom/Text.cpp
diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
index 1d0c852f1f6469e35c0f09a26403fde8c3b34b0f..37c6599825e57f7d23265e26912547b13383adec 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -66,7 +66,7 @@ PassRefPtrWillBeRawPtr<Node> Text::mergeNextSiblingNodesIfPossible()
// Merge text nodes.
while (Node* nextSibling = this->nextSibling()) {
- if (nextSibling->nodeType() != TEXT_NODE)
+ if (nextSibling->getNodeType() != TEXT_NODE)
break;
RefPtrWillBeRawPtr<Text> nextText = toText(nextSibling);
@@ -135,7 +135,7 @@ PassRefPtrWillBeRawPtr<Text> Text::splitText(unsigned offset, ExceptionState& ex
static const Text* earliestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->previousSibling(); n; n = n->previousSibling()) {
- Node::NodeType type = n->nodeType();
+ Node::NodeType type = n->getNodeType();
if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
t = toText(n);
continue;
@@ -149,7 +149,7 @@ static const Text* earliestLogicallyAdjacentTextNode(const Text* t)
static const Text* latestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->nextSibling(); n; n = n->nextSibling()) {
- Node::NodeType type = n->nodeType();
+ Node::NodeType type = n->getNodeType();
if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
t = toText(n);
continue;
@@ -227,7 +227,7 @@ String Text::nodeName() const
return "#text";
}
-Node::NodeType Text::nodeType() const
+Node::NodeType Text::getNodeType() const
{
return TEXT_NODE;
}
@@ -369,7 +369,7 @@ void Text::reattachIfNeeded(const AttachContext& context)
AttachContext reattachContext(context);
reattachContext.performingReattach = true;
- if (styleChangeType() < NeedsReattachStyleChange)
+ if (getStyleChangeType() < NeedsReattachStyleChange)
detach(reattachContext);
if (layoutObjectIsNeeded)
LayoutTreeBuilderForText(*this, layoutParent->layoutObject()).createLayoutObject();

Powered by Google App Engine
This is Rietveld 408576698