| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |