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

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

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 3 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 2760 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 case CSSPropertyMargin: 2771 case CSSPropertyMargin:
2772 return valuesForSidesShorthand(marginShorthand()); 2772 return valuesForSidesShorthand(marginShorthand());
2773 case CSSPropertyOutline: 2773 case CSSPropertyOutline:
2774 return valuesForShorthandProperty(outlineShorthand()); 2774 return valuesForShorthandProperty(outlineShorthand());
2775 case CSSPropertyPadding: 2775 case CSSPropertyPadding:
2776 return valuesForSidesShorthand(paddingShorthand()); 2776 return valuesForSidesShorthand(paddingShorthand());
2777 /* Individual properties not part of the spec */ 2777 /* Individual properties not part of the spec */
2778 case CSSPropertyBackgroundRepeatX: 2778 case CSSPropertyBackgroundRepeatX:
2779 case CSSPropertyBackgroundRepeatY: 2779 case CSSPropertyBackgroundRepeatY:
2780 break; 2780 break;
2781 case CSSPropertyInternalCallback:
2782 // This property is hidden from the web.
2783 return 0;
2781 2784
2782 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */ 2785 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */
2783 case CSSPropertyWebkitTextEmphasis: 2786 case CSSPropertyWebkitTextEmphasis:
2784 case CSSPropertyTextLineThroughColor: 2787 case CSSPropertyTextLineThroughColor:
2785 case CSSPropertyTextLineThroughMode: 2788 case CSSPropertyTextLineThroughMode:
2786 case CSSPropertyTextLineThroughStyle: 2789 case CSSPropertyTextLineThroughStyle:
2787 case CSSPropertyTextLineThroughWidth: 2790 case CSSPropertyTextLineThroughWidth:
2788 case CSSPropertyTextOverlineColor: 2791 case CSSPropertyTextOverlineColor:
2789 case CSSPropertyTextOverlineMode: 2792 case CSSPropertyTextOverlineMode:
2790 case CSSPropertyTextOverlineStyle: 2793 case CSSPropertyTextOverlineStyle:
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3156 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3154 CSSPropertyB ackgroundClip }; 3157 CSSPropertyB ackgroundClip };
3155 3158
3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 3159 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 3160 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 3161 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
3159 return list.release(); 3162 return list.release();
3160 } 3163 }
3161 3164
3162 } // namespace WebCore 3165 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698