OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 4791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4802 scrollingCoordinator->touchEventTargetRectsDidChange(this); | 4802 scrollingCoordinator->touchEventTargetRectsDidChange(this); |
4803 if (m_touchEventTargets->size() == 1) | 4803 if (m_touchEventTargets->size() == 1) |
4804 page->chrome().client().needTouchEvents(true); | 4804 page->chrome().client().needTouchEvents(true); |
4805 } | 4805 } |
4806 } | 4806 } |
4807 | 4807 |
4808 void Document::didRemoveTouchEventHandler(Node* handler) | 4808 void Document::didRemoveTouchEventHandler(Node* handler) |
4809 { | 4809 { |
4810 if (!m_touchEventTargets.get()) | 4810 if (!m_touchEventTargets.get()) |
4811 return; | 4811 return; |
4812 ASSERT(m_touchEventTargets->contains(handler)); | 4812 |
| 4813 // ASSERT(m_touchEventTargets->contains(handler)); |
| 4814 // For demo purposes - let's soften this a bit to avoid assertion failure |
| 4815 // crashes. Seems that on closing the window this is prone to races on Windo
ws. |
| 4816 if (!m_touchEventTargets->contains(handler)) |
| 4817 return; |
4813 m_touchEventTargets->remove(handler); | 4818 m_touchEventTargets->remove(handler); |
| 4819 |
4814 if (Document* parent = parentDocument()) { | 4820 if (Document* parent = parentDocument()) { |
4815 parent->didRemoveTouchEventHandler(this); | 4821 parent->didRemoveTouchEventHandler(this); |
4816 return; | 4822 return; |
4817 } | 4823 } |
4818 | 4824 |
4819 Page* page = this->page(); | 4825 Page* page = this->page(); |
4820 if (!page) | 4826 if (!page) |
4821 return; | 4827 return; |
4822 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(
)) | 4828 if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(
)) |
4823 scrollingCoordinator->touchEventTargetRectsDidChange(this); | 4829 scrollingCoordinator->touchEventTargetRectsDidChange(this); |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5209 } | 5215 } |
5210 | 5216 |
5211 FastTextAutosizer* Document::fastTextAutosizer() | 5217 FastTextAutosizer* Document::fastTextAutosizer() |
5212 { | 5218 { |
5213 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) | 5219 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) |
5214 m_fastTextAutosizer = FastTextAutosizer::create(this); | 5220 m_fastTextAutosizer = FastTextAutosizer::create(this); |
5215 return m_fastTextAutosizer.get(); | 5221 return m_fastTextAutosizer.get(); |
5216 } | 5222 } |
5217 | 5223 |
5218 } // namespace WebCore | 5224 } // namespace WebCore |
OLD | NEW |