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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem 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 3d91da3adac68c69b119e869fa603f8ffa459ae0..6890aeb24428d73e8861a32be38ef48bc895e635 100644
--- a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
@@ -356,7 +356,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))
@@ -367,7 +367,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))
@@ -398,7 +398,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();
@@ -445,7 +445,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();
@@ -498,7 +498,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;
@@ -508,7 +508,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);
}
@@ -522,7 +522,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);
@@ -537,7 +537,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);
@@ -601,11 +601,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