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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 2405633002: Reformat comments in core/layout (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/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index 28cc67ebce20c656fb4fb2fb2d076b6bb0ae4fb1..c5abafeced962ebdf8f4da75784b1ecd0c03ce32 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -192,7 +192,8 @@ void LayoutTreeAsText::writeLayoutObject(TextStream& ts,
if (o.parent()->resolveColor(CSSPropertyColor) != color)
ts << " [color=" << color << "]";
- // Do not dump invalid or transparent backgrounds, since that is the default.
+ // Do not dump invalid or transparent backgrounds, since that is the
+ // default.
Color backgroundColor = o.resolveColor(CSSPropertyBackgroundColor);
if (o.parent()->resolveColor(CSSPropertyBackgroundColor) !=
backgroundColor &&
@@ -432,8 +433,9 @@ void LayoutTreeAsText::writeLineBoxTree(TextStream& ts,
static void writeTextRun(TextStream& ts,
const LayoutText& o,
const InlineTextBox& run) {
- // FIXME: For now use an "enclosingIntRect" model for x, y and logicalWidth, although this makes it harder
- // to detect any changes caused by the conversion to floating point. :(
+ // FIXME: For now use an "enclosingIntRect" model for x, y and logicalWidth,
+ // although this makes it harder to detect any changes caused by the
+ // conversion to floating point. :(
int x = run.x().toInt();
int y = run.y().toInt();
int logicalWidth = (run.left() + run.logicalWidth()).ceil() - x;
@@ -863,7 +865,8 @@ String counterValueForElement(Element* element) {
element->document().updateStyleAndLayout();
TextStream stream;
bool isFirstCounter = true;
- // The counter layoutObjects should be children of :before or :after pseudo-elements.
+ // The counter layoutObjects should be children of :before or :after
+ // pseudo-elements.
if (LayoutObject* before = element->pseudoElementLayoutObject(PseudoIdBefore))
writeCounterValuesFromChildren(stream, before, isFirstCounter);
if (LayoutObject* after = element->pseudoElementLayoutObject(PseudoIdAfter))
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTreeAsText.h ('k') | third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698