Changeset 207308 in webkit


Ignore:
Timestamp:
Oct 13, 2016 2:36:02 PM (8 years ago)
Author:
andersca@apple.com
Message:

Copy BackForwardList from WebCore to WebKit/win
https://bugs.webkit.org/show_bug.cgi?id=163360

Reviewed by Alex Christensen.

Source/WebKit:

This is the first step towards getting rid of BackForwardList in WebCore.

  • PlatformWin.cmake:

Add new files.

Source/WebKit/win:

Use our local BackForwardList class instead of WebCore::BackForwardList.

  • BackForwardList.cpp: Added.
  • BackForwardList.h: Added.
  • WebBackForwardList.h:
  • WebView.cpp:

(WebView::initWithFrame):
(WebView::backForwardList):

Location:
trunk/Source/WebKit
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r207151 r207308  
     12016-10-12  Anders Carlsson  <andersca@apple.com>
     2
     3        Copy BackForwardList from WebCore to WebKit/win
     4        https://bugs.webkit.org/show_bug.cgi?id=163360
     5
     6        Reviewed by Alex Christensen.
     7
     8        This is the first step towards getting rid of BackForwardList in WebCore.
     9
     10        * PlatformWin.cmake:
     11        Add new files.
     12
    1132016-10-11  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebKit/PlatformWin.cmake

    r206873 r207308  
    145145    win/AccessibleImage.cpp
    146146    win/AccessibleTextImpl.cpp
     147    win/BackForwardList.cpp
    147148    win/CFDictionaryPropertyBag.cpp
    148149    win/DOMCSSClasses.cpp
  • trunk/Source/WebKit/win/ChangeLog

    r207300 r207308  
     12016-10-12  Anders Carlsson  <andersca@apple.com>
     2
     3        Copy BackForwardList from WebCore to WebKit/win
     4        https://bugs.webkit.org/show_bug.cgi?id=163360
     5
     6        Reviewed by Alex Christensen.
     7
     8        Use our local BackForwardList class instead of WebCore::BackForwardList.
     9
     10        * BackForwardList.cpp: Added.
     11        * BackForwardList.h: Added.
     12        * WebBackForwardList.h:
     13        * WebView.cpp:
     14        (WebView::initWithFrame):
     15        (WebView::backForwardList):
     16
    1172016-10-13  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/Source/WebKit/win/WebBackForwardList.cpp

    r207300 r207308  
    2727#include "WebBackForwardList.h"
    2828
     29#include "BackForwardList.h"
    2930#include "WebFrame.h"
    3031#include "WebKit.h"
    3132#include "WebPreferences.h"
    3233
    33 #include <WebCore/BackForwardList.h>
    3434#include <WebCore/COMPtr.h>
    3535#include <WebCore/HistoryItem.h>
  • trunk/Source/WebKit/win/WebBackForwardList.h

    r188662 r207308  
    2424 */
    2525
    26 #ifndef WebBackForwardList_H
    27 #define WebBackForwardList_H
     26#pragma once
    2827
    2928#include "WebKit.h"
     
    3433#include <WTF/RefPtr.h>
    3534
    36 namespace WebCore {
    37     class BackForwardList;
    38 }
     35class BackForwardList;
    3936
    4037class WebBackForwardList : public IWebBackForwardList, IWebBackForwardListPrivate
    4138{
    4239public:
    43     static WebBackForwardList* createInstance(PassRefPtr<WebCore::BackForwardList>);
     40    static WebBackForwardList* createInstance(PassRefPtr<BackForwardList>);
    4441protected:
    45     WebBackForwardList(PassRefPtr<WebCore::BackForwardList>);
     42    WebBackForwardList(PassRefPtr<BackForwardList>);
    4643    ~WebBackForwardList();
    4744
     
    7471protected:
    7572    ULONG m_refCount { 0 };
    76     RefPtr<WebCore::BackForwardList> m_backForwardList;
     73    RefPtr<BackForwardList> m_backForwardList;
    7774};
    78 
    79 #endif
  • trunk/Source/WebKit/win/WebView.cpp

    r207218 r207308  
    2828#include "WebView.h"
    2929
    30 #include "BackForwardController.h"
     30#include "BackForwardList.h"
    3131#include "COMVariantSetter.h"
    3232#include "DOMCoreClasses.h"
     
    8585#include <WebCore/BString.h>
    8686#include <WebCore/BackForwardController.h>
    87 #include <WebCore/BackForwardList.h>
    8887#include <WebCore/BitmapInfo.h>
    8988#include <WebCore/Chrome.h>
     
    31003099
    31013100    PageConfiguration configuration(makeUniqueRef<WebEditorClient>(this), SocketProvider::create());
     3101    configuration.backForwardClient = BackForwardList::create();
    31023102    configuration.chromeClient = new WebChromeClient(this);
    31033103    configuration.contextMenuClient = new WebContextMenuClient(this);
     
    34313431        return E_FAIL;
    34323432 
    3433     *list = WebBackForwardList::createInstance(static_cast<WebCore::BackForwardList*>(m_page->backForward().client()));
     3433    *list = WebBackForwardList::createInstance(static_cast<BackForwardList*>(m_page->backForward().client()));
    34343434
    34353435    return S_OK;
Note: See TracChangeset for help on using the changeset viewer.