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

Unified Diff: third_party/WebKit/Source/core/paint/PartPainter.cpp

Issue 2392443009: reflow comments in core/paint (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/paint/PartPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PartPainter.cpp b/third_party/WebKit/Source/core/paint/PartPainter.cpp
index 9262425e84a40de641212db6db481c22f9f777c0..5943adfbbd354b648e08c90c477d24db64ebd03b 100644
--- a/third_party/WebKit/Source/core/paint/PartPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PartPainter.cpp
@@ -69,8 +69,9 @@ void PartPainter::paint(const PaintInfo& paintInfo,
return;
if (m_layoutPart.widget()) {
- // TODO(schenney) crbug.com/93805 Speculative release assert to verify that the crashes
- // we see in widget painting are due to a destroyed LayoutPart object.
+ // TODO(schenney) crbug.com/93805 Speculative release assert to verify that
+ // the crashes we see in widget painting are due to a destroyed LayoutPart
+ // object.
RELEASE_ASSERT(m_layoutPart.node());
Optional<RoundedInnerRectClipper> clipper;
if (m_layoutPart.style()->hasBorderRadius()) {
@@ -122,9 +123,10 @@ void PartPainter::paintContents(const PaintInfo& paintInfo,
IntPoint paintLocation(roundedIntPoint(
adjustedPaintOffset + m_layoutPart.replacedContentRect().location()));
- // Widgets don't support painting with a paint offset, but instead offset themselves using the
- // frame rect location. To paint widgets at our desired location, we need to apply paint offset
- // as a transform, with the frame rect neutralized.
+ // Widgets don't support painting with a paint offset, but instead offset
+ // themselves using the frame rect location. To paint widgets at our desired
+ // location, we need to apply paint offset as a transform, with the frame rect
+ // neutralized.
IntSize widgetPaintOffset = paintLocation - widget->frameRect().location();
TransformRecorder transform(
paintInfo.context, m_layoutPart,

Powered by Google App Engine
This is Rietveld 408576698