Commit 568fe797 authored by ggaren@apple.com's avatar ggaren@apple.com
Browse files

2009-03-20 Geoffrey Garen <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Fixed up an out-of-date comment.

        * bindings/js/JSDOMWindowCustom.h:
        (WebCore::JSDOMWindow::customPut):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41868 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6030ac3d
2009-03-20 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
Fixed up an out-of-date comment.
* bindings/js/JSDOMWindowCustom.h:
(WebCore::JSDOMWindow::customPut):
2009-03-20 Beth Dakin <bdakin@apple.com>
 
Reviewed by Dave Hyatt.
......@@ -126,7 +126,7 @@ inline bool JSDOMWindow::customPut(JSC::ExecState* exec, const JSC::Identifier&
if (!impl()->frame())
return true;
// We have a local override (e.g. "var location"), save time and jump directly to JSGlobalObject.
// Optimization: access JavaScript global variables directly before involving the DOM.
JSC::PropertySlot getSlot;
bool slotIsWriteable;
if (JSGlobalObject::getOwnPropertySlot(exec, propertyName, getSlot, slotIsWriteable)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment