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

Issue 12213058: Fixing CharacterData.remove not working on FireFox. (Closed)

Created:
7 years, 10 months ago by blois
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fixing CharacterData.remove not working on FireFox. CharacterData was overriding remove, but was not supported on FF, so just removed the override. BUG=7173 Committed: https://code.google.com/p/dart/source/detail?r=18201

Patch Set 1 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 chunk +0 lines, -4 lines 1 comment Download
A tests/html/cdata_test.dart View 1 chunk +22 lines, -0 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
blois
7 years, 10 months ago (2013-02-07 00:35:27 UTC) #1
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/12213058/diff/5001/sdk/lib/html/dartium/html_dartium.dart File sdk/lib/html/dartium/html_dartium.dart (left): https://codereview.chromium.org/12213058/diff/5001/sdk/lib/html/dartium/html_dartium.dart#oldcode2032 sdk/lib/html/dartium/html_dartium.dart:2032: - void remove() native "CharacterData_remove_Callback"; seems that you ...
7 years, 10 months ago (2013-02-07 00:52:33 UTC) #2
blois
7 years, 10 months ago (2013-02-07 01:13:11 UTC) #3
On 2013/02/07 00:52:33, Siggi Cherem (dart-lang) wrote:
> lgtm
> 
>
https://codereview.chromium.org/12213058/diff/5001/sdk/lib/html/dartium/html_...
> File sdk/lib/html/dartium/html_dartium.dart (left):
> 
>
https://codereview.chromium.org/12213058/diff/5001/sdk/lib/html/dartium/html_...
> sdk/lib/html/dartium/html_dartium.dart:2032: -  void remove() native
> "CharacterData_remove_Callback";
> seems that you could keep the override in dartium, unless the scripts are very
> symmetrical about it what's in dart2js and dartium.
> 
> Alternatively, we could inspect if the method is there use it, otherwise use
the
> super method.

Since they should all do the same thing, I prefer to remove this method and fall
back to the single implementation. Unless there is a compelling reason to use
the native one (performance?)

Powered by Google App Engine
This is Rietveld 408576698