Changeset 17592 in webkit


Ignore:
Timestamp:
Nov 4, 2006 7:51:53 AM (18 years ago)
Author:
ap
Message:

2006-11-04 Bertrand Guiheneuf <guiheneuf@gmail.com>

Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).

http://bugs.webkit.org/show_bug.cgi?id=11433
Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.

WebCore:

  • WebCore.vcproj/WebCore/WebCore.vcproj: Added platform/graphics platform/network and platform/network/win to headers search paths Created platform/graphics and platform/network filters in hierarchy Moved GraphicsContext and GraphicsTypes to their respective filters Added EditorClient.h Added FrameLoader* files in loader/ Added HitTest* files in rendering/ Added Editor.* files in editing/ Added DeleteButton.* and DeleteButtonController.* in editing/
  • bridge/win/ChromeClientWin.h: Added. (WebCore::ChromeClientWin::~ChromeClientWin):
  • bridge/win/EditorClientWin.h: Added. (WebCore::EditorClientWin::~EditorClientWin):
  • bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin): (WebCore::FrameWin::urlSelected): (WebCore::FrameWin::submitForm): (WebCore::FrameWin::createNewWindow):
  • bridge/win/FrameWin.h: Added EditorClient parameter to constructor Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest() Removed openURL() and openURLRequest from class definition
  • bridge/win/PageWin.cpp:
  • platform/AffineTransform.h:
  • platform/cairo/AffineTransformCairo.cpp: Added. (WebCore::AffineTransform::AffineTransform): (WebCore::AffineTransform::setMatrix): (WebCore::AffineTransform::map): (WebCore::AffineTransform::mapRect): (WebCore::AffineTransform::isIdentity): (WebCore::AffineTransform::m11): (WebCore::AffineTransform::m12): (WebCore::AffineTransform::m21): (WebCore::AffineTransform::m22): (WebCore::AffineTransform::dx): (WebCore::AffineTransform::dy): (WebCore::AffineTransform::reset): (WebCore::AffineTransform::scale): (WebCore::AffineTransform::rotate): (WebCore::AffineTransform::translate): (WebCore::AffineTransform::shear): (WebCore::AffineTransform::det): (WebCore::AffineTransform::invert): (WebCore::AffineTransform::operator cairo_matrix_t): (WebCore::AffineTransform::operator== ): (WebCore::AffineTransform::operator*= ): (WebCore::AffineTransform::operator* ):
  • platform/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  • platform/network/win/ResourceHandleWin.cpp: (WebCore::ResourceHandle::onHandleCreated): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::fileLoadTimer): (WebCore::ResourceHandle::cancel):
  • platform/win/TemporaryLinkStubs.cpp: (WebCore::FrameWin::goBackOrForward): (WebCore::FrameWin::getHistoryLength): (WebCore::FrameWin::historyURL): (WebCore::ServeSynchronousRequest): (WebCore::ChromeClientWin::canRunModal): (WebCore::ChromeClientWin::runModal): (WebCore::EditorClientWin::shouldDeleteRange): (WebCore::EditorClientWin::shouldShowDeleteInterface): (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled): (WebCore::EditorClientWin::isGrammarCheckingEnabled): (WebCore::EditorClientWin::spellCheckerDocumentTag): (WebCore::Path::transform): (WebCore::PopupMenu::updateFromElement): (WebCore::ResourceLoader::loadsBlocked): (WebCore::systemBeep):
  • rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::paintButton): (WebCore::RenderThemeWin::paintTextField):

WebKit:

  • COM/WebFrame.cpp: (WebFrame::initWithName): (WebFrame::loadDataSource): (WebFrame::receivedRedirect): (WebFrame::receivedResponse): (WebFrame::didReceiveData): (WebFrame::receivedAllData): Use resource handles now. Do not start doc loader by hand anymore. Handle didReceiveData() callback instead of receivedData() which is deprecated in implementation of ResourceHandleClient
  • COM/WebFrame.h:
  • COM/WebView.cpp: Applied ResourceLoader --> ResourceHandle renaming
  • WebKit.vcproj/WebKit.rc: Got rid of MFC dependencies (build fix for VCExpress).
  • WebKit.vcproj/WebKit.vcproj: Added platform/graphics platform/network and platform/network/win to headers search paths
Location:
trunk
Files:
3 added
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r17591 r17592  
     12006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
     2
     3        Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=11433
     6        Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
     7
     8        * WebCore.vcproj/WebCore/WebCore.vcproj:
     9        Added platform/graphics platform/network and platform/network/win to headers search paths
     10        Created platform/graphics and platform/network filters in hierarchy
     11        Moved GraphicsContext and GraphicsTypes to their respective filters
     12        Added EditorClient.h
     13        Added FrameLoader* files in loader/
     14        Added HitTest* files in rendering/
     15        Added Editor.* files in editing/
     16        Added DeleteButton.* and DeleteButtonController.* in editing/
     17
     18        * bridge/win/ChromeClientWin.h: Added.
     19        (WebCore::ChromeClientWin::~ChromeClientWin):
     20        * bridge/win/EditorClientWin.h: Added.
     21        (WebCore::EditorClientWin::~EditorClientWin):
     22
     23        * bridge/win/FrameWin.cpp:
     24        (WebCore::FrameWin::FrameWin):
     25        (WebCore::FrameWin::urlSelected):
     26        (WebCore::FrameWin::submitForm):
     27        (WebCore::FrameWin::createNewWindow):
     28        * bridge/win/FrameWin.h:
     29        Added EditorClient parameter to constructor
     30        Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
     31        Removed openURL() and openURLRequest from class definition
     32
     33        * bridge/win/PageWin.cpp:
     34        * platform/AffineTransform.h:
     35        * platform/cairo/AffineTransformCairo.cpp: Added.
     36        (WebCore::AffineTransform::AffineTransform):
     37        (WebCore::AffineTransform::setMatrix):
     38        (WebCore::AffineTransform::map):
     39        (WebCore::AffineTransform::mapRect):
     40        (WebCore::AffineTransform::isIdentity):
     41        (WebCore::AffineTransform::m11):
     42        (WebCore::AffineTransform::m12):
     43        (WebCore::AffineTransform::m21):
     44        (WebCore::AffineTransform::m22):
     45        (WebCore::AffineTransform::dx):
     46        (WebCore::AffineTransform::dy):
     47        (WebCore::AffineTransform::reset):
     48        (WebCore::AffineTransform::scale):
     49        (WebCore::AffineTransform::rotate):
     50        (WebCore::AffineTransform::translate):
     51        (WebCore::AffineTransform::shear):
     52        (WebCore::AffineTransform::det):
     53        (WebCore::AffineTransform::invert):
     54        (WebCore::AffineTransform::operator cairo_matrix_t):
     55        (WebCore::AffineTransform::operator== ):
     56        (WebCore::AffineTransform::operator*= ):
     57        (WebCore::AffineTransform::operator* ):
     58        * platform/cairo/GraphicsContextCairo.cpp:
     59        (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
     60        * platform/network/win/ResourceHandleWin.cpp:
     61        (WebCore::ResourceHandle::onHandleCreated):
     62        (WebCore::ResourceHandle::start):
     63        (WebCore::ResourceHandle::fileLoadTimer):
     64        (WebCore::ResourceHandle::cancel):
     65        * platform/win/TemporaryLinkStubs.cpp:
     66        (WebCore::FrameWin::goBackOrForward):
     67        (WebCore::FrameWin::getHistoryLength):
     68        (WebCore::FrameWin::historyURL):
     69        (WebCore::ServeSynchronousRequest):
     70        (WebCore::ChromeClientWin::canRunModal):
     71        (WebCore::ChromeClientWin::runModal):
     72        (WebCore::EditorClientWin::shouldDeleteRange):
     73        (WebCore::EditorClientWin::shouldShowDeleteInterface):
     74        (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
     75        (WebCore::EditorClientWin::isGrammarCheckingEnabled):
     76        (WebCore::EditorClientWin::spellCheckerDocumentTag):
     77        (WebCore::Path::transform):
     78        (WebCore::PopupMenu::updateFromElement):
     79        (WebCore::ResourceLoader::loadsBlocked):
     80        (WebCore::systemBeep):
     81        * rendering/RenderThemeWin.cpp:
     82        (WebCore::RenderThemeWin::paintButton):
     83        (WebCore::RenderThemeWin::paintTextField):
     84
    1852006-11-04  Alexey Proskuryakov  <ap@nypop.com>
    286
  • trunk/WebCore/WebCore.vcproj/WebCore/WebCore.vcproj

    r17589 r17592  
    1 <?xml version="1.0" encoding="Windows-1252"?>
     1<?xml version="1.0" encoding="windows-1251"?>
    22<VisualStudioProject
    33        ProjectType="Visual C++"
    4         Version="8.00"
     4        Version="8,00"
    55        Name="WebCore"
    66        ProjectGUID="{1C16337B-ACF3-4D03-AA90-851C5B5EADA6}"
     
    4242                                Name="VCCLCompilerTool"
    4343                                Optimization="0"
    44                                 AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\..\..\iconv\include&quot;;&quot;$(ProjectDir)\..\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\..\libxml\include&quot;;&quot;$(ProjectDir)\..\..\..\libxslt\include&quot;;&quot;$(ProjectDir)\..\..\DerivedSources\WebCore&quot;;&quot;$(ProjectDir)\..\..\&quot;;&quot;$(ProjectDir)\..\..\css&quot;;&quot;$(ProjectDir)\..\..\editing&quot;;&quot;$(ProjectDir)\..\..\rendering&quot;;&quot;$(ProjectDir)\..\..\bindings\js&quot;;&quot;$(ProjectDir)\..\..\dom&quot;;&quot;$(ProjectDir)\..\..\html&quot;;&quot;$(ProjectDir)\..\..\bridge&quot;;&quot;$(ProjectDir)\..\..\bridge\win&quot;;&quot;$(ProjectDir)\..\..\loader&quot;;&quot;$(ProjectDir)\..\..\page&quot;;&quot;$(ProjectDir)\..\..\platform&quot;;&quot;$(ProjectDir)\..\..\platform\cairo&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\bmp&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\gif&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\ico&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\jpeg&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\png&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\xbm&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\zlib&quot;;&quot;$(ProjectDir)\..\..\xml&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\DerivedSources&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\kjs&quot;;&quot;$(ProjectDir)\..\..\platform\win&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\pixman\src&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\loader\icon&quot;"
     44                                AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\..\..\iconv\include&quot;;&quot;$(ProjectDir)\..\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\..\libxml\include&quot;;&quot;$(ProjectDir)\..\..\..\libxslt\include&quot;;&quot;$(ProjectDir)\..\..\DerivedSources\WebCore&quot;;&quot;$(ProjectDir)\..\..\&quot;;&quot;$(ProjectDir)\..\..\css&quot;;&quot;$(ProjectDir)\..\..\editing&quot;;&quot;$(ProjectDir)\..\..\rendering&quot;;&quot;$(ProjectDir)\..\..\bindings\js&quot;;&quot;$(ProjectDir)\..\..\dom&quot;;&quot;$(ProjectDir)\..\..\html&quot;;&quot;$(ProjectDir)\..\..\bridge&quot;;&quot;$(ProjectDir)\..\..\bridge\win&quot;;&quot;$(ProjectDir)\..\..\loader&quot;;&quot;$(ProjectDir)\..\..\page&quot;;&quot;$(ProjectDir)\..\..\platform&quot;;&quot;$(ProjectDir)\..\..\platform\cairo&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\bmp&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\gif&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\ico&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\jpeg&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\png&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\xbm&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\zlib&quot;;&quot;$(ProjectDir)\..\..\platform\graphics&quot;;&quot;$(ProjectDir)\..\..\platform\network&quot;;&quot;$(ProjectDir)\..\..\platform\network\win&quot;;&quot;$(ProjectDir)\..\..\xml&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\DerivedSources&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\kjs&quot;;&quot;$(ProjectDir)\..\..\platform\win&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\pixman\src&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\loader\icon&quot;"
    4545                                PreprocessorDefinitions="WIN32;XSLT_SUPPORT;XPATH_SUPPORT"
    4646                                MinimalRebuild="true"
     
    109109                        <Tool
    110110                                Name="VCCLCompilerTool"
    111                                 AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\..\..\iconv\include&quot;;&quot;$(ProjectDir)\..\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\..\libxml\include&quot;;&quot;$(ProjectDir)\..\..\..\libxslt\include&quot;;&quot;$(ProjectDir)\..\..\DerivedSources\WebCore&quot;;&quot;$(ProjectDir)\..\..\&quot;;&quot;$(ProjectDir)\..\..\css&quot;;&quot;$(ProjectDir)\..\..\editing&quot;;&quot;$(ProjectDir)\..\..\rendering&quot;;&quot;$(ProjectDir)\..\..\bindings\js&quot;;&quot;$(ProjectDir)\..\..\dom&quot;;&quot;$(ProjectDir)\..\..\html&quot;;&quot;$(ProjectDir)\..\..\bridge&quot;;&quot;$(ProjectDir)\..\..\bridge\win&quot;;&quot;$(ProjectDir)\..\..\loader&quot;;&quot;$(ProjectDir)\..\..\page&quot;;&quot;$(ProjectDir)\..\..\platform&quot;;&quot;$(ProjectDir)\..\..\platform\cairo&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\bmp&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\gif&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\ico&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\jpeg&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\png&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\xbm&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\zlib&quot;;&quot;$(ProjectDir)\..\..\xml&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\DerivedSources&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\kjs&quot;;&quot;$(ProjectDir)\..\..\platform\win&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\pixman\src&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\loader\icon&quot;"
     111                                AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\..\..\iconv\include&quot;;&quot;$(ProjectDir)\..\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\..\libxml\include&quot;;&quot;$(ProjectDir)\..\..\..\libxslt\include&quot;;&quot;$(ProjectDir)\..\..\DerivedSources\WebCore&quot;;&quot;$(ProjectDir)\..\..\&quot;;&quot;$(ProjectDir)\..\..\css&quot;;&quot;$(ProjectDir)\..\..\editing&quot;;&quot;$(ProjectDir)\..\..\rendering&quot;;&quot;$(ProjectDir)\..\..\bindings\js&quot;;&quot;$(ProjectDir)\..\..\dom&quot;;&quot;$(ProjectDir)\..\..\html&quot;;&quot;$(ProjectDir)\..\..\bridge&quot;;&quot;$(ProjectDir)\..\..\bridge\win&quot;;&quot;$(ProjectDir)\..\..\loader&quot;;&quot;$(ProjectDir)\..\..\page&quot;;&quot;$(ProjectDir)\..\..\platform&quot;;&quot;$(ProjectDir)\..\..\platform\cairo&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\bmp&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\gif&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\ico&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\jpeg&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\png&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\xbm&quot;;&quot;$(ProjectDir)\..\..\platform\image-decoders\zlib&quot;;&quot;$(ProjectDir)\..\..\platform\graphics&quot;;&quot;$(ProjectDir)\..\..\platform\network&quot;;&quot;$(ProjectDir)\..\..\platform\network\win&quot;;&quot;$(ProjectDir)\..\..\xml&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\DerivedSources&quot;;&quot;$(ProjectDir)\..\..\..\JavaScriptCore\kjs&quot;;&quot;$(ProjectDir)\..\..\platform\win&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\pixman\src&quot;;&quot;$(ProjectDir)\..\..\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\loader\icon&quot;"
    112112                                PreprocessorDefinitions="WIN32;XSLT_SUPPORT;XPATH_SUPPORT;NDEBUG"
    113113                                ExceptionHandling="0"
     
    904904                        >
    905905                        <File
     906                                RelativePath="..\..\page\Chrome.cpp"
     907                                >
     908                        </File>
     909                        <File
     910                                RelativePath="..\..\page\Chrome.h"
     911                                >
     912                        </File>
     913                        <File
    906914                                RelativePath="..\..\page\DOMWindow.cpp"
    907915                                >
     
    10361044                        </File>
    10371045                        <File
     1046                                RelativePath="..\..\loader\DocLoader.cpp"
     1047                                >
     1048                        </File>
     1049                        <File
     1050                                RelativePath="..\..\loader\DocLoader.h"
     1051                                >
     1052                        </File>
     1053                        <File
     1054                                RelativePath="..\..\loader\FormData.cpp"
     1055                                >
     1056                        </File>
     1057                        <File
     1058                                RelativePath="..\..\loader\FormData.h"
     1059                                >
     1060                        </File>
     1061                        <File
     1062                                RelativePath="..\..\loader\FrameLoader.cpp"
     1063                                >
     1064                        </File>
     1065                        <File
     1066                                RelativePath="..\..\loader\FrameLoader.h"
     1067                                >
     1068                        </File>
     1069                        <File
     1070                                RelativePath="..\..\loader\FrameLoaderClient.h"
     1071                                >
     1072                        </File>
     1073                        <File
     1074                                RelativePath="..\..\loader\FrameLoaderTypes.h"
     1075                                >
     1076                        </File>
     1077                        <File
     1078                                RelativePath="..\..\loader\ImageDocument.cpp"
     1079                                >
     1080                        </File>
     1081                        <File
     1082                                RelativePath="..\..\loader\ImageDocument.h"
     1083                                >
     1084                        </File>
     1085                        <File
     1086                                RelativePath="..\..\loader\loader.cpp"
     1087                                >
     1088                        </File>
     1089                        <File
     1090                                RelativePath="..\..\loader\loader.h"
     1091                                >
     1092                        </File>
     1093                        <File
     1094                                RelativePath="..\..\loader\LoaderFunctions.h"
     1095                                >
     1096                        </File>
     1097                        <File
     1098                                RelativePath="..\..\loader\PluginDocument.cpp"
     1099                                >
     1100                        </File>
     1101                        <File
     1102                                RelativePath="..\..\loader\PluginDocument.h"
     1103                                >
     1104                        </File>
     1105                        <File
     1106                                RelativePath="..\..\loader\Request.cpp"
     1107                                >
     1108                        </File>
     1109                        <File
     1110                                RelativePath="..\..\loader\Request.h"
     1111                                >
     1112                        </File>
     1113                        <File
     1114                                RelativePath="..\..\loader\TextDocument.cpp"
     1115                                >
     1116                        </File>
     1117                        <File
     1118                                RelativePath="..\..\loader\TextDocument.h"
     1119                                >
     1120                        </File>
     1121                        <File
    10381122                                RelativePath="..\..\loader\TextResourceDecoder.cpp"
    10391123                                >
     
    10411125                        <File
    10421126                                RelativePath="..\..\loader\TextResourceDecoder.h"
    1043                                 >
    1044                         </File>
    1045                         <File
    1046                                 RelativePath="..\..\loader\DocLoader.cpp"
    1047                                 >
    1048                         </File>
    1049                         <File
    1050                                 RelativePath="..\..\loader\DocLoader.h"
    1051                                 >
    1052                         </File>
    1053                         <File
    1054                                 RelativePath="..\..\loader\FormData.cpp"
    1055                                 >
    1056                         </File>
    1057                         <File
    1058                                 RelativePath="..\..\loader\FormData.h"
    1059                                 >
    1060                         </File>
    1061                         <File
    1062                                 RelativePath="..\..\loader\ImageDocument.cpp"
    1063                                 >
    1064                         </File>
    1065                         <File
    1066                                 RelativePath="..\..\loader\ImageDocument.h"
    1067                                 >
    1068                         </File>
    1069                         <File
    1070                                 RelativePath="..\..\loader\loader.cpp"
    1071                                 >
    1072                         </File>
    1073                         <File
    1074                                 RelativePath="..\..\loader\loader.h"
    1075                                 >
    1076                         </File>
    1077                         <File
    1078                                 RelativePath="..\..\loader\LoaderFunctions.h"
    1079                                 >
    1080                         </File>
    1081                         <File
    1082                                 RelativePath="..\..\loader\PluginDocument.cpp"
    1083                                 >
    1084                         </File>
    1085                         <File
    1086                                 RelativePath="..\..\loader\PluginDocument.h"
    1087                                 >
    1088                         </File>
    1089                         <File
    1090                                 RelativePath="..\..\loader\Request.cpp"
    1091                                 >
    1092                         </File>
    1093                         <File
    1094                                 RelativePath="..\..\loader\Request.h"
    1095                                 >
    1096                         </File>
    1097                         <File
    1098                                 RelativePath="..\..\loader\TextDocument.cpp"
    1099                                 >
    1100                         </File>
    1101                         <File
    1102                                 RelativePath="..\..\loader\TextDocument.h"
    11031127                                >
    11041128                        </File>
     
    11081132                        >
    11091133                        <File
     1134                                RelativePath="..\..\platform\AffineTransform.cpp"
     1135                                >
     1136                        </File>
     1137                        <File
    11101138                                RelativePath="..\..\platform\AffineTransform.h"
    11111139                                >
     
    13121340                        </File>
    13131341                        <File
    1314                                 RelativePath="..\..\platform\GraphicsContext.cpp"
    1315                                 >
    1316                         </File>
    1317                         <File
    1318                                 RelativePath="..\..\platform\GraphicsContext.h"
    1319                                 >
    1320                         </File>
    1321                         <File
    1322                                 RelativePath="..\..\platform\GraphicsTypes.cpp"
    1323                                 >
    1324                         </File>
    1325                         <File
    1326                                 RelativePath="..\..\platform\GraphicsTypes.h"
    1327                                 >
    1328                         </File>
    1329                         <File
    13301342                                RelativePath="..\..\platform\Image.cpp"
    13311343                                >
     
    14281440                        </File>
    14291441                        <File
    1430                                 RelativePath="..\..\platform\ResourceHandle.cpp"
    1431                                 >
    1432                         </File>
    1433                         <File
    1434                                 RelativePath="..\..\platform\ResourceHandle.h"
    1435                                 >
    1436                         </File>
    1437                         <File
    1438                                 RelativePath="..\..\platform\ResourceHandleClient.h"
    1439                                 >
    1440                         </File>
    1441                         <File
    1442                                 RelativePath="..\..\platform\ResourceHandleInternal.h"
    1443                                 >
    1444                         </File>
    1445                         <File
    14461442                                RelativePath="..\..\platform\Screen.h"
    14471443                                >
     
    14881484                        </File>
    14891485                        <File
     1486                                RelativePath="..\..\platform\String.cpp"
     1487                                >
     1488                        </File>
     1489                        <File
     1490                                RelativePath="..\..\platform\StringImpl.cpp"
     1491                                >
     1492                        </File>
     1493                        <File
     1494                                RelativePath="..\..\platform\StringImpl.h"
     1495                                >
     1496                        </File>
     1497                        <File
     1498                                RelativePath="..\..\platform\SystemTime.h"
     1499                                >
     1500                        </File>
     1501                        <File
     1502                                RelativePath="..\..\platform\TextBoundaries.h"
     1503                                >
     1504                        </File>
     1505                        <File
    14901506                                RelativePath="..\..\platform\TextCodec.cpp"
    14911507                                >
     
    15011517                        <File
    15021518                                RelativePath="..\..\platform\TextCodecICU.h"
    1503                                 >
    1504                         </File>
    1505                         <File
    1506                                 RelativePath="..\..\platform\String.cpp"
    1507                                 >
    1508                         </File>
    1509                         <File
    1510                                 RelativePath="..\..\platform\StringImpl.cpp"
    1511                                 >
    1512                         </File>
    1513                         <File
    1514                                 RelativePath="..\..\platform\StringImpl.h"
    1515                                 >
    1516                         </File>
    1517                         <File
    1518                                 RelativePath="..\..\platform\SystemTime.h"
    1519                                 >
    1520                         </File>
    1521                         <File
    1522                                 RelativePath="..\..\platform\TextBoundaries.h"
    15231519                                >
    15241520                        </File>
     
    16601656                                <File
    16611657                                        RelativePath="..\..\platform\win\PlatformScrollBar.h"
    1662                                         >
    1663                                 </File>
    1664                                 <File
    1665                                         RelativePath="..\..\platform\win\ResourceHandleWin.cpp"
    1666                                         >
    1667                                 </File>
    1668                                 <File
    1669                                         RelativePath="..\..\platform\win\ResourceHandleWin.h"
    16701658                                        >
    16711659                                </File>
     
    21272115                                >
    21282116                                <File
     2117                                        RelativePath="..\..\platform\cairo\AffineTransformCairo.cpp"
     2118                                        >
     2119                                </File>
     2120                                <File
    21292121                                        RelativePath="..\..\platform\cairo\GraphicsContextCairo.cpp"
    21302122                                        >
     
    24832475                                        <File
    24842476                                                RelativePath="..\..\platform\cairo\cairo\src\cairoint.h"
     2477                                                >
     2478                                        </File>
     2479                                </Filter>
     2480                        </Filter>
     2481                        <Filter
     2482                                Name="graphics"
     2483                                >
     2484                                <File
     2485                                        RelativePath="..\..\platform\graphics\GraphicsContext.cpp"
     2486                                        >
     2487                                        <FileConfiguration
     2488                                                Name="Debug|Win32"
     2489                                                >
     2490                                                <Tool
     2491                                                        Name="VCCLCompilerTool"
     2492                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2493                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2494                                                />
     2495                                        </FileConfiguration>
     2496                                        <FileConfiguration
     2497                                                Name="Release|Win32"
     2498                                                >
     2499                                                <Tool
     2500                                                        Name="VCCLCompilerTool"
     2501                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2502                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2503                                                />
     2504                                        </FileConfiguration>
     2505                                </File>
     2506                                <File
     2507                                        RelativePath="..\..\platform\graphics\GraphicsContext.h"
     2508                                        >
     2509                                </File>
     2510                                <File
     2511                                        RelativePath="..\..\platform\graphics\GraphicsTypes.cpp"
     2512                                        >
     2513                                        <FileConfiguration
     2514                                                Name="Debug|Win32"
     2515                                                >
     2516                                                <Tool
     2517                                                        Name="VCCLCompilerTool"
     2518                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2519                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2520                                                />
     2521                                        </FileConfiguration>
     2522                                        <FileConfiguration
     2523                                                Name="Release|Win32"
     2524                                                >
     2525                                                <Tool
     2526                                                        Name="VCCLCompilerTool"
     2527                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2528                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2529                                                />
     2530                                        </FileConfiguration>
     2531                                </File>
     2532                                <File
     2533                                        RelativePath="..\..\platform\graphics\GraphicsTypes.h"
     2534                                        >
     2535                                </File>
     2536                        </Filter>
     2537                        <Filter
     2538                                Name="network"
     2539                                >
     2540                                <File
     2541                                        RelativePath="..\..\platform\network\HTTPHeaderMap.h"
     2542                                        >
     2543                                </File>
     2544                                <File
     2545                                        RelativePath="..\..\platform\network\ResourceHandle.cpp"
     2546                                        >
     2547                                        <FileConfiguration
     2548                                                Name="Debug|Win32"
     2549                                                >
     2550                                                <Tool
     2551                                                        Name="VCCLCompilerTool"
     2552                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2553                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2554                                                />
     2555                                        </FileConfiguration>
     2556                                        <FileConfiguration
     2557                                                Name="Release|Win32"
     2558                                                >
     2559                                                <Tool
     2560                                                        Name="VCCLCompilerTool"
     2561                                                        ObjectFile="$(IntDir)\$(InputName)1.obj"
     2562                                                        XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2563                                                />
     2564                                        </FileConfiguration>
     2565                                </File>
     2566                                <File
     2567                                        RelativePath="..\..\platform\network\ResourceHandle.h"
     2568                                        >
     2569                                </File>
     2570                                <File
     2571                                        RelativePath="..\..\platform\network\ResourceHandleClient.h"
     2572                                        >
     2573                                </File>
     2574                                <File
     2575                                        RelativePath="..\..\platform\network\ResourceHandleInternal.h"
     2576                                        >
     2577                                </File>
     2578                                <File
     2579                                        RelativePath="..\..\platform\network\ResourceRequest.h"
     2580                                        >
     2581                                </File>
     2582                                <File
     2583                                        RelativePath="..\..\platform\network\ResourceResponse.h"
     2584                                        >
     2585                                </File>
     2586                                <Filter
     2587                                        Name="win"
     2588                                        >
     2589                                        <File
     2590                                                RelativePath="..\..\platform\network\win\ResourceHandleWin.cpp"
     2591                                                >
     2592                                                <FileConfiguration
     2593                                                        Name="Debug|Win32"
     2594                                                        >
     2595                                                        <Tool
     2596                                                                Name="VCCLCompilerTool"
     2597                                                                ObjectFile="$(IntDir)\$(InputName)1.obj"
     2598                                                                XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2599                                                        />
     2600                                                </FileConfiguration>
     2601                                                <FileConfiguration
     2602                                                        Name="Release|Win32"
     2603                                                        >
     2604                                                        <Tool
     2605                                                                Name="VCCLCompilerTool"
     2606                                                                ObjectFile="$(IntDir)\$(InputName)1.obj"
     2607                                                                XMLDocumentationFileName="$(IntDir)\$(InputName)1.xdc"
     2608                                                        />
     2609                                                </FileConfiguration>
     2610                                        </File>
     2611                                        <File
     2612                                                RelativePath="..\..\platform\network\win\ResourceHandleWin.h"
    24852613                                                >
    24862614                                        </File>
     
    29203048                        </File>
    29213049                        <File
     3050                                RelativePath="..\..\rendering\HitTestRequest.h"
     3051                                >
     3052                        </File>
     3053                        <File
     3054                                RelativePath="..\..\rendering\HitTestResult.cpp"
     3055                                >
     3056                        </File>
     3057                        <File
     3058                                RelativePath="..\..\rendering\HitTestResult.h"
     3059                                >
     3060                        </File>
     3061                        <File
    29223062                                RelativePath="..\..\rendering\InlineBox.cpp"
    29233063                                >
     
    39284068                        </File>
    39294069                        <File
     4070                                RelativePath="..\..\bridge\EditorClient.h"
     4071                                >
     4072                        </File>
     4073                        <File
    39304074                                RelativePath="..\..\bridge\History.h"
    39314075                                >
     
    39424086                                Name="win"
    39434087                                >
     4088                                <File
     4089                                        RelativePath="..\..\bridge\win\ChromeClientWin.h"
     4090                                        >
     4091                                </File>
     4092                                <File
     4093                                        RelativePath="..\..\bridge\win\EditorClientWin.h"
     4094                                        >
     4095                                </File>
    39444096                                <File
    39454097                                        RelativePath="..\..\bridge\win\FrameWin.cpp"
     
    40084160                        </File>
    40094161                        <File
     4162                                RelativePath="..\..\editing\DeleteButton.cpp"
     4163                                >
     4164                        </File>
     4165                        <File
     4166                                RelativePath="..\..\editing\DeleteButton.h"
     4167                                >
     4168                        </File>
     4169                        <File
     4170                                RelativePath="..\..\editing\DeleteButtonController.cpp"
     4171                                >
     4172                        </File>
     4173                        <File
     4174                                RelativePath="..\..\editing\DeleteButtonController.h"
     4175                                >
     4176                        </File>
     4177                        <File
    40104178                                RelativePath="..\..\editing\DeleteFromTextNodeCommand.cpp"
    40114179                                >
     
    40334201                        <File
    40344202                                RelativePath="..\..\editing\EditCommand.h"
     4203                                >
     4204                        </File>
     4205                        <File
     4206                                RelativePath="..\..\editing\Editor.cpp"
     4207                                >
     4208                        </File>
     4209                        <File
     4210                                RelativePath="..\..\editing\Editor.h"
    40354211                                >
    40364212                        </File>
  • trunk/WebCore/bridge/win/FrameWin.cpp

    r17471 r17592  
    4141namespace WebCore {
    4242
    43 FrameWin::FrameWin(Page* page, Element* ownerElement, FrameWinClient* client)
    44     : Frame(page, ownerElement)
     43FrameWin::FrameWin(Page* page, Element* ownerElement,  PassRefPtr<EditorClient> editorClient, FrameWinClient* client)
     44    : Frame(page, ownerElement, editorClient)
    4545    , m_client(client)
    4646{
     
    6666{
    6767    if (m_client)
    68         m_client->openURL(request.m_request.url().url(), request.lockHistory());
     68        m_client->openURL(request.resourceRequest().url().url(), request.lockHistory());
    6969}
    7070
     
    7272{
    7373    // FIXME: this is a hack inherited from FrameMac, and should be pushed into Frame
    74     const ResourceRequest& resourceRequest = request.m_request;
     74    const ResourceRequest& resourceRequest = request.resourceRequest();
    7575    if (d->m_submittedFormURL == resourceRequest.url())
    7676        return;
     
    153153void FrameWin::createNewWindow(const FrameLoadRequest& request, const WindowFeatures& features, Frame*& newFrame)
    154154{
    155     m_client->createNewWindow(request.m_request, features, newFrame);
     155    m_client->createNewWindow(request.resourceRequest(), features, newFrame);
    156156}
    157157
  • trunk/WebCore/bridge/win/FrameWin.h

    r17154 r17592  
    4646class FrameWin : public Frame {
    4747public:
    48     FrameWin(Page*, Element*, FrameWinClient*);
     48    FrameWin(Page*, Element*,  PassRefPtr<EditorClient>, FrameWinClient*);
    4949    ~FrameWin();
    5050
    5151    virtual void createNewWindow(const FrameLoadRequest&, const WindowFeatures&, Frame*& part);
    52     virtual bool openURL(const KURL&);
    53     virtual void openURLRequest(const FrameLoadRequest&);
    5452    virtual void submitForm(const FrameLoadRequest&);
    5553    virtual void urlSelected(const FrameLoadRequest&, const Event* triggeringEvent);
     
    123121
    124122    virtual bool canGoBackOrForward(int distance) const;
     123    virtual void goBackOrForward(int distance);
     124    virtual int getHistoryLength();
     125    virtual KURL historyURL(int distance);
    125126    virtual void handledOnloadEvents();
    126127
  • trunk/WebCore/bridge/win/PageWin.cpp

    r16515 r17592  
    3333namespace WebCore {
    3434
    35 Page::Page()
    36 : m_frameCount(0)
    37 , m_dragCaretController(0, true)
    38 {
    39     init();
    40 }
    41 
    4235static HWND rootWindowForFrame(const Frame* frame)
    4336{
  • trunk/WebCore/platform/AffineTransform.h

    r15999 r17592  
    3333#elif PLATFORM(QT)
    3434#include <QMatrix>
     35#elif PLATFORM(CAIRO)
     36#include "cairo.h"
    3537#endif
    3638
     
    4850#elif PLATFORM(QT)
    4951    AffineTransform(const QMatrix &matrix);
     52#elif PLATFORM(CAIRO)
     53    AffineTransform(const cairo_matrix_t &matrix);
    5054#endif
    5155
     
    7983#elif PLATFORM(QT)
    8084    operator QMatrix() const;
     85#elif PLATFORM(CAIRO)
     86    operator cairo_matrix_t() const;
    8187#endif
    8288
     
    9096#elif PLATFORM(QT)
    9197    QMatrix m_transform;
     98#elif PLATFORM(CAIRO)
     99    cairo_matrix_t m_transform;
    92100#endif
    93101};
  • trunk/WebCore/platform/cairo/GraphicsContextCairo.cpp

    r17052 r17592  
    419419}
    420420
    421 void GraphicsContext::drawLineForMisspelling(const IntPoint& point, int width)
     421void GraphicsContext::drawLineForMisspellingOrBadGrammar(const IntPoint&, int width, bool grammar)
    422422{
    423423    // FIXME: Implement.
  • trunk/WebCore/platform/network/win/ResourceHandleWin.cpp

    r17410 r17592  
    143143        if (method() == "POST") {
    144144            // FIXME: Too late to set referrer properly.
    145             DeprecatedString urlStr = d->URL.path();
     145            DeprecatedString urlStr = url().path();
    146146            int fragmentIndex = urlStr.find('#');
    147147            if (fragmentIndex != -1)
     
    307307{
    308308    ref();
    309     if (d->URL.isLocalFile()) {
    310         DeprecatedString path = d->URL.path();
     309    if (url().isLocalFile()) {
     310        DeprecatedString path = url().path();
    311311        // windows does not enjoy a leading slash on paths
    312312        if (path[0] == '/')
     
    346346        if (method() == "POST") {
    347347            d->m_postReferrer = referrer;
    348             DeprecatedString host = d->URL.host();
     348            DeprecatedString host = url().host();
    349349            host += "\0";
    350             urlHandle = InternetConnectA(internetHandle, host.ascii(), d->URL.port(), 0, 0,
     350            urlHandle = InternetConnectA(internetHandle, host.ascii(), url().port(), 0, 0,
    351351                                         INTERNET_SERVICE_HTTP, 0, (DWORD_PTR)d->m_jobId);
    352352        } else {
    353             DeprecatedString urlStr = d->URL.url();
     353            DeprecatedString urlStr = url().url();
    354354            int fragmentIndex = urlStr.find('#');
    355355            if (fragmentIndex != -1)
     
    375375void ResourceHandle::fileLoadTimer(Timer<ResourceHandle>* timer)
    376376{
    377     d->client->receivedResponse(this, 0);
     377    client()->receivedResponse(this, 0);
    378378
    379379    bool result = false;
     
    385385        result = ReadFile(d->m_fileHandle, &buffer, bufferSize, &bytesRead, NULL);
    386386        if (result && bytesRead)
    387             d->client->didReceiveData(this, buffer, bytesRead);
     387            client()->didReceiveData(this, buffer, bytesRead);
    388388        // Check for end of file.
    389389    } while (result && bytesRead);
     
    399399    platformData.loaded = TRUE;
    400400
    401     d->client->receivedAllData(this, &platformData);
    402     d->client->didFinishLoading(this);
     401    client()->receivedAllData(this, &platformData);
     402    client()->didFinishLoading(this);
    403403}
    404404
     
    415415    platformData.loaded = FALSE;
    416416
    417     d->client->receivedAllData(this, &platformData);
    418     d->client->didFinishLoading(this);
     417    client()->receivedAllData(this, &platformData);
     418    client()->didFinishLoading(this);
    419419
    420420    if (!d->m_resourceHandle)
  • trunk/WebCore/platform/win/TemporaryLinkStubs.cpp

    r17585 r17592  
    6161#include "ResourceHandle.h"
    6262#include "ResourceHandleClient.h"
     63#include "ResourceLoader.h"
    6364#include "RenderThemeWin.h"
    6465#include "TextBoundaries.h"
    6566#include "AXObjectCache.h"
    6667#include "PopupMenu.h"
     68#include "ChromeClientWin.h"
    6769#include "EditCommand.h"
     70#include "EditorClientWin.h"
    6871#include "Icon.h"
    6972#include "IconLoader.h"
     
    173176bool FrameWin::canPaste() const { notImplemented(); return 0; }
    174177bool FrameWin::canGoBackOrForward(int) const { notImplemented(); return 0; }
     178void FrameWin::goBackOrForward(int distance) { notImplemented(); }
     179int FrameWin::getHistoryLength() { notImplemented(); return 0;}
     180KURL FrameWin::historyURL(int distance) { notImplemented(); return KURL();}
    175181void FrameWin::issuePasteAndMatchStyleCommand() { notImplemented(); }
    176182KURL FrameWin::originalRequestURL() const { return KURL(); }
     
    229235void refreshPlugins(bool) { }
    230236
    231 void ResourceHandle::assembleResponseHeaders() const { }
    232 void ResourceHandle::retrieveResponseEncoding() const {}
    233 
    234 
    235 Vector<char> ServeSynchronousRequest(Loader*, DocLoader*, ResourceHandle*, KURL&, DeprecatedString&) { notImplemented(); return Vector<char>(); }
     237Vector<char> ServeSynchronousRequest(Loader*, DocLoader*, const ResourceRequest&, ResourceResponse&){ notImplemented(); return Vector<char>(); }
    236238
    237239void CheckCacheObjectStatus(DocLoader*, CachedResource*) { }
     
    247249
    248250HINSTANCE Page::s_instanceHandle = 0;
     251bool ChromeClientWin::canRunModal() { notImplemented(); return false; }
     252void ChromeClientWin::runModal() { }
     253
     254bool EditorClientWin::shouldDeleteRange(Range*) { notImplemented(); return false; }
     255bool EditorClientWin::shouldShowDeleteInterface(HTMLElement*) { return false; }
     256bool EditorClientWin::isContinuousSpellCheckingEnabled() { notImplemented(); return false; }
     257bool EditorClientWin::isGrammarCheckingEnabled() { notImplemented(); return false; }
     258int EditorClientWin::spellCheckerDocumentTag() { notImplemented(); return 0; }
    249259
    250260void Widget::setEnabled(bool) { }
     
    301311void Path::addRect(const FloatRect&) { }
    302312void Path::addEllipse(const FloatRect&) { }
     313void Path::transform(const AffineTransform&) { }
    303314
    304315TextField::TextField(TextField::Type type) { m_type = type; }
     
    349360void PopupMenu::show(const IntRect&, FrameView*, int index) { notImplemented(); }
    350361void PopupMenu::hide() { notImplemented(); }
     362void PopupMenu::updateFromElement() { notImplemented(); }
    351363
    352364void RenderThemeWin::systemFont(int propId, FontDescription& fontDescription) const {}
    353365bool RenderThemeWin::paintMenuList(RenderObject *, const RenderObject::PaintInfo&, const IntRect&) { return false; }
    354366void RenderThemeWin::adjustMenuListStyle(CSSStyleSelector*, RenderStyle*, Element*) const { }
     367
     368bool ResourceLoader::loadsBlocked() { notImplemented(); return false; }
    355369
    356370Icon::Icon() { notImplemented(); }
     
    368382bool IconDatabase::setIconURLForPageURL(const String& iconURL, const String& pageURL) { return false; }
    369383
     384void systemBeep() {}
    370385} // namespace WebCore
  • trunk/WebCore/rendering/RenderThemeWin.cpp

    r17070 r17592  
    239239   
    240240    // Now paint the button.
    241     HDC hdc = prepareForDrawing(i.p); 
     241    HDC hdc = prepareForDrawing(i.context); 
    242242    RECT widgetRect = r;
    243243    drawThemeBG(m_buttonTheme, hdc, themeData.m_part, themeData.m_state, &widgetRect, NULL);
    244     doneDrawing(i.p, hdc);
     244    doneDrawing(i.context, hdc);
    245245
    246246    return false;
     
    290290   
    291291    // Now paint the text field.
    292     HDC hdc = prepareForDrawing(i.p);
     292    HDC hdc = prepareForDrawing(i.context);
    293293    RECT widgetRect = r;
    294294    drawThemeBG(m_textFieldTheme, hdc, themeData.m_part, themeData.m_state, &widgetRect, NULL);
    295     doneDrawing(i.p, hdc);
     295    doneDrawing(i.context, hdc);
    296296
    297297    return false;
  • trunk/WebKit/COM/WebFrame.cpp

    r17482 r17592  
    3636
    3737#pragma warning( push, 0 )
    38 #include "BrowserExtension.h"
    3938#include "Cache.h"
     39#include "ChromeClientWin.h"
    4040#include "Document.h"
    4141#include "FrameView.h"
     
    4646#include "cairo.h"
    4747#include "cairo-win32.h"
    48 #include "ResourceLoader.h"
    49 #include "ResourceLoaderWin.h"
     48#include "ResourceHandle.h"
     49#include "ResourceHandleWin.h"
     50#include "EditorClient.h"
    5051#pragma warning(pop)
    5152
     
    136137        return hr;
    137138
    138     Page* page = new Page();
    139     Frame* frame = new FrameWin(page, 0, this);
     139    Page* page = new Page(new ChromeClientWin());
     140    Frame* frame = new FrameWin(page, 0, 0, this);
    140141
    141142    // FIXME: This is one-time initialization, but it gets the value of the setting from the
     
    381382                    formData = requestImpl->formData();
    382383                }
    383                 RefPtr<ResourceLoader> loader = formData ?
    384                   ResourceLoader::create(this, methodString, kurl, *formData) :
    385                   ResourceLoader::create(this, methodString, kurl);
    386                 loader->start(d->frame->document()->docLoader());
     384
     385                ResourceRequest resourceRequest(kurl);
     386                RefPtr<ResourceHandle> loader = ResourceHandle::create(resourceRequest, this, d->frame->document()->docLoader());
     387
    387388                IWebFrameLoadDelegate* frameLoadDelegate;
    388389                if (SUCCEEDED(d->webView->frameLoadDelegate(&frameLoadDelegate))) {
     
    462463}
    463464
    464 // ResourceLoaderClient
    465 
    466 void WebFrame::receivedRedirect(ResourceLoader*, const KURL& url)
     465// ResourceHandleClient
     466
     467void WebFrame::receivedRedirect(ResourceHandle*, const KURL& url)
    467468{
    468469    DeprecatedString urlStr(url.url());
     
    487488}
    488489
    489 void WebFrame::receivedResponse(ResourceLoader* job, PlatformResponse)
     490void WebFrame::receivedResponse(ResourceHandle* job, PlatformResponse)
    490491{
    491492    // Commit the provisional data source
     
    535536}
    536537
    537 void WebFrame::receivedData(ResourceLoader*, const char* data, int length)
     538void WebFrame::didReceiveData(WebCore::ResourceHandle*, const char* data, int length)
    538539{
    539540    // Ensure that WebFrame::receivedResponse was called.
     
    543544}
    544545
    545 void WebFrame::receivedAllData(ResourceLoader* /*job*/)
     546void WebFrame::receivedAllData(ResourceHandle* /*job*/)
    546547{
    547548    m_quickRedirectComing = false;
     
    549550}
    550551
    551 void WebFrame::receivedAllData(ResourceLoader*, PlatformData data)
     552void WebFrame::receivedAllData(ResourceHandle*, PlatformData data)
    552553{
    553554    IWebFrameLoadDelegate* frameLoadDelegate;
  • trunk/WebKit/COM/WebFrame.h

    r17118 r17592  
    3232
    3333#pragma warning(push, 0)
    34 #include "ResourceLoaderClient.h"
     34#include "ResourceHandleClient.h"
    3535#include "FrameWin.h"
    3636#include "PlatformString.h"
     
    5454} WebFrameLoadType;
    5555
    56 class WebFrame : public IWebFrame, public WebCore::ResourceLoaderClient, public WebCore::FrameWinClient
     56class WebFrame : public IWebFrame, public WebCore::ResourceHandleClient, public WebCore::FrameWinClient
    5757{
    5858public:
     
    131131        /* [retval][out] */ IWebFrame ***frames);
    132132
    133     // ResourceLoaderClient
    134     virtual void receivedRedirect(WebCore::ResourceLoader*, const WebCore::KURL&);
    135     virtual void receivedResponse(WebCore::ResourceLoader*, WebCore::PlatformResponse);
    136     virtual void receivedData(WebCore::ResourceLoader*, const char*, int);
    137     virtual void receivedAllData(WebCore::ResourceLoader*);
    138     virtual void receivedAllData(WebCore::ResourceLoader*, WebCore::PlatformData);
     133    // ResourceHandleClient
     134    virtual void receivedRedirect(WebCore::ResourceHandle*, const WebCore::KURL&);
     135    virtual void receivedResponse(WebCore::ResourceHandle*, WebCore::PlatformResponse);
     136    virtual void didReceiveData(WebCore::ResourceHandle*, const char*, int);
     137    virtual void receivedAllData(WebCore::ResourceHandle*);
     138    virtual void receivedAllData(WebCore::ResourceHandle*, WebCore::PlatformData);
    139139
    140140    // FrameWinClient
  • trunk/WebKit/COM/WebView.cpp

    r17482 r17592  
    3434
    3535#pragma warning( push, 0 )
    36 #include "ResourceLoaderClient.h"
     36#include "ResourceHandleClient.h"
    3737#include "FrameWin.h"
    3838#include "Document.h"
  • trunk/WebKit/ChangeLog

    r17578 r17592  
     12006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
     2
     3        Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=11433
     6        Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
     7
     8        * COM/WebFrame.cpp:
     9        (WebFrame::initWithName):
     10        (WebFrame::loadDataSource):
     11        (WebFrame::receivedRedirect):
     12        (WebFrame::receivedResponse):
     13        (WebFrame::didReceiveData):
     14        (WebFrame::receivedAllData):
     15        Use resource handles now. Do not start doc loader by hand anymore.
     16        Handle didReceiveData() callback instead of receivedData() which
     17        is deprecated in implementation of ResourceHandleClient       
     18
     19        * COM/WebFrame.h:
     20        * COM/WebView.cpp:
     21        Applied ResourceLoader --> ResourceHandle renaming
     22
     23        * WebKit.vcproj/WebKit.rc:
     24        Got rid of MFC dependencies (build fix for VCExpress).
     25
     26        * WebKit.vcproj/WebKit.vcproj:
     27        Added platform/graphics platform/network and platform/network/win
     28        to headers search paths
     29
    1302006-11-03  Geoffrey Garen  <ggaren@apple.com>
    231
  • trunk/WebKit/WebKit.vcproj/WebKit.rc

    r14765 r17592  
    44
    55#define APSTUDIO_READONLY_SYMBOLS
    6 /////////////////////////////////////////////////////////////////////////////
    7 //
    8 // Generated from the TEXTINCLUDE 2 resource.
    9 //
    10 #include "afxres.h"
    11 
    12 /////////////////////////////////////////////////////////////////////////////
     6#include "windows.h"
    137#undef APSTUDIO_READONLY_SYMBOLS
    148
     
    1812#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    1913#ifdef _WIN32
    20 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
     14LANGUAGE 9, 1
    2115#pragma code_page(1252)
    2216#endif //_WIN32
  • trunk/WebKit/WebKit.vcproj/WebKit.vcproj

    r16317 r17592  
    4141                                Name="VCCLCompilerTool"
    4242                                Optimization="0"
    43                                 AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\COM&quot;;&quot;$(ProjectDir)\..\..\WebCore&quot;;&quot;$(ProjectDir)\..\..\WebCore\loader&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\ecma&quot;;&quot;$(ProjectDir)\..\..\WebCore\html&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml&quot;;&quot;$(ProjectDir)\..\..\WebCore\css&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\misc&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\page&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\rendering&quot;;&quot;$(ProjectDir)\..\..\WebCore\editing&quot;;&quot;$(ProjectDir)\..\..\WebCore\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\xml&quot;;&quot;$(ProjectDir)\..\..\WebCore\kwq&quot;;&quot;$(ProjectDir)\..\..\iconv&quot;;&quot;$(ProjectDir)\..\..\libxml2&quot;;&quot;$(ProjectDir)\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\wtf&quot;;&quot;$(ProjectDir)\..\..\WebCore\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\$(ConfigurationName)\WebKitWin&quot;;&quot;$(ProjectDir)&quot;"
     43                                AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\COM&quot;;&quot;$(ProjectDir)\..\..\WebCore&quot;;&quot;$(ProjectDir)\..\..\WebCore\loader&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\ecma&quot;;&quot;$(ProjectDir)\..\..\WebCore\html&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml&quot;;&quot;$(ProjectDir)\..\..\WebCore\css&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\misc&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\page&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\network&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\network\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\graphics&quot;;&quot;$(ProjectDir)\..\..\WebCore\rendering&quot;;&quot;$(ProjectDir)\..\..\WebCore\editing&quot;;&quot;$(ProjectDir)\..\..\WebCore\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\xml&quot;;&quot;$(ProjectDir)\..\..\WebCore\kwq&quot;;&quot;$(ProjectDir)\..\..\iconv&quot;;&quot;$(ProjectDir)\..\..\libxml2&quot;;&quot;$(ProjectDir)\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\wtf&quot;;&quot;$(ProjectDir)\..\..\WebCore\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\$(ConfigurationName)\WebKitWin&quot;;&quot;$(ProjectDir)&quot;"
    4444                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;WEBKIT_EXPORTS;_WIN32_WINNT=0x500;_SCL_SECURE_NO_DEPRECATE"
    4545                                MinimalRebuild="true"
     
    127127                        <Tool
    128128                                Name="VCCLCompilerTool"
    129                                 AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\COM&quot;;&quot;$(ProjectDir)\..\..\WebCore&quot;;&quot;$(ProjectDir)\..\..\WebCore\loader&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\ecma&quot;;&quot;$(ProjectDir)\..\..\WebCore\html&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml&quot;;&quot;$(ProjectDir)\..\..\WebCore\css&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\misc&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\page&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\rendering&quot;;&quot;$(ProjectDir)\..\..\WebCore\editing&quot;;&quot;$(ProjectDir)\..\..\WebCore\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\xml&quot;;&quot;$(ProjectDir)\..\..\WebCore\kwq&quot;;&quot;$(ProjectDir)\..\..\iconv&quot;;&quot;$(ProjectDir)\..\..\libxml2&quot;;&quot;$(ProjectDir)\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\wtf&quot;;&quot;$(ProjectDir)\..\..\WebCore\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\$(ConfigurationName)\WebKitWin&quot;;&quot;$(ProjectDir)&quot;"
     129                                AdditionalIncludeDirectories="&quot;$(ProjectDir)\..\COM&quot;;&quot;$(ProjectDir)\..\..\WebCore&quot;;&quot;$(ProjectDir)\..\..\WebCore\loader&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\ecma&quot;;&quot;$(ProjectDir)\..\..\WebCore\html&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml&quot;;&quot;$(ProjectDir)\..\..\WebCore\css&quot;;&quot;$(ProjectDir)\..\..\WebCore\khtml\misc&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\page&quot;;&quot;$(ProjectDir)\..\..\WebCore\bridge&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\cairo\cairo\src&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\network&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\network\win&quot;;&quot;$(ProjectDir)\..\..\WebCore\platform\graphics&quot;;&quot;$(ProjectDir)\..\..\WebCore\rendering&quot;;&quot;$(ProjectDir)\..\..\WebCore\editing&quot;;&quot;$(ProjectDir)\..\..\WebCore\dom&quot;;&quot;$(ProjectDir)\..\..\WebCore\xml&quot;;&quot;$(ProjectDir)\..\..\WebCore\kwq&quot;;&quot;$(ProjectDir)\..\..\iconv&quot;;&quot;$(ProjectDir)\..\..\libxml2&quot;;&quot;$(ProjectDir)\..\..\icu\include&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\os-win32&quot;;&quot;$(ProjectDir)\..\..\JavaScriptCore\wtf&quot;;&quot;$(ProjectDir)\..\..\WebCore\ForwardingHeaders&quot;;&quot;$(WebKitOutputDir)\$(ConfigurationName)\WebKitWin&quot;;&quot;$(ProjectDir)&quot;"
    130130                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;WEBKIT_EXPORTS;_WIN32_WINNT=0x500;_SCL_SECURE_NO_DEPRECATE"
    131131                                ExceptionHandling="0"
Note: See TracChangeset for help on using the changeset viewer.