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

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

Issue 462133002: Remove custom style building functions for 'clip'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 4 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) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 return cssValuePool().createValue(style->userSelect()); 2522 return cssValuePool().createValue(style->userSelect());
2523 case CSSPropertyBorderBottomLeftRadius: 2523 case CSSPropertyBorderBottomLeftRadius:
2524 return valueForBorderRadiusCorner(style->borderBottomLeftRadius(), * style); 2524 return valueForBorderRadiusCorner(style->borderBottomLeftRadius(), * style);
2525 case CSSPropertyBorderBottomRightRadius: 2525 case CSSPropertyBorderBottomRightRadius:
2526 return valueForBorderRadiusCorner(style->borderBottomRightRadius(), *style); 2526 return valueForBorderRadiusCorner(style->borderBottomRightRadius(), *style);
2527 case CSSPropertyBorderTopLeftRadius: 2527 case CSSPropertyBorderTopLeftRadius:
2528 return valueForBorderRadiusCorner(style->borderTopLeftRadius(), *sty le); 2528 return valueForBorderRadiusCorner(style->borderTopLeftRadius(), *sty le);
2529 case CSSPropertyBorderTopRightRadius: 2529 case CSSPropertyBorderTopRightRadius:
2530 return valueForBorderRadiusCorner(style->borderTopRightRadius(), *st yle); 2530 return valueForBorderRadiusCorner(style->borderTopRightRadius(), *st yle);
2531 case CSSPropertyClip: { 2531 case CSSPropertyClip: {
2532 if (!style->hasClip()) 2532 if (style->hasAutoClip())
2533 return cssValuePool().createIdentifierValue(CSSValueAuto); 2533 return cssValuePool().createIdentifierValue(CSSValueAuto);
2534 RefPtrWillBeRawPtr<Rect> rect = Rect::create(); 2534 RefPtrWillBeRawPtr<Rect> rect = Rect::create();
2535 rect->setTop(zoomAdjustedPixelValue(style->clip().top().value(), *st yle)); 2535 rect->setTop(zoomAdjustedPixelValue(style->clip().top().value(), *st yle));
2536 rect->setRight(zoomAdjustedPixelValue(style->clip().right().value(), *style)); 2536 rect->setRight(zoomAdjustedPixelValue(style->clip().right().value(), *style));
2537 rect->setBottom(zoomAdjustedPixelValue(style->clip().bottom().value( ), *style)); 2537 rect->setBottom(zoomAdjustedPixelValue(style->clip().bottom().value( ), *style));
2538 rect->setLeft(zoomAdjustedPixelValue(style->clip().left().value(), * style)); 2538 rect->setLeft(zoomAdjustedPixelValue(style->clip().left().value(), * style));
2539 return cssValuePool().createValue(rect.release()); 2539 return cssValuePool().createValue(rect.release());
2540 } 2540 }
2541 case CSSPropertySpeak: 2541 case CSSPropertySpeak:
2542 return cssValuePool().createValue(style->speak()); 2542 return cssValuePool().createValue(style->speak());
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3008 return list.release(); 3008 return list.release();
3009 } 3009 }
3010 3010
3011 void CSSComputedStyleDeclaration::trace(Visitor* visitor) 3011 void CSSComputedStyleDeclaration::trace(Visitor* visitor)
3012 { 3012 {
3013 visitor->trace(m_node); 3013 visitor->trace(m_node);
3014 CSSStyleDeclaration::trace(visitor); 3014 CSSStyleDeclaration::trace(visitor);
3015 } 3015 }
3016 3016
3017 } // namespace blink 3017 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698