Bug 93836 - [V8] Remove unused methods from V8Binding.h
Summary: [V8] Remove unused methods from V8Binding.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 93095
  Show dependency treegraph
 
Reported: 2012-08-13 06:31 PDT by Kentaro Hara
Modified: 2012-08-13 19:26 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.08 KB, patch)
2012-08-13 06:32 PDT, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-08-13 06:31:10 PDT
enableStringImplCache() and v8UndetectableString() are not used by anybody.
Comment 1 Kentaro Hara 2012-08-13 06:32:07 PDT
Created attachment 157980 [details]
Patch
Comment 2 Adam Barth 2012-08-13 10:40:52 PDT
Comment on attachment 157980 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157980&action=review

> Source/WebCore/bindings/v8/V8Binding.h:-398
> -    inline v8::Handle<v8::String> v8UndetectableString(const String& str)
> -    {
> -        return v8::String::NewUndetectable(fromWebCoreString(str), str.length());
> -    }

I'm surprised this isn't used by document.all.  Maybe that uses another mechanism now?
Comment 3 Kentaro Hara 2012-08-13 18:35:13 PDT
Committed r125492: <http://trac.webkit.org/changeset/125492>
Comment 4 Kentaro Hara 2012-08-13 18:35:51 PDT
Comment on attachment 157980 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157980&action=review

>> Source/WebCore/bindings/v8/V8Binding.h:-398
>> -    }
> 
> I'm surprised this isn't used by document.all.  Maybe that uses another mechanism now?

It's realized by forcibly setting properties on 'this' object. (i.e. info.This()->ForceSet(name, value))

http://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp&exact_package=chromium&q=v8htmldocumentcustom.cpp&type=cs&l=184