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

Unified Diff: third_party/WebKit/Source/core/layout/line/TrailingObjects.h

Issue 2393693002: Reformat comments in core/layout/line (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/layout/line/TrailingObjects.h
diff --git a/third_party/WebKit/Source/core/layout/line/TrailingObjects.h b/third_party/WebKit/Source/core/layout/line/TrailingObjects.h
index 015212d2ca3d3a9347c2ecdd129e7954ccce27fb..5167b9162591caa873d43f7a155eca39b3ca8c6a 100644
--- a/third_party/WebKit/Source/core/layout/line/TrailingObjects.h
+++ b/third_party/WebKit/Source/core/layout/line/TrailingObjects.h
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All right reserved.
+ * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
+ * All right reserved.
* Copyright (C) 2010 Google Inc. All rights reserved.
* Copyright (C) 2014 Adobe Systems Inc.
*
@@ -44,18 +45,21 @@ typedef BidiResolver<InlineIterator, BidiRun, BidiIsolatedRun>
InlineBidiResolver;
typedef MidpointState<InlineIterator> LineMidpointState;
-// This class allows us to ensure lineboxes are created in the right place on the line when
-// an out-of-flow positioned object or an empty inline is encountered between a trailing space
-// and subsequent spaces and we want to ignore (i.e. collapse) surplus whitespace. So for example:
+// This class allows us to ensure lineboxes are created in the right place on
+// the line when an out-of-flow positioned object or an empty inline is
+// encountered between a trailing space and subsequent spaces and we want to
+// ignore (i.e. collapse) surplus whitespace. So for example:
// <div>X <span></span> Y</div>
// or
// <div>X <div style="position: absolute"></div> Y</div>
-// In both of the above snippets the inline and the positioned object occur after a trailing space
-// and before a space that will cause our line breaking algorithm to start ignoring spaces. When it
-// does that we want to ensure that the inline/positioned object gets a linebox and that it is part
-// of the collapsed whitespace. So to achieve this we use appendObjectIfNeeded() to keep track of
-// objects encountered after a trailing whitespace and updateMidpointsForTrailingObjects() to put
-// them in the right place when we start ignoring surplus whitespace.
+// In both of the above snippets the inline and the positioned object occur
+// after a trailing space and before a space that will cause our line breaking
+// algorithm to start ignoring spaces. When it does that we want to ensure that
+// the inline/positioned object gets a linebox and that it is part of the
+// collapsed whitespace. So to achieve this we use appendObjectIfNeeded() to
+// keep track of objects encountered after a trailing whitespace and
+// updateMidpointsForTrailingObjects() to put them in the right place when we
+// start ignoring surplus whitespace.
class TrailingObjects {
STACK_ALLOCATED();

Powered by Google App Engine
This is Rietveld 408576698