Chromium Code Reviews| 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 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 #include "wtf/text/StringBuilder.h" | 46 #include "wtf/text/StringBuilder.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 using namespace HTMLNames; | 50 using namespace HTMLNames; |
| 51 using namespace std; | 51 using namespace std; |
| 52 | 52 |
| 53 HTMLTextFormControlElement::HTMLTextFormControlElement(const QualifiedName& tagN ame, Document& doc, HTMLFormElement* form) | 53 HTMLTextFormControlElement::HTMLTextFormControlElement(const QualifiedName& tagN ame, Document& doc, HTMLFormElement* form) |
| 54 : HTMLFormControlElementWithState(tagName, doc, form) | 54 : HTMLFormControlElementWithState(tagName, doc, form) |
| 55 , m_lastChangeWasUserEdit(false) | 55 , m_lastChangeWasUserEdit(false) |
| 56 , m_cachedSelectionStart(-1) | 56 , m_cachedSelectionStart(0) |
| 57 , m_cachedSelectionEnd(-1) | 57 , m_cachedSelectionEnd(0) |
|
tkent
2014/04/09 00:16:48
hasCachedSelection() never returns false. We shou
harpreet.sk
2014/04/09 14:19:43
hasCachedSelection() is removed and assertions is
| |
| 58 , m_cachedSelectionDirection(SelectionHasNoDirection) | 58 , m_cachedSelectionDirection(SelectionHasNoDirection) |
| 59 { | 59 { |
| 60 } | 60 } |
| 61 | 61 |
| 62 HTMLTextFormControlElement::~HTMLTextFormControlElement() | 62 HTMLTextFormControlElement::~HTMLTextFormControlElement() |
| 63 { | 63 { |
| 64 } | 64 } |
| 65 | 65 |
| 66 Node::InsertionNotificationRequest HTMLTextFormControlElement::insertedInto(Cont ainerNode* insertionPoint) | 66 Node::InsertionNotificationRequest HTMLTextFormControlElement::insertedInto(Cont ainerNode* insertionPoint) |
| 67 { | 67 { |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 647 | 647 |
| 648 return "ltr"; | 648 return "ltr"; |
| 649 } | 649 } |
| 650 | 650 |
| 651 HTMLElement* HTMLTextFormControlElement::innerTextElement() const | 651 HTMLElement* HTMLTextFormControlElement::innerTextElement() const |
| 652 { | 652 { |
| 653 return toHTMLElement(userAgentShadowRoot()->getElementById(ShadowElementName s::innerEditor())); | 653 return toHTMLElement(userAgentShadowRoot()->getElementById(ShadowElementName s::innerEditor())); |
| 654 } | 654 } |
| 655 | 655 |
| 656 } // namespace Webcore | 656 } // namespace Webcore |
| OLD | NEW |