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

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

Issue 2400863005: Reformat comments in core/layout up until LayoutTableRow (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/LayoutRuby.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutRuby.cpp b/third_party/WebKit/Source/core/layout/LayoutRuby.cpp
index e5f47c88b3fefe859e663e4267b5cdec554c76ba..e9eca73c61b6a35f931f10328a2ce5228af2ad84 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRuby.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutRuby.cpp
@@ -88,8 +88,8 @@ void LayoutRubyAsInline::addChild(LayoutObject* child,
// Emergency fallback: fall through and just append.
}
- // If the new child would be appended, try to add the child to the previous run
- // if possible, or create a new run otherwise.
+ // If the new child would be appended, try to add the child to the previous
+ // run if possible, or create a new run otherwise.
// (The LayoutRubyRun object will handle the details)
LayoutRubyRun* lastRun = lastRubyRun(this);
if (!lastRun || lastRun->hasRubyText()) {
@@ -100,7 +100,8 @@ void LayoutRubyAsInline::addChild(LayoutObject* child,
}
void LayoutRubyAsInline::removeChild(LayoutObject* child) {
- // If the child's parent is *this (must be a ruby run), just use the normal remove method.
+ // If the child's parent is *this (must be a ruby run), just use the normal
+ // remove method.
if (child->parent() == this) {
ASSERT(child->isRubyRun());
LayoutInline::removeChild(child);
@@ -152,8 +153,8 @@ void LayoutRubyAsBlock::addChild(LayoutObject* child,
// Emergency fallback: fall through and just append.
}
- // If the new child would be appended, try to add the child to the previous run
- // if possible, or create a new run otherwise.
+ // If the new child would be appended, try to add the child to the previous
+ // run if possible, or create a new run otherwise.
// (The LayoutRubyRun object will handle the details)
LayoutRubyRun* lastRun = lastRubyRun(this);
if (!lastRun || lastRun->hasRubyText()) {
@@ -164,7 +165,8 @@ void LayoutRubyAsBlock::addChild(LayoutObject* child,
}
void LayoutRubyAsBlock::removeChild(LayoutObject* child) {
- // If the child's parent is *this (must be a ruby run), just use the normal remove method.
+ // If the child's parent is *this (must be a ruby run), just use the normal
+ // remove method.
if (child->parent() == this) {
ASSERT(child->isRubyRun());
LayoutBlockFlow::removeChild(child);

Powered by Google App Engine
This is Rietveld 408576698