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

Side by Side Diff: Source/core/css/resolver/StyleBuilderCustom.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 NinePieceImage image; 682 NinePieceImage image;
683 state.styleMap().mapNinePieceImage(state.style(), CSSPropertyWebkitBorderIma ge, value, image); 683 state.styleMap().mapNinePieceImage(state.style(), CSSPropertyWebkitBorderIma ge, value, image);
684 state.style()->setBorderImage(image); 684 state.style()->setBorderImage(image);
685 } 685 }
686 686
687 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value) 687 void StyleBuilderFunctions::applyValueCSSPropertyWebkitClipPath(StyleResolverSta te& state, CSSValue* value)
688 { 688 {
689 if (value->isPrimitiveValue()) { 689 if (value->isPrimitiveValue()) {
690 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 690 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
691 if (primitiveValue->getValueID() == CSSValueNone) { 691 if (primitiveValue->getValueID() == CSSValueNone) {
692 state.style()->setClipPath(0); 692 state.style()->setClipPath(nullptr);
693 } else if (primitiveValue->isShape()) { 693 } else if (primitiveValue->isShape()) {
694 state.style()->setClipPath(ShapeClipPathOperation::create(basicShape ForValue(state, primitiveValue->getShapeValue()))); 694 state.style()->setClipPath(ShapeClipPathOperation::create(basicShape ForValue(state, primitiveValue->getShapeValue())));
695 } else if (primitiveValue->primitiveType() == CSSPrimitiveValue::CSS_URI ) { 695 } else if (primitiveValue->primitiveType() == CSSPrimitiveValue::CSS_URI ) {
696 String cssURLValue = primitiveValue->getStringValue(); 696 String cssURLValue = primitiveValue->getStringValue();
697 KURL url = state.document().completeURL(cssURLValue); 697 KURL url = state.document().completeURL(cssURLValue);
698 // FIXME: It doesn't work with forward or external SVG references (s ee https://bugs.webkit.org/show_bug.cgi?id=90405) 698 // FIXME: It doesn't work with forward or external SVG references (s ee https://bugs.webkit.org/show_bug.cgi?id=90405)
699 state.style()->setClipPath(ReferenceClipPathOperation::create(cssURL Value, AtomicString(url.fragmentIdentifier()))); 699 state.style()->setClipPath(ReferenceClipPathOperation::create(cssURL Value, AtomicString(url.fragmentIdentifier())));
700 } 700 }
701 } 701 }
702 } 702 }
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 break; 2171 break;
2172 } 2172 }
2173 case CSSPropertyEnableBackground: 2173 case CSSPropertyEnableBackground:
2174 // Silently ignoring this property for now 2174 // Silently ignoring this property for now
2175 // http://bugs.webkit.org/show_bug.cgi?id=6022 2175 // http://bugs.webkit.org/show_bug.cgi?id=6022
2176 break; 2176 break;
2177 } 2177 }
2178 } 2178 }
2179 2179
2180 } // namespace WebCore 2180 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/MatchedPropertiesCache.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698