| 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 Element* Document::elementFromPoint(int x, int y) const | 1237 Element* Document::elementFromPoint(int x, int y) const |
| 1238 { | 1238 { |
| 1239 if (!renderView()) | 1239 if (!renderView()) |
| 1240 return 0; | 1240 return 0; |
| 1241 | 1241 |
| 1242 return TreeScope::elementFromPoint(x, y); | 1242 return TreeScope::elementFromPoint(x, y); |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 Vector<Element*> Document::elementsFromPoint(int x, int y) const |
| 1246 { |
| 1247 if (!renderView()) |
| 1248 return Vector<Element*>(); |
| 1249 return TreeScope::elementsFromPoint(x, y); |
| 1250 } |
| 1251 |
| 1245 PassRefPtrWillBeRawPtr<Range> Document::caretRangeFromPoint(int x, int y) | 1252 PassRefPtrWillBeRawPtr<Range> Document::caretRangeFromPoint(int x, int y) |
| 1246 { | 1253 { |
| 1247 if (!renderView()) | 1254 if (!renderView()) |
| 1248 return nullptr; | 1255 return nullptr; |
| 1249 HitTestResult result = hitTestInDocument(this, x, y); | 1256 HitTestResult result = hitTestInDocument(this, x, y); |
| 1250 LayoutObject* renderer = result.renderer(); | 1257 LayoutObject* renderer = result.renderer(); |
| 1251 if (!renderer) | 1258 if (!renderer) |
| 1252 return nullptr; | 1259 return nullptr; |
| 1253 | 1260 |
| 1254 Node* node = renderer->node(); | 1261 Node* node = renderer->node(); |
| (...skipping 4486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5741 #ifndef NDEBUG | 5748 #ifndef NDEBUG |
| 5742 using namespace blink; | 5749 using namespace blink; |
| 5743 void showLiveDocumentInstances() | 5750 void showLiveDocumentInstances() |
| 5744 { | 5751 { |
| 5745 WeakDocumentSet& set = liveDocumentSet(); | 5752 WeakDocumentSet& set = liveDocumentSet(); |
| 5746 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5753 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5747 for (Document* document : set) | 5754 for (Document* document : set) |
| 5748 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5755 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5749 } | 5756 } |
| 5750 #endif | 5757 #endif |
| OLD | NEW |