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

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: Initial Created 7 years, 5 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
« no previous file with comments | « Source/WebKit/chromium/tests/WebFrameTest.cpp ('k') | Source/core/css/CSSParser-in.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 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2686 return getCSSPropertyValuesForSidesShorthand(marginShorthand()); 2686 return getCSSPropertyValuesForSidesShorthand(marginShorthand());
2687 case CSSPropertyOutline: 2687 case CSSPropertyOutline:
2688 return getCSSPropertyValuesForShorthandProperties(outlineShorthand() ); 2688 return getCSSPropertyValuesForShorthandProperties(outlineShorthand() );
2689 case CSSPropertyPadding: 2689 case CSSPropertyPadding:
2690 return getCSSPropertyValuesForSidesShorthand(paddingShorthand()); 2690 return getCSSPropertyValuesForSidesShorthand(paddingShorthand());
2691 /* Individual properties not part of the spec */ 2691 /* Individual properties not part of the spec */
2692 case CSSPropertyBackgroundRepeatX: 2692 case CSSPropertyBackgroundRepeatX:
2693 case CSSPropertyBackgroundRepeatY: 2693 case CSSPropertyBackgroundRepeatY:
2694 break; 2694 break;
2695 2695
2696 #if ENABLE(CSS_CALLBACKS)
2697 case CSSPropertyInternalCallback:
2698 // This property is hidden from the web.
2699 return 0;
2700 #endif
2701
2696 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */ 2702 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */
2697 case CSSPropertyWebkitTextEmphasis: 2703 case CSSPropertyWebkitTextEmphasis:
2698 case CSSPropertyTextLineThroughColor: 2704 case CSSPropertyTextLineThroughColor:
2699 case CSSPropertyTextLineThroughMode: 2705 case CSSPropertyTextLineThroughMode:
2700 case CSSPropertyTextLineThroughStyle: 2706 case CSSPropertyTextLineThroughStyle:
2701 case CSSPropertyTextLineThroughWidth: 2707 case CSSPropertyTextLineThroughWidth:
2702 case CSSPropertyTextOverlineColor: 2708 case CSSPropertyTextOverlineColor:
2703 case CSSPropertyTextOverlineMode: 2709 case CSSPropertyTextOverlineMode:
2704 case CSSPropertyTextOverlineStyle: 2710 case CSSPropertyTextOverlineStyle:
2705 case CSSPropertyTextOverlineWidth: 2711 case CSSPropertyTextOverlineWidth:
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3017 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3023 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3018 CSSPropertyB ackgroundClip }; 3024 CSSPropertyB ackgroundClip };
3019 3025
3020 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 3026 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
3021 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(CSSPropertyBackground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(prope rtiesBeforeSlashSeperator)))); 3027 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(CSSPropertyBackground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(prope rtiesBeforeSlashSeperator))));
3022 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(CSSPropertyBackground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(proper tiesAfterSlashSeperator)))); 3028 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha nd(CSSPropertyBackground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(proper tiesAfterSlashSeperator))));
3023 return list.release(); 3029 return list.release();
3024 } 3030 }
3025 3031
3026 } // namespace WebCore 3032 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/tests/WebFrameTest.cpp ('k') | Source/core/css/CSSParser-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698