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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 27544002: Have Document::fonts() return a raw pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/dom/Document.h ('k') | no next file » | 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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5245 m_templateDocument = HTMLDocument::create(init); 5245 m_templateDocument = HTMLDocument::create(init);
5246 } else { 5246 } else {
5247 m_templateDocument = Document::create(DocumentInit(blankURL())); 5247 m_templateDocument = Document::create(DocumentInit(blankURL()));
5248 } 5248 }
5249 5249
5250 m_templateDocument->setTemplateDocumentHost(this); // balanced in dtor. 5250 m_templateDocument->setTemplateDocumentHost(this); // balanced in dtor.
5251 5251
5252 return *m_templateDocument.get(); 5252 return *m_templateDocument.get();
5253 } 5253 }
5254 5254
5255 PassRefPtr<FontFaceSet> Document::fonts() 5255 FontFaceSet* Document::fonts()
5256 { 5256 {
5257 if (!m_fonts) 5257 if (!m_fonts)
5258 m_fonts = FontFaceSet::create(this); 5258 m_fonts = FontFaceSet::create(this);
5259 return m_fonts; 5259 return m_fonts.get();
5260 } 5260 }
5261 5261
5262 void Document::didAssociateFormControl(Element* element) 5262 void Document::didAssociateFormControl(Element* element)
5263 { 5263 {
5264 if (!frame() || !frame()->page()) 5264 if (!frame() || !frame()->page())
5265 return; 5265 return;
5266 m_associatedFormControls.add(element); 5266 m_associatedFormControls.add(element);
5267 if (!m_didAssociateFormControlsTimer.isActive()) 5267 if (!m_didAssociateFormControlsTimer.isActive())
5268 m_didAssociateFormControlsTimer.startOneShot(0); 5268 m_didAssociateFormControlsTimer.startOneShot(0);
5269 } 5269 }
(...skipping 20 matching lines...) Expand all
5290 { 5290 {
5291 return DocumentLifecycleNotifier::create(this); 5291 return DocumentLifecycleNotifier::create(this);
5292 } 5292 }
5293 5293
5294 DocumentLifecycleNotifier* Document::lifecycleNotifier() 5294 DocumentLifecycleNotifier* Document::lifecycleNotifier()
5295 { 5295 {
5296 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier()); 5296 return static_cast<DocumentLifecycleNotifier*>(ExecutionContext::lifecycleNo tifier());
5297 } 5297 }
5298 5298
5299 } // namespace WebCore 5299 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698