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

Side by Side Diff: Source/core/css/CSSStyleSheet.cpp

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 #if !ASSERT_DISABLED 58 #if !ASSERT_DISABLED
59 static bool isAcceptableCSSStyleSheetParent(Node* parentNode) 59 static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
60 { 60 {
61 // Only these nodes can be parents of StyleSheets, and they need to call cle arOwnerNode() when moved out of document. 61 // Only these nodes can be parents of StyleSheets, and they need to call cle arOwnerNode() when moved out of document.
62 return !parentNode 62 return !parentNode
63 || parentNode->isDocumentNode() 63 || parentNode->isDocumentNode()
64 || parentNode->hasTagName(HTMLNames::linkTag) 64 || parentNode->hasTagName(HTMLNames::linkTag)
65 || parentNode->hasTagName(HTMLNames::styleTag) 65 || parentNode->hasTagName(HTMLNames::styleTag)
66 || parentNode->hasTagName(SVGNames::styleTag) 66 || parentNode->hasTagName(SVGNames::styleTag)
67 || parentNode->hasTagName(HTMLNames::metaTag)
67 || parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE; 68 || parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE;
68 } 69 }
69 #endif 70 #endif
70 71
71 PassRefPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtr<StyleSheetContents> s heet, CSSImportRule* ownerRule) 72 PassRefPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtr<StyleSheetContents> s heet, CSSImportRule* ownerRule)
72 { 73 {
73 return adoptRef(new CSSStyleSheet(sheet, ownerRule)); 74 return adoptRef(new CSSStyleSheet(sheet, ownerRule));
74 } 75 }
75 76
76 PassRefPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtr<StyleSheetContents> s heet, Node* ownerNode) 77 PassRefPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtr<StyleSheetContents> s heet, Node* ownerNode)
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 root = root->parentStyleSheet(); 360 root = root->parentStyleSheet();
360 return root->ownerNode() ? root->ownerNode()->document() : 0; 361 return root->ownerNode() ? root->ownerNode()->document() : 0;
361 } 362 }
362 363
363 void CSSStyleSheet::clearChildRuleCSSOMWrappers() 364 void CSSStyleSheet::clearChildRuleCSSOMWrappers()
364 { 365 {
365 m_childRuleCSSOMWrappers.clear(); 366 m_childRuleCSSOMWrappers.clear();
366 } 367 }
367 368
368 } 369 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698