| 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 5241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5252 result.iterator->value = Locale::create(localeKey); | 5252 result.iterator->value = Locale::create(localeKey); |
| 5253 return *(result.iterator->value); | 5253 return *(result.iterator->value); |
| 5254 } | 5254 } |
| 5255 | 5255 |
| 5256 Document& Document::ensureTemplateDocument() | 5256 Document& Document::ensureTemplateDocument() |
| 5257 { | 5257 { |
| 5258 if (const Document* document = templateDocument()) | 5258 if (const Document* document = templateDocument()) |
| 5259 return *const_cast<Document*>(document); | 5259 return *const_cast<Document*>(document); |
| 5260 | 5260 |
| 5261 if (isHTMLDocument()) { | 5261 if (isHTMLDocument()) { |
| 5262 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()); | 5262 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()).withNewRegistrationContext(); |
| 5263 m_templateDocument = HTMLDocument::create(init); | 5263 m_templateDocument = HTMLDocument::create(init); |
| 5264 } else { | 5264 } else { |
| 5265 m_templateDocument = Document::create(DocumentInit(blankURL())); | 5265 m_templateDocument = Document::create(DocumentInit(blankURL())); |
| 5266 } | 5266 } |
| 5267 | 5267 |
| 5268 m_templateDocument->setTemplateDocumentHost(this); // balanced in dtor. | 5268 m_templateDocument->setTemplateDocumentHost(this); // balanced in dtor. |
| 5269 | 5269 |
| 5270 return *m_templateDocument.get(); | 5270 return *m_templateDocument.get(); |
| 5271 } | 5271 } |
| 5272 | 5272 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5370 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5370 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
| 5371 return false; | 5371 return false; |
| 5372 if (Frame* focusedFrame = page->focusController().focusedFrame()) { | 5372 if (Frame* focusedFrame = page->focusController().focusedFrame()) { |
| 5373 if (focusedFrame->tree().isDescendantOf(frame())) | 5373 if (focusedFrame->tree().isDescendantOf(frame())) |
| 5374 return true; | 5374 return true; |
| 5375 } | 5375 } |
| 5376 return false; | 5376 return false; |
| 5377 } | 5377 } |
| 5378 | 5378 |
| 5379 } // namespace WebCore | 5379 } // namespace WebCore |
| OLD | NEW |