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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 if (frame->isLocalFrame()) | 348 if (frame->isLocalFrame()) |
349 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt
yleForLink(linkHash); | 349 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt
yleForLink(linkHash); |
350 } | 350 } |
351 } | 351 } |
352 } | 352 } |
353 | 353 |
354 void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitia
lState) | 354 void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitia
lState) |
355 { | 355 { |
356 static const double waitingTimeBeforeCompressingString = 10; | 356 static const double waitingTimeBeforeCompressingString = 10; |
357 | 357 |
358 CompressibleStringImpl::setPageBackground(visibilityState == PageVisibilityS
tateHidden); | |
359 if (m_visibilityState == visibilityState) | 358 if (m_visibilityState == visibilityState) |
360 return; | 359 return; |
361 m_visibilityState = visibilityState; | 360 m_visibilityState = visibilityState; |
362 | 361 |
363 if (!isInitialState) | 362 if (!isInitialState) |
364 notifyPageVisibilityChanged(); | 363 notifyPageVisibilityChanged(); |
365 | 364 |
366 if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame()) | 365 if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame()) |
367 deprecatedLocalMainFrame()->didChangeVisibilityState(); | 366 deprecatedLocalMainFrame()->didChangeVisibilityState(); |
368 | 367 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 { | 606 { |
608 } | 607 } |
609 | 608 |
610 Page::PageClients::~PageClients() | 609 Page::PageClients::~PageClients() |
611 { | 610 { |
612 } | 611 } |
613 | 612 |
614 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 613 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
615 | 614 |
616 } // namespace blink | 615 } // namespace blink |
OLD | NEW |