| Index: Source/core/rendering/RenderListBox.cpp
|
| diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/rendering/RenderListBox.cpp
|
| index b4a1d61225c40a011da0697cdb90fc612465f632..6ebf5ef11adc88b1d929470a72ab6eb3e649c998 100644
|
| --- a/Source/core/rendering/RenderListBox.cpp
|
| +++ b/Source/core/rendering/RenderListBox.cpp
|
| @@ -416,8 +416,7 @@ void RenderListBox::paintItemForeground(PaintInfo& paintInfo, const LayoutPoint&
|
| textColor = theme()->inactiveListBoxSelectionForegroundColor();
|
| }
|
|
|
| - ColorSpace colorSpace = itemStyle->colorSpace();
|
| - paintInfo.context->setFillColor(textColor, colorSpace);
|
| + paintInfo.context->setFillColor(textColor);
|
|
|
| TextRun textRun(itemText, 0, 0, TextRun::AllowTrailingExpansion, itemStyle->direction(), isOverride(itemStyle->unicodeBidi()), true, TextRun::NoRounding);
|
| Font itemFont = style()->font();
|
| @@ -453,10 +452,9 @@ void RenderListBox::paintItemBackground(PaintInfo& paintInfo, const LayoutPoint&
|
|
|
| // Draw the background for this list box item
|
| if (!element->renderStyle() || element->renderStyle()->visibility() != HIDDEN) {
|
| - ColorSpace colorSpace = element->renderStyle() ? element->renderStyle()->colorSpace() : style()->colorSpace();
|
| LayoutRect itemRect = itemBoundingBoxRect(paintOffset, listIndex);
|
| itemRect.intersect(controlClipRect(paintOffset));
|
| - paintInfo.context->fillRect(pixelSnappedIntRect(itemRect), backColor, colorSpace);
|
| + paintInfo.context->fillRect(pixelSnappedIntRect(itemRect), backColor);
|
| }
|
| }
|
|
|
|
|