| 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, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 void HTMLInputElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionB
ehavior) | 343 void HTMLInputElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionB
ehavior) |
| 344 { | 344 { |
| 345 if (isTextField()) { | 345 if (isTextField()) { |
| 346 switch (selectionBehavior) { | 346 switch (selectionBehavior) { |
| 347 case SelectionBehaviorOnFocus::Reset: | 347 case SelectionBehaviorOnFocus::Reset: |
| 348 select(NotDispatchSelectEvent); | 348 select(NotDispatchSelectEvent); |
| 349 break; | 349 break; |
| 350 case SelectionBehaviorOnFocus::Restore: | 350 case SelectionBehaviorOnFocus::Restore: |
| 351 restoreCachedSelection(); | 351 restoreCachedSelection(); |
| 352 break; | 352 break; |
| 353 case SelectionBehaviorOnFocus::None: |
| 354 // |None| is used only for FocusController::setFocusedElement and |
| 355 // Document::setFocusedElement, and they don't call |
| 356 // updateFocusAppearance(). |
| 357 ASSERT_NOT_REACHED(); |
| 353 } | 358 } |
| 354 if (document().frame()) | 359 if (document().frame()) |
| 355 document().frame()->selection().revealSelection(); | 360 document().frame()->selection().revealSelection(); |
| 356 } else { | 361 } else { |
| 357 HTMLTextFormControlElement::updateFocusAppearance(selectionBehavior); | 362 HTMLTextFormControlElement::updateFocusAppearance(selectionBehavior); |
| 358 } | 363 } |
| 359 } | 364 } |
| 360 | 365 |
| 361 void HTMLInputElement::beginEditing() | 366 void HTMLInputElement::beginEditing() |
| 362 { | 367 { |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 void HTMLInputElement::ensurePrimaryContent() | 1952 void HTMLInputElement::ensurePrimaryContent() |
| 1948 { | 1953 { |
| 1949 m_inputTypeView->ensurePrimaryContent(); | 1954 m_inputTypeView->ensurePrimaryContent(); |
| 1950 } | 1955 } |
| 1951 | 1956 |
| 1952 bool HTMLInputElement::hasFallbackContent() const | 1957 bool HTMLInputElement::hasFallbackContent() const |
| 1953 { | 1958 { |
| 1954 return m_inputTypeView->hasFallbackContent(); | 1959 return m_inputTypeView->hasFallbackContent(); |
| 1955 } | 1960 } |
| 1956 } // namespace | 1961 } // namespace |
| OLD | NEW |