| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
| 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 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 return false; | 392 return false; |
| 393 | 393 |
| 394 if (isHTMLTextAreaElement(*m_innerNode)) | 394 if (isHTMLTextAreaElement(*m_innerNode)) |
| 395 return !toHTMLTextAreaElement(*m_innerNode).isDisabledOrReadOnly(); | 395 return !toHTMLTextAreaElement(*m_innerNode).isDisabledOrReadOnly(); |
| 396 | 396 |
| 397 if (isHTMLInputElement(*m_innerNode)) { | 397 if (isHTMLInputElement(*m_innerNode)) { |
| 398 HTMLInputElement& inputElement = toHTMLInputElement(*m_innerNode); | 398 HTMLInputElement& inputElement = toHTMLInputElement(*m_innerNode); |
| 399 return !inputElement.isDisabledOrReadOnly() && inputElement.isTextField(
); | 399 return !inputElement.isDisabledOrReadOnly() && inputElement.isTextField(
); |
| 400 } | 400 } |
| 401 | 401 |
| 402 return m_innerNode->hasEditableStyle(); | 402 return hasEditableStyle(*m_innerNode); |
| 403 } | 403 } |
| 404 | 404 |
| 405 ListBasedHitTestBehavior HitTestResult::addNodeToListBasedTestResult(Node* node,
const HitTestLocation& location, const LayoutRect& rect) | 405 ListBasedHitTestBehavior HitTestResult::addNodeToListBasedTestResult(Node* node,
const HitTestLocation& location, const LayoutRect& rect) |
| 406 { | 406 { |
| 407 // If not a list-based test, stop testing because the hit has been found. | 407 // If not a list-based test, stop testing because the hit has been found. |
| 408 if (!hitTestRequest().listBased()) | 408 if (!hitTestRequest().listBased()) |
| 409 return StopHitTesting; | 409 return StopHitTesting; |
| 410 | 410 |
| 411 if (!node) | 411 if (!node) |
| 412 return ContinueHitTesting; | 412 return ContinueHitTesting; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 else if (isHTMLMapElement(m_innerNode)) | 512 else if (isHTMLMapElement(m_innerNode)) |
| 513 imageMapImageElement = toHTMLMapElement(m_innerNode)->imageElement(); | 513 imageMapImageElement = toHTMLMapElement(m_innerNode)->imageElement(); |
| 514 | 514 |
| 515 if (!imageMapImageElement) | 515 if (!imageMapImageElement) |
| 516 return m_innerNode.get(); | 516 return m_innerNode.get(); |
| 517 | 517 |
| 518 return imageMapImageElement; | 518 return imageMapImageElement; |
| 519 } | 519 } |
| 520 | 520 |
| 521 } // namespace blink | 521 } // namespace blink |
| OLD | NEW |