| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // the end of current event loop. | 66 // the end of current event loop. |
| 67 class DelayedSVGImageDestructor { | 67 class DelayedSVGImageDestructor { |
| 68 public: | 68 public: |
| 69 void add(PassOwnPtr<SVGImageChromeClient> chromeClient, PassOwnPtr<Page> pag
e) | 69 void add(PassOwnPtr<SVGImageChromeClient> chromeClient, PassOwnPtr<Page> pag
e) |
| 70 { | 70 { |
| 71 Entry entry; | 71 Entry entry; |
| 72 entry.chromeClient = chromeClient.leakPtr(); | 72 entry.chromeClient = chromeClient.leakPtr(); |
| 73 entry.page = page.leakPtr(); | 73 entry.page = page.leakPtr(); |
| 74 | 74 |
| 75 m_entries.append(entry); | 75 m_entries.append(entry); |
| 76 m_detachTimer.startOneShot(0.0); | 76 m_detachTimer.startOneShot(0.0, FROM_HERE); |
| 77 } | 77 } |
| 78 | 78 |
| 79 static DelayedSVGImageDestructor* get() | 79 static DelayedSVGImageDestructor* get() |
| 80 { | 80 { |
| 81 DEFINE_STATIC_LOCAL(DelayedSVGImageDestructor, delayed, ()); | 81 DEFINE_STATIC_LOCAL(DelayedSVGImageDestructor, delayed, ()); |
| 82 return &delayed; | 82 return &delayed; |
| 83 } | 83 } |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 DelayedSVGImageDestructor() | 86 DelayedSVGImageDestructor() |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 return m_page; | 475 return m_page; |
| 476 } | 476 } |
| 477 | 477 |
| 478 String SVGImage::filenameExtension() const | 478 String SVGImage::filenameExtension() const |
| 479 { | 479 { |
| 480 return "svg"; | 480 return "svg"; |
| 481 } | 481 } |
| 482 | 482 |
| 483 } | 483 } |
| OLD | NEW |