| 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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 removeFromRadioButtonGroup(); | 1471 removeFromRadioButtonGroup(); |
| 1472 HTMLTextFormControlElement::willChangeForm(); | 1472 HTMLTextFormControlElement::willChangeForm(); |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 void HTMLInputElement::didChangeForm() | 1475 void HTMLInputElement::didChangeForm() |
| 1476 { | 1476 { |
| 1477 HTMLTextFormControlElement::didChangeForm(); | 1477 HTMLTextFormControlElement::didChangeForm(); |
| 1478 addToRadioButtonGroup(); | 1478 addToRadioButtonGroup(); |
| 1479 } | 1479 } |
| 1480 | 1480 |
| 1481 void HTMLInputElement::addToRadioButtonGroupCallback(Node* node) | |
| 1482 { | |
| 1483 toHTMLInputElement(node)->addToRadioButtonGroup(); | |
| 1484 } | |
| 1485 | |
| 1486 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode*
insertionPoint) | 1481 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode*
insertionPoint) |
| 1487 { | 1482 { |
| 1488 HTMLTextFormControlElement::insertedInto(insertionPoint); | 1483 HTMLTextFormControlElement::insertedInto(insertionPoint); |
| 1489 if (insertionPoint->inDocument() && !form() && checkedRadioButtons()) | 1484 if (insertionPoint->inDocument() && !form()) |
| 1490 queueInsertionCallback(addToRadioButtonGroupCallback, this); | 1485 addToRadioButtonGroup(); |
| 1491 resetListAttributeTargetObserver(); | 1486 resetListAttributeTargetObserver(); |
| 1492 return InsertionDone; | 1487 return InsertionDone; |
| 1493 } | 1488 } |
| 1494 | 1489 |
| 1495 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint) | 1490 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint) |
| 1496 { | 1491 { |
| 1497 if (insertionPoint->inDocument() && !form()) | 1492 if (insertionPoint->inDocument() && !form()) |
| 1498 removeFromRadioButtonGroup(); | 1493 removeFromRadioButtonGroup(); |
| 1499 HTMLTextFormControlElement::removedFrom(insertionPoint); | 1494 HTMLTextFormControlElement::removedFrom(insertionPoint); |
| 1500 ASSERT(!inDocument()); | 1495 ASSERT(!inDocument()); |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 } | 1926 } |
| 1932 | 1927 |
| 1933 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1928 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1934 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1929 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1935 { | 1930 { |
| 1936 return m_inputType->customStyleForRenderer(originalStyleForRenderer()); | 1931 return m_inputType->customStyleForRenderer(originalStyleForRenderer()); |
| 1937 } | 1932 } |
| 1938 #endif | 1933 #endif |
| 1939 | 1934 |
| 1940 } // namespace | 1935 } // namespace |
| OLD | NEW |