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

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

Issue 15797004: Cleanup WebKit prefixed names for classes in css directory. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
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 19 matching lines...) Expand all
30 30
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 "V8CSSRegionRule.h"
40 #include "V8CSSStyleRule.h" 41 #include "V8CSSStyleRule.h"
41 #include "V8CSSSupportsRule.h" 42 #include "V8CSSSupportsRule.h"
42 #include "V8WebKitCSSFilterRule.h" 43 #include "V8WebKitCSSFilterRule.h"
43 #include "V8WebKitCSSKeyframeRule.h" 44 #include "V8WebKitCSSKeyframeRule.h"
44 #include "V8WebKitCSSKeyframesRule.h" 45 #include "V8WebKitCSSKeyframesRule.h"
45 #include "V8WebKitCSSRegionRule.h"
46 46
47 #if ENABLE(CSS_DEVICE_ADAPTATION) 47 #if ENABLE(CSS_DEVICE_ADAPTATION)
48 #include "V8WebKitCSSViewportRule.h" 48 #include "V8CSSViewportRule.h"
49 #endif 49 #endif
50 50
51 namespace WebCore { 51 namespace WebCore {
52 52
53 v8::Handle<v8::Object> wrap(CSSRule* impl, v8::Handle<v8::Object> creationContex t, v8::Isolate* isolate) 53 v8::Handle<v8::Object> wrap(CSSRule* impl, v8::Handle<v8::Object> creationContex t, v8::Isolate* isolate)
54 { 54 {
55 ASSERT(impl); 55 ASSERT(impl);
56 switch (impl->type()) { 56 switch (impl->type()) {
57 case CSSRule::UNKNOWN_RULE: 57 case CSSRule::UNKNOWN_RULE:
58 // CSSUnknownRule.idl is explicitly excluded as it doesn't add anything 58 // CSSUnknownRule.idl is explicitly excluded as it doesn't add anything
(...skipping 16 matching lines...) Expand all
75 return wrap(static_cast<WebKitCSSKeyframeRule*>(impl), creationContext, isolate); 75 return wrap(static_cast<WebKitCSSKeyframeRule*>(impl), creationContext, isolate);
76 case CSSRule::WEBKIT_KEYFRAMES_RULE: 76 case CSSRule::WEBKIT_KEYFRAMES_RULE:
77 return wrap(static_cast<WebKitCSSKeyframesRule*>(impl), creationContext, isolate); 77 return wrap(static_cast<WebKitCSSKeyframesRule*>(impl), creationContext, isolate);
78 case CSSRule::SUPPORTS_RULE: 78 case CSSRule::SUPPORTS_RULE:
79 return wrap(static_cast<CSSSupportsRule*>(impl), creationContext, isolat e); 79 return wrap(static_cast<CSSSupportsRule*>(impl), creationContext, isolat e);
80 #if ENABLE(CSS_DEVICE_ADAPTATION) 80 #if ENABLE(CSS_DEVICE_ADAPTATION)
81 case CSSRule::WEBKIT_VIEWPORT_RULE: 81 case CSSRule::WEBKIT_VIEWPORT_RULE:
82 return wrap(static_cast<WebKitCSSViewportRule*>(impl), creationContext, isolate); 82 return wrap(static_cast<WebKitCSSViewportRule*>(impl), creationContext, isolate);
83 #endif 83 #endif
84 case CSSRule::WEBKIT_REGION_RULE: 84 case CSSRule::WEBKIT_REGION_RULE:
85 return wrap(static_cast<WebKitCSSRegionRule*>(impl), creationContext, is olate); 85 return wrap(static_cast<CSSRegionRule*>(impl), creationContext, isolate) ;
86 case CSSRule::HOST_RULE: 86 case CSSRule::HOST_RULE:
87 return wrap(static_cast<CSSHostRule*>(impl), creationContext, isolate); 87 return wrap(static_cast<CSSHostRule*>(impl), creationContext, isolate);
88 case CSSRule::WEBKIT_FILTER_RULE: 88 case CSSRule::WEBKIT_FILTER_RULE:
89 return wrap(static_cast<WebKitCSSFilterRule*>(impl), creationContext, is olate); 89 return wrap(static_cast<WebKitCSSFilterRule*>(impl), creationContext, is olate);
90 } 90 }
91 return V8CSSRule::createWrapper(impl, creationContext, isolate); 91 return V8CSSRule::createWrapper(impl, creationContext, isolate);
92 } 92 }
93 93
94 } // namespace WebCore 94 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698