| Index: Source/core/paint/SVGInlineTextBoxPainter.cpp
|
| diff --git a/Source/core/paint/SVGInlineTextBoxPainter.cpp b/Source/core/paint/SVGInlineTextBoxPainter.cpp
|
| index 98a34802c9b50607fa83f4f6c6f7d28faf286d4e..a521108abcb33830c7a13741a54d29fc00988b6a 100644
|
| --- a/Source/core/paint/SVGInlineTextBoxPainter.cpp
|
| +++ b/Source/core/paint/SVGInlineTextBoxPainter.cpp
|
| @@ -118,8 +118,9 @@ void SVGInlineTextBoxPainter::paintTextFragments(const PaintInfo& paintInfo, Lay
|
| if (decorations & TextDecorationOverline)
|
| paintDecoration(paintInfo, TextDecorationOverline, fragment);
|
|
|
| - for (int i = 0; i < 3; i++) {
|
| - switch (svgStyle.paintOrderType(i)) {
|
| + auto paintOrder = svgStyle.paintTypesForPaintOrder();
|
| + for (unsigned i = 0; i < paintOrder.size(); ++i) {
|
| + switch (paintOrder.at(i)) {
|
| case PT_FILL:
|
| if (hasFill)
|
| paintText(paintInfo, style, *selectionStyle, fragment, ApplyToFillMode, shouldPaintSelection);
|
| @@ -260,8 +261,9 @@ void SVGInlineTextBoxPainter::paintDecoration(const PaintInfo& paintInfo, TextDe
|
|
|
| const SVGComputedStyle& svgDecorationStyle = decorationStyle.svgStyle();
|
|
|
| - for (int i = 0; i < 3; i++) {
|
| - switch (svgDecorationStyle.paintOrderType(i)) {
|
| + auto paintOrder = svgDecorationStyle.paintTypesForPaintOrder();
|
| + for (unsigned i = 0; i < paintOrder.size(); ++i) {
|
| + switch (paintOrder.at(i)) {
|
| case PT_FILL:
|
| if (svgDecorationStyle.hasFill()) {
|
| SkPaint fillPaint;
|
|
|