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

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

Issue 313813002: Oilpan: Replace RefPtrs to Node and its subclasses in core/dom/ with Oilpan transtion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 467
468 void LinkStyle::setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource* cachedStyleSheet) 468 void LinkStyle::setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource* cachedStyleSheet)
469 { 469 {
470 if (!m_owner->inDocument()) { 470 if (!m_owner->inDocument()) {
471 ASSERT(!m_sheet); 471 ASSERT(!m_sheet);
472 return; 472 return;
473 473
474 } 474 }
475 // Completing the sheet load may cause scripts to execute. 475 // Completing the sheet load may cause scripts to execute.
476 RefPtrWillBeRawPtr<Node> protector(m_owner); 476 RefPtrWillBeRawPtr<Node> protector(m_owner.get());
tkent 2014/06/04 08:58:45 RawPtr constructors are ambiguous in this case.
477 477
478 CSSParserContext parserContext(m_owner->document(), 0, baseURL, charset); 478 CSSParserContext parserContext(m_owner->document(), 0, baseURL, charset);
479 479
480 if (RefPtrWillBeRawPtr<StyleSheetContents> restoredSheet = const_cast<CSSSty leSheetResource*>(cachedStyleSheet)->restoreParsedStyleSheet(parserContext)) { 480 if (RefPtrWillBeRawPtr<StyleSheetContents> restoredSheet = const_cast<CSSSty leSheetResource*>(cachedStyleSheet)->restoreParsedStyleSheet(parserContext)) {
481 ASSERT(restoredSheet->isCacheable()); 481 ASSERT(restoredSheet->isCacheable());
482 ASSERT(!restoredSheet->isLoading()); 482 ASSERT(!restoredSheet->isLoading());
483 483
484 if (m_sheet) 484 if (m_sheet)
485 clearSheet(); 485 clearSheet();
486 m_sheet = CSSStyleSheet::create(restoredSheet, m_owner); 486 m_sheet = CSSStyleSheet::create(restoredSheet, m_owner);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 removePendingSheet(); 709 removePendingSheet();
710 } 710 }
711 711
712 void LinkStyle::trace(Visitor* visitor) 712 void LinkStyle::trace(Visitor* visitor)
713 { 713 {
714 visitor->trace(m_sheet); 714 visitor->trace(m_sheet);
715 LinkResource::trace(visitor); 715 LinkResource::trace(visitor);
716 } 716 }
717 717
718 } // namespace WebCore 718 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698