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

Unified Diff: Source/core/editing/TextIterator.cpp

Issue 184023003: Make InlineBox::renderer() and related subclass methods return reference. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/core/editing/TextIterator.cpp
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp
index a0e041e37711a138cb41304f1836e854b95ce80b..3bdbfc4964024dd00b4d953193719d2d5883fd3a 100644
--- a/Source/core/editing/TextIterator.cpp
+++ b/Source/core/editing/TextIterator.cpp
@@ -652,7 +652,7 @@ void TextIterator::handleTextBox()
} else {
nextTextBox = m_textBox->nextTextBox();
}
- ASSERT(!nextTextBox || nextTextBox->renderer() == renderer);
+ ASSERT(!nextTextBox || &nextTextBox->renderer() == renderer);
if (runStart < runEnd) {
// Handle either a single newline character (which becomes a space),

Powered by Google App Engine
This is Rietveld 408576698