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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSViewportRule.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 years, 8 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) 2012 Intel Corporation. All rights reserved. 2 * Copyright (C) 2012 Intel Corporation. All rights reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above 9 * 1. Redistributions of source code must retain the above
10 * copyright notice, this list of conditions and the following 10 * copyright notice, this list of conditions and the following
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 result.append(decls); 60 result.append(decls);
61 if (!decls.isEmpty()) 61 if (!decls.isEmpty())
62 result.append(' '); 62 result.append(' ');
63 63
64 result.append('}'); 64 result.append('}');
65 65
66 return result.toString(); 66 return result.toString();
67 } 67 }
68 68
69 void CSSViewportRule::reattach(StyleRuleBase* rule) { 69 void CSSViewportRule::reattach(StyleRuleBase* rule) {
70 ASSERT(rule); 70 DCHECK(rule);
71 m_viewportRule = toStyleRuleViewport(rule); 71 m_viewportRule = toStyleRuleViewport(rule);
72 if (m_propertiesCSSOMWrapper) 72 if (m_propertiesCSSOMWrapper)
73 m_propertiesCSSOMWrapper->reattach(m_viewportRule->mutableProperties()); 73 m_propertiesCSSOMWrapper->reattach(m_viewportRule->mutableProperties());
74 } 74 }
75 75
76 DEFINE_TRACE(CSSViewportRule) { 76 DEFINE_TRACE(CSSViewportRule) {
77 visitor->trace(m_viewportRule); 77 visitor->trace(m_viewportRule);
78 visitor->trace(m_propertiesCSSOMWrapper); 78 visitor->trace(m_propertiesCSSOMWrapper);
79 CSSRule::trace(visitor); 79 CSSRule::trace(visitor);
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValuePair.h ('k') | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698