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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1741073002: Rename enums/functions that collide in chromium style in core/layout/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-6
Patch Set: get-names-7: 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/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 9793a7e6714b61b6a6e07379afc26ae23cf00e83..e9d61a5629a4f2d68823da1dbcc0161b1a708cfb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1701,14 +1701,14 @@ Position LayoutBlock::positionForBox(InlineBox *box, bool start) const
if (!box)
return Position();
- if (!box->lineLayoutItem().nonPseudoNode())
+ if (!box->getLineLayoutItem().nonPseudoNode())
return Position::editingPositionOf(nonPseudoNode(), start ? caretMinOffset() : caretMaxOffset());
if (!box->isInlineTextBox())
- return Position::editingPositionOf(box->lineLayoutItem().nonPseudoNode(), start ? box->lineLayoutItem().caretMinOffset() : box->lineLayoutItem().caretMaxOffset());
+ return Position::editingPositionOf(box->getLineLayoutItem().nonPseudoNode(), start ? box->getLineLayoutItem().caretMinOffset() : box->getLineLayoutItem().caretMaxOffset());
InlineTextBox* textBox = toInlineTextBox(box);
- return Position::editingPositionOf(box->lineLayoutItem().nonPseudoNode(), start ? textBox->start() : textBox->start() + textBox->len());
+ return Position::editingPositionOf(box->getLineLayoutItem().nonPseudoNode(), start ? textBox->start() : textBox->start() + textBox->len());
}
static inline bool isEditingBoundary(LayoutObject* ancestor, LayoutObject* child)
@@ -1823,9 +1823,9 @@ PositionWithAffinity LayoutBlock::positionForPointWithInlineChildren(const Layou
LayoutPoint point(pointInLogicalContents.x(), closestBox->root().blockDirectionPointInLine());
if (!isHorizontalWritingMode())
point = point.transposedPoint();
- if (closestBox->lineLayoutItem().isAtomicInlineLevel())
- return positionForPointRespectingEditingBoundaries(this, LineLayoutBox(closestBox->lineLayoutItem()), point);
- return closestBox->lineLayoutItem().positionForPoint(point);
+ if (closestBox->getLineLayoutItem().isAtomicInlineLevel())
+ return positionForPointRespectingEditingBoundaries(this, LineLayoutBox(closestBox->getLineLayoutItem()), point);
+ return closestBox->getLineLayoutItem().positionForPoint(point);
}
if (lastRootBoxWithChildren) {

Powered by Google App Engine
This is Rietveld 408576698