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