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

Unified Diff: third_party/WebKit/Source/core/layout/line/BreakingContext.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: rebase 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/line/BreakingContext.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/BreakingContext.cpp b/third_party/WebKit/Source/core/layout/line/BreakingContext.cpp
index 96d2e824158794c6005050ad2d1b618c9444ebe5..80e1877f7574326abf4d177286dd65ddad48846e 100644
--- a/third_party/WebKit/Source/core/layout/line/BreakingContext.cpp
+++ b/third_party/WebKit/Source/core/layout/line/BreakingContext.cpp
@@ -27,15 +27,15 @@ namespace blink {
InlineIterator BreakingContext::handleEndOfLine()
{
- if (m_lineBreak == m_resolver.position() && (!m_lineBreak.lineLayoutItem() || !m_lineBreak.lineLayoutItem().isBR())) {
+ if (m_lineBreak == m_resolver.position() && (!m_lineBreak.getLineLayoutItem() || !m_lineBreak.getLineLayoutItem().isBR())) {
// we just add as much as possible
if (m_blockStyle->whiteSpace() == PRE && !m_current.offset()) {
m_lineBreak.moveTo(m_lastObject, m_lastObject.isText() ? m_lastObject.length() : 0);
- } else if (m_lineBreak.lineLayoutItem()) {
+ } else if (m_lineBreak.getLineLayoutItem()) {
// Don't ever break in the middle of a word if we can help it.
// There's no room at all. We just have to be on this line,
// even though we'll spill out.
- m_lineBreak.moveTo(m_current.lineLayoutItem(), m_current.offset());
+ m_lineBreak.moveTo(m_current.getLineLayoutItem(), m_current.offset());
}
}
@@ -59,7 +59,7 @@ InlineIterator BreakingContext::handleEndOfLine()
do {
m_lineBreak.setOffset(m_lineBreak.offset() - 1);
m_lineBreak.increment();
- } while (!m_lineBreak.atEnd() && isEmptyInline(m_lineBreak.lineLayoutItem()));
+ } while (!m_lineBreak.atEnd() && isEmptyInline(m_lineBreak.getLineLayoutItem()));
}
return m_lineBreak;

Powered by Google App Engine
This is Rietveld 408576698