| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const String& charset) | 74 const String& charset) |
| 75 : StyleSheetResource(resourceRequest, | 75 : StyleSheetResource(resourceRequest, |
| 76 XSLStyleSheet, | 76 XSLStyleSheet, |
| 77 options, | 77 options, |
| 78 "text/xsl", | 78 "text/xsl", |
| 79 charset) {} | 79 charset) {} |
| 80 | 80 |
| 81 void XSLStyleSheetResource::didAddClient(ResourceClient* c) { | 81 void XSLStyleSheetResource::didAddClient(ResourceClient* c) { |
| 82 DCHECK(StyleSheetResourceClient::isExpectedType(c)); | 82 DCHECK(StyleSheetResourceClient::isExpectedType(c)); |
| 83 Resource::didAddClient(c); | 83 Resource::didAddClient(c); |
| 84 if (!isLoading()) | 84 if (!isLoading()) { |
| 85 static_cast<StyleSheetResourceClient*>(c)->setXSLStyleSheet( | 85 static_cast<StyleSheetResourceClient*>(c)->setXSLStyleSheet( |
| 86 resourceRequest().url(), response().url(), m_sheet); | 86 resourceRequest().url(), response().url(), m_sheet); |
| 87 } |
| 87 } | 88 } |
| 88 | 89 |
| 89 void XSLStyleSheetResource::checkNotify() { | 90 void XSLStyleSheetResource::checkNotify() { |
| 90 if (data()) | 91 if (data()) |
| 91 m_sheet = decodedText(); | 92 m_sheet = decodedText(); |
| 92 | 93 |
| 93 ResourceClientWalker<StyleSheetResourceClient> w(clients()); | 94 ResourceClientWalker<StyleSheetResourceClient> w(clients()); |
| 94 while (StyleSheetResourceClient* c = w.next()) { | 95 while (StyleSheetResourceClient* c = w.next()) { |
| 95 markClientFinished(c); | 96 markClientFinished(c); |
| 96 c->setXSLStyleSheet(resourceRequest().url(), response().url(), m_sheet); | 97 c->setXSLStyleSheet(resourceRequest().url(), response().url(), m_sheet); |
| 97 } | 98 } |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |