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

Side by Side Diff: Source/core/html/imports/HTMLImportChild.cpp

Issue 331763002: HTML Imports: styles in removed imports should be applied when it comes back (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/LinkImport.h » ('j') | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 #if !ENABLE(OILPAN) 59 #if !ENABLE(OILPAN)
60 // importDestroyed() should be called before the destruction. 60 // importDestroyed() should be called before the destruction.
61 ASSERT(!m_loader); 61 ASSERT(!m_loader);
62 62
63 if (m_client) 63 if (m_client)
64 m_client->importChildWasDestroyed(this); 64 m_client->importChildWasDestroyed(this);
65 #endif 65 #endif
66 } 66 }
67 67
68 void HTMLImportChild::ownerInserted()
69 {
70 if (!m_loader->isDone())
71 return;
72 root()->document()->styleResolverChanged();
73 }
74
68 void HTMLImportChild::didShareLoader() 75 void HTMLImportChild::didShareLoader()
69 { 76 {
70 createCustomElementMicrotaskStepIfNeeded(); 77 createCustomElementMicrotaskStepIfNeeded();
71 stateWillChange(); 78 stateWillChange();
72 } 79 }
73 80
74 void HTMLImportChild::didStartLoading() 81 void HTMLImportChild::didStartLoading()
75 { 82 {
76 createCustomElementMicrotaskStepIfNeeded(); 83 createCustomElementMicrotaskStepIfNeeded();
77 } 84 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 227
221 void HTMLImportChild::trace(Visitor* visitor) 228 void HTMLImportChild::trace(Visitor* visitor)
222 { 229 {
223 visitor->trace(m_customElementMicrotaskStep); 230 visitor->trace(m_customElementMicrotaskStep);
224 visitor->trace(m_loader); 231 visitor->trace(m_loader);
225 visitor->trace(m_client); 232 visitor->trace(m_client);
226 HTMLImport::trace(visitor); 233 HTMLImport::trace(visitor);
227 } 234 }
228 235
229 } // namespace WebCore 236 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/LinkImport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698