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

Side by Side Diff: third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp

Issue 2353903002: {CSS,XSL}StyleSheetResource should mark their clients as finished on checkNotify (Closed)
Patch Set: yhirano style Created 4 years, 3 months 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (!isLoading()) 76 if (!isLoading())
77 static_cast<StyleSheetResourceClient*>(c)->setXSLStyleSheet(resourceRequ est().url(), response().url(), m_sheet); 77 static_cast<StyleSheetResourceClient*>(c)->setXSLStyleSheet(resourceRequ est().url(), response().url(), m_sheet);
78 } 78 }
79 79
80 void XSLStyleSheetResource::checkNotify() 80 void XSLStyleSheetResource::checkNotify()
81 { 81 {
82 if (data()) 82 if (data())
83 m_sheet = decodedText(); 83 m_sheet = decodedText();
84 84
85 ResourceClientWalker<StyleSheetResourceClient> w(clients()); 85 ResourceClientWalker<StyleSheetResourceClient> w(clients());
86 while (StyleSheetResourceClient* c = w.next()) 86 while (StyleSheetResourceClient* c = w.next()) {
87 markClientFinished(c);
87 c->setXSLStyleSheet(resourceRequest().url(), response().url(), m_sheet); 88 c->setXSLStyleSheet(resourceRequest().url(), response().url(), m_sheet);
89 }
88 } 90 }
89 91
90 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698