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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 setSelectionRange(std::min(end, selectionStart()), end, selectionDirection()
); | 182 setSelectionRange(std::min(end, selectionStart()), end, selectionDirection()
); |
183 } | 183 } |
184 | 184 |
185 void HTMLTextFormControlElement::setSelectionDirection(const String& direction) | 185 void HTMLTextFormControlElement::setSelectionDirection(const String& direction) |
186 { | 186 { |
187 setSelectionRange(selectionStart(), selectionEnd(), direction); | 187 setSelectionRange(selectionStart(), selectionEnd(), direction); |
188 } | 188 } |
189 | 189 |
190 void HTMLTextFormControlElement::select(NeedToDispatchSelectEvent eventBehaviour
) | 190 void HTMLTextFormControlElement::select(NeedToDispatchSelectEvent eventBehaviour
) |
191 { | 191 { |
192 document().updateLayoutIgnorePendingStylesheets(); | 192 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
193 setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirectio
n, eventBehaviour, isFocusable() ? ChangeSelectionAndFocus : NotChangeSelection)
; | 193 setSelectionRange(0, std::numeric_limits<int>::max(), SelectionHasNoDirectio
n, eventBehaviour, isFocusable() ? ChangeSelectionAndFocus : NotChangeSelection)
; |
194 } | 194 } |
195 | 195 |
196 bool HTMLTextFormControlElement::shouldDispatchFormControlChangeEvent(String& ol
dValue, String& newValue) | 196 bool HTMLTextFormControlElement::shouldDispatchFormControlChangeEvent(String& ol
dValue, String& newValue) |
197 { | 197 { |
198 return !equalIgnoringNullity(oldValue, newValue); | 198 return !equalIgnoringNullity(oldValue, newValue); |
199 } | 199 } |
200 | 200 |
201 void HTMLTextFormControlElement::dispatchFormControlChangeEvent() | 201 void HTMLTextFormControlElement::dispatchFormControlChangeEvent() |
202 { | 202 { |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 } | 1028 } |
1029 | 1029 |
1030 void HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(const Ele
ment& source) | 1030 void HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(const Ele
ment& source) |
1031 { | 1031 { |
1032 const HTMLTextFormControlElement& sourceElement = static_cast<const HTMLText
FormControlElement&>(source); | 1032 const HTMLTextFormControlElement& sourceElement = static_cast<const HTMLText
FormControlElement&>(source); |
1033 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; | 1033 m_lastChangeWasUserEdit = sourceElement.m_lastChangeWasUserEdit; |
1034 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); | 1034 HTMLFormControlElement::copyNonAttributePropertiesFromElement(source); |
1035 } | 1035 } |
1036 | 1036 |
1037 } // namespace blink | 1037 } // namespace blink |
OLD | NEW |