| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 299 } |
| 300 | 300 |
| 301 IntRect Chrome::windowResizerRect() const | 301 IntRect Chrome::windowResizerRect() const |
| 302 { | 302 { |
| 303 return m_client->windowResizerRect(); | 303 return m_client->windowResizerRect(); |
| 304 } | 304 } |
| 305 | 305 |
| 306 void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modif
ierFlags) | 306 void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modif
ierFlags) |
| 307 { | 307 { |
| 308 if (result.innerNode()) { | 308 if (result.innerNode()) { |
| 309 Document* document = result.innerNode()->document(); | 309 if (result.innerNode()->document()->isDNSPrefetchEnabled()) |
| 310 if (document && document->isDNSPrefetchEnabled()) | |
| 311 prefetchDNS(result.absoluteLinkURL().host()); | 310 prefetchDNS(result.absoluteLinkURL().host()); |
| 312 } | 311 } |
| 313 m_client->mouseDidMoveOverElement(result, modifierFlags); | 312 m_client->mouseDidMoveOverElement(result, modifierFlags); |
| 314 } | 313 } |
| 315 | 314 |
| 316 void Chrome::setToolTip(const HitTestResult& result) | 315 void Chrome::setToolTip(const HitTestResult& result) |
| 317 { | 316 { |
| 318 // First priority is a potential toolTip representing a spelling or grammar
error | 317 // First priority is a potential toolTip representing a spelling or grammar
error |
| 319 TextDirection toolTipDirection; | 318 TextDirection toolTipDirection; |
| 320 String toolTip = result.spellingToolTip(toolTipDirection); | 319 String toolTip = result.spellingToolTip(toolTipDirection); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 } | 413 } |
| 415 | 414 |
| 416 void Chrome::notifyPopupOpeningObservers() const | 415 void Chrome::notifyPopupOpeningObservers() const |
| 417 { | 416 { |
| 418 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 417 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
| 419 for (size_t i = 0; i < observers.size(); ++i) | 418 for (size_t i = 0; i < observers.size(); ++i) |
| 420 observers[i]->willOpenPopup(); | 419 observers[i]->willOpenPopup(); |
| 421 } | 420 } |
| 422 | 421 |
| 423 } // namespace WebCore | 422 } // namespace WebCore |
| OLD | NEW |