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

Side by Side Diff: Source/core/html/HTMLLinkElement.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFrameElementBase.cpp ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 { 451 {
452 ASSERT(m_pendingSheetType < Blocking); 452 ASSERT(m_pendingSheetType < Blocking);
453 addPendingSheet(Blocking); 453 addPendingSheet(Blocking);
454 } 454 }
455 455
456 void LinkStyle::clearSheet() 456 void LinkStyle::clearSheet()
457 { 457 {
458 ASSERT(m_sheet); 458 ASSERT(m_sheet);
459 ASSERT(m_sheet->ownerNode() == m_owner); 459 ASSERT(m_sheet->ownerNode() == m_owner);
460 m_sheet->clearOwnerNode(); 460 m_sheet->clearOwnerNode();
461 m_sheet = 0; 461 m_sheet = nullptr;
462 } 462 }
463 463
464 bool LinkStyle::styleSheetIsLoading() const 464 bool LinkStyle::styleSheetIsLoading() const
465 { 465 {
466 if (m_loading) 466 if (m_loading)
467 return true; 467 return true;
468 if (!m_sheet) 468 if (!m_sheet)
469 return false; 469 return false;
470 return m_sheet->contents()->isLoading(); 470 return m_sheet->contents()->isLoading();
471 } 471 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 void LinkStyle::ownerRemoved() 626 void LinkStyle::ownerRemoved()
627 { 627 {
628 if (m_sheet) 628 if (m_sheet)
629 clearSheet(); 629 clearSheet();
630 630
631 if (styleSheetIsLoading()) 631 if (styleSheetIsLoading())
632 removePendingSheet(RemovePendingSheetNotifyLater); 632 removePendingSheet(RemovePendingSheetNotifyLater);
633 } 633 }
634 634
635 } // namespace WebCore 635 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameElementBase.cpp ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698