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

Side by Side Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.h

Issue 1903803002: Do not block painting for in-body CSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed premature script execution Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void clearSheet(); 88 void clearSheet();
89 89
90 String debugName() const override { return "ProcessingInstruction"; } 90 String debugName() const override { return "ProcessingInstruction"; }
91 91
92 String m_target; 92 String m_target;
93 String m_localHref; 93 String m_localHref;
94 String m_title; 94 String m_title;
95 String m_media; 95 String m_media;
96 Member<StyleSheet> m_sheet; 96 Member<StyleSheet> m_sheet;
97 bool m_loading; 97 bool m_loading;
98 bool m_beforeBody;
98 bool m_alternate; 99 bool m_alternate;
99 bool m_isCSS; 100 bool m_isCSS;
100 bool m_isXSL; 101 bool m_isXSL;
101 102
102 Member<DetachableEventListener> m_listenerForXSLT; 103 Member<DetachableEventListener> m_listenerForXSLT;
103 }; 104 };
104 105
105 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_ INSTRUCTION_NODE); 106 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_ INSTRUCTION_NODE);
106 107
107 inline bool isXSLStyleSheet(const Node& node) 108 inline bool isXSLStyleSheet(const Node& node)
108 { 109 {
109 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi ngInstruction(node).isXSL(); 110 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi ngInstruction(node).isXSL();
110 } 111 }
111 112
112 } // namespace blink 113 } // namespace blink
113 114
114 #endif // ProcessingInstruction_h 115 #endif // ProcessingInstruction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698