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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 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/InlineTextBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
index 4b12c77613e553b002acb1d6ba8d41e8a3933fcc..69b3a4748a69f928a35bb3f6898a182a0972e5a3 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -204,12 +204,14 @@ bool InlineTextBox::hasWrappedSelectionNewline() const {
return (state == SelectionStart || state == SelectionInside)
// Checking last leaf child can be slow, so we make sure to do this
// only after the other simple conditionals.
- && (root().lastLeafChild() == this)
+ &&
+ (root().lastLeafChild() == this)
// It's possible to have mixed LTR/RTL on a single line, and we only
// want to paint a newline when we're the last leaf child and we make
// sure there isn't a differently-directioned box following us.
- && ((!isLeftToRightDirection() && root().firstSelectedBox() == this) ||
- (isLeftToRightDirection() && root().lastSelectedBox() == this));
+ &&
+ ((!isLeftToRightDirection() && root().firstSelectedBox() == this) ||
+ (isLeftToRightDirection() && root().lastSelectedBox() == this));
}
float InlineTextBox::newlineSpaceWidth() const {
@@ -418,8 +420,9 @@ bool InlineTextBox::nodeAtPoint(HitTestResult& result,
if (visibleToHitTestRequest(result.hitTestRequest()) &&
locationInContainer.intersects(rect)) {
getLineLayoutItem().updateHitTestResult(
- result, flipForWritingMode(locationInContainer.point() -
- toLayoutSize(accumulatedOffset)));
+ result,
+ flipForWritingMode(locationInContainer.point() -
+ toLayoutSize(accumulatedOffset)));
if (result.addNodeToListBasedTestResult(getLineLayoutItem().node(),
locationInContainer,
rect) == StopHitTesting)

Powered by Google App Engine
This is Rietveld 408576698