| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if (!m_imageLoader) | 139 if (!m_imageLoader) |
| 140 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); | 140 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); |
| 141 return m_imageLoader.get(); | 141 return m_imageLoader.get(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot*) | 144 void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot*) |
| 145 { | 145 { |
| 146 m_inputType->createShadowSubtree(); | 146 m_inputType->createShadowSubtree(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void HTMLInputElement::didAddShadowRoot(ShadowRoot& root) |
| 150 { |
| 151 if (!root.isOldestAuthorShadowRoot()) |
| 152 return; |
| 153 m_inputTypeView = InputTypeView::create(this); |
| 154 } |
| 155 |
| 149 HTMLInputElement::~HTMLInputElement() | 156 HTMLInputElement::~HTMLInputElement() |
| 150 { | 157 { |
| 151 // Need to remove form association while this is still an HTMLInputElement | 158 // Need to remove form association while this is still an HTMLInputElement |
| 152 // so that virtual functions are called correctly. | 159 // so that virtual functions are called correctly. |
| 153 setForm(0); | 160 setForm(0); |
| 154 // setForm(0) may register this to a document-level radio button group. | 161 // setForm(0) may register this to a document-level radio button group. |
| 155 // We should unregister it to avoid accessing a deleted object. | 162 // We should unregister it to avoid accessing a deleted object. |
| 156 if (isRadioButton()) | 163 if (isRadioButton()) |
| 157 document().formController()->checkedRadioButtons().removeButton(this); | 164 document().formController()->checkedRadioButtons().removeButton(this); |
| 158 if (m_hasTouchEventHandler) | 165 if (m_hasTouchEventHandler) |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 } | 1884 } |
| 1878 | 1885 |
| 1879 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1886 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1880 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1887 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1881 { | 1888 { |
| 1882 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1889 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1883 } | 1890 } |
| 1884 #endif | 1891 #endif |
| 1885 | 1892 |
| 1886 } // namespace | 1893 } // namespace |
| OLD | NEW |