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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Worked on Review Comments done Created 3 years, 9 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #include "core/css/CSSBorderImageSliceValue.h" 26 #include "core/css/CSSBorderImageSliceValue.h"
27 27
28 #include "wtf/text/WTFString.h" 28 #include "wtf/text/WTFString.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 CSSBorderImageSliceValue::CSSBorderImageSliceValue(CSSQuadValue* slices, 32 CSSBorderImageSliceValue::CSSBorderImageSliceValue(CSSQuadValue* slices,
33 bool fill) 33 bool fill)
34 : CSSValue(BorderImageSliceClass), m_slices(slices), m_fill(fill) { 34 : CSSValue(BorderImageSliceClass), m_slices(slices), m_fill(fill) {
35 ASSERT(m_slices); 35 DCHECK(m_slices);
36 } 36 }
37 37
38 String CSSBorderImageSliceValue::customCSSText() const { 38 String CSSBorderImageSliceValue::customCSSText() const {
39 // Dump the slices first. 39 // Dump the slices first.
40 String text = m_slices->cssText(); 40 String text = m_slices->cssText();
41 41
42 // Now the fill keywords if it is present. 42 // Now the fill keywords if it is present.
43 if (m_fill) 43 if (m_fill)
44 return text + " fill"; 44 return text + " fill";
45 return text; 45 return text;
46 } 46 }
47 47
48 bool CSSBorderImageSliceValue::equals( 48 bool CSSBorderImageSliceValue::equals(
49 const CSSBorderImageSliceValue& other) const { 49 const CSSBorderImageSliceValue& other) const {
50 return m_fill == other.m_fill && dataEquivalent(m_slices, other.m_slices); 50 return m_fill == other.m_fill && dataEquivalent(m_slices, other.m_slices);
51 } 51 }
52 52
53 DEFINE_TRACE_AFTER_DISPATCH(CSSBorderImageSliceValue) { 53 DEFINE_TRACE_AFTER_DISPATCH(CSSBorderImageSliceValue) {
54 visitor->trace(m_slices); 54 visitor->trace(m_slices);
55 CSSValue::traceAfterDispatch(visitor); 55 CSSValue::traceAfterDispatch(visitor);
56 } 56 }
57 57
58 } // namespace blink 58 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698