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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #endif 67 #endif
68 68
69 virtual unsigned length() const OVERRIDE { return m_styleSheet->length(); } 69 virtual unsigned length() const OVERRIDE { return m_styleSheet->length(); }
70 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_styleSheet-> item(index); } 70 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_styleSheet-> item(index); }
71 71
72 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_styleSheet; } 72 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_styleSheet; }
73 73
74 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet; 74 RawPtrWillBeMember<CSSStyleSheet> m_styleSheet;
75 }; 75 };
76 76
77 #if !ASSERT_DISABLED 77 #if ASSERT_ENABLED
78 static bool isAcceptableCSSStyleSheetParent(Node* parentNode) 78 static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
79 { 79 {
80 // Only these nodes can be parents of StyleSheets, and they need to call 80 // Only these nodes can be parents of StyleSheets, and they need to call
81 // clearOwnerNode() when moved out of document. 81 // clearOwnerNode() when moved out of document.
82 // Destruction of the style sheet counts as being "moved out of the 82 // Destruction of the style sheet counts as being "moved out of the
83 // document", but only in the non-oilpan version of blink. I.e. don't call 83 // document", but only in the non-oilpan version of blink. I.e. don't call
84 // clearOwnerNode() in the owner's destructor in oilpan. 84 // clearOwnerNode() in the owner's destructor in oilpan.
85 return !parentNode 85 return !parentNode
86 || parentNode->isDocumentNode() 86 || parentNode->isDocumentNode()
87 || isHTMLLinkElement(*parentNode) 87 || isHTMLLinkElement(*parentNode)
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 visitor->trace(m_mediaQueries); 460 visitor->trace(m_mediaQueries);
461 visitor->trace(m_ownerNode); 461 visitor->trace(m_ownerNode);
462 visitor->trace(m_ownerRule); 462 visitor->trace(m_ownerRule);
463 visitor->trace(m_mediaCSSOMWrapper); 463 visitor->trace(m_mediaCSSOMWrapper);
464 visitor->trace(m_childRuleCSSOMWrappers); 464 visitor->trace(m_childRuleCSSOMWrappers);
465 visitor->trace(m_ruleListCSSOMWrapper); 465 visitor->trace(m_ruleListCSSOMWrapper);
466 StyleSheet::trace(visitor); 466 StyleSheet::trace(visitor);
467 } 467 }
468 468
469 } 469 }
OLDNEW
« no previous file with comments | « Source/bindings/v8/ExceptionStatePlaceholder.cpp ('k') | Source/core/css/resolver/FontBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698