OLD | NEW |
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 { | 279 { |
280 if (m_deviceScaleFactor == scaleFactor) | 280 if (m_deviceScaleFactor == scaleFactor) |
281 return; | 281 return; |
282 | 282 |
283 m_deviceScaleFactor = scaleFactor; | 283 m_deviceScaleFactor = scaleFactor; |
284 | 284 |
285 if (mainFrame() && mainFrame()->isLocalFrame()) | 285 if (mainFrame() && mainFrame()->isLocalFrame()) |
286 deprecatedLocalMainFrame()->deviceScaleFactorChanged(); | 286 deprecatedLocalMainFrame()->deviceScaleFactorChanged(); |
287 } | 287 } |
288 | 288 |
289 void Page::setDeviceColorProfile(const Vector<char>& profile) | |
290 { | |
291 // FIXME: implement. | |
292 } | |
293 | |
294 void Page::resetDeviceColorProfileForTesting() | |
295 { | |
296 RuntimeEnabledFeatures::setImageColorProfilesEnabled(false); | |
297 } | |
298 | |
299 void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes) | 289 void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes) |
300 { | 290 { |
301 for (const Page* page : ordinaryPages()) { | 291 for (const Page* page : ordinaryPages()) { |
302 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav
erseNext()) { | 292 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav
erseNext()) { |
303 if (frame->isLocalFrame()) | 293 if (frame->isLocalFrame()) |
304 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt
yleForAllLinks(invalidateVisitedLinkHashes); | 294 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt
yleForAllLinks(invalidateVisitedLinkHashes); |
305 } | 295 } |
306 } | 296 } |
307 } | 297 } |
308 | 298 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 { | 521 { |
532 } | 522 } |
533 | 523 |
534 Page::PageClients::~PageClients() | 524 Page::PageClients::~PageClients() |
535 { | 525 { |
536 } | 526 } |
537 | 527 |
538 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 528 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
539 | 529 |
540 } // namespace blink | 530 } // namespace blink |
OLD | NEW |