| 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 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1424 String Document::nodeName() const | 1424 String Document::nodeName() const | 
| 1425 { | 1425 { | 
| 1426     return "#document"; | 1426     return "#document"; | 
| 1427 } | 1427 } | 
| 1428 | 1428 | 
| 1429 Node::NodeType Document::nodeType() const | 1429 Node::NodeType Document::nodeType() const | 
| 1430 { | 1430 { | 
| 1431     return DOCUMENT_NODE; | 1431     return DOCUMENT_NODE; | 
| 1432 } | 1432 } | 
| 1433 | 1433 | 
| 1434 FormController* Document::formController() | 1434 FormController& Document::formController() | 
| 1435 { | 1435 { | 
| 1436     if (!m_formController) | 1436     if (!m_formController) | 
| 1437         m_formController = FormController::create(); | 1437         m_formController = FormController::create(); | 
| 1438     return m_formController.get(); | 1438     return *m_formController; | 
| 1439 } | 1439 } | 
| 1440 | 1440 | 
| 1441 Vector<String> Document::formElementsState() const | 1441 Vector<String> Document::formElementsState() const | 
| 1442 { | 1442 { | 
| 1443     if (!m_formController) | 1443     if (!m_formController) | 
| 1444         return Vector<String>(); | 1444         return Vector<String>(); | 
| 1445     return m_formController->formElementsState(); | 1445     return m_formController->formElementsState(); | 
| 1446 } | 1446 } | 
| 1447 | 1447 | 
| 1448 void Document::setStateForNewFormElements(const Vector<String>& stateVector) | 1448 void Document::setStateForNewFormElements(const Vector<String>& stateVector) | 
| 1449 { | 1449 { | 
| 1450     if (!stateVector.size() && !m_formController) | 1450     if (!stateVector.size() && !m_formController) | 
| 1451         return; | 1451         return; | 
| 1452     formController()->setStateForNewFormElements(stateVector); | 1452     formController().setStateForNewFormElements(stateVector); | 
| 1453 } | 1453 } | 
| 1454 | 1454 | 
| 1455 FrameView* Document::view() const | 1455 FrameView* Document::view() const | 
| 1456 { | 1456 { | 
| 1457     return m_frame ? m_frame->view() : 0; | 1457     return m_frame ? m_frame->view() : 0; | 
| 1458 } | 1458 } | 
| 1459 | 1459 | 
| 1460 Page* Document::page() const | 1460 Page* Document::page() const | 
| 1461 { | 1461 { | 
| 1462     return m_frame ? m_frame->page() : 0; | 1462     return m_frame ? m_frame->page() : 0; | 
| (...skipping 3975 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5438 void Document::defaultEventHandler(Event* event) | 5438 void Document::defaultEventHandler(Event* event) | 
| 5439 { | 5439 { | 
| 5440     if (frame() && frame()->remotePlatformLayer()) { | 5440     if (frame() && frame()->remotePlatformLayer()) { | 
| 5441         frame()->chromeClient().forwardInputEvent(this, event); | 5441         frame()->chromeClient().forwardInputEvent(this, event); | 
| 5442         return; | 5442         return; | 
| 5443     } | 5443     } | 
| 5444     Node::defaultEventHandler(event); | 5444     Node::defaultEventHandler(event); | 
| 5445 } | 5445 } | 
| 5446 | 5446 | 
| 5447 } // namespace WebCore | 5447 } // namespace WebCore | 
| OLD | NEW | 
|---|