| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 return true; | 667 return true; |
| 668 } | 668 } |
| 669 | 669 |
| 670 void FocusController::setActive(bool active) | 670 void FocusController::setActive(bool active) |
| 671 { | 671 { |
| 672 if (m_isActive == active) | 672 if (m_isActive == active) |
| 673 return; | 673 return; |
| 674 | 674 |
| 675 m_isActive = active; | 675 m_isActive = active; |
| 676 | 676 |
| 677 if (FrameView* view = m_page->mainFrame()->view()) { | 677 if (FrameView* view = m_page->mainFrame()->view()) |
| 678 view->updateLayoutAndStyleIfNeededRecursive(); | |
| 679 // https://code.google.com/p/chromium/issues/detail?id=343758 | |
| 680 DisableCompositingQueryAsserts disabler; | |
| 681 view->updateControlTints(); | 678 view->updateControlTints(); |
| 682 } | |
| 683 | 679 |
| 684 focusedOrMainFrame()->selection().pageActivationChanged(); | 680 focusedOrMainFrame()->selection().pageActivationChanged(); |
| 685 } | 681 } |
| 686 | 682 |
| 687 static void contentAreaDidShowOrHide(ScrollableArea* scrollableArea, bool didSho
w) | 683 static void contentAreaDidShowOrHide(ScrollableArea* scrollableArea, bool didSho
w) |
| 688 { | 684 { |
| 689 if (didShow) | 685 if (didShow) |
| 690 scrollableArea->contentAreaDidShow(); | 686 scrollableArea->contentAreaDidShow(); |
| 691 else | 687 else |
| 692 scrollableArea->contentAreaDidHide(); | 688 scrollableArea->contentAreaDidHide(); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); | 900 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); |
| 905 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(type,
container); | 901 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(type,
container); |
| 906 if (container && container->isDocumentNode()) | 902 if (container && container->isDocumentNode()) |
| 907 toDocument(container)->updateLayoutIgnorePendingStylesheets(); | 903 toDocument(container)->updateLayoutIgnorePendingStylesheets(); |
| 908 } while (!consumed && container); | 904 } while (!consumed && container); |
| 909 | 905 |
| 910 return consumed; | 906 return consumed; |
| 911 } | 907 } |
| 912 | 908 |
| 913 } // namespace WebCore | 909 } // namespace WebCore |
| OLD | NEW |