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

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

Issue 724673003: Don't make :hover sticky on tap on sites that set a mobile viewport set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactored logic and corrected viewport checking Created 6 years, 1 month 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
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/HitTestRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 #ifndef NDEBUG 628 #ifndef NDEBUG
629 pageCounter.decrement(); 629 pageCounter.decrement();
630 #endif 630 #endif
631 631
632 m_chrome->willBeDestroyed(); 632 m_chrome->willBeDestroyed();
633 if (m_validationMessageClient) 633 if (m_validationMessageClient)
634 m_validationMessageClient->willBeDestroyed(); 634 m_validationMessageClient->willBeDestroyed();
635 m_mainFrame = nullptr; 635 m_mainFrame = nullptr;
636 } 636 }
637 637
638 bool Page::shouldDisableDesktopWorkarounds()
639 {
640 return m_chrome->client().shouldDisableDesktopWorkarounds();
641 }
642
638 Page::PageClients::PageClients() 643 Page::PageClients::PageClients()
639 : chromeClient(nullptr) 644 : chromeClient(nullptr)
640 , contextMenuClient(nullptr) 645 , contextMenuClient(nullptr)
641 , editorClient(nullptr) 646 , editorClient(nullptr)
642 , dragClient(nullptr) 647 , dragClient(nullptr)
643 , inspectorClient(nullptr) 648 , inspectorClient(nullptr)
644 , spellCheckerClient(nullptr) 649 , spellCheckerClient(nullptr)
645 , storageClient(nullptr) 650 , storageClient(nullptr)
646 { 651 {
647 } 652 }
648 653
649 Page::PageClients::~PageClients() 654 Page::PageClients::~PageClients()
650 { 655 {
651 } 656 }
652 657
653 } // namespace blink 658 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/HitTestRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698