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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 } | 330 } |
331 | 331 |
332 bool HTMLInputElement::shouldShowFocusRingOnMouseFocus() const | 332 bool HTMLInputElement::shouldShowFocusRingOnMouseFocus() const |
333 { | 333 { |
334 return m_inputType->shouldShowFocusRingOnMouseFocus(); | 334 return m_inputType->shouldShowFocusRingOnMouseFocus(); |
335 } | 335 } |
336 | 336 |
337 void HTMLInputElement::updateFocusAppearance(bool restorePreviousSelection) | 337 void HTMLInputElement::updateFocusAppearance(bool restorePreviousSelection) |
338 { | 338 { |
339 if (isTextField()) { | 339 if (isTextField()) { |
340 if (!restorePreviousSelection || !hasCachedSelection()) | 340 if (!restorePreviousSelection) |
341 select(); | 341 select(); |
342 else | 342 else |
343 restoreCachedSelection(); | 343 restoreCachedSelection(); |
344 if (document().frame()) | 344 if (document().frame()) |
345 document().frame()->selection().revealSelection(); | 345 document().frame()->selection().revealSelection(); |
346 } else | 346 } else |
347 HTMLTextFormControlElement::updateFocusAppearance(restorePreviousSelecti
on); | 347 HTMLTextFormControlElement::updateFocusAppearance(restorePreviousSelecti
on); |
348 } | 348 } |
349 | 349 |
350 void HTMLInputElement::beginEditing() | 350 void HTMLInputElement::beginEditing() |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 } | 1876 } |
1877 | 1877 |
1878 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1878 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1879 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1879 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1880 { | 1880 { |
1881 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1881 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1882 } | 1882 } |
1883 #endif | 1883 #endif |
1884 | 1884 |
1885 } // namespace | 1885 } // namespace |
OLD | NEW |