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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2216073002: Color: Add ColorCorrectRendering flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoder_profile
Patch Set: Remove canvas part Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 if (mainFrame() && mainFrame()->isLocalFrame()) 287 if (mainFrame() && mainFrame()->isLocalFrame())
288 deprecatedLocalMainFrame()->deviceScaleFactorChanged(); 288 deprecatedLocalMainFrame()->deviceScaleFactorChanged();
289 } 289 }
290 290
291 void Page::setDeviceColorProfile(const Vector<char>& profile) 291 void Page::setDeviceColorProfile(const Vector<char>& profile)
292 { 292 {
293 // FIXME: implement. 293 // FIXME: implement.
294 } 294 }
295 295
296 void Page::resetDeviceColorProfileForTesting() 296 void Page::resetDeviceColorProfileForTesting()
dcheng 2016/08/09 01:34:30 Drive-by: do we still need this method if it's jus
ccameron 2016/08/09 02:59:21 Nope. And, we can tear out a fairly long tail from
297 { 297 {
298 RuntimeEnabledFeatures::setImageColorProfilesEnabled(false);
299 } 298 }
300 299
301 void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes) 300 void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes)
302 { 301 {
303 for (const Page* page : ordinaryPages()) { 302 for (const Page* page : ordinaryPages()) {
304 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) { 303 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) {
305 if (frame->isLocalFrame()) 304 if (frame->isLocalFrame())
306 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks(invalidateVisitedLinkHashes); 305 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks(invalidateVisitedLinkHashes);
307 } 306 }
308 } 307 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 { 550 {
552 } 551 }
553 552
554 Page::PageClients::~PageClients() 553 Page::PageClients::~PageClients()
555 { 554 {
556 } 555 }
557 556
558 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 557 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
559 558
560 } // namespace blink 559 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/core/testing/InternalSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698