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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp

Issue 2400783002: Reformat comments in core/layout/svg (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/svg/LayoutSVGText.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
index 122181043f2815726d57b494ebf20f50fc69c0f6..524f78cdaff05697f75e4076edfe1088422a6f7e 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp
@@ -117,8 +117,9 @@ void LayoutSVGText::subtreeChildWasAdded() {
if (documentBeingDestroyed())
return;
- // The positioning elements cache depends on the size of each text layoutObject in the
- // subtree. If this changes, clear the cache. It will be rebuilt on the next layout.
+ // The positioning elements cache depends on the size of each text
+ // layoutObject in the subtree. If this changes, clear the cache. It will be
+ // rebuilt on the next layout.
invalidatePositioningValues(LayoutInvalidationReason::ChildChanged);
setNeedsTextMetricsUpdate();
}
@@ -129,8 +130,9 @@ void LayoutSVGText::subtreeChildWillBeRemoved() {
return;
}
- // The positioning elements cache depends on the size of each text layoutObject in the
- // subtree. If this changes, clear the cache. It will be rebuilt on the next layout.
+ // The positioning elements cache depends on the size of each text
+ // layoutObject in the subtree. If this changes, clear the cache. It will be
+ // rebuilt on the next layout.
invalidatePositioningValues(LayoutInvalidationReason::ChildChanged);
setNeedsTextMetricsUpdate();
}
@@ -218,8 +220,9 @@ void LayoutSVGText::layout() {
checkDescendantTextNodeConsistency(*this, m_descendantTextNodes);
- // Reduced version of LayoutBlock::layoutBlock(), which only takes care of SVG text.
- // All if branches that could cause early exit in LayoutBlocks layoutBlock() method are turned into assertions.
+ // Reduced version of LayoutBlock::layoutBlock(), which only takes care of SVG
+ // text. All if branches that could cause early exit in LayoutBlocks
+ // layoutBlock() method are turned into assertions.
ASSERT(!isInline());
ASSERT(!simplifiedLayout());
ASSERT(!scrollsOverflow());
@@ -246,7 +249,8 @@ void LayoutSVGText::layout() {
m_needsReordering = false;
- // If we don't have any line boxes, then make sure the frame rect is still cleared.
+ // If we don't have any line boxes, then make sure the frame rect is still
+ // cleared.
if (!firstLineBox())
setFrameRect(LayoutRect());
@@ -396,7 +400,8 @@ void LayoutSVGText::removeChild(LayoutObject* child) {
void LayoutSVGText::invalidateTreeIfNeeded(
const PaintInvalidationState& paintInvalidationState) {
- // TODO(wangxianzhu): Verify if the inherited LayoutBoxModelObject::invalidateTreeIfNeeded()
+ // TODO(wangxianzhu): Verify if the inherited
+ // LayoutBoxModelObject::invalidateTreeIfNeeded()
// is applicable here. If yes, remove this overriding method.
LayoutObject::invalidateTreeIfNeeded(paintInvalidationState);
}

Powered by Google App Engine
This is Rietveld 408576698