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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.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) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 } 306 }
307 307
308 Node::InsertionNotificationRequest HTMLObjectElement::insertedInto(ContainerNode * insertionPoint) 308 Node::InsertionNotificationRequest HTMLObjectElement::insertedInto(ContainerNode * insertionPoint)
309 { 309 {
310 HTMLPlugInElement::insertedInto(insertionPoint); 310 HTMLPlugInElement::insertedInto(insertionPoint);
311 FormAssociatedElement::insertedInto(insertionPoint); 311 FormAssociatedElement::insertedInto(insertionPoint);
312 return InsertionDone; 312 return InsertionDone;
313 } 313 }
314 314
315 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) 315 void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint, Node* next)
316 { 316 {
317 HTMLPlugInElement::removedFrom(insertionPoint); 317 HTMLPlugInElement::removedFrom(insertionPoint, next);
318 FormAssociatedElement::removedFrom(insertionPoint); 318 FormAssociatedElement::removedFrom(insertionPoint, next);
319 } 319 }
320 320
321 void HTMLObjectElement::childrenChanged(const ChildrenChange& change) 321 void HTMLObjectElement::childrenChanged(const ChildrenChange& change)
322 { 322 {
323 if (inDocument() && !useFallbackContent()) { 323 if (inDocument() && !useFallbackContent()) {
324 setNeedsWidgetUpdate(true); 324 setNeedsWidgetUpdate(true);
325 lazyReattachIfNeeded(); 325 lazyReattachIfNeeded();
326 } 326 }
327 HTMLPlugInElement::childrenChanged(change); 327 HTMLPlugInElement::childrenChanged(change);
328 } 328 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 { 444 {
445 return fastHasAttribute(usemapAttr); 445 return fastHasAttribute(usemapAttr);
446 } 446 }
447 447
448 bool HTMLObjectElement::useFallbackContent() const 448 bool HTMLObjectElement::useFallbackContent() const
449 { 449 {
450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; 450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent;
451 } 451 }
452 452
453 } 453 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698