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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index d1d135e1fe64a9a7f238f47947e8341b4cb16388..609fa400ff3c48207a40828f1381f1bfaf4106b3 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -230,7 +230,7 @@ FloatRoundedRect BoxPainter::getBackgroundRoundedRect(const LayoutObject& obj, c
if (box && (box->nextLineBox() || box->prevLineBox())) {
FloatRoundedRect segmentBorder = obj.style()->getRoundedBorderFor(LayoutRect(0, 0, inlineBoxWidth, inlineBoxHeight),
includeLogicalLeftEdge, includeLogicalRightEdge);
- border.setRadii(segmentBorder.radii());
+ border.setRadii(segmentBorder.getRadii());
}
return border;
}
@@ -267,7 +267,7 @@ FloatRoundedRect BoxPainter::backgroundRoundedRectAdjustedForBleedAvoidance(cons
includeLogicalLeftEdge, includeLogicalRightEdge);
FloatRect insetRect(backgroundRoundedRect.rect());
insetRect.expand(insets);
- FloatRoundedRect::Radii insetRadii(backgroundRoundedRect.radii());
+ FloatRoundedRect::Radii insetRadii(backgroundRoundedRect.getRadii());
insetRadii.shrink(-insets.top(), -insets.bottom(), -insets.left(), -insets.right());
return FloatRoundedRect(insetRect, insetRadii);
}
@@ -651,7 +651,7 @@ void BoxPainter::paintBoxShadow(const PaintInfo& info, const LayoutRect& paintRe
context.setShadow(shadowOffset, shadowBlur, shadowColor, DrawLooperBuilder::ShadowRespectsTransforms, DrawLooperBuilder::ShadowIgnoresAlpha, DrawShadowOnly);
if (hasBorderRadius) {
- FloatRoundedRect influenceRect(pixelSnappedIntRect(LayoutRect(shadowRect)), border.radii());
+ FloatRoundedRect influenceRect(pixelSnappedIntRect(LayoutRect(shadowRect)), border.getRadii());
float changeAmount = 2 * shadowBlur + shadowSpread;
if (changeAmount >= 0)
influenceRect.expandRadii(changeAmount);
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxClipper.cpp ('k') | third_party/WebKit/Source/core/paint/EllipsisBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698