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 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 } | 1225 } |
1226 | 1226 |
1227 Element* Document::elementFromPoint(int x, int y) const | 1227 Element* Document::elementFromPoint(int x, int y) const |
1228 { | 1228 { |
1229 if (!renderView()) | 1229 if (!renderView()) |
1230 return 0; | 1230 return 0; |
1231 | 1231 |
1232 return TreeScope::elementFromPoint(x, y); | 1232 return TreeScope::elementFromPoint(x, y); |
1233 } | 1233 } |
1234 | 1234 |
1235 PassRefPtr<Range> Document::caretRangeFromPoint(int x, int y) | 1235 PassRefPtrWillBeRawPtr<Range> Document::caretRangeFromPoint(int x, int y) |
1236 { | 1236 { |
1237 if (!renderView()) | 1237 if (!renderView()) |
1238 return nullptr; | 1238 return nullptr; |
1239 HitTestResult result = hitTestInDocument(this, x, y); | 1239 HitTestResult result = hitTestInDocument(this, x, y); |
1240 RenderObject* renderer = result.renderer(); | 1240 RenderObject* renderer = result.renderer(); |
1241 if (!renderer) | 1241 if (!renderer) |
1242 return nullptr; | 1242 return nullptr; |
1243 | 1243 |
1244 Node* node = renderer->node(); | 1244 Node* node = renderer->node(); |
1245 Node* shadowAncestorNode = ancestorInThisScope(node); | 1245 Node* shadowAncestorNode = ancestorInThisScope(node); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 FrameHost* Document::frameHost() const | 1472 FrameHost* Document::frameHost() const |
1473 { | 1473 { |
1474 return m_frame ? m_frame->host() : 0; | 1474 return m_frame ? m_frame->host() : 0; |
1475 } | 1475 } |
1476 | 1476 |
1477 Settings* Document::settings() const | 1477 Settings* Document::settings() const |
1478 { | 1478 { |
1479 return m_frame ? m_frame->settings() : 0; | 1479 return m_frame ? m_frame->settings() : 0; |
1480 } | 1480 } |
1481 | 1481 |
1482 PassRefPtr<Range> Document::createRange() | 1482 PassRefPtrWillBeRawPtr<Range> Document::createRange() |
1483 { | 1483 { |
1484 return Range::create(*this); | 1484 return Range::create(*this); |
1485 } | 1485 } |
1486 | 1486 |
1487 PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, ExceptionState
& exceptionState) | 1487 PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, ExceptionState
& exceptionState) |
1488 { | 1488 { |
1489 // FIXME: Probably this should be handled within the bindings layer and Type
Error should be thrown. | 1489 // FIXME: Probably this should be handled within the bindings layer and Type
Error should be thrown. |
1490 if (!root) { | 1490 if (!root) { |
1491 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Node")); | 1491 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Node")); |
1492 return nullptr; | 1492 return nullptr; |
(...skipping 4029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5522 } | 5522 } |
5523 | 5523 |
5524 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5524 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5525 { | 5525 { |
5526 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5526 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5527 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5527 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5528 (*it)->invalidateCache(attrName); | 5528 (*it)->invalidateCache(attrName); |
5529 } | 5529 } |
5530 | 5530 |
5531 } // namespace WebCore | 5531 } // namespace WebCore |
OLD | NEW |