2007-04-10 Anders Carlsson * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::PluginViewWin): Initialize m_status. 2007-04-09 Anders Carlsson Reviewed by Adam. No prompt to install QT for pages with uninstalled QT plug-in. Add a status() accessor to PluginViewWin. This can be used by WebKit to find out if the plug-in loaded successfully or not. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::PluginViewWin): (WebCore::PluginViewWin::init): * plugins/win/PluginViewWin.h: (WebCore::): (WebCore::PluginViewWin::status): 2007-04-09 Brady Eidson Build fix * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): assume userGesture is true 2007-04-09 Adam Roben Build fix. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeImage): 2007-04-08 Adam Roben Reviewed by Oliver. Stubbed out Frame::dashboardRegionsChanged now that it's not Mac-specific. * bridge/win/FrameWin.cpp: (WebCore::Frame::dashboardRegionsChanged): 2007-04-06 Oliver Hunt Reviewed by Adam. Fix for rdar://problem/5097227 Can't drag Flash-based scrollbar on mtv.com The problem was when creating a mouse move event for the plugin we weren't passing on the mouse button state. The opensource side of this patch adds logic that allows us to distinguish between a MouseEvent with NoButton and a MouseEvent with LeftButton, so we can then provide the correct information to the plugin. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::handleMouseEvent): 2007-04-06 Dave Hyatt Internal side of fix for bug 13274. Reviewed by olliej * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::passMousePressEventToSubframe): * platform/win/PlatformScrollBarSafari.cpp: (WebCore::PlatformScrollbar::handleMousePressEvent): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::PopupMenu): (WebCore::PopupWndProc): * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::removeChild): * platform/win/WidgetWin.cpp: 2007-04-07 Mark Rowe Internal build fox after opensource r20753. * platform/win/PlatformMouseEventWin.cpp: * platform/win/TemporaryLinkStubs.cpp: 2007-04-03 Oliver Hunt Buildfix * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::doUpdateResourceResponse): Adding .get() calls 2007-04-03 Maciej Stachowiak Reviewed by Alice. - fixed WebCore leaks a copy of the CFHTTPMessage CFDictionary (from CFHTTPMessageCopyAllHeaderFields) * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::doUpdateResourceResponse): Use RetainPtr (once to avoid a leak and once just as style cleanup). 2007-04-02 Anders Carlsson Reviewed by Adam. Fix crashes seen when running the plugin layout tests. * plugins/win/PluginPackageWin.cpp: (WebCore::PluginPackageWin::load): Fill in the enumerate pointer, not the evaluate pointer (it's already been filled in). * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::didFinishLoading): Handle the case where there was no plugin stream data at all. 2007-04-02 Anders Carlsson Reviewed by Darin. Check that NPStream pointers passed to NPN_DestroyStream are valid. * plugins/win/PluginStreamWin.cpp: (WebCore::streams): (WebCore::PluginStreamWin::PluginStreamWin): (WebCore::PluginStreamWin::~PluginStreamWin): (WebCore::PluginStreamWin::ownerForStream): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::destroyStream): 2007-04-02 Anders Carlsson Reviewed by Darin. PluginViewWin doesn't implement NPN_DestroyStream. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): Handle the case where NPN_DestroyStream is called from the newstream handler. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::destroyStream): Implement this. 2007-04-02 Anders Carlsson Reviewed by Dave Hyatt. Mouse cursors don't work with windowless plugins * platform/win/WidgetWin.cpp: (WebCore::Widget::setCursor): Add an "ignoreNextSetCursor" boolean and don't call SetCursor if it's true. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::handleMouseEvent): Store away the current cursor and make sure that it won't be reset. 2007-04-02 Anders Carlsson Reviewed by Adam. Fix logic in windowless paint functions. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::invalidateRect): (WebCore::PluginViewWin::invalidateRegion): (WebCore::PluginViewWin::forceRedraw): 2007-03-31 Dave Hyatt Internal side of 13234. Open source side was reviewed by Mitz. Layout of justified text was broken when dragged or when a ::selection style was in effect. * platform/win/FontWin.cpp: (WebCore::Font::selectionRectForComplexText): (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::UniscribeController): (WebCore::UniscribeController::offsetForPosition): * platform/win/UniscribeController.h: * platform/win/WebCoreTextRenderer.cpp: (WebCore::doDrawTextAtPoint): 2007-03-30 Anders Carlsson Reviewed by Geoff. * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::addExtraPluginPath): * plugins/win/PluginDatabaseWin.h: New function for adding an extra plugin path, to be used by DRT. * plugins/win/PluginPackageWin.cpp: (WebCore::PluginPackageWin::load): Set the current directory tho the plugin directory while loading the plugin. Add new NPN callbacks. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::invalidateRect): (WebCore::PluginViewWin::invalidateRegion): (WebCore::PluginViewWin::forceRedraw): Don't do anything if the plugin is windowed. * plugins/win/npapi.cpp: (NPN_PushPopupsEnabledState): (NPN_PopPopupsEnabledState): Add stubs. * plugins/win/npfunctions.h: Add new methods and merge some fixes from the open source version. 2007-03-29 Dave Hyatt Enable CG's local font cache. rdar://problem/5070005 Reviewed by aroben * platform/win/FontCacheWin.cpp: (WebCore::FontCache::platformInit): 2007-03-28 Maciej Stachowiak Reviewed by Darin. - updates for Autoscroll is broken in Mail.app (message jumps around when trying to select text) * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers): (WebCore::ScrollView::scrollRectIntoViewRecursively): 2007-03-27 Dave Hyatt Fix for 5090964, arabic text is all jumbled in list boxes and popup menus (and in the Boomer app too). The fallback font was not the right size because the font you're mapping from had to be selected into the HDC first. Reviewed by ggaren * ChangeLog: * platform/win/FontCacheWin.cpp: (WebCore::FontCache::getFontDataForCharacters): 2007-03-27 Geoffrey Garen Reviewed by Anders Carlsson. Fixed WebView stops painting after loading stand-alone netflix movie preview in WMP format The stand-alone WMP plug-in seems to do all its drawing in the WM_ERASEBKGN phase, not the WM_PAINT phase, so our InvalidateRect call for plug-in windows needs to specify 'true' for whether the background region should be erased. A smart plug-in that wants to avoid background draws can still do so by just returning 1 in response to WM_ERASEBKGN, or by setting its background brush to NULL. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::updateWindow): 2007-03-27 Anders Carlsson Reviewed by Maciej. Crash when destroying "null plugin" Invoking itunes page has missing plugin icon on it * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::paintMissingPluginIcon): Clip before painting. (WebCore::freeStringArray): Add null-check. (WebCore::PluginViewWin::PluginViewWin): Initialize plugin names and values. 2007-03-27 Dave Hyatt Add support for glyph offsets to the GlyphBuffer. Reviewed by olliej * platform/win/FontWin.cpp: (WebCore::Font::drawGlyphs): * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::shapeAndPlaceItem): 2007-03-26 Antti Koivisto Reviewed by Darin. Initialize new m_isContinuous field in WheelEvent * platform/win/WheelEventWin.cpp: (WebCore::PlatformWheelEvent::PlatformWheelEvent): 2007-03-27 Dave Hyatt Enable complex text. Selection and small-caps support are now enabled with this patch. Reviewed by aroben * platform/win/FontWin.cpp: (WebCore::Font::selectionRectForComplexText): (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText): * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::UniscribeController): (WebCore::UniscribeController::floatWidth): (WebCore::UniscribeController::offsetForPosition): (WebCore::UniscribeController::advance): (WebCore::UniscribeController::itemizeShapeAndPlace): (WebCore::UniscribeController::shapeAndPlaceItem): * platform/win/UniscribeController.h: (WebCore::UniscribeController::runWidthSoFar): 2007-03-26 Adele Peterson Reviewed by Adam. Fix for Popup menu is not positioned correctly on a yahoo comics page Fixes test: fast/forms/control-restrict-line-height.html This change was made in RenderThemeMac a while ago, and will fix the line height for aqua popup buttons, buttons and search fields. * rendering/RenderThemeSafari.cpp: WebCore::RenderThemeSafari::setFontFromControlSize): Don't honor line-height for controls that have restricted font size. 2007-03-25 Brady Eidson Reviewed by Oliver - WebHistory(Item) Leak * platform/win/COMPtr.h: (COMPtr::COMPtr): An an adoptRef constructor 2007-03-24 Adam Roben Reviewed by Maciej. Fix Crash in PluginViewWin::updateWindow when loading a PDF page for the first time after installing Acrobat Reader Don't call PluginPackageWin::load() until the PluginViewWin has been inserted into the Widget tree. load() can result in arbitrary code execution (in this case, a EULA window appears which takes focus from the WebView, causing Frame::setIsActive(false) to be called), and we don't want to be in a transitional state when that happens. * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::createPluginView): Call PluginViewWin's one and only constructor. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::setParent): Call init() after inserting ourselves into the Widget tree. (WebCore::PluginViewWin::PluginViewWin): Defer all real work until init() is called. (WebCore::PluginViewWin::init): Added. Calls m_plugin->load(), then does the rest of the work that was once done by the constructor. * plugins/win/PluginViewWin.h: Removed createNullPlugin and simplified constructor, added setParent override and new init method. 2007-03-24 Brady Eidson Reviewed by Adam - Move RetainPtr to WTF for WebKitWin and the App * WebCore.vcproj/WebCore.vcproj: Add the ForwardingHeader to the vcprojs 2007-03-23 Adele Peterson Reviewed by Maciej. Fix for In editable webviews, caps lock key is ignored * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Removed code to store lowercase characters in m_text. Now that we use the character code to create m_text this is already taken care of. This does mean that m_unmodifiedText is not right. This is used for accesskeys, which don't work yet, so that is covered in rdar://5085596. This also fixes line endings in this file. 2007-03-22 Geoffrey Garen Reviewed by Adam Roben. Fixed Select menus are too see-through Upped alpha value from 90 to 95. Menus will still seem a little more see-through than on the mac, since their backgrounds are white, not grey, but white matches other Windows browsers. * ChangeLog: * platform/win/PopupMenuWin.cpp: 2007-03-22 Anders Carlsson Reviewed by Maciej. QT content is dupped on a page, if page is being previewed or printed. Don't update the frame geometry if the document is in printing mode. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::setFrameGeometry): 2007-03-22 Beth Dakin Fix by Hyatt, reviewed and committed by me. Fix for Incomplete frame paint when shrinking window @ google.com * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::setFrameGeometry): Wrong order! 2007-03-22 Dave Hyatt Fix for crasher in layout caused by paints that happen without layout being current. Change to be more like the Mac and crawl the frame tree up front ensuring everyone is up to date before painting. Reviewed by olliej * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::setFrameGeometry): (WebCore::ScrollView::children): (WebCore::ScrollView::geometryChanged): 2007-03-22 Dave Hyatt Fix for mouse wheel issues. Only return success from passWheelEventToSubframe is the event was actually accepted. * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::passWheelEventToSubframe): 2007-03-21 Dave Hyatt Fix numerous bugs in RTL support. Only use a directional override if the run tells us to. Uniscribe will give incorrect results when measuring RTL runs as LTR if the directional override is set. Switch from logical order for glyphs to visual order instead. This is more similar to ATSUI (less similar to the fast code path, which always uses logical ordering for glyph generation). Using visual ordering forces a lot of games to be played (have to walk the script items in backwards order for RTL for example), but Uniscribe does not combine glyphs properly if visual ordering is not used. Add support for justification, letter-spacing, word-spacing and rounding hacks. The CG vs. ATSUI layout test now passes with identical results to the Mac. The ATSUI spacing features layout test now generates correct results (although they are different from the Mac because we fall back to Arial for Hebrew instead of Lucida Grande). Reviewed by oliver * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::UniscribeController): (WebCore::UniscribeController::resetControlAndState): (WebCore::UniscribeController::shapeAndPlaceItem): (WebCore::UniscribeController::shape): * platform/win/UniscribeController.h: 2007-03-20 Adam Roben Reviewed by Ada. Added null-checks for ResourceHandle::cookieStorage() before passing it into CFNetwork functions, which are not null-safe. * platform/network/win/CookieJarWin.cpp: (WebCore::setCookies): (WebCore::cookies): 2007-03-20 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: Added XPathNodeSet.(cpp|h). 2007-03-20 Adam Roben Reviewed by Oliver. Made the metrics of styled selects match those on the Mac to get fast/forms/001.html passing. * rendering/RenderThemeSafari.cpp: Use 2px less padding for the select's arrow since the arrow is 2px wider than on the Mac. 2007-03-20 Adam Roben Build fix. * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::makeFinalRequest): Fix typo. 2007-03-20 Dave Hyatt Land advanced text code path (turned off). Reviewed by aroben * WebCore.vcproj/WebCore.vcproj: * platform/win/FontCacheWin.cpp: (WebCore::FontCache::createFontPlatformData): * platform/win/FontDataWin.cpp: (WebCore::FontData::platformInit): (WebCore::FontData::platformDestroy): (WebCore::FontData::smallCapsFontData): (WebCore::FontData::scriptFontProperties): * platform/win/FontWin.cpp: (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText): * platform/win/UniscribeController.cpp: Added. (WebCore::UniscribeController::UniscribeController): (WebCore::UniscribeController::resetControlAndState): (WebCore::UniscribeController::shapeAndPlaceItem): (WebCore::UniscribeController::shape): * platform/win/UniscribeController.h: Added. (WebCore::UniscribeController::width): (WebCore::UniscribeController::glyphBuffer): 2007-03-20 Anders Carlsson Reviewed by Adam. Cookie acceptance policy not settable * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::willSendRequest): (WebCore::willCacheResponse): Remove FIXMEs. (WebCore::makeFinalRequest): New function that makes a final CFURLRequest depending on cookie policy and whether any invalid SSL certificates should be ignored. (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::loadResourceSynchronously): Use makeFinalRequest. (WebCore::ResourceHandle::cookieStorageAcceptPolicy): (WebCore::ResourceHandle::setCookieStorageAcceptPolicy): (WebCore::ResourceHandle::cookieStorage): (WebCore::ResourceHandle::setCookieStorage): (WebCore::ResourceHandle::setHostAllowsAnyHTTPSCertificate): New functions for setting cookie policy, the deafult cookie storage and whether invalid SSL certificates should result in an error. * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::ResourceRequest::doUpdatePlatformRequest): Set cookie storage, cookie policy and SSL properties. * platform/network/win/CookieJarWin.cpp: (WebCore::setCookies): (WebCore::cookies): Use same functions as the mac (sorta). (WebCore::cookiesEnabled): Implement this. 2007-03-19 Adam Roben Reviewed by Anders and Darin. Added JavaScriptStatistics to the project for . * WebCore.vcproj/WebCore.vcproj: Added include/pthreads to the include path, and added JavaScriptStatistics.(cpp|h). 2007-03-18 David Hyatt Fix the CSS2 system font for 'menu' to match Mac. Makes the system fonts layout test pass. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::systemFont): 2007-03-18 Adam Roben Reviewed by Hyatt. Changed the file upload button to say "Choose File" to match Mac. * platform/win/TemporaryLinkStubs.cpp: (WebCore::fileButtonChooseFileLabel): 2007-03-18 Geoffrey Garen Reviewed by Oliver Hunt. Fixed STRESS (2): Crash in PlatformScrollbar::setRect No test case because I can't seem to get the Windows DRT to cooperate. I'll try again tomorrow. The problem was that the FrameView would try to reset the document's scrollbars after having been removed from the page, so its page pointer would be NULL. Added NULL checks. This situation ultimately results from the FrameView's non-trivial destructor, which creates a fragile dependency on tear-down timing. It looks like the timing on Windows is slightly different from the timing on Mac. I didn't see any obvious resulting bugs, though, so the NULL checks should be sufficient for now. * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::windowResizerRect): (WebCore::ScrollView::addToDirtyRegion): (WebCore::ScrollView::scrollBackingStore): (WebCore::ScrollView::updateBackingStore): 2007-03-17 David Hyatt The internal side of the patch that ensures Boomer paints twice on ibench. Don't let the timer beat out that first paint. Reviewed by aroben * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::update): 2007-03-17 Adam Roben Reviewed by Brady. Fix fast/dom/isindex-002.html. Add default strings to our two remaining unimplemented localizable strings in WebCore. * platform/win/TemporaryLinkStubs.cpp: (WebCore::searchableIndexIntroduction): Added English string from Mac. (WebCore::inputElementAltText): Ditto. 2007-03-17 Adele Peterson Reviewed by Hyatt. Fix for REGRESSION (r18922): onChange never fired after selecting an item from a menulist * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::PopupMenu): Initialize m_focusedIndex to 0. Instead of using the client to track the focused index, we'll keep track of it internally. Our old behavior was trying to match Firefox by updating the selected index as you focus items, but that doesn't seem necessary if the selection never gets committed. (WebCore::PopupMenu::show): Initialize the focused index to the client's selected index. (WebCore::PopupMenu::setFocusedIndex): Remove the fireOnChange argument. Remove the call to valueChanged. (WebCore::PopupMenu::focusedIndex): Return m_focusedIndex instead of getting this from the client. (WebCore::PopupMenu::down): Use the focusedIndex. (WebCore::PopupMenu::up): ditto. (WebCore::PopupMenu::paint): Paint a selected appearance for the item with the focused index. 2007-03-16 Adele Peterson Reviewed by Lou. Fix for cannot mousedown + drag in a menus are not animating smoothly This was caused by making the menus partially transparent in r12250. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::show): Disable animations. 2007-02-23 Anders Carlsson Reviewed by Adam. nike.com doesn't finish loading if Flash plugin is installed. If a plugin requests a JavaScript URL with a non null frame target, execute the JavaScript expression. If the result is not "undefined", replace the contents of the frame with the result converted to a string. * plugins/win/PluginViewWin.cpp: (WebCore::getString): (WebCore::PluginViewWin::performRequest): (WebCore::PluginViewWin::requestTimerFired): 2007-02-22 Oliver Hunt rs = adam Replacing radar numbers from previous patch with one the isn't fictitious * platform/win/CursorWin.cpp: (WebCore::columnResizeCursor): (WebCore::rowResizeCursor): (WebCore::verticalTextCursor): 2007-02-22 Oliver Hunt Reviewed by Ada. Implemented a couple more cursor methods * platform/win/CursorWin.cpp: (WebCore::columnResizeCursor): (WebCore::rowResizeCursor): (WebCore::verticalTextCursor): Added radar bug reference (WebCore::progressCursor): (WebCore::noDropCursor): (WebCore::notAllowedCursor): Making them return the correct cursor 2007-02-22 Oliver Hunt Reviewed by Anders. Removing accessive COMPtr use from ClipboardWin constructors Adding data verification to ClipoardWin::SetData Small amount code tidying, and allowing for failure when writing an URL * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::createDraggingClipboard): Updated for new ClipboardWin constructor * platform/win/ClipboardWin.cpp: (WebCore::ClipboardWin::ClipboardWin): (WebCore::writeURL): (WebCore::ClipboardWin::getData): Tidying code, and allowing failure (WebCore::ClipboardWin::setData): Verifying that we're writing a valid url * platform/win/ClipboardWin.h: * platform/win/EditorWin.cpp: (WebCore::Editor::newGeneralClipboard): Updated for new ClipboardWin constructor 2007-02-22 Oliver Hunt Reviewed by Ada, Lou, and Steve. Last of the major Drag and drop implementation patches for windows: * Adds support for DOM Clipboard during drag operations * Un-statics and refactors a few Pasteboard and DragData functions to allow them to share implementation with ClipboardWin and other drag logic * Moves COMPtr.h from WebKit to WebCore * Adds WCDataObject, which is basically a direct copy of SDataObject from the app, with a few modifications to support DOM clipboard functionality. Also includes a few suggestions from Ada and Steve, mostly involving memory management :D This resolves Cannot drag link to bookmarks bar to create new link User Interaction Essentials: Drag * WebCore.vcproj/WebCore.vcproj: Adding new files * page/win/DragControllerWin.cpp: (WebCore::DragController::maxDragImageSize): Maximum size of drag image to allow sharp edges is 208x208 * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::createDraggingClipboard): Properly implemented now * platform/win/ClipboardWin.cpp: (WebCore::): (WebCore::clipboardTypeFromMIMEType): (WebCore::ClipboardWin::ClipboardWin): (WebCore::ClipboardWin::~ClipboardWin): (WebCore::writeURL): Helper function to write a url to a WCDataObject (WebCore::ClipboardWin::clearData): (WebCore::ClipboardWin::clearAllData): (WebCore::ClipboardWin::getData): (WebCore::ClipboardWin::setData): (WebCore::addMimeTypesForFormat): Helper function for ClipboardWin::types (WebCore::ClipboardWin::types): (WebCore::ClipboardWin::setDragImage): (WebCore::ClipboardWin::setDragImageElement): General setters, match behaviour of WebKit/Mac (WebCore::ClipboardWin::createDragImage): Creates a drag image for a DOM specified Image is specified can't currently generate an image for an arbitrary element (WebCore::imageToMarkup): Wraps a url in an img tag (WebCore::ClipboardWin::declareAndWriteDragImage): (WebCore::ClipboardWin::writeURL): (WebCore::ClipboardWin::writeRange): (WebCore::ClipboardWin::hasData): Implement Clipboard required by DragController. Provides read/write DOM Clipboard implementation for dragging, read only when accessing system clipboard. * platform/win/ClipboardWin.h: (WebCore::ClipboardWin::dataObject): Provide an accessor for the dataObject * platform/win/DragDataWin.cpp: (WebCore::urlWFormat): (WebCore::urlFormat): (WebCore::plainTextFormat): (WebCore::plainTextWFormat): (WebCore::texthtmlFormat): (WebCore::htmlFormat): (WebCore::getURL): (WebCore::DragData::asURL): (WebCore::getPlainText): (WebCore::DragData::asPlainText): (WebCore::DragData::asFragment): Refactoring and removing of a few static modifiers to allow sharing with Clipboard * platform/win/DragImageWin.cpp: (WebCore::dragImageSize): (WebCore::deleteDragImage): (WebCore::allocImage): (WebCore::createCgContextFromBitmap): (WebCore::scaleDragImage): (WebCore::dissolveDragImageToFraction): (WebCore::createDragImageFromImage): (WebCore::createDragImageIconForCachedImage): Implement DragImage functions * platform/win/EditorWin.cpp: (WebCore::Editor::newGeneralClipboard): Creating a Clipboard that wraps the system clipboard * platform/win/PasteboardWin.cpp: (WebCore::createGlobalData): (WebCore::markupToCF_HTML): (WebCore::urlToMarkup): (WebCore::replaceNBSP): removing 'static' * platform/win/WCDataObject.cpp: Added. (WebCore::WCEnumFormatEtc::WCEnumFormatEtc): (WebCore::WCEnumFormatEtc::QueryInterface): (WebCore::WCEnumFormatEtc::AddRef): (WebCore::WCEnumFormatEtc::Release): (WebCore::WCEnumFormatEtc::Next): (WebCore::WCEnumFormatEtc::Skip): (WebCore::WCEnumFormatEtc::Reset): (WebCore::WCEnumFormatEtc::Clone): (WebCore::WCDataObject::createInstance): (WebCore::WCDataObject::WCDataObject): (WebCore::WCDataObject::~WCDataObject): (WebCore::WCDataObject::QueryInterface): (WebCore::WCDataObject::AddRef): (WebCore::WCDataObject::Release): (WebCore::WCDataObject::GetData): (WebCore::WCDataObject::GetDataHere): (WebCore::WCDataObject::QueryGetData): (WebCore::WCDataObject::GetCanonicalFormatEtc): (WebCore::WCDataObject::SetData): (WebCore::WCDataObject::CopyMedium): (WebCore::WCDataObject::EnumFormatEtc): (WebCore::WCDataObject::DAdvise): (WebCore::WCDataObject::DUnadvise): (WebCore::WCDataObject::EnumDAdvise): (WebCore::WCDataObject::clearData): Copied from SDataObject in the App createInstance and clearData are the only new functions. clearData removes any entries in the object with a specified CLIPFORMAT. Have also made a few error and memory handling changes suggested by Steve and Ada * platform/win/WCDataObject.h: Added. Header for the above 2007-02-22 Adam Roben Reviewed by Adele. Make sure we always paint the right size search results icon. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintSearchFieldCancelButton): Removed unused parameter. (WebCore::RenderThemeSafari::paintSearchFieldDecoration): Ditto. (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration): Base the control size off of the search field rect to ensure that the icon and the control are the same size. (WebCore::RenderThemeSafari::paintSearchFieldResultsButton): Ditto. 2007-02-21 Adam Roben Reviewed by Adele. Updated for SafariTheme changes. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuList): Use DropDownButtonPart. 2007-02-20 Adele Peterson Reviewed by Darin. * WebCore.vcproj/WebCore.vcproj: Added JSHTMLSelectElementCustom.h 2007-02-20 Beth Dakin Reviewed by Maciej. Some changes needed to match moving writeImage() to the Pasteboard on the Mac. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeURL): Now takes a bool indicating if the url if for an image. (WebCore::Pasteboard::writeImage): This is just a stub for now. I am putting it here instead of on TemporaryLinkStubs because I plan on implementing it very soon. 2007-02-20 Adam Roben Reviewed by Darin and Anders. Fix App: Status bar text is more difficult to read than Mac OS X Safari * WebCore.vcproj/WebCore.vcproj: Added new files. * platform/win/FileChooserWin.cpp: (WebCore::FileChooser::openFileChooser): (WebCore::FileChooser::basenameForWidth): Added truncation. * platform/win/WebCoreTextRenderer.cpp: (WebCore::WebCoreDrawTextAtPoint): Added bottomAlign and centerTruncate parameters. * platform/win/WebCoreTextRenderer.h: Ditto. 2007-02-20 Alice Liu Build fix * WebCore.vcproj/WebCore.vcproj: Added PositionIterator.cpp & h 2007-02-20 Steve Falkenburg B&I build fix * WebCore.vcproj/WebCore.vcproj: 2007-02-19 Geoffrey Garen Reviewed by Adam Roben. Fixed some leaks in RenderThemeSafari. I just merged some of the code I wrote for RenderThemeMac. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuListButtonGradients): (WebCore::RenderThemeSafari::paintSliderTrack): 2007-02-19 Anders Carlsson Reviewed by Oliver. Fix build. * page/win/DragControllerWin.cpp: (WebCore::DragController::maxDragImageSize): 2007-02-19 Adele Peterson Reviewed by Adam. Fix for PlatformScrollbarSafari doesn't support small scroll bars * platform/win/PlatformScrollBar.h: * platform/win/PlatformScrollBarSafari.cpp: (WebCore::): (WebCore::PlatformScrollbar::PlatformScrollbar): (WebCore::trackRepaintRect): (WebCore::buttonRepaintRect): (WebCore::PlatformScrollbar::invalidateTrack): (WebCore::PlatformScrollbar::invalidatePart): (WebCore::PlatformScrollbar::backButtonRect): (WebCore::PlatformScrollbar::forwardButtonRect): (WebCore::PlatformScrollbar::trackRect): (WebCore::PlatformScrollbar::splitTrack): (WebCore::PlatformScrollbar::thumbLength): (WebCore::PlatformScrollbar::paintButton): (WebCore::PlatformScrollbar::paintTrack): (WebCore::PlatformScrollbar::paintThumb): (WebCore::PlatformScrollbar::horizontalScrollbarHeight): (WebCore::PlatformScrollbar::verticalScrollbarWidth): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::show): (WebCore::PopupMenu::calculatePositionAndSize): 2007-02-19 Anders Carlsson Reviewed by Adam. Regression: Crash loading mp3.com * platform/network/cf/ResourceErrorCF.cpp: (WebCore::ResourceError::ResourceError): Handle null resource errrors. 2007-02-19 Adam Roben Build fix. * bridge/win/FrameWin.cpp: (WebCore::computePageRectsForFrame): This is no longer an instance method of Frame. * bridge/win/FrameWin.h: 2007-02-18 Maciej Stachowiak Reviewed by Oliver. - Adapt for Lars's patch to clean up Frame * bridge/win/FrameWin.cpp: (WebCore::Frame::cleanupPlatformScriptObjects): (WebCore::Frame::createScriptInstanceForWidget): (WebCore::Frame::computePageRects): (WebCore::drawRectIntoContext): (WebCore::imageFromSelection): (WebCore::Frame::isCharacterSmartReplaceExempt): * bridge/win/FrameWin.h: * page/win/EventHandlerWin.cpp: * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::windowResizerRect): (WebCore::ScrollView::addToDirtyRegion): (WebCore::ScrollView::scrollBackingStore): (WebCore::ScrollView::updateBackingStore): * platform/win/TemporaryLinkStubs.cpp: (Frame::print): (Frame::issueTransposeCommand): (WebCore::Frame::respondToChangedSelection): * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::createPluginView): * plugins/win/PluginDatabaseWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::createNullPluginView): (WebCore::PluginViewWin::PluginViewWin): * plugins/win/PluginViewWin.h: 2007-02-18 Ada Chan Reviewed by Adam. Move app text controls to use WebView. - added a method to let us render text using WebKit. * WebCore.vcproj/WebCore.vcproj: * platform/win/WebCoreTextRenderer.cpp: Added. (WebCore::WebCoreDrawTextAtPoint): * platform/win/WebCoreTextRenderer.h: Added. 2007-02-18 Adam Roben Rubberstamped by Hyatt. Fix All selected text is black, even if it is some other color when not selected * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::paint): Use the listbox colors for selected items. * rendering/RenderThemeSafari.cpp: Removed platformActiveSelectionForegroundColor. * rendering/RenderThemeSafari.h: Ditto. 2007-02-18 Adam Roben Reviewed by Hyatt. Fix * WebCore.vcproj/WebCore.vcproj: * platform/graphics/win/IconWin.cpp: (WebCore::Icon::Icon): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::setFocusedIndex): (WebCore::PopupWndProc): * platform/win/SearchPopupMenuWin.cpp: Added. (WebCore::SearchPopupMenu::SearchPopupMenu): (WebCore::autosaveKey): (WebCore::SearchPopupMenu::saveRecentSearches): (WebCore::SearchPopupMenu::loadRecentSearches): * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::paintSearchField): (WebCore::RenderThemeWin::adjustSearchFieldStyle): (WebCore::RenderThemeWin::paintSearchFieldCancelButton): (WebCore::RenderThemeWin::adjustSearchFieldCancelButtonStyle): (WebCore::RenderThemeWin::adjustSearchFieldDecorationStyle): (WebCore::RenderThemeWin::paintSearchFieldDecoration): (WebCore::RenderThemeWin::adjustSearchFieldResultsDecorationStyle): (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration): (WebCore::RenderThemeWin::adjustSearchFieldResultsButtonStyle): (WebCore::RenderThemeWin::paintSearchFieldResultsButton): * rendering/RenderThemeWin.h: 2006-12-15 Anders Carlson * platform/win/TemporaryLinkStubs.cpp: Remove DocumentLoader::isStopped because it's now in DocumentLoader.cpp. 2006-12-15 Geoffrey Garen I'm in ur prjct, fxng ur build. * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: (ResourceHandle::loadResourceSynchronously): 2006-12-14 Geoffrey Garen Reviewed by Brady Eidson. Fixed Crash clicking nav links at left loading www.tivofaq.com The underlying problem is that we can't resize framesets. I've filed that as . I've fixed the proximate problem: we were interpreting a click as a frameset resize, because the subframe event handler was returning false. A Subframe event handler needs to return true to indicate that the subframe has handled the event. This is how the Mac works, despite the plethora of convoluted code suggesting otherwise. We should really remove these meaningless return values and unify Mac and Windows event handling, but that's beyond the scope of this patch. * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::passMousePressEventToSubframe): (WebCore::EventHandler::passMouseMoveEventToSubframe): (WebCore::EventHandler::passMouseReleaseEventToSubframe): (WebCore::EventHandler::passWheelEventToSubframe): 2006-12-14 Adele Peterson Reviewed by Adam. Update PopupMenu code to use new PopupMenuClient instead of RenderMenuList. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::PopupMenu): (WebCore::PopupMenu::show): (WebCore::PopupMenu::calculatePositionAndSize): (WebCore::PopupMenu::setFocusedIndex): (WebCore::PopupMenu::focusedIndex): (WebCore::PopupMenu::focusFirst): (WebCore::PopupMenu::focusLast): (WebCore::PopupMenu::down): (WebCore::PopupMenu::up): (WebCore::PopupMenu::paint): (WebCore::PopupWndProc): 2006-12-14 Steve Falkenburg Build fix. * platform/win/TemporaryLinkStubs.cpp: (SubresourceLoader::didCancel): 2006-12-14 Steve Falkenburg B&I build fix. Added JSSVGPODTypeWrapper.h to the vcproj. * WebCore.vcproj/WebCore.vcproj: 2006-12-14 Adam Roben Reviewed by Adele. Build fix. * platform/win/TemporaryLinkStubs.cpp: (DocumentLoader::URL): (ResourceHandle::loadResourceSynchronously): 2006-12-14 Anders Carlsson Fix the build. * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::loadResourceSynchronously): (ResourceHandle::loadResourceSynchronously): 2006-12-13 Anders Carlsson Fix the build. * platform/win/TemporaryLinkStubs.cpp: (PolicyCheck::call): (DocumentLoader::URL): 2006-12-13 Geoffrey Garen Reviewed by Darin Adler, Dave Hyatt. Fixed Frame::setIsActive not called when frames are focused/unfocused Minor problems remain with focus in frames, but basic editing / cursor focus works. I moved tracking of the focused frame from the Widget hiearchy to Page's FocusController. Not all widgets are frames, so this change cleaned up a dubious static cast. Also, the DOM needs to track frame focus because (1) it needs to respond to focus changes and (2) you can focus an element / frame even before it has a renderer / widget. * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::focusDocumentView): Implemented. This function is poorly named, based on the Mac design. (WebCore::PluginViewWin::hasFocus): Added for completeness. It's not really used on Windows, though. 2006-12-13 Steve Falkenburg Reviewed by Adam. Add missing ForwardingHeaders to project * WebCore.vcproj/WebCore.make: Fixed line endings * WebCore.vcproj/WebCore.vcproj: Added missing headers 2006-12-12 Steve Falkenburg Reviewed by Adam. B&I build fix * WebCore.vcproj/build-generated-files.sh: 2006-12-12 Alice Liu Reviewed by Geoff. Fixed extra whitespace at beginning and end of pasted fragment into contenteditable region * WebCore.vcproj/WebCore.vcproj: * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::documentFragment): 2006-12-12 Adam Roben Reviewed by Anders. Fixed use of min/max macros (again). * WebCore.vcproj/WebCore.vcproj: Make sure we include ForwardingHeaders before any SDK include directories so that we get the newest versions of our headers. * config.h: Move the fake #defines of min/max out of #if PLATFORM(WIN_OS) since this is useful in general. * platform/win/BString.cpp: Include windows.h * platform/win/BString.h: Forward-declare BSTR so we don't have to include windows.h. 2006-12-12 Geoffrey Garen Reviewed by Adam Roben, Dave Hyatt, Darin Adler. Added FocusController to project. * WebCore.vcproj/WebCore.vcproj: 2006-12-12 Anders Carlsson * loader/win/ResourceLoaderWin.cpp: * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::start): * platform/win/TemporaryLinkStubs.cpp: (ResourceHandle::loadsBlocked): Update for changes to ResourceHandle. 2006-12-13 Darin Adler - fix build * WebCore.vcproj/WebCore.vcproj: Added missing files, removed obsolete files. 2006-12-11 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: Added missing files to project. 2006-12-11 Steve Falkenburg B&I build fix. Remove platform/UChar.h from our vcproj, since it doesn't exist anymore. * WebCore.vcproj/WebCore.vcproj: 2006-12-11 Alice Liu Reviewed by ggaren. Fixed "Copy Link" and "Copy Image Address" context menu items don't work And some cleanup of PlatformMouseEvent(Win) * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::handleDrag): Removed unnecessary check for mouse event type * platform/win/PasteboardWin.cpp: (WebCore::PasteboardOwnerWndProc): (WebCore::createGlobalData): Added more overloaded implemtations and renamed from createHandle (WebCore::markupToCF_HTML): Changed to handle less-specific input and renamed from createCF_HTML (WebCore::urlToMarkup): (WebCore::Pasteboard::writeURL): Added these. (WebCore::replaceNBSP): Moved out of Pasteboard class (WebCore::Pasteboard::clear): Renamed from clearTypes. (WebCore::Pasteboard::writeSelection): (WebCore::Pasteboard::canSmartReplace): (WebCore::Pasteboard::plainText): (WebCore::Pasteboard::documentFragment): Trivial cleanup of these. * platform/win/PlatformMouseEventWin.cpp: (WebCore::PlatformMouseEvent::PlatformMouseEvent): Removed anything having to do with unnecessary m_type 2006-12-11 Darin Adler Reviewed by Brady. - http://bugs.webkit.org/show_bug.cgi?id=11794 fix lifetime problems affecting Frame's ownerElement pointer * WebCore.vcproj/WebCore.vcproj: Update for added files. * bridge/win/FrameWin.h: * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin): * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::createFrame): Changed to use HTMLFrameOwnerElement. * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::load): Changed to use HTMLFormElement. 2006-12-11 Beth Dakin Reviewed by Adam. Build fix from Nick Zimmerman's last check-in. * WebCore.vcproj/WebCore.vcproj: 2006-12-09 Adam Roben Reviewed by Hyatt. Use num-cpus to determine the number of jobs make should run concurrently. * WebCore.vcproj/build-generated-files.sh: 2006-12-09 Adam Roben Reviewed by Hyatt. Fix: Can't select context menu items with the right mouse button * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::show): 2006-12-09 Adam Roben Reviewed by Darin. Build fixes after OpenSource r18098 and r18106. * WebCore.vcproj/WebCore.vcproj: - Changed include paths to reflect the now-flattened JSCore headers. - Added missing files to project. - Changed post-build step to also copy ForwardingHeaders. - Removed unnecessary definition of WTF_PLATFORM_CF from project file (it's already defined in config.h). * platform/win/TextBoundariesWin.cpp: Fixed up includes and renamed function calls. (WebCore::findNextWordFromIndex): (WebCore::findWordBoundary): 2006-12-08 Adam Roben Rubberstamped by Anders. * platform/win/FontPlatformDataWin.cpp: (WebCore::FontPlatformData::FontPlatformData): Fix use of min(). 2006-12-08 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: 2006-12-07 Beth Dakin Reviewed by Maciej. Add a new member variable to ContectMenuItem to hold on to the sub- menu. The new member variable is an OwnPtr. Not doing this breaks sub-menus on Boomer since the menu items are no longer static. * platform/win/ContextMenuItemWin.cpp: (WebCore::ContextMenuItem::ContextMenuItem): (WebCore::ContextMenuItem::platformSubMenu): (WebCore::ContextMenuItem::setSubMenu): 2006-12-07 Kevin McCullough Reviewed by. Fixed previous comment * ChangeLog: 2006-12-07 Kevin McCullough Reviewed by Geof. - keyDown events must be followed by keyPressed events and before keyUp events. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyEvent): 2006-12-07 Beth Dakin Reviewed by Brady. New link stub for load() function used by ContextMenuItemTagOpenLink action. * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::load): 2006-12-07 Ada Chan Reviewed by Steve and Anders. Crash on boomer quit - don't close the themes on termination, since uxtheme should do that anyway. * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::~RenderThemeWin): 2006-12-06 Ada Chan Reviewed by Maciej. Fixed a couple of things while investigating (note this doesn't fix the crash yet): - we forgot to initialize m_sliderTheme - we did the wrong null check when getting the slider theme. * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::RenderThemeWin): (WebCore::RenderThemeWin::sliderTheme): 2006-12-06 Anders Carlsson Fix the build. * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::didReceiveData): (WebCore::didFail): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::cancel): 2006-12-06 Anders Carlsson Reviewed by Adam. Modify PluginStreamWin to use a SubresourceLoader instead of a ResourceHandle. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::PluginStreamWin): (WebCore::PluginStreamWin::~PluginStreamWin): (WebCore::PluginStreamWin::start): (WebCore::PluginStreamWin::stop): (WebCore::PluginStreamWin::deliverData): (WebCore::PluginStreamWin::didReceiveResponse): (WebCore::PluginStreamWin::didReceiveData): (WebCore::PluginStreamWin::didFail): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): (WebCore::PluginViewWin::load): 2006-12-06 Anders Carlsson Build fixes. * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::scheduleClose): 2006-12-05 John Sullivan Try to keep the windows build happy with Frame -> Editor changes... * bridge/win/FrameWin.h: removed declarations of spelling and grammar functions * platform/win/TemporaryLinkStubs.cpp: changed spelling and grammar functions from FrameWin:: to Editor:: (WebCore::Editor::isSelectionMisspelled): (WebCore::Editor::isSelectionUngrammatical): (WebCore::Editor::guessesForMisspelledSelection): (WebCore::Editor::guessesForUngrammaticalSelection): (WebCore::Editor::markMisspellingsInAdjacentWords): (WebCore::Editor::advanceToNextMisspelling): 2006-12-05 Anders Carlsson Reviewed by Maciej. Don't delete the internal pointer anymore since it's an OwnPtr now. * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::~ResourceHandle): 2006-12-05 Steve Falkenburg Fix the build * platform/win/TemporaryLinkStubs.cpp: 2006-12-05 Steve Falkenburg B&I build fix. ...and add ImageAnimationObserver.h into its new location. * WebCore.vcproj/WebCore.vcproj: 2006-12-05 Steve Falkenburg B&I build fix. Remove ImageAnimationObserver.h from vcproj. * WebCore.vcproj/WebCore.vcproj: 2006-12-05 John Sullivan Reviewed by Geoff Garen Changes to keep up with Frame -> Editor changes in WebCore * bridge/win/FrameWin.h: remove ignoreSpelling() and learnSpelling() * platform/win/TemporaryLinkStubs.cpp: (WebCore::Editor::ignoreSpelling): moved from FrameWin to Editor (WebCore::Editor::learnSpelling): ditto 2006-12-05 Alice Liu Build fix. * platform/win/CursorWin.cpp: (WebCore::copyCursor): 2006-12-05 Alice Liu Build fix. * bridge/win/FrameWin.h: added missing declarations for the functions in John's checkin, below. 2006-12-05 John Sullivan * platform/win/TemporaryLinkStubs.cpp: (WebCore::FrameWin::isSelectionUngrammatical): (WebCore::FrameWin::guessesForUngrammaticalSelection): added stubs to correspond to new Frame functions 2006-12-04 Anders Carlsson Reviewed by Darin. * WebCore.vcproj/WebCore.vcproj: Add SubresourceClient.h * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::didReceiveResponse): Get rid of the receivedResponse call. (WebCore::didFinishLoading): Get rid of the receivedAllData call, that's handled by the subresource loader now. 2006-12-04 Darin Adler Reviewed by Adele. * WebCore.vcproj/WebCore.vcproj: Update for new UIEventWithKeyState.cpp file. 2006-12-04 Kevin McCullough Reviewed by Darin. - removed the guards for the "multiple forms submission" issue, which may not be an issue anymore and the guards prevent perfectly legitimate websites from working correctly. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyEvent): * config.h: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::submitForm): 2006-12-04 Darin Adler Reviewed by Alice. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::generalPasteboard): Got rid of s_generalPasteboard. Also removed definition of destructor. 2006-12-04 Anders Carlsson Reviewed by Darin, Geoff. Get rid of ref() in ResourceHandle::start() and remove all uses of kill(). * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::didFinishLoading): (WebCore::didFail): (WebCore::ResourceHandle::start): * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::stop): 2006-12-04 Alice Liu Reviewed by Oliver. Fixed clicks don't work if you move mouse immediately This bug was fixed by implementing EventHandler::handleDrag. The part of that function after the drag hysteresis is exceeded remains unimplemented until drag&drop is implemented. * page/win/EventHandlerWin.cpp: (WebCore::dragState): (WebCore::EventHandler::dragHysteresisExceeded): (WebCore::EventHandler::handleDrag): (WebCore::EventHandler::handleMouseUp): (WebCore::EventHandler::shouldDragAutoNode): (WebCore::EventHandler::focusDocumentView): (WebCore::EventHandler::passWidgetMouseDownEventToWidget): * platform/win/PlatformMouseEventWin.cpp: (WebCore::PlatformMouseEvent::PlatformMouseEvent): 2006-12-01 Beth Dakin Reviewed by Adam. Support for sub-menus in WebCore context menus. Also some adjustments to make ContextMenuItem class a wrapper for the platformDescription. (In this case, a wrapper for LPMENUITEMINFO.) * WebCore.vcproj/WebCore.vcproj: * platform/win/ContextMenuItemWin.cpp: (WebCore::ContextMenuItem::ContextMenuItem): (WebCore::ContextMenuItem::platformDescription): (WebCore::ContextMenuItem::action): (WebCore::ContextMenuItem::title): (WebCore::ContextMenuItem::platformSubMenu): (WebCore::ContextMenuItem::setAction): (WebCore::ContextMenuItem::setTitle): (WebCore::ContextMenuItem::setSubMenu): * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::ContextMenu): (WebCore::ContextMenu::insertItem): 2006-11-30 Geoffrey Garen Rubber Stamped by Anders Carlsson. Global rename of Document::focusNode to Document::focusedNode. 'focusNode' suggested a command, and conflicted with a different meaning for 'focusNode' in the Mozilla selection API. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyEvent): 2006-11-30 Adam Roben Lather, rinse, repeat. * platform/win/GraphicsContextWin.cpp: (WebCore::contextForImage): 2006-11-30 Adam Roben Build fix. * platform/graphics/cg/GraphicsContextCG.cpp: Removed. This file was un-forked a while ago. * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::platformDescription): * platform/win/GraphicsContextWin.cpp: (WebCore::contextForImage): 2006-11-30 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: (WebCore::SVGResourceFilter::prepareFilter): (WebCore::SVGResourceFilter::applyFilter): (WebCore::SVGResourceFilter::createFilterEffect): * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: (WebCore::SVGResourceMasker::applyMask): 2006-11-30 Geoffrey Garen Reviewed by Beth Dakin. Fixed Whole document leak seen running HTML iBench * loader/win/FrameLoaderWin.cpp: Removed custom implementation for detachFromParent, since FrameLoader has a cross-platform version now. 2006-11-30 Steve Falkenburg B&I build fix. Add missing header files to vcproj. * WebCore.vcproj/WebCore.vcproj: 2006-11-29 Anders Carlsson Build fix. * platform/win/TemporaryLinkStubs.cpp: Remove unused function. 2006-11-29 Anders Carlsson Reviewed by Oliver. Fix fast/dom/xmlhttprequest-get layout test failure. * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::doUpdateResourceResponse): Initialize the status code to 0 for non-http responses. 2006-11-29 Anders Carlsson Reviewed by Darin. Have ResourceResponse hold on to the platform object and do lazy initialization of the data members. * WebCore.vcproj/WebCore.vcproj: * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::willSendRequest): (WebCore::didReceiveResponse): * platform/network/cf/ResourceRequestCFNet.h: Removed. * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::doUpdateResourceResponse): * platform/network/cf/ResourceResponseCFNet.h: Removed. * platform/win/MimeTypeRegistryWin.cpp: 2006-11-28 Geoffrey Garen Reviewed by Beth Dakin. Fixed Should clarify when to create clients in the WebCore client API All clients must now be supplied as constructor arguments. This clarifies when you need to create clients, and also guarantees that objects can't (for the most part) be in a clientless state. Layout tests pass. No leaks reported. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin): * bridge/win/FrameWin.h: 2006-11-28 Adam Roben Reviewed by Ada. Add platform-specific constructor/destructor to ContextMenu so we can properly dispose of the HMENU. * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::ContextMenu): (WebCore::ContextMenu::~ContextMenu): (WebCore::ContextMenu::itemCount): (WebCore::ContextMenu::insertItem): (WebCore::ContextMenu::at): (WebCore::ContextMenu::setPlatformDescription): (WebCore::ContextMenu::show): 2006-11-28 Steve Falkenburg B&I build fix * WebCore.vcproj/WebCore.vcproj: 2006-11-28 Anders Carlsson Fix the build by doing the same changes that were done in the open source WebCore repo. * WebCore.vcproj/WebCore.vcproj: * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::willSendRequest): (WebCore::didReceiveResponse): (WebCore::ResourceHandle::start): * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::ResourceRequest::cfURLRequest): (WebCore::addHeadersFromHashMap): (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest): * platform/network/cf/ResourceRequestCFNet.h: 2006-11-28 Adam Roben Reviewed by Ada and Beth. Fix: Contextual Menus (in web content) * WebCore.vcproj/WebCore.vcproj: Defined WEBCORE_CONTEXT_MENUS to turn on the context menus. Added new ContextMenuItem files. * platform/win/ContextMenuItemWin.cpp: Added. (WebCore::ContextMenuItem::ContextMenuItem): * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::itemCount): Updated to match ContextMenu.h and ContextMenuItem changes. (WebCore::ContextMenu::insertItem): Ditto. (WebCore::ContextMenu::appendItem): Ditto. (WebCore::ContextMenu::at): New method, similar to Vector::at. (WebCore::ContextMenu::setPlatformDescription): Use MIM_APPLYTOSUBMENUS to make sure all submenus get the MNS_NOTIFYBYPOS style. (WebCore::ContextMenu::show): Implemented. Updates to match OpenSource changes. * loader/win/FrameLoaderWin.cpp: Added missing #include. * page/win/EventHandlerWin.cpp: Return bools to signify whether the event was handled. (WebCore::EventHandler::passMousePressEventToSubframe): (WebCore::EventHandler::passMouseMoveEventToSubframe): (WebCore::EventHandler::passMouseReleaseEventToSubframe): (WebCore::EventHandler::passWheelEventToSubframe): (WebCore::EventHandler::passMousePressEventToScrollbar): * platform/win/PlatformScrollBar.h: Ditto. * platform/win/PlatformScrollBarWin.cpp: Ditto. (WebCore::PlatformScrollbar::handleMouseMoveEvent): (WebCore::PlatformScrollbar::handleMouseOutEvent): (WebCore::PlatformScrollbar::handleMousePressEvent): (WebCore::PlatformScrollbar::handleMouseReleaseEvent): Small fix inspired by WebView.cpp changes. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): Use ::ClientToScreen to do coordinate conversion instead of doing it ourselves. 2006-11-28 Anders Carlsson Reviewed by Adam. Crash loading pdf page (W4 form) * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::redirectDataToPlugin): * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::redirectDataToPlugin): Move the function to FrameLoaderWin.cpp and get rid of STOP_NOIMPL() for now, we do things differently on Windows so this function doesn't need do do anything. I've filed 4852889 about redoing this once the loader has been ported. 2006-11-28 Alice Liu Reviewed by Ada, Adam, and Lou. * WebCore.vcproj/WebCore.vcproj: Added the files listed below * platform/win/ClipboardWin.h: Added. * platform/win/ClipboardWin.cpp: Added. Added the minimum stubs for the ClipboardWin class (WebCore::ClipboardWin::isForDragging): (WebCore::ClipboardWin::dropEffect): (WebCore::ClipboardWin::setDropEffect): (WebCore::ClipboardWin::effectAllowed): (WebCore::ClipboardWin::setEffectAllowed): (WebCore::ClipboardWin::clearData): (WebCore::ClipboardWin::clearAllData): (WebCore::ClipboardWin::getData): (WebCore::ClipboardWin::setData): (WebCore::ClipboardWin::types): (WebCore::ClipboardWin::dragLocation): (WebCore::ClipboardWin::dragImage): (WebCore::ClipboardWin::setDragImage): (WebCore::ClipboardWin::dragImageElement): (WebCore::ClipboardWin::setDragImageElement): (WebCore::ClipboardWin::setAccessPolicy): (WebCore::ClipboardWin::~ClipboardWin): * platform/win/EditorWin.cpp: Added. Added this to make dispatchCPPEvent happy. (WebCore::Editor::newGeneralClipboard): * platform/win/PasteboardWin.cpp: Added. The pasteboard class follows a singleton pattern Implemented the following to support CF_HTML, CF_UNICODE, and CF_TEXT (WebCore::Pasteboard::generalPasteboard): (WebCore::Pasteboard::Pasteboard): (WebCore::Pasteboard::~Pasteboard): (WebCore::Pasteboard::registerSelectionPasteboardTypes): (WebCore::Pasteboard::clearTypes): (WebCore::Pasteboard::writeSelection): (WebCore::Pasteboard::createHandleFromString): (WebCore::Pasteboard::createHandleFromCString): (WebCore::Pasteboard::createCF_HTMLFromRange): (WebCore::Pasteboard::replaceNBSP): (WebCore::Pasteboard::canSmartReplace): (WebCore::Pasteboard::plainText): (WebCore::Pasteboard::documentFragment): (WebCore::PasteboardOwnerWndProc): >>>>>>> .r11196 2006-11-28 Geoffrey Garen Reviewed by Anders Carlsson. Fixed REGRESSION: screen flashes when scrolling/ resizing page with plug-in (@ cnn.com, for example). LockWindowUpdate was to blame. It turns out that using LockWindowUpdate was wrong to begin with. It's really only intended for use in drag-n-drop operations, which explains why only one window can be locked at a time. (See http://blogs.msdn.com/oldnewthing/archive/2004/06/10/152612.aspx.) The new solution I've implemented for avoiding plug-in fragments while scrolling is simply to clip the plug-in to the zero rect before moving it, and then to un-clip it when done. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::updateHwnd): 2006-11-28 Geoffrey Garen Reviewed by Adam. Fixed REGRESSION: extra cross-library ref/deref calls cause .5% PLT regression. Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient from the Frame to the Page, since it's only responsible for Webview-level delegate calls. I don't really love this design, but it fixes the regression and allows a single WebKit object to implement multiple client interfaces. Layout tests pass. 2006-11-27 Beth Dakin Reviewed by Adam. Stub out functions in order to remove FIXMEs from ContextMenu.cpp * bridge/win/FrameWin.h: Spell checker functions pushed down from WebKit. * platform/win/TemporaryLinkStubs.cpp: Stubs for spelling functions. (WebCore::FrameWin::isSelectionMisspelled): (WebCore::FrameWin::guessesForMisspelledSelection): 2006-11-27 Oliver Hunt Reviewed by Adam. Fixes a crash in SVG caused by an attempt to perform css overflow clipping by preventing the css overflow clip from being set in SVG. * WebCore.vcproj/WebCore.vcproj: 2006-11-27 Anders Carlsson Remove addMessageToConsole from FrameWin. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: 2006-11-21 Anders Carlsson Reviewed by Adam. Various fixes that make file upload possible. * bridge/win/FrameWin.h: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::submitForm): Change submitForm to take a FrameLoadRequest. * platform/network/cf/FormDataStreamCFNet.cpp: (WebCore::advanceCurrentStream): Pass kCFURLWindowsPathStyle to CFURLCreateWithFileSystemPath. * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::willSendRequest): Call the client method. 2006-11-21 Anders Carlsson Rubber-stamped by Maciej. Fork the CF loader. * WebCore.vcproj/WebCore.vcproj: * platform/network/cf/FormDataStreamCFNet.cpp: Added. (WebCore::getStreamFormDatas): (WebCore::pairRetain): (WebCore::pairRelease): (WebCore::pairEqual): (WebCore::pairHash): (WebCore::closeCurrentStream): (WebCore::scheduleWithPair): (WebCore::advanceCurrentStream): (WebCore::openNextStream): (WebCore::formCreate): (WebCore::formFinalize): (WebCore::formOpen): (WebCore::formRead): (WebCore::formCanRead): (WebCore::formClose): (WebCore::formSchedule): (WebCore::formUnschedule): (WebCore::formEventCallback): (WebCore::setHTTPBody): (WebCore::httpBodyFromStream): * platform/network/cf/FormDataStreamCFNet.h: Added. * platform/network/cf/ResourceHandleCFNet.cpp: Added. (WebCore::willSendRequest): (WebCore::didReceiveResponse): (WebCore::didReceiveData): (WebCore::didFinishLoading): (WebCore::didFail): (WebCore::willCacheResponse): (WebCore::didReceiveChallenge): (WebCore::addHeadersFromHashMap): (WebCore::ResourceHandleInternal::~ResourceHandleInternal): (WebCore::ResourceHandle::~ResourceHandle): (WebCore::arrayFromFormData): (WebCore::emptyPerform): (WebCore::runLoaderThread): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::cancel): * platform/network/cf/ResourceRequestCFNet.cpp: Added. (WebCore::getResourceRequest): (WebCore::addHeadersFromHashMap): (WebCore::cfURLRequest): * platform/network/cf/ResourceRequestCFNet.h: Added. * platform/network/cf/ResourceResponseCFNet.cpp: Added. (WebCore::getResourceResponse): * platform/network/cf/ResourceResponseCFNet.h: Added. 2006-11-21 Anders Carlsson Reviewed by Lou, Dave Hyatt. Group label in list box doesn't appear as bold labels should be bold in popup menus * platform/win/FontPlatformDataWin.cpp: (WebCore::enumStylesCallback): (WebCore::FontPlatformData::FontPlatformData): Enumerate the existing font styles and decide what to synthesize depending on what styles are available. 2006-11-21 Anders Carlsson Fix build. * WebCore.vcproj/WebCore.vcproj: 2006-11-20 Anders Carlsson Add the same include paths to the debug build. * WebCore.vcproj/WebCore.vcproj: 2006-11-20 Anders Carlsson Fix build. * WebCore.vcproj/WebCore.vcproj: * kcanvas/device/quartz/KCanvasFilterQuartz.cpp: Removed. * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Added. (WebCore::SVGResourceFilter::SVGResourceFilter): (WebCore::SVGResourceFilter::~SVGResourceFilter): (WebCore::SVGResourceFilter::prepareFilter): (WebCore::SVGResourceFilter::applyFilter): 2006-11-19 Beth Dakin Reviewed by Adam. Boomer part of context menu actions. * bridge/win/FrameWin.h: New spelling functions on Frame. * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::show): (WebCore::ContextMenu::hide): * platform/win/TemporaryLinkStubs.cpp: New stubs. (FrameWin::ignoreSpelling): (FrameWin::learnSpelling): (FrameLoader::reload): 2006-11-18 Adam Roben Build fix from OpenSource r17841. * platform/win/CursorWin.cpp: New method stubs. (WebCore::aliasCursor): (WebCore::progressCursor): (WebCore::noDropCursor): 2006-11-17 Anders Carlsson Reviewed by Adam. Add #defines in config.h to prevent the min and max macros from being used. * bridge/win/FrameWin.cpp: * config.h: * platform/win/FontCacheWin.cpp: (WebCore::FontCache::createFontPlatformData): * platform/win/PopupMenuWin.cpp: * plugins/win/PluginStreamWin.cpp: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::handlePost): 2006-11-17 Kevin McCullough Reviewed by Adam. - Fixes Targetted Form Submission to now work. Radar: 4762693 * ChangeLog: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::submitForm): 2006-11-16 Adele Peterson Reviewed by Adam. Added theme for sider. * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::sliderTheme): (WebCore::RenderThemeWin::close): (WebCore::RenderThemeWin::determineSliderThumbState): (WebCore::RenderThemeWin::getClassicThemeData): (WebCore::RenderThemeWin::getThemeData): (WebCore::drawControl): (WebCore::RenderThemeWin::paintSliderTrack): (WebCore::RenderThemeWin::paintSliderThumb): (WebCore::RenderThemeWin::adjustSliderThumbSize): * rendering/RenderThemeWin.h: 2006-11-15 Adam Roben Reviewed by Anders. Added new ContextMenuClient and ContextMenuController classes. * WebCore.vcproj/WebCore.vcproj: Added new files. * platform/win/ContextMenuWin.cpp: Added method implementations Beth forgot to check in in r11129. (WebCore::ContextMenu::itemCount): (WebCore::ContextMenu::appendItem): 2006-11-15 Geoffrey Garen Reviewed by Anders Carlsson. Fixed flash of plug-in content outside its containing iframe while scrolling the iframe. The problem was that the plug-in would draw between our call to MoveWindow and our call to SetWindowRgn. The solution here is to lock all updates in the plug-in's HWND until we've called both MoveWindow and SetWindowRgn. Tested with Quicktime and Flash. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::updateHwnd): (WebCore::PluginViewWin::setFrameGeometry): (WebCore::PluginViewWin::geometryChanged): * plugins/win/PluginViewWin.h: Removed bogus invalidate parameter to updateHwnd. 2006-11-15 Adele Peterson Reviewed by Adam. Adding RenderSlider class, and removing DeprecatedSlider and Slider classes. * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: 2006-11-15 Beth Dakin & Adam Roben Reviewed by Adam and Beth. Internal side of r17796. * WebCore.vcproj/WebCore.vcproj: * platform/win/ContextMenuWin.cpp: Added. (WebCore::ContextMenu::insertItem): (WebCore::ContextMenu::setPlatformMenuDescription): 2006-11-15 Anders Carlsson Reviewed by Darin. Remove some (now) obsolete methods. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::unfocusWindow): (FrameWin::getAppletInstanceForWidget): (FrameWin::issuePasteCommand): (FrameWin::respondToChangedSelection): 2006-11-15 Steve Falkenburg Remove header from vcproj that no longer exists * WebCore.vcproj/WebCore.vcproj: 2006-11-15 Steve Falkenburg Fix the B&I build * WebCore.vcproj/WebCore.vcproj: 2006-11-14 Darin Adler Reviewed by Anders. - update for creation of EventHandler * WebCore.vcproj/WebCore.vcproj: Added EventHandler.cpp/h/Win.cpp. * bridge/win/FrameWin.h: Moved virtual functions lastEventIsMouseUp, tabsToLinks, and tabsToAllControls to EventHandler. * bridge/win/FrameWin.cpp: Ditto. * bridge/win/FrameViewWin.cpp: Moved passMousePressEventToSubframe and similar functions to EventHandler. * page/win/EventHandlerWin.cpp: Added. Code from FrameViewWin and FrameWin. * platform/win/PlatformScrollBarWin.cpp: (WebCore::PlatformScrollbar::handleMouseReleaseEvent): Call the setMousePressed function in its new home in EventHandler. * platform/win/TemporaryLinkStubs.cpp: Moved lastEventIsMouseUp stub to EventHandler. 2006-11-13 Brady Eidson Rubberstamped by Maciej Windows half of 17755 - Make FormData shared * bridge/win/FrameWin.h: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::submitForm): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::handlePost): 2006-11-13 Anders Carlsson Reviewed by Adam. * platform/win/PopupMenuWin.cpp: (WebCore::PopupWndProc): Make sure to call valueChanged after hiding the popup so that change events will be delivered correctly. 2006-11-13 Steve Falkenburg Reviewed by Anders, Lou. Fix merge script * WebCore.vcproj/merge-opensource.sh: Don't copy cairo, pixman 2006-11-12 Geoffrey Garen Reviewed by Beth Dakin. Added project-wide setting to disable Microsoft's made-up deprecation warnings related to std:: functions. (Doesn't have any affect yet, since we currently disable all deprecation warnings.) * WebCore.vcproj/WebCore.vcproj: 2006-11-11 Anders Carlsson Reviewed by Oliver. Rename keyPress to keyEvent, it's used for both key presses and releases. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyEvent): * bridge/win/FrameWin.h: 2006-11-11 Adam Roben Reviewed by Geoff. Move graphics-related files to platform/graphics to stay in sync with changes from OpenSource r17727. Also, as discussed with Darin and Steve, we now copy all our headers to a flat include/WebCore directory instead of copying the directory structure of WebCore. This mirrors how Mac builds. * WebCore.vcproj/WebCore.vcproj: * platform/cg/ColorCG.cpp: Removed. * platform/cg/GraphicsContextCG.cpp: Removed. * platform/cg/GraphicsContextPlatformPrivate.h: Removed. * platform/win/IconWin.cpp: Removed. * platform/win/ImageWin.cpp: Removed. 2006-11-11 Darin Adler - blind attempt to fix the build * platform/win/CursorWin.cpp: (WebCore::verticalTextCursor): Added. Just returns the pointer cursor. (WebCore::cellCursor): Ditto. (WebCore::contextMenuCursor): Ditto. 2006-11-10 Steve Falkenburg Build fix for opensource/internal merge script. * WebCore.vcproj/WebCore.vcproj: 2006-11-10 Anders Carlsson Reviewed by Oliver. Implement findNextWordFromIndex using ICU. * platform/win/TemporaryLinkStubs.cpp: (WebCore::findSentenceBoundary): * platform/win/TextBoundariesWin.cpp: (WebCore::findNextWordFromIndex): 2006-11-09 Oliver Hunt Reviewed by Brady. Added Windows side of MIME Type registry, and updated objectContentType and ImageWin to make use of it This fixes * WebCore.vcproj/WebCore.vcproj: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::objectContentType): * platform/win/ImageWin.cpp: * platform/win/MimeTypeRegistryWin.cpp: Added. (WebCore::getMIMETypeForUTI): (WebCore::mimeTypeForExtension): (WebCore::MimeTypeRegistry::getMIMETypeForExtension): 2006-11-09 Lou Amadio Reviewed by mjs Corrected positioning of text for find overlay on subframes * bridge/win/FrameWin.cpp: (WebCore::FrameWin::imageFromRect): 2006-11-08 Lou Amadio Reviewed by ggaren Moved CookieJar to OpenSourceWin Ported CookieJar to CFNetwork Corrected an uninitialized variable which crashed on Vista in the Wininet code * WebCore.vcproj/WebCore.vcproj: * platform/network/win/CookieJarWin.cpp: (WebCore::setCookies): (WebCore::cookies): 2006-11-08 Maciej Stachowiak Reviewed by Geoff. - added ResourceError class and didFailWithError client method * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::didFailLoadingWithError): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginStreamWin.h: 2006-11-08 Geoffrey Garen Reviewed by Anders Carlsson. Updated Windows to use the new platform abstraction for Screen. * WebCore.vcproj/WebCore.vcproj: * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): * platform/win/ScreenWin.cpp: (WebCore::monitorInfoForWidget): (WebCore::deviceInfoForWidget): (WebCore::screenDepth): (WebCore::screenDepthPerComponent): (WebCore::screenIsMonochrome): (WebCore::screenRect): (WebCore::screenAvailableRect): 2006-11-09 Darin Adler - fix the build * bridge/win/FrameWin.h: Add a forward declaration of FormData. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyPress): Call resetMultipleFormSubmissionProtection instead of prepareForUserAction. * platform/win/TemporaryLinkStubs.cpp: Remove the parameter from the TextField constructor. 2006-11-08 Steve Falkenburg Rubber stamped by Adam. Windows buildbot fix. Remove /d from xcopy commands that merge opensource/internal components. Sync debug and release post-build event. * WebCore.vcproj/WebCore.vcproj: 2006-11-07 Ada Chan Reviewed by Steve. Make the Slider implementation call LOG_NOIMPL() instead of STOP_NOIMPL() so the RSS feed page can load. * platform/win/TemporaryLinkStubs.cpp: (Slider::Slider): (Slider::sizeHint): (Slider::setValue): (Slider::setMaxValue): (Slider::setMinValue): (Slider::~Slider): (Slider::setFont): (Slider::value): 2006-11-07 Lou Amadio Reviewed by sfalken, adam Implemented Find banner, overlay, bouncy. plummed some find, search and marking in WebCore & WebKit Added SDC - a DC wrapper with knowledge of CG Added button element Ported AppKit's oval button drawing code Abstracted the high performance animations * bridge/win/FrameWin.cpp: (WebCore::FrameWin::imageFromRect): (WebCore::FrameWin::imageFromSelection): * bridge/win/FrameWin.h: * platform/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::setCompositeOperation): * platform/win/TemporaryLinkStubs.cpp: (Frame::setNeedsReapplyStyles): 2006-11-08 Anders Carlsson Build fixes. * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: 2006-11-08 Anders Carlsson * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::partClearedInBegin): Use m_frame instead of this, include the correct files. 2006-11-08 Anders Carlsson (I'm not doing this to get commit 11000) * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::partClearedInBegin): It's m_frame, not frame. 2006-11-08 Anders Carlsson It's FrameLoader, not FrameWin. * loader/win/FrameLoaderWin.cpp: (WebCore::FrameLoader::partClearedInBegin): 2006-11-08 Anders Carlsson A blind attempt at fixing the build. * bridge/win/FrameWin.cpp: * loader/win/FrameLoaderWin.cpp: (WebCore::FrameWin::partClearedInBegin): * platform/win/TemporaryLinkStubs.cpp: (FrameLoader::restoreDocumentState): 2006-11-07 Geoffrey Garen Reviewed by Anders. Removed ScreenClient. It was highly unpopular, risking my midterm re-election. None of Screen's responsibilities require up-calls to WebKit or delegates, so WebCore can handle it all. Moved Screen back from page/ to platform/ because it's a platform abstraction again. Fixed bug where Screen would query the default screen instead of the screen on which the active window was located. (The code is written in Klingon, but that's cool.) Implemented some missing screen functionality on Win. I can't fully verify this code because I can't load files without crashing in CFNetwork, but I exercised most of it with javascript: URLs and the debugger reported reasonable values. * WebCore.vcproj/WebCore.vcproj: * platform/win/ScreenWin.cpp: Added. Merged over from opensource tree. (WebCore::getWindow): (WebCore::getMonitorInfo): (WebCore::getDeviceInfo): (WebCore::Screen::depth): (WebCore::Screen::depthPerComponent): (WebCore::Screen::isMonochrome): (WebCore::Screen::rect): (WebCore::Screen::usableRect): 2006-11-07 Darin Adler Reviewed by Geoff. - moved loader code from Frame/FrameMac to FrameLoader * WebCore.vcproj/WebCore.vcproj: * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin): (WebCore::FrameWin::~FrameWin): * bridge/win/FrameWin.h: * loader/win/FrameLoaderWin.cpp: Added. (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::urlSelected): (WebCore::FrameLoader::originalRequestURL): (WebCore::FrameLoader::didFirstLayout): (WebCore::FrameLoader::objectContentType): (WebCore::FrameLoader::createPlugin): (WebCore::FrameLoader::createFrame): (WebCore::FrameLoader::detachFromParent): (WebCore::FrameLoader::createJavaAppletWidget): (WebCore::FrameLoader::setTitle): * platform/win/TemporaryLinkStubs.cpp: (FrameWin::markMisspellings): (FrameWin::respondToChangedSelection): (FrameWin::clearUndoRedoOperations): (IconLoader::notifyIconChanged): (PolicyCheck::PolicyCheck): (PolicyCheck::clear): (PolicyCheck::call): (PolicyCheck::clearRequest): (FrameLoader::saveDocumentState): (FrameLoader::restoreDocumentState): (FrameLoader::partClearedInBegin): (FrameLoader::goBackOrForward): (FrameLoader::historyURL): (FrameLoader::canGoBackOrForward): (FrameLoader::getHistoryLength): (DocumentLoader::setupForReplaceByMIMEType): (ResourceLoader::cancel): (DocumentLoader::stopLoading): (DocumentLoader::setLoading): (DocumentLoader::updateLoading): (DocumentLoader::setFrame): (DocumentLoader::stopRecordingResponses): (DocumentLoader::isStopping): (DocumentLoader::setPrimaryLoadComplete): (DocumentLoader::finishedLoading): (DocumentLoader::URL): (DocumentLoader::isLoadingInAPISense): (DocumentLoader::frameLoader): (FrameLoader::overrideMediaType): (FrameLoader::redirectDataToPlugin): (FrameLoader::checkLoadCompleteForThisFrame): (FrameLoader::loadEmptyDocumentSynchronously): (FrameLoader::startLoading): (FrameLoader::referrer): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): (WebCore::PluginViewWin::userAgent): 2006-11-07 Anders Carlsson Reviewed by Oliver. Let the Frame client know when the window object is available. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::partClearedInBegin): * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::unfocusWindow): (FrameWin::markMisspellings): (FrameWin::restoreDocumentState): 2006-11-07 Adam Roben Build fix. * platform/win/TemporaryLinkStubs.cpp: Remove no-longer-needed stub. 2006-11-07 Steve Falkenburg Fixes for B&I submission * WebCore.vcproj/WebCore.vcproj: * WebCore.vcproj/merge-opensource.sh: 2006-11-06 Kevin McCullough -Fix test fields accepting text. * WebCore.vcproj/WebCore.vcproj: 2006-11-06 Anders Carlsson Reviewed by Dave Hyatt. wikipedia.org crashes when loading * platform/win/GlyphMapWin.cpp: (WebCore::GlyphMap::fillPage): Don't call GetGlyphIndices on buffers larger than the page size. GetGlyphIndicies doesn't know anything about Unicode supplementary characters and will overwrite the local buffer if the passed-in buffer is bigger than the page size. 2006-11-06 Anders Carlsson Fork GlyphMapWin.cpp * platform/win/GlyphMapWin.cpp: Added. (WebCore::GlyphMap::fillPage): 2006-11-06 Geoffrey Garen Reviewed by Darin. Hooked up the Chrome and Screen clients on Windows. * WebCore.vcproj/WebCore.vcproj: * bridge/win/PageWin.cpp: * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): * platform/win/TemporaryLinkStubs.cpp: 2006-11-06 Anders Carlsson Reviewed by Maciej. Copy npfunctions.h to WebKitOutputDir. * WebCore.vcproj/WebCore.vcproj: 2006-11-06 Steve Falkenburg Fix double-include of FormData.cpp/.h. * WebCore.vcproj/WebCore.vcproj: 2006-11-06 Maciej Stachowiak - build fixes, adjusted for file move * WebCore.vcproj/WebCore.vcproj: 2006-11-05 Beth Dakin Reviewed by Steve and Anders. Add client() fucntion to FrameWin to return the FrameClient. * bridge/win/FrameWin.h: (WebCore::FrameWin::client): 2006-11-05 Steve Falkenburg Fix build * WebCore.vcproj/WebCore.vcproj: 2006-11-05 Steve Falkenburg Fix build breaks * bridge/win/FrameWin.cpp: * bridge/win/PageWin.cpp: 2006-11-04 Darin Adler Reviewed by Maciej. * bridge/win/FrameWin.h: * bridge/win/FrameWin.cpp: (WebCore::FrameWin::urlSelected): Updated for change of const Event* to Event*. (WebCore::FrameWin::submitForm): Added Event* parameter. 2006-11-03 Maciej Stachowiak Reviewed by Adele. - replaced receivedRedirect with new willSendRequest delegate - removed most mac-specific loader functions - use ResourceResponse more in loader code * WebCore.vcproj/WebCore.vcproj: Added new files * platform/win/TemporaryLinkStubs.cpp: Removed unneeded link stubs 2006-11-03 Steve Falkenburg Fix build * config.h: Touched to cause re-build w/ SVG_SUPPORT enabled * platform/win/TemporaryLinkStubs.cpp: (WebCore::CachedResource::setResponse): Added 2006-11-03 Adele Peterson Reviewed by Oliver. Removed DeprecatedRenderSelect and ListBox classes. * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: 2006-11-03 Anders Carlsson Remove SVGRenderAsText files from the project. * WebCore.vcproj/WebCore.vcproj: 2006-11-03 Anders Carlsson Build fix. * platform/win/TemporaryLinkStubs.cpp: (WebCore::CachedResource::setPlatformResponse): 2006-11-03 Geoffrey Garen Reviewed by Darin, Beth. Updated to use ChromeClient. * WebCore.vcproj/WebCore.vcproj: * bridge/win/PageWin.cpp: * loader/win/ResourceLoaderWin.cpp: Added. (WebCore::ResourceLoader::loadsBlocked): * platform/win/TemporaryLinkStubs.cpp: 2006-11-02 Anders Carlsson Reviewed by Oliver. * WebCore.vcproj/WebCore.vcproj: Use the forked CursorWin.cpp * platform/win/CursorWin.cpp: (WebCore::moveCursor): Implement this. * platform/win/TemporaryLinkStubs.cpp: Get rid of it here. 2006-11-02 Anders Carlsson Reviewed by Oliver. Add forked copy of CursorWin.cpp * platform/win/CursorWin.cpp: Added. 2006-11-01 Oliver Hunt Reviewed by Adam. Adding SVG_SUPPORT to Boomer. * WebCore.vcproj/WebCore.vcproj: * WebCore.vcproj/build-generated-files.sh: * kcanvas/device/quartz/KCanvasFilterQuartz.cpp: Added. (WebCore::KCanvasFilterQuartz::KCanvasFilterQuartz): (WebCore::KCanvasFilterQuartz::~KCanvasFilterQuartz): (WebCore::KCanvasFilterQuartz::prepareFilter): (WebCore::KCanvasFilterQuartz::applyFilter): (WebCore::KCanvasFilterQuartz::imageForName): (WebCore::KCanvasFilterQuartz::setImageForName): (WebCore::KCanvasFilterQuartz::setOutputImage): (WebCore::KCanvasFilterQuartz::inputImage): * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Added. (WebCore::SVGResourceMasker::applyMask): 2006-11-01 Beth Dakin Reviewed by Adam. Build fix from Sam Weinig's check-in. i.p in the PaintInfo is now i.context * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::paintButton): (WebCore::RenderThemeWin::paintTextField): (WebCore::RenderThemeWin::paintMenuList): (WebCore::RenderThemeWin::paintMenuListButton): 2006-11-01 Anders Carlsson Reviewed by Geoff. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::createJavaAppletWidget): Ask the plugin database to create a java applet plugin. * platform/win/TemporaryLinkStubs.cpp: Remove FrameWin::createJavaAppletWidget. * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::defaultPluginPaths): Don't look for the Sun Java plugin anymore. 2006-11-01 Anders Carlsson * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): Build fix. 2006-11-01 Anders Carlsson Reviewed by Adam. Convert plugin code over to using ResourceResponse. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): (WebCore::PluginStreamWin::didReceiveResponse): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): 2006-10-31 Steve Falkenburg Yet more B&I build fixes Another missing .h file from the vcproj * WebCore.vcproj/WebCore.vcproj: 2006-10-31 Steve Falkenburg Another fix for B&I submission (missing .h files from the WebCore vcproj prevents proper merging of OpenSource/Internal WebCore trees) * WebCore.vcproj/WebCore.vcproj: 2006-10-31 Steve Falkenburg Remove extra files I accidently added * WebCore.vcproj/WebCore.vcproj: 2006-10-31 Steve Falkenburg Build fixes for submission merge script * WebCore.vcproj/WebCore.vcproj: 2006-10-31 Adam Roben Build fixes. * WebCore.vcproj/WebCore.vcproj: Add new platform/graphics directory to our include path, and copy headers from there for WebKit's benefit. * bridge/win/FrameWin.cpp: Update accessors of FrameLoadRequest. (WebCore::FrameWin::urlSelected): (WebCore::FrameWin::submitForm): * plugins/win/PluginViewWin.cpp: Ditto. (WebCore::PluginViewWin::start): (WebCore::PluginViewWin::performRequest): (WebCore::PluginViewWin::load): (WebCore::PluginViewWin::getURLNotify): (WebCore::PluginViewWin::getURL): (WebCore::PluginViewWin::handlePost): * plugins/win/PluginViewWin.h: Correct forward declaration of FrameLoadRequest. 2006-10-30 Darin Adler Reviewed by Anders. - remove BrowserExtension * WebCore.vcproj/WebCore.vcproj: * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin): * platform/win/TemporaryLinkStubs.cpp: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): 2006-10-30 Anders Carlsson Reviewed by Adam. If there's no plug-in for a given mime type, or if the plug-in fails to initialize, draw the "missing plug-in" icon. * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::createPluginView): If no plug-in can be found, create a null plugin view. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::paint): If the plugin hasn't been started, paint the missing plugin image. (WebCore::PluginViewWin::setNPWindowSize): Return early if the plugin hasn't been started. (WebCore::PluginViewWin::start): Return if the plugin couldn't be created. (WebCore::PluginViewWin::createNullPluginView): New function which just creates a plugin view and doesn't try to start its plugin (because there is none). (WebCore::PluginViewWin::PluginViewWin): New constructor for the null plugin view. 2006-10-31 Darin Adler Reviewed by Adam. * WebCore.vcproj/WebCore.vcproj: Added new source files from the loader directory. 2006-10-29 Maciej Stachowiak Reviewed by Anders. - added ResourceResponse class and didReceiveResponse delegate call * WebCore.vcproj/WebCore.vcproj: Added new files. * platform/win/TemporaryLinkStubs.cpp: (WebCore::ServeSynchronousRequest): Changed prototype to match new version. 2006-10-29 Darin Adler - update for the WebCore renames * WebCore.vcproj/WebCore.vcproj: * bridge/win/FrameWin.cpp: (WebCore::FrameWin::bindingRootObject): (WebCore::FrameWin::windowScriptNPObject): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::load): (WebCore::PluginViewWin::bindingInstance): 2006-10-29 Maciej Stachowiak Rubber stamped by Darin. - renamed ResourceLoader to ResourceHandle (and same for related classes) * WebCore.vcproj/WebCore.vcproj: * bridge/win/FrameWin.cpp: * platform/network/win/ResourceHandleWin.cpp: Added. (WebCore::): (WebCore::addToOutstandingJobs): (WebCore::lookupResourceHandle): (WebCore::ResourceHandleWndProc): (WebCore::ResourceHandle::onHandleCreated): (WebCore::ResourceHandle::onRequestRedirected): (WebCore::ResourceHandle::onRequestComplete): (WebCore::initializeOffScreenResourceHandleWindow): (WebCore::ResourceHandleInternal::~ResourceHandleInternal): (WebCore::ResourceHandle::~ResourceHandle): (WebCore::ResourceHandle::startHTTPRequest): (WebCore::ResourceHandle::start): (WebCore::ResourceHandle::fileLoadTimer): (WebCore::ResourceHandle::cancel): * platform/network/win/ResourceHandleWin.h: Added. * platform/network/win/ResourceLoaderWin.cpp: Removed. * platform/network/win/ResourceLoaderWin.h: Removed. * platform/win/TemporaryLinkStubs.cpp: (WebCore::ResourceHandle::assembleResponseHeaders): (WebCore::ResourceHandle::retrieveResponseEncoding): (IconLoader::receivedResponse): * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::start): (WebCore::PluginStreamWin::deliverData): (WebCore::PluginStreamWin::receivedResponse): (WebCore::PluginStreamWin::didReceiveData): (WebCore::PluginStreamWin::receivedAllData): * plugins/win/PluginStreamWin.h: 2006-10-28 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: Adding new HitTestResult.{cpp,h} files. 2006-10-27 Anders Carlsson Reviewed by Oliver. Plug-ins should be able to open URLs * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): 2006-10-26 Anders Carlsson Reviewed by John Sullivan. PluginStreams should cancel their loader jobs on error * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::receivedResponse): (WebCore::PluginStreamWin::didReceiveData): (WebCore::PluginStreamWin::receivedAllData): Modify assertions. None of the above functions should be run after aborting the load. 2006-10-26 Anders Carlsson Reviewed by Adam. * plugins/win/PluginDatabaseWin.cpp: (WebCore::addPluginPath): (WebCore::PluginDatabaseWin::defaultPluginPaths): Look for plugins in a plugins directory which is relative to the executable directory. (WebCore::PluginDatabaseWin::createPluginView): Use reverseFind instead of findRev here. 2006-10-26 Adam Roben Reviewed by Beth. Fix: Text and dropdown button too close together in control's text * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): Switch alignment of LTR vs. RTL popups, and add padding to align the text. (WebCore::PopupMenu::paint): Add padding from the control's text. * rendering/RenderThemeWin.cpp: Set svn:eol-style native. (WebCore::RenderThemeWin::systemFont): Clean up line endings. (WebCore::RenderThemeWin::adjustMenuListButtonStyle): Add some extra padding between the dropdown button and text. (WebCore::RenderThemeWin::paintMenuListButton): Clean up code a bit. 2006-10-26 Adam Roben Forgot to make the change to Release as well in my last checkin. * WebCore.vcproj/WebCore.vcproj: 2006-10-26 Adam Roben Rubberstamped by Steve. Add some missing '/d' flags to xcopy calls to only copy headers if they've been modified. * WebCore.vcproj/WebCore.vcproj: 2006-10-26 Anders Carlsson * platform/win/TemporaryLinkStubs.cpp: (GraphicsContext::drawLineForMisspellingOrBadGrammar): Build fix from Oliver. 2006-10-26 Anders Carlsson Reviewed by Adam. Use FrameLoadRequest and ResourceRequest instead of passing around the individual components. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::PluginStreamWin): (WebCore::PluginStreamWin::start): (WebCore::PluginStreamWin::destroyStream): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginRequestWin::PluginRequestWin): (WebCore::PluginRequestWin::frameLoadRequest): (WebCore::PluginViewWin::start): (WebCore::PluginViewWin::performRequest): (WebCore::PluginViewWin::load): (WebCore::PluginViewWin::getURLNotify): (WebCore::PluginViewWin::getURL): (WebCore::PluginViewWin::handlePost): * plugins/win/PluginViewWin.h: 2006-10-26 Adam Roben Reviewed by Adele. Fix: Implement type-ahead find for popup menus Fix: Pressing TAB while a popup is focused should close the popup and move selection in the page * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::PopupMenu): Don't cache the focused index. (WebCore::PopupMenu::focusedIndex): Always get the focused index from the HTMLSelectElement. (WebCore::PopupMenu::setFocusedIndex): Invalidate before calling valueChanged(), as this will change the result of focusedIndex(). (WebCore::PopupMenu::scrollToRevealSelection): (WebCore::PopupMenu::updateFromElement): New method to repaint/rescroll the popup. (WebCore::PopupWndProc): Send TAB keypresses and printable characters back to the WebView for handling. Also omove handling of Return/Escape into the WM_CHAR event, as this is recommended by MSDN. 2006-10-25 Steve Falkenburg Reviewed by Darin. Checked in Luke's CG printing code * bridge/win/FrameWin.cpp: (WebCore::FrameWin::setupRootForPrinting): Added (WebCore::FrameWin::computePageRects): Added * bridge/win/FrameWin.h: Added setupRootForPrinting, computePageRects 2006-10-24 Maciej Stachowiak Reviewed by Oliver. - updated for ResourceRequest changes. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::setRequestHeaders): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::loadURL): (WebCore::parseRFC822HeaderFields): (WebCore::PluginViewWin::handlePost): * plugins/win/PluginViewWin.h: 2006-10-24 Steve Falkenburg Build fix for official builds * WebCore.vcproj/WebCore.make: 2006-10-24 Steve Falkenburg Fix build so it can be submitted. * WebCore.vcproj/WebCore.vcproj: * WebCore.vcproj/merge-opensource.sh: * rendering/RenderThemeWin.cpp: 2006-10-24 Geoffrey Garen Rolling back in, now fixed: Nixed a few more redundant loading functions in Frame. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::shouldInterruptJavaScript): (FrameWin::lastEventIsMouseUp): 2006-10-24 Maciej Stachowiak Reviewed by Geoff. - update for ResourceLoader API changes * platform/win/TemporaryLinkStubs.cpp: (WebCore::ServeSynchronousRequest): * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::start): (WebCore::PluginStreamWin::receivedAllData): * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): 2006-10-24 Geoffrey Garen Rolling out my last change because it broke the world. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::openURL): 2006-10-24 Anders Carlsson Reviewed by Adam. Crash in PluginStreamWin::~PluginStreamWin when navigating away from mcdonalds.com * plugins/win/PluginPackageWin.cpp: (WebCore::PluginPackageWin::fetchInfo): Use fastFree instead of free when memory is allocated by fastMalloc. If the plugin name or description is null, don't try to fetch info about the plugin. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::setRequestHeaders): (WebCore::PluginStreamWin::start): (WebCore::PluginStreamWin::stop): * plugins/win/PluginStreamWin.h: Change type of header map to ResourceRequest::HTTPHeaderMap. When a plugin is stopped, set its state to StreamStopped. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::loadURL): (WebCore::parseRFC822HeaderFields): (WebCore::PluginViewWin::handlePost): * plugins/win/PluginViewWin.h: Update for type changes to the header map. 2006-10-24 Geoffrey Garen Reviewed by Anders. Nixed a few more redundant loading functions in Frame. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::shouldInterruptJavaScript): (FrameWin::lastEventIsMouseUp): 2006-10-23 Geoffrey Garen Reviewed by Bradee. Removed methods from BrowserExtension. * bridge/win/FrameWin.h: * platform/win/TemporaryLinkStubs.cpp: (FrameWin::canPaste): (FrameWin::canGoBackOrForward): (FrameWin::goBackOrForward): (FrameWin::getHistoryLength): (FrameWin::historyURL): (Page::canRunModal): (Page::canRunModalNow): (Page::runModal): (BrowserExtensionWin::BrowserExtensionWin): 2006-10-23 Adam Roben Reviewed by Adele. Fix: Styled s), and then do any extra drawing for unstyled menus * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::setFocusedIndex): Only call ::UpdateWindow if we didn't scroll, because scrolling will do the update for us. (WebCore::PopupMenu::focusFirst): New method. (WebCore::PopupMenu::focusLast): New method. (WebCore::PopupMenu::down): Add a parameter to specify how far we should try to move the selection. (WebCore::PopupMenu::up): Ditto. (WebCore::PopupMenu::invalidateItem): Cleanup code by using IntRect instead of RECT. (WebCore::PopupMenu::scrollTo): Return a boolean to say whether scrolling actually happened. (WebCore::PopupMenu::scrollToRevealSelection): Ditto. (WebCore::PopupWndProc): Handle PageUp/PageDown/Home/End. 2006-10-23 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: Copy headers from new platform/network directory and subdirectories. 2006-10-23 Adam Roben Build fix. * plugins/win/PluginStreamWin.h: Rename methods to match Maciej's changes. 2006-10-23 Adam Roben Build fix. * WebCore.vcproj/WebCore.vcproj: Copied AdditionalIncludeDirectories from Release to All Configurations. 2006-10-23 Maciej Stachowiak Rubber-stamped by Anders. - fixed for ResourceLoader refactoring. * platform/network/win/ResourceLoaderWin.cpp: (WebCore::ResourceLoader::onRequestComplete): (WebCore::ResourceLoader::fileLoadTimer): (WebCore::ResourceLoader::cancel): * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::didReceiveData): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::performRequest): 2006-10-22 Maciej Stachowiak Reviewed by Anders. - updated for new ResourceLoader file locations. * WebCore.vcproj/WebCore.vcproj: Updated file paths. * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win * platform/win/ResourceLoaderWin.h: ditto 2006-10-22 Adam Roben Reviewed by Steve. Fix some crashes caused by the control * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): Cleaned up code by translating into screen coordinates right away. (WebCore::PopupMenu::setFocusedIndex): Added parameter to specify whether the text in the menus Fix: Can select disabled options in and highlighting the item in the popup menu. (WebCore::PopupMenu::down): Use setSelectedIndex() to do the dirty work. (WebCore::PopupMenu::up): Ditto. (WebCore::PopupMenu::invalidateItem): New method to invalidate the rectangle in the popup menu for this item. (WebCore::PopupMenu::clientRect): New method to calculate an IntRect for the client area of the window. (WebCore::PopupMenu::incrementWheelDelta): New method to add the wheel delta obtained from a WM_MOUSEWHEEL message to any pre-existing delta. (WebCore::PopupMenu::reduceWheelDelta): New method to reduce the pre-existing wheel delta by a given amount towards 0. (WebCore::PopupMenu::paint): Does the work that PopupMenu::drawItem did, but for every item contained within the damageRect. Can also paint into a passed-in HDC (needed for window animations and smooth-scrolling). (WebCore::registerPopup): Changed a void* to a PopupMenu*, since that's what it really is. (WebCore::PopupWndProc): Added code to handle all the messages any self-respecting window would handle, and removed messages only relevant to the ListBox control. * platform/win/TemporaryLinkStubs.cpp: Removed unneeded #include. 2006-10-19 Adam Roben Rubberstamped by Maciej. Build fix. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::submitForm): 2006-10-19 Maciej Stachowiak Reviewed by Steve. - speculative build fix for Windows for my recent changes. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::submitForm): 2006-10-19 Anders Carlsson * platform/win/TemporaryLinkStubs.cpp: (WebCore::ResourceLoader::retrieveResponseEncoding): Build fix. 2006-10-18 Maciej Stachowiak Reviewed by Geoff. - remove remnants of KXMLCore name. * WebCore.vcproj/WebCore.vcproj: * config.h: 2006-10-18 Steve Falkenburg Fix build * platform/win/TemporaryLinkStubs.cpp: (BrowserExtensionWin::historyURL): (BrowserExtensionWin::BrowserExtensionWin): 2006-10-17 Steve Falkenburg Build fix * platform/win/TemporaryLinkStubs.cpp: (BrowserExtensionWin::createNewWindow): 2006-10-17 Geoffrey Garen Reviewed by Anders. Added WindowFeatures.h to the project. * WebCore.vcproj/WebCore.vcproj: 2006-10-17 Steve Falkenburg Reviewed by Maciej. Turn off a very noisy warning (unknown pragma) caused by an Interfacer include * WebCore.vcproj/WebCore.vcproj: 2006-10-17 Oliver Hunt Reviewed by Brady. Fixed alpha in favicons, added composite operation conversion for cg rdar://problem/4758934 * platform/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::setCompositeOperation): * platform/win/ImageWin.cpp: (WebCore::Image::getHBITMAP): * platform/win/TemporaryLinkStubs.cpp: (GraphicsContext::drawLineForMisspelling): 2006-10-15 Geoffrey Garen Reviewed by Adam. Added HTMLFrameElementBase to the project. * WebCore.vcproj/WebCore.vcproj: 2006-10-17 Adam Roben Reviewed by Geoff. A couple of cleanups that Geoff suggested after my last checkin. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::setPositionAndSize): 2006-10-17 Adam Roben Reviewed by Adele. Fix: control on the page. 2. Popups for LTR , popups for RTL . 3. Popups try to be wide enough to fit their widest item, but will shrink to ensure they don't extend off the screen. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::setPositionAndSize): 2006-10-16 Adam Roben Reviewed by Kevin. Fix: popups Fix: Move CreateWindowEx calls out of PopupMenu constructor * platform/win/PopupMenuWin.cpp: Added some now-required #includes, moved some constants into the WebCore namespace. (WebCore::PopupMenu::PopupMenu): Moved CreateWindowEx calls into PopupMenu::show(). (WebCore::PopupMenu::show): Pass LBS_OWNERDRAWFIXED to CreateWindowEx to assume responsibility for drawing menu itesm. Removed call to set the font on the popup menu, as CG will take care of this. (WebCore::addString): Added to help with the PopupMenu::add* methods. (WebCore::PopupMenu::addOption): Use addString. (WebCore::PopupMenu::addGroupLabel): Ditto, and moved from TemporaryLinkStubs.cpp. (WebCore::PopupMenu::addSeparator): Ditto. (WebCore::PopupMenu::down): Skip items that are not enabled