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

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

Issue 31063004: Have Frame::loader() return a reference (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/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('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) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved.
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 void HTMLHtmlElement::insertedByParser() 61 void HTMLHtmlElement::insertedByParser()
62 { 62 {
63 // When parsing a fragment, its dummy document has a null parser. 63 // When parsing a fragment, its dummy document has a null parser.
64 if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfN avigation()) 64 if (!document().parser() || !document().parser()->documentWasLoadedAsPartOfN avigation())
65 return; 65 return;
66 66
67 if (!document().frame()) 67 if (!document().frame())
68 return; 68 return;
69 69
70 DocumentLoader* documentLoader = document().frame()->loader()->documentLoade r(); 70 DocumentLoader* documentLoader = document().frame()->loader().documentLoader ();
71 if (!documentLoader) 71 if (!documentLoader)
72 return; 72 return;
73 73
74 const AtomicString& manifest = getAttribute(manifestAttr); 74 const AtomicString& manifest = getAttribute(manifestAttr);
75 if (manifest.isEmpty()) 75 if (manifest.isEmpty())
76 documentLoader->applicationCacheHost()->selectCacheWithoutManifest(); 76 documentLoader->applicationCacheHost()->selectCacheWithoutManifest();
77 else 77 else
78 documentLoader->applicationCacheHost()->selectCacheWithManifest(document ().completeURL(manifest)); 78 documentLoader->applicationCacheHost()->selectCacheWithManifest(document ().completeURL(manifest));
79 } 79 }
80 80
81 } 81 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698