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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp

Issue 2397033002: Reflow comments in //third_party/WebKit/Source/core/editing/iterators (Closed)
Patch Set: Created 4 years, 2 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/editing/iterators/TextIteratorTextState.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
index 6724a4feb15356f47ad955623294b9f6ab0aee98..0b663336eb447d0f34300cc2249ac41403b7022b 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
+ * rights reserved.
* Copyright (C) 2005 Alexey Proskuryakov.
*
* Redistribution and use in source and binary forms, with or without
@@ -122,13 +123,15 @@ void TextIteratorTextState::spliceBuffer(UChar c,
m_hasEmitted = true;
// Remember information with which to construct the TextIterator::range().
- // NOTE: textNode is often not a text node, so the range will specify child nodes of positionNode
+ // NOTE: textNode is often not a text node, so the range will specify child
+ // nodes of positionNode
m_positionNode = textNode;
m_positionOffsetBaseNode = offsetBaseNode;
m_positionStartOffset = textStartOffset;
m_positionEndOffset = textEndOffset;
- // remember information with which to construct the TextIterator::characters() and length()
+ // remember information with which to construct the TextIterator::characters()
+ // and length()
m_singleCharacterBuffer = c;
DCHECK(m_singleCharacterBuffer);
m_textLength = 1;
@@ -187,7 +190,8 @@ void TextIteratorTextState::appendTextTo(ForwardsTextBuffer* output,
output->pushRange(string().characters16() + offset, lengthToAppend);
return;
}
- NOTREACHED(); // "We shouldn't be attempting to append text that doesn't exist.";
+ // We shouldn't be attempting to append text that doesn't exist.
+ NOTREACHED();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698