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

Unified Diff: Source/core/page/FrameView.cpp

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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
« no previous file with comments | « Source/core/page/Frame.cpp ('k') | Source/core/page/PrintContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FrameView.cpp
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp
index 18dbb21cdba5c6a27b2fe1e0fef08d729a474275..f47442c23acf178cb630fd73268072d6754a5d19 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -2746,7 +2746,7 @@ void FrameView::paintScrollCorner(GraphicsContext* context, const IntRect& corne
if (m_scrollCorner) {
bool needsBackgorund = m_frame->page() && m_frame->page()->mainFrame() == m_frame;
if (needsBackgorund)
- context->fillRect(cornerRect, baseBackgroundColor(), ColorSpaceDeviceRGB);
+ context->fillRect(cornerRect, baseBackgroundColor());
m_scrollCorner->paintIntoRect(context, cornerRect.location(), cornerRect);
return;
}
@@ -2760,7 +2760,7 @@ void FrameView::paintScrollbar(GraphicsContext* context, Scrollbar* bar, const I
if (needsBackgorund) {
IntRect toFill = bar->frameRect();
toFill.intersect(rect);
- context->fillRect(toFill, baseBackgroundColor(), ColorSpaceDeviceRGB);
+ context->fillRect(toFill, baseBackgroundColor());
}
ScrollView::paintScrollbar(context, bar, rect);
@@ -2896,9 +2896,9 @@ void FrameView::paintContents(GraphicsContext* p, const IntRect& rect)
fillWithRed = false; // Element images are transparent, don't fill with red.
else
fillWithRed = true;
-
+
if (fillWithRed)
- p->fillRect(rect, Color(0xFF, 0, 0), ColorSpaceDeviceRGB);
+ p->fillRect(rect, Color(0xFF, 0, 0));
#endif
RenderView* renderView = this->renderView();
« no previous file with comments | « Source/core/page/Frame.cpp ('k') | Source/core/page/PrintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698