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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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/CSSParserValues.cpp ('k') | Source/core/css/CSSSegmentedFontFace.cpp » ('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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 return 0; 866 return 0;
867 } 867 }
868 868
869 return m_value.quad; 869 return m_value.quad;
870 } 870 }
871 871
872 PassRefPtrWillBeRawPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionSt ate& exceptionState) const 872 PassRefPtrWillBeRawPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionSt ate& exceptionState) const
873 { 873 {
874 if (m_primitiveUnitType != CSS_RGBCOLOR) { 874 if (m_primitiveUnitType != CSS_RGBCOLOR) {
875 exceptionState.throwDOMException(InvalidAccessError, "This object is not an RGB color value."); 875 exceptionState.throwDOMException(InvalidAccessError, "This object is not an RGB color value.");
876 return 0; 876 return nullptr;
877 } 877 }
878 878
879 // FIMXE: This should not return a new object for each invocation. 879 // FIMXE: This should not return a new object for each invocation.
880 return RGBColor::create(m_value.rgbcolor); 880 return RGBColor::create(m_value.rgbcolor);
881 } 881 }
882 882
883 Pair* CSSPrimitiveValue::getPairValue(ExceptionState& exceptionState) const 883 Pair* CSSPrimitiveValue::getPairValue(ExceptionState& exceptionState) const
884 { 884 {
885 if (m_primitiveUnitType != CSS_PAIR) { 885 if (m_primitiveUnitType != CSS_PAIR) {
886 exceptionState.throwDOMException(InvalidAccessError, "This object is not a pair value."); 886 exceptionState.throwDOMException(InvalidAccessError, "This object is not a pair value.");
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 case CSS_SHAPE: 1278 case CSS_SHAPE:
1279 visitor->trace(m_value.shape); 1279 visitor->trace(m_value.shape);
1280 break; 1280 break;
1281 default: 1281 default:
1282 break; 1282 break;
1283 } 1283 }
1284 CSSValue::traceAfterDispatch(visitor); 1284 CSSValue::traceAfterDispatch(visitor);
1285 } 1285 }
1286 1286
1287 } // namespace WebCore 1287 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSParserValues.cpp ('k') | Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698