Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode* insertionPoint) 1508 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode* insertionPoint)
1509 { 1509 {
1510 HTMLTextFormControlElement::insertedInto(insertionPoint); 1510 HTMLTextFormControlElement::insertedInto(insertionPoint);
1511 if (insertionPoint->inDocument() && !form()) 1511 if (insertionPoint->inDocument() && !form())
1512 addToRadioButtonGroup(); 1512 addToRadioButtonGroup();
1513 resetListAttributeTargetObserver(); 1513 resetListAttributeTargetObserver();
1514 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "input", fastGetAttr ibute(typeAttr), fastGetAttribute(formactionAttr)); 1514 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "input", fastGetAttr ibute(typeAttr), fastGetAttribute(formactionAttr));
1515 return InsertionShouldCallDidNotifySubtreeInsertions; 1515 return InsertionShouldCallDidNotifySubtreeInsertions;
1516 } 1516 }
1517 1517
1518 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint) 1518 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint, Node* next)
1519 { 1519 {
1520 m_inputTypeView->closePopupView(); 1520 m_inputTypeView->closePopupView();
1521 if (insertionPoint->inDocument() && !form()) 1521 if (insertionPoint->inDocument() && !form())
1522 removeFromRadioButtonGroup(); 1522 removeFromRadioButtonGroup();
1523 HTMLTextFormControlElement::removedFrom(insertionPoint); 1523 HTMLTextFormControlElement::removedFrom(insertionPoint, next);
1524 ASSERT(!inDocument()); 1524 ASSERT(!inDocument());
1525 resetListAttributeTargetObserver(); 1525 resetListAttributeTargetObserver();
1526 } 1526 }
1527 1527
1528 void HTMLInputElement::didMoveToNewDocument(Document& oldDocument) 1528 void HTMLInputElement::didMoveToNewDocument(Document& oldDocument)
1529 { 1529 {
1530 if (imageLoader()) 1530 if (imageLoader())
1531 imageLoader()->elementDidMoveToNewDocument(); 1531 imageLoader()->elementDidMoveToNewDocument();
1532 1532
1533 // FIXME: Remove type check. 1533 // FIXME: Remove type check.
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 void HTMLInputElement::ensurePrimaryContent() 1925 void HTMLInputElement::ensurePrimaryContent()
1926 { 1926 {
1927 m_inputTypeView->ensurePrimaryContent(); 1927 m_inputTypeView->ensurePrimaryContent();
1928 } 1928 }
1929 1929
1930 bool HTMLInputElement::hasFallbackContent() const 1930 bool HTMLInputElement::hasFallbackContent() const
1931 { 1931 {
1932 return m_inputTypeView->hasFallbackContent(); 1932 return m_inputTypeView->hasFallbackContent();
1933 } 1933 }
1934 } // namespace 1934 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698