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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.h

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/LayoutTextFragment.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
index cf33f86898edfd3a7b6fc74af402261c3abc7648..fb68a53d2861596e71710f397ddbd3212a86127a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
@@ -31,10 +31,12 @@ namespace blink {
class FirstLetterPseudoElement;
-// Used to represent a text substring of an element, e.g., for text runs that are split because of
-// first letter and that must therefore have different styles (and positions in the layout tree).
-// We cache offsets so that text transformations can be applied in such a way that we can recover
-// the original unaltered string from our corresponding DOM node.
+// Used to represent a text substring of an element, e.g., for text runs that
+// are split because of first letter and that must therefore have different
+// styles (and positions in the layout tree).
+// We cache offsets so that text transformations can be applied in such a way
+// that we can recover the original unaltered string from our corresponding DOM
+// node.
class LayoutTextFragment final : public LayoutText {
public:
LayoutTextFragment(Node*, StringImpl*, int startOffset, int length);
@@ -56,9 +58,9 @@ class LayoutTextFragment final : public LayoutText {
StringImpl* contentString() const { return m_contentString.get(); }
// The complete text is all of the text in the associated DOM text node.
PassRefPtr<StringImpl> completeText() const;
- // The fragment text is the text which will be used by this LayoutTextFragment. For
- // things like first-letter this may differ from the completeText as we maybe using
- // only a portion of the text nodes content.
+ // The fragment text is the text which will be used by this
+ // LayoutTextFragment. For things like first-letter this may differ from the
+ // completeText as we maybe using only a portion of the text nodes content.
PassRefPtr<StringImpl> originalText() const override;
@@ -98,8 +100,8 @@ class LayoutTextFragment final : public LayoutText {
unsigned m_fragmentLength;
bool m_isRemainingTextLayoutObject;
RefPtr<StringImpl> m_contentString;
- // Reference back to FirstLetterPseudoElement; cleared by FirstLetterPseudoElement::detachLayoutTree() if
- // it goes away first.
+ // Reference back to FirstLetterPseudoElement; cleared by
+ // FirstLetterPseudoElement::detachLayoutTree() if it goes away first.
UntracedMember<FirstLetterPseudoElement> m_firstLetterPseudoElement;
};

Powered by Google App Engine
This is Rietveld 408576698