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

Side by Side Diff: third_party/WebKit/Source/core/dom/PendingScript.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 return; 101 return;
102 ASSERT(resource()); 102 ASSERT(resource());
103 if (m_streamer) { 103 if (m_streamer) {
104 m_streamer->removeClient(client); 104 m_streamer->removeClient(client);
105 } else { 105 } else {
106 resource()->removeClient(client); 106 resource()->removeClient(client);
107 } 107 }
108 m_watchingForLoad = false; 108 m_watchingForLoad = false;
109 } 109 }
110 110
111 Element* PendingScript::element() const
112 {
113 return m_element.get();
114 }
115
111 void PendingScript::setElement(Element* element) 116 void PendingScript::setElement(Element* element)
112 { 117 {
113 m_element = element; 118 m_element = element;
114 } 119 }
115 120
116 PassRefPtrWillBeRawPtr<Element> PendingScript::releaseElementAndClear() 121 PassRefPtrWillBeRawPtr<Element> PendingScript::releaseElementAndClear()
117 { 122 {
118 setScriptResource(0); 123 setScriptResource(0);
119 m_watchingForLoad = false; 124 m_watchingForLoad = false;
120 m_startingPosition = TextPosition::belowRangePosition(); 125 m_startingPosition = TextPosition::belowRangePosition();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool PendingScript::isReady() const 215 bool PendingScript::isReady() const
211 { 216 {
212 if (resource() && !resource()->isLoaded()) 217 if (resource() && !resource()->isLoaded())
213 return false; 218 return false;
214 if (m_streamer && !m_streamer->isFinished()) 219 if (m_streamer && !m_streamer->isFinished())
215 return false; 220 return false;
216 return true; 221 return true;
217 } 222 }
218 223
219 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698