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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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/SVGInlineTextBoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
index f992bd601a8cdfccb0fdb315a572fa91f50a8acb..cdf68e058bae1e9c226c11409bf1a7fc42a92328 100644
--- a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
@@ -350,7 +350,7 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo,
switch (svgDecorationStyle.paintOrderType(i)) {
case PT_FILL:
if (svgDecorationStyle.hasFill()) {
- SkPaint fillPaint;
+ PaintFlags fillPaint;
if (!SVGPaintContext::paintForLayoutObject(
paintInfo, decorationStyle, *decorationLayoutObject,
ApplyToFillMode, fillPaint))
@@ -361,7 +361,7 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo,
break;
case PT_STROKE:
if (svgDecorationStyle.hasVisibleStroke()) {
- SkPaint strokePaint;
+ PaintFlags strokePaint;
if (!SVGPaintContext::paintForLayoutObject(
paintInfo, decorationStyle, *decorationLayoutObject,
ApplyToStrokeMode, strokePaint))
@@ -392,7 +392,7 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo,
bool SVGInlineTextBoxPainter::setupTextPaint(const PaintInfo& paintInfo,
const ComputedStyle& style,
LayoutSVGResourceMode resourceMode,
- SkPaint& paint) {
+ PaintFlags& paint) {
LayoutSVGInlineText& textLayoutObject = inlineText();
float scalingFactor = textLayoutObject.scalingFactor();
@@ -439,7 +439,7 @@ void SVGInlineTextBoxPainter::paintText(const PaintInfo& paintInfo,
const SVGTextFragment& fragment,
int startPosition,
int endPosition,
- const SkPaint& paint) {
+ const PaintFlags& paint) {
LayoutSVGInlineText& textLayoutObject = inlineText();
const Font& scaledFont = textLayoutObject.scaledFont();
@@ -492,7 +492,7 @@ void SVGInlineTextBoxPainter::paintText(const PaintInfo& paintInfo,
// the regular style.
TextRun textRun = m_svgInlineTextBox.constructTextRun(style, fragment);
if (!shouldPaintSelection || startPosition >= endPosition) {
- SkPaint paint;
+ PaintFlags paint;
if (setupTextPaint(paintInfo, style, resourceMode, paint))
paintText(paintInfo, textRun, fragment, 0, fragment.length, paint);
return;
@@ -502,7 +502,7 @@ void SVGInlineTextBoxPainter::paintText(const PaintInfo& paintInfo,
// selection.
bool paintSelectedTextOnly = paintInfo.phase == PaintPhaseSelection;
if (startPosition > 0 && !paintSelectedTextOnly) {
- SkPaint paint;
+ PaintFlags paint;
if (setupTextPaint(paintInfo, style, resourceMode, paint))
paintText(paintInfo, textRun, fragment, 0, startPosition, paint);
}
@@ -516,7 +516,7 @@ void SVGInlineTextBoxPainter::paintText(const PaintInfo& paintInfo,
selectionStyle);
}
- SkPaint paint;
+ PaintFlags paint;
if (setupTextPaint(paintInfo, selectionStyle, resourceMode, paint))
paintText(paintInfo, textRun, fragment, startPosition, endPosition, paint);
@@ -531,7 +531,7 @@ void SVGInlineTextBoxPainter::paintText(const PaintInfo& paintInfo,
// selection to the end of the current chunk part.
if (endPosition < static_cast<int>(fragment.length) &&
!paintSelectedTextOnly) {
- SkPaint paint;
+ PaintFlags paint;
if (setupTextPaint(paintInfo, style, resourceMode, paint))
paintText(paintInfo, textRun, fragment, endPosition, fragment.length,
paint);
@@ -595,11 +595,11 @@ void SVGInlineTextBoxPainter::paintTextMatchMarkerForeground(
Color textColor =
LayoutTheme::theme().platformTextSearchColor(marker.activeMatch());
- SkPaint fillPaint;
+ PaintFlags fillPaint;
fillPaint.setColor(textColor.rgb());
fillPaint.setAntiAlias(true);
- SkPaint strokePaint;
+ PaintFlags strokePaint;
bool shouldPaintStroke = false;
if (setupTextPaint(paintInfo, style, ApplyToStrokeMode, strokePaint)) {
shouldPaintStroke = true;

Powered by Google App Engine
This is Rietveld 408576698