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

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

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/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index d179680a693addb5c15e0c6cc2cac4c20ef99be3..5bd9c1c4ec001b998851253d24e7bc86cda04aec 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -232,13 +232,12 @@ bool InlineBox::nodeAtPoint(HitTestResult& result,
const LayoutPoint& accumulatedOffset,
LayoutUnit /* lineTop */,
LayoutUnit /* lineBottom */) {
- // Hit test all phases of replaced elements atomically, as though the replaced element established its
- // own stacking context. (See Appendix E.2, section 6.4 on inline block/table elements in the CSS2.1
- // specification.)
+ // Hit test all phases of replaced elements atomically, as though the replaced
+ // element established its own stacking context. (See Appendix E.2, section
+ // 6.4 on inline block/table elements in the CSS2.1 specification.)
LayoutPoint childPoint = accumulatedOffset;
- if (parent()
- ->getLineLayoutItem()
- .hasFlippedBlocksWritingMode()) // Faster than calling containingBlock().
+ // Faster than calling containingBlock().
+ if (parent()->getLineLayoutItem().hasFlippedBlocksWritingMode())
childPoint =
getLineLayoutItem().containingBlock().flipForWritingModeForChild(
LineLayoutBox(getLineLayoutItem()), childPoint);
@@ -401,8 +400,8 @@ void InlineBox::setShouldDoFullPaintInvalidationRecursively() {
}
void InlineBox::setLineLayoutItemShouldDoFullPaintInvalidationIfNeeded() {
- // For RootInlineBox, we only need to invalidate if it's using the first line style.
- // otherwise it paints nothing so we don't need to invalidate it.
+ // For RootInlineBox, we only need to invalidate if it's using the first line
+ // style. Otherwise it paints nothing so we don't need to invalidate it.
if (!isRootInlineBox() || isFirstLineStyle())
m_lineLayoutItem.setShouldDoFullPaintInvalidation();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineBox.h ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698