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

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

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/custom/V8DocumentCustom.cpp ('k') | Source/core/css/CSSParser.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 * 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 CSSPropertyWebkitOverflowScrolling, 316 CSSPropertyWebkitOverflowScrolling,
317 #endif 317 #endif
318 CSSPropertyWebkitPerspective, 318 CSSPropertyWebkitPerspective,
319 CSSPropertyWebkitPerspectiveOrigin, 319 CSSPropertyWebkitPerspectiveOrigin,
320 CSSPropertyWebkitPrintColorAdjust, 320 CSSPropertyWebkitPrintColorAdjust,
321 CSSPropertyWebkitRtlOrdering, 321 CSSPropertyWebkitRtlOrdering,
322 #if ENABLE(CSS_EXCLUSIONS) 322 #if ENABLE(CSS_EXCLUSIONS)
323 CSSPropertyWebkitShapeInside, 323 CSSPropertyWebkitShapeInside,
324 CSSPropertyWebkitShapeOutside, 324 CSSPropertyWebkitShapeOutside,
325 #endif 325 #endif
326 #if ENABLE(TOUCH_EVENTS)
326 CSSPropertyWebkitTapHighlightColor, 327 CSSPropertyWebkitTapHighlightColor,
328 #endif
327 CSSPropertyWebkitTextCombine, 329 CSSPropertyWebkitTextCombine,
328 CSSPropertyWebkitTextDecorationsInEffect, 330 CSSPropertyWebkitTextDecorationsInEffect,
329 CSSPropertyWebkitTextEmphasisColor, 331 CSSPropertyWebkitTextEmphasisColor,
330 CSSPropertyWebkitTextEmphasisPosition, 332 CSSPropertyWebkitTextEmphasisPosition,
331 CSSPropertyWebkitTextEmphasisStyle, 333 CSSPropertyWebkitTextEmphasisStyle,
332 CSSPropertyWebkitTextFillColor, 334 CSSPropertyWebkitTextFillColor,
333 CSSPropertyWebkitTextOrientation, 335 CSSPropertyWebkitTextOrientation,
334 CSSPropertyWebkitTextSecurity, 336 CSSPropertyWebkitTextSecurity,
335 CSSPropertyWebkitTextStrokeColor, 337 CSSPropertyWebkitTextStrokeColor,
336 CSSPropertyWebkitTextStrokeWidth, 338 CSSPropertyWebkitTextStrokeWidth,
(...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2425 } 2427 }
2426 else { 2428 else {
2427 list->append(zoomAdjustedPixelValueForLength(style->perspectiveO riginX(), style.get())); 2429 list->append(zoomAdjustedPixelValueForLength(style->perspectiveO riginX(), style.get()));
2428 list->append(zoomAdjustedPixelValueForLength(style->perspectiveO riginY(), style.get())); 2430 list->append(zoomAdjustedPixelValueForLength(style->perspectiveO riginY(), style.get()));
2429 2431
2430 } 2432 }
2431 return list.release(); 2433 return list.release();
2432 } 2434 }
2433 case CSSPropertyWebkitRtlOrdering: 2435 case CSSPropertyWebkitRtlOrdering:
2434 return cssValuePool().createIdentifierValue(style->rtlOrdering() ? C SSValueVisual : CSSValueLogical); 2436 return cssValuePool().createIdentifierValue(style->rtlOrdering() ? C SSValueVisual : CSSValueLogical);
2437 #if ENABLE(TOUCH_EVENTS)
2435 case CSSPropertyWebkitTapHighlightColor: 2438 case CSSPropertyWebkitTapHighlightColor:
2436 return currentColorOrValidColor(style.get(), style->tapHighlightColo r()); 2439 return currentColorOrValidColor(style.get(), style->tapHighlightColo r());
2440 #endif
2437 case CSSPropertyWebkitUserDrag: 2441 case CSSPropertyWebkitUserDrag:
2438 return cssValuePool().createValue(style->userDrag()); 2442 return cssValuePool().createValue(style->userDrag());
2439 case CSSPropertyWebkitUserSelect: 2443 case CSSPropertyWebkitUserSelect:
2440 return cssValuePool().createValue(style->userSelect()); 2444 return cssValuePool().createValue(style->userSelect());
2441 case CSSPropertyBorderBottomLeftRadius: 2445 case CSSPropertyBorderBottomLeftRadius:
2442 return getBorderRadiusCornerValue(style->borderBottomLeftRadius(), s tyle.get(), m_node->document()->renderView()); 2446 return getBorderRadiusCornerValue(style->borderBottomLeftRadius(), s tyle.get(), m_node->document()->renderView());
2443 case CSSPropertyBorderBottomRightRadius: 2447 case CSSPropertyBorderBottomRightRadius:
2444 return getBorderRadiusCornerValue(style->borderBottomRightRadius(), style.get(), m_node->document()->renderView()); 2448 return getBorderRadiusCornerValue(style->borderBottomRightRadius(), style.get(), m_node->document()->renderView());
2445 case CSSPropertyBorderTopLeftRadius: 2449 case CSSPropertyBorderTopLeftRadius:
2446 return getBorderRadiusCornerValue(style->borderTopLeftRadius(), styl e.get(), m_node->document()->renderView()); 2450 return getBorderRadiusCornerValue(style->borderTopLeftRadius(), styl e.get(), m_node->document()->renderView());
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 2993 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
2990 CSSPropertyB ackgroundClip }; 2994 CSSPropertyB ackgroundClip };
2991 2995
2992 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 2996 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
2993 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat or)))); 2997 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat or))));
2994 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator )))); 2998 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator ))));
2995 return list.release(); 2999 return list.release();
2996 } 3000 }
2997 3001
2998 } // namespace WebCore 3002 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8DocumentCustom.cpp ('k') | Source/core/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698