Reviewed by Adam.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jul 2007 05:45:31 +0000 (05:45 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jul 2007 05:45:31 +0000 (05:45 +0000)
        <rdar://problem/5353174> REGRESSION: 1% JavaScript performance regression fro Window refactoring (14717)
        http://bugs.webkit.org/show_bug.cgi?id=14717

        * bindings/js/kjs_window.cpp:
        * bindings/js/kjs_window.h:
        (KJS::Window::impl): inlined
        * page/DOMWindow.cpp:
        * page/DOMWindow.h:
        (WebCore::DOMWindow::frame): inlined

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24531 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/js/kjs_window.cpp
WebCore/bindings/js/kjs_window.h
WebCore/page/DOMWindow.cpp
WebCore/page/DOMWindow.h

index 6faf9ca..6d56435 100644 (file)
@@ -1,3 +1,17 @@
+2007-07-22  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Adam.
+
+        <rdar://problem/5353174> REGRESSION: 1% JavaScript performance regression fro Window refactoring (14717)
+        http://bugs.webkit.org/show_bug.cgi?id=14717
+        
+        * bindings/js/kjs_window.cpp:
+        * bindings/js/kjs_window.h:
+        (KJS::Window::impl): inlined
+        * page/DOMWindow.cpp:
+        * page/DOMWindow.h:
+        (WebCore::DOMWindow::frame): inlined
+
 2007-07-22  Darin Adler  <darin@apple.com>
 
         * platform/ContextMenu.cpp: Added missing include.
index bbdd8e6..b85a427 100644 (file)
@@ -240,11 +240,6 @@ Window::~Window()
         i1->second->clearWindowObj();
 }
 
-DOMWindow* Window::impl() const
-{
-     return m_impl.get();
-}
-
 ScriptInterpreter* Window::interpreter() const
 {
     Frame* frame = impl()->frame();
index b289b9c..ef28c6e 100644 (file)
@@ -73,7 +73,7 @@ namespace KJS {
     Window(WebCore::DOMWindow*);
   public:
     ~Window();
-    WebCore::DOMWindow* impl() const;
+    WebCore::DOMWindow* impl() const { return m_impl.get(); }
     void disconnectFrame();
     /**
      * Returns and registers a window object. In case there's already a Window
index 47accd0..7f86ab0 100644 (file)
@@ -55,11 +55,6 @@ DOMWindow::~DOMWindow()
 {
 }
 
-Frame* DOMWindow::frame()
-{
-    return m_frame;
-}
-
 void DOMWindow::disconnectFrame()
 {
     m_frame = 0;
index 9f2faa0..6841349 100644 (file)
@@ -48,7 +48,7 @@ namespace WebCore {
         DOMWindow(Frame*);
         virtual ~DOMWindow();
 
-        Frame* frame();
+        Frame* frame() { return m_frame; }
         void disconnectFrame();
 
         void clear();