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

Side by Side Diff: sky/engine/core/html/HTMLImportElement.cpp

Issue 751493003: Add support for import@async (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/engine/core/html/HTMLImportElement.h" 6 #include "sky/engine/core/html/HTMLImportElement.h"
7 7
8 #include "gen/sky/core/EventTypeNames.h" 8 #include "gen/sky/core/EventTypeNames.h"
9 #include "sky/engine/core/dom/Document.h" 9 #include "sky/engine/core/dom/Document.h"
10 #include "sky/engine/core/events/Event.h" 10 #include "sky/engine/core/events/Event.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child) 69 void HTMLImportElement::importChildWasDestroyed(HTMLImportChild* child)
70 { 70 {
71 ASSERT(m_child == child); 71 ASSERT(m_child == child);
72 m_child = nullptr; 72 m_child = nullptr;
73 } 73 }
74 74
75 bool HTMLImportElement::isSync() const 75 bool HTMLImportElement::isSync() const
76 { 76 {
77 return true; 77 return !hasAttribute(HTMLNames::asyncAttr);
78 } 78 }
79 79
80 Element* HTMLImportElement::link() 80 Element* HTMLImportElement::link()
81 { 81 {
82 return this; 82 return this;
83 } 83 }
84 84
85 } 85 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698