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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.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) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser) ; 275 document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser) ;
276 276
277 process(); 277 process();
278 278
279 if (m_link) 279 if (m_link)
280 m_link->ownerInserted(); 280 m_link->ownerInserted();
281 281
282 return InsertionDone; 282 return InsertionDone;
283 } 283 }
284 284
285 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) 285 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint, Node* next)
286 { 286 {
287 HTMLElement::removedFrom(insertionPoint); 287 HTMLElement::removedFrom(insertionPoint, next);
288 if (!insertionPoint->inDocument()) 288 if (!insertionPoint->inDocument())
289 return; 289 return;
290 290
291 m_linkLoader.released(); 291 m_linkLoader.released();
292 292
293 if (m_isInShadowTree) { 293 if (m_isInShadowTree) {
294 ASSERT(!linkStyle() || !linkStyle()->hasSheet()); 294 ASSERT(!linkStyle() || !linkStyle()->hasSheet());
295 return; 295 return;
296 } 296 }
297 document().styleEngine().removeStyleSheetCandidateNode(this); 297 document().styleEngine().removeStyleSheetCandidateNode(this);
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 removePendingSheet(); 760 removePendingSheet();
761 } 761 }
762 762
763 DEFINE_TRACE(LinkStyle) 763 DEFINE_TRACE(LinkStyle)
764 { 764 {
765 visitor->trace(m_sheet); 765 visitor->trace(m_sheet);
766 LinkResource::trace(visitor); 766 LinkResource::trace(visitor);
767 } 767 }
768 768
769 } // namespace blink 769 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698