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

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

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 years 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
116 void PendingScript::setElement(Element* element) 111 void PendingScript::setElement(Element* element)
117 { 112 {
118 m_element = element; 113 m_element = element;
119 } 114 }
120 115
121 PassRefPtrWillBeRawPtr<Element> PendingScript::releaseElementAndClear() 116 PassRefPtrWillBeRawPtr<Element> PendingScript::releaseElementAndClear()
122 { 117 {
123 setScriptResource(0); 118 setScriptResource(0);
124 m_watchingForLoad = false; 119 m_watchingForLoad = false;
125 m_startingPosition = TextPosition::belowRangePosition(); 120 m_startingPosition = TextPosition::belowRangePosition();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 bool PendingScript::isReady() const 210 bool PendingScript::isReady() const
216 { 211 {
217 if (resource() && !resource()->isLoaded()) 212 if (resource() && !resource()->isLoaded())
218 return false; 213 return false;
219 if (m_streamer && !m_streamer->isFinished()) 214 if (m_streamer && !m_streamer->isFinished())
220 return false; 215 return false;
221 return true; 216 return true;
222 } 217 }
223 218
224 } 219 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/PendingScript.h ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698