Bug 93836

Summary: [V8] Remove unused methods from V8Binding.h
Product: WebKit Reporter: Kentaro Hara <haraken>
Component: WebCore JavaScriptAssignee: Kentaro Hara <haraken>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, japhet, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 93095    
Attachments:
Description Flags
Patch none

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