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

Side by Side Diff: Source/bindings/v8/custom/V8CSSRuleCustom.cpp

Issue 13646013: Enable support for CSS Conditional Rules (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/WebKit/chromium/features.gypi ('k') | Source/core/css/CSSGrammar.y.in » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "V8CSSRule.h" 32 #include "V8CSSRule.h"
33 33
34 #include "V8CSSCharsetRule.h" 34 #include "V8CSSCharsetRule.h"
35 #include "V8CSSFontFaceRule.h" 35 #include "V8CSSFontFaceRule.h"
36 #include "V8CSSHostRule.h" 36 #include "V8CSSHostRule.h"
37 #include "V8CSSImportRule.h" 37 #include "V8CSSImportRule.h"
38 #include "V8CSSMediaRule.h" 38 #include "V8CSSMediaRule.h"
39 #include "V8CSSPageRule.h" 39 #include "V8CSSPageRule.h"
40 #include "V8CSSStyleRule.h" 40 #include "V8CSSStyleRule.h"
41 #if ENABLE(CSS3_CONDITIONAL_RULES)
42 #include "V8CSSSupportsRule.h" 41 #include "V8CSSSupportsRule.h"
43 #endif
44 #include "V8WebKitCSSFilterRule.h" 42 #include "V8WebKitCSSFilterRule.h"
45 #include "V8WebKitCSSKeyframeRule.h" 43 #include "V8WebKitCSSKeyframeRule.h"
46 #include "V8WebKitCSSKeyframesRule.h" 44 #include "V8WebKitCSSKeyframesRule.h"
47 #include "V8WebKitCSSRegionRule.h" 45 #include "V8WebKitCSSRegionRule.h"
48 46
49 #if ENABLE(CSS_DEVICE_ADAPTATION) 47 #if ENABLE(CSS_DEVICE_ADAPTATION)
50 #include "V8WebKitCSSViewportRule.h" 48 #include "V8WebKitCSSViewportRule.h"
51 #endif 49 #endif
52 50
53 namespace WebCore { 51 namespace WebCore {
(...skipping 16 matching lines...) Expand all
70 case CSSRule::MEDIA_RULE: 68 case CSSRule::MEDIA_RULE:
71 return wrap(static_cast<CSSMediaRule*>(impl), creationContext, isolate); 69 return wrap(static_cast<CSSMediaRule*>(impl), creationContext, isolate);
72 case CSSRule::FONT_FACE_RULE: 70 case CSSRule::FONT_FACE_RULE:
73 return wrap(static_cast<CSSFontFaceRule*>(impl), creationContext, isolat e); 71 return wrap(static_cast<CSSFontFaceRule*>(impl), creationContext, isolat e);
74 case CSSRule::PAGE_RULE: 72 case CSSRule::PAGE_RULE:
75 return wrap(static_cast<CSSPageRule*>(impl), creationContext, isolate); 73 return wrap(static_cast<CSSPageRule*>(impl), creationContext, isolate);
76 case CSSRule::WEBKIT_KEYFRAME_RULE: 74 case CSSRule::WEBKIT_KEYFRAME_RULE:
77 return wrap(static_cast<WebKitCSSKeyframeRule*>(impl), creationContext, isolate); 75 return wrap(static_cast<WebKitCSSKeyframeRule*>(impl), creationContext, isolate);
78 case CSSRule::WEBKIT_KEYFRAMES_RULE: 76 case CSSRule::WEBKIT_KEYFRAMES_RULE:
79 return wrap(static_cast<WebKitCSSKeyframesRule*>(impl), creationContext, isolate); 77 return wrap(static_cast<WebKitCSSKeyframesRule*>(impl), creationContext, isolate);
80 #if ENABLE(CSS3_CONDITIONAL_RULES)
81 case CSSRule::SUPPORTS_RULE: 78 case CSSRule::SUPPORTS_RULE:
82 return wrap(static_cast<CSSSupportsRule*>(impl), creationContext, isolat e); 79 return wrap(static_cast<CSSSupportsRule*>(impl), creationContext, isolat e);
83 #endif
84 #if ENABLE(CSS_DEVICE_ADAPTATION) 80 #if ENABLE(CSS_DEVICE_ADAPTATION)
85 case CSSRule::WEBKIT_VIEWPORT_RULE: 81 case CSSRule::WEBKIT_VIEWPORT_RULE:
86 return wrap(static_cast<WebKitCSSViewportRule*>(impl), creationContext, isolate); 82 return wrap(static_cast<WebKitCSSViewportRule*>(impl), creationContext, isolate);
87 #endif 83 #endif
88 case CSSRule::WEBKIT_REGION_RULE: 84 case CSSRule::WEBKIT_REGION_RULE:
89 return wrap(static_cast<WebKitCSSRegionRule*>(impl), creationContext, is olate); 85 return wrap(static_cast<WebKitCSSRegionRule*>(impl), creationContext, is olate);
90 case CSSRule::HOST_RULE: 86 case CSSRule::HOST_RULE:
91 return wrap(static_cast<CSSHostRule*>(impl), creationContext, isolate); 87 return wrap(static_cast<CSSHostRule*>(impl), creationContext, isolate);
92 case CSSRule::WEBKIT_FILTER_RULE: 88 case CSSRule::WEBKIT_FILTER_RULE:
93 return wrap(static_cast<WebKitCSSFilterRule*>(impl), creationContext, is olate); 89 return wrap(static_cast<WebKitCSSFilterRule*>(impl), creationContext, is olate);
94 } 90 }
95 return V8CSSRule::createWrapper(impl, creationContext, isolate); 91 return V8CSSRule::createWrapper(impl, creationContext, isolate);
96 } 92 }
97 93
98 } // namespace WebCore 94 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/features.gypi ('k') | Source/core/css/CSSGrammar.y.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698