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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 1062973002: Revert trial commit of "CssStyleDeclaration performance work" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/css_code_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 69df1e476921d45626d305f57592e653332ac93d..c8ffdd6d5dad4a1bf436fc78e8c6b3444a2ab8d9 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -4284,25 +4284,14 @@ class CssRule extends NativeFieldWrapperClass2 {
@DomName('CSSStyleDeclaration.setProperty')
void setProperty(String propertyName, String value, [String priority]) {
- return _setPropertyHelper(_browserPropertyName(propertyName),
- value, priority);
- }
-
- String _browserPropertyName(String propertyName) {
- String name = _readCache(propertyName);
- if (name is String) return name;
if (_supportsProperty(_camelCase(propertyName))) {
- name = propertyName;
+ return _setPropertyHelper(propertyName, value, priority);
} else {
- name = Device.cssPrefix + propertyName;
+ return _setPropertyHelper(Device.cssPrefix + propertyName, value,
+ priority);
}
- _writeCache(propertyName, name);
- return name;
}
- static String _readCache(String key) => null;
- static void _writeCache(String key, value) {}
-
static String _camelCase(String hyphenated) {
// The "ms" prefix is always lowercased.
return hyphenated.replaceFirst(new RegExp('^-ms-'), 'ms-').replaceAllMapped(
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/scripts/css_code_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698