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

Side by Side Diff: Source/core/dom/ProcessingInstruction.cpp

Issue 904143002: Revert "CSS: Drop the quirks-mode exception for CSS MIME types." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/css/StyleSheetContents.cpp ('k') | Source/core/fetch/CSSStyleSheetResource.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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008, 2009 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 RefPtrWillBeRawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet, this); 218 RefPtrWillBeRawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet, this);
219 cssSheet->setDisabled(m_alternate); 219 cssSheet->setDisabled(m_alternate);
220 cssSheet->setTitle(m_title); 220 cssSheet->setTitle(m_title);
221 cssSheet->setMediaQueries(MediaQuerySet::create(m_media)); 221 cssSheet->setMediaQueries(MediaQuerySet::create(m_media));
222 222
223 m_sheet = cssSheet.release(); 223 m_sheet = cssSheet.release();
224 224
225 // We don't need the cross-origin security check here because we are 225 // We don't need the cross-origin security check here because we are
226 // getting the sheet text in "strict" mode. This enforces a valid CSS MIME 226 // getting the sheet text in "strict" mode. This enforces a valid CSS MIME
227 // type. 227 // type.
228 parseStyleSheet(sheet->sheetText()); 228 parseStyleSheet(sheet->sheetText(true));
229 } 229 }
230 230
231 void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas eURL, const String& sheet) 231 void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas eURL, const String& sheet)
232 { 232 {
233 if (!inDocument()) { 233 if (!inDocument()) {
234 ASSERT(!m_sheet); 234 ASSERT(!m_sheet);
235 return; 235 return;
236 } 236 }
237 237
238 ASSERT(m_isXSL); 238 ASSERT(m_isXSL);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 m_sheet.release()->clearOwnerNode(); 315 m_sheet.release()->clearOwnerNode();
316 } 316 }
317 317
318 void ProcessingInstruction::trace(Visitor* visitor) 318 void ProcessingInstruction::trace(Visitor* visitor)
319 { 319 {
320 visitor->trace(m_sheet); 320 visitor->trace(m_sheet);
321 CharacterData::trace(visitor); 321 CharacterData::trace(visitor);
322 } 322 }
323 323
324 } // namespace 324 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/fetch/CSSStyleSheetResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698