2007-07-04 Matt Lilek Not reviewed, gdk build fix. * platform/gdk/FrameGdk.cpp: 2007-07-05 Antti Koivisto Reviewed by John. Fix Repro crash due to infinite recursion in HTMLParser::handleError @ youos.com It is possible to add table parts (thead etc) without table ancestor to a document fragment. If a new table element was added to such a part, as in div.innerHTML = ''; the parser error handling code would try to pop the previous table as normal. However since the table does not actually exist nothing would happen and parser would go to infinite recursion. Solution here is to pop table parts one by one when handling the error inside a fragment instead of trying to pop the table straight away (as it might not exist). * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): 2007-07-04 Qing Zhao Reviewed by George Staikos. Draw menulist (comboboxes) without text overlap on the button. * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::setPopupPadding): 2007-07-04 George Staikos Compile * page/qt/FrameQt.cpp: * WebCore.pro: 2007-07-04 Sam Weinig Reviewed by Mitz. Patch for http://bugs.webkit.org/show_bug.cgi?id=14504 REGRESSION (r23573): Amazon Book Excerpt can not be viewed in recent nightly - Made it possible (again) to shadow window properties with local variable names. Test: fast/dom/Window/window-property-shadowing.html * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::customPut): * bindings/js/kjs_window.cpp: (KJS::Window::put): * bindings/scripts/CodeGeneratorJS.pm: * page/DOMWindow.idl: 2007-07-03 Alice Liu Reviewed by Adam. Fixed support smart pasting on Windows * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: Added new files * editing/SmartReplace.cpp: Added. (WebCore::isCharacterSmartReplaceExempt): Added non-CF implementation placeholder * editing/SmartReplace.h: Added. * editing/SmartReplaceCF.cpp: Added. (WebCore::getSmartSet): (WebCore::isCharacterSmartReplaceExempt): Added new implementation * bridge/win/FrameWin.cpp: * page/Frame.h: * page/mac/FrameMac.mm: Removed old declaration and implementation * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): Changed to call the new function instead of old * page/mac/WebCoreFrameBridge.h: * page/mac/WebCoreFrameBridge.mm: Removed old declaration and implementation (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]): Changed to call the new function instead of old * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::Pasteboard): Register new clipboard format (WebCore::Pasteboard::writeSelection): Set data for smartpaste format on clipboard (WebCore::Pasteboard::canSmartReplace): Added non-stub implementation 2007-07-04 Qing Zhao Reviewed by George Staikos. Similar to the PlatformScrollbar fixes, adjust the painter to make the styler draw all subcontrols, and in this case the focus rect, in the proper location * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::paintMenuList): 2007-07-04 Mitz Pettel Reviewed by Maciej. - fix http://bugs.webkit.org/show_bug.cgi?id=14495 REGRESSION: Wrong cursor is displayed during drag and drop when text is selected No test possible because DumpRenderTree cannot query the current cursor. * page/EventHandler.cpp: (WebCore::EventHandler::selectCursor): Changed into a member function and added that if the last mouse down event could not have started a selection, then the cursor should not change to an I-beam unconditionally. (WebCore::EventHandler::handleMouseMoveEvent): * page/EventHandler.h: 2007-07-04 Holger Hans Peter Freyther Reviewed by Rob Buis. A little progress in tracking dependencies. * WebCore.pro: Add DEPENDPATH for the Gdk port. 2007-07-03 Darin Adler Reviewed by Tim Hatcher. - fix Font family name in the cssText for a DOMCSSStyleDeclaration needs quotes Test: editing/style/font-family-with-space.html * css/FontFamilyValue.cpp: (WebCore::isValidCSSIdentifier): Added. Implements the same rule that the CSS lexer does. (WebCore::quoteStringIfNeeded): Changed to call isValidCSSIdentifier instead of just checking for a leading "#" character. * editing/markup.cpp: (WebCore::escapeTextForMarkup): Changed to take a String parameter for better efficiency. (WebCore::renderedText): Changed to return a String for better efficiency. (WebCore::addNamespace): Updated to pass String to escapeTextForMarkup. (WebCore::startMarkup): Updated to pass String to escapeTextForMarkup. Added missing call to escapeTextForMarkup in the special case for the style property. (WebCore::createMarkup): Changed from single quotes to double quotes and also added missing call to escapeTextForMarkup in two special cases for the style property. 2007-07-03 Sam Weinig Reviewed by Darin. Twelfth round of fixes for implicit 64-32 bit conversion errors. - Add casts and accompanying FIXMEs to avoid remaining compiler errors. * WebCore.xcodeproj/project.pbxproj: * loader/FrameLoader.cpp: (WebCore::FrameLoader::opened): (WebCore::FrameLoader::sendRemainingDelegateMessages): * loader/FrameLoader.h: * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::didReceiveData): * platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]): (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]): * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::nsURLResponse): 2007-07-03 Anders Carlsson Reviewed by Adam. Nothing shown in plugin area when trying to play content using the DivX plugin Defer calling SetWindow for the DivX plugin, just like we do with the WMP plugin. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::determineQuirks): 2007-07-03 Sam Weinig Reviewed by Brady Eidson. Ninth round of fixes for implicit 64-32 bit conversion errors. - Fix function signature to use unsigned long instead of unsigned long long. * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::completeProgress): * loader/ProgressTracker.h: 2007-07-03 Sam Weinig Reviewed by Oliver. Eighth round of fixes for implicit 64-32 bit conversion errors. - Convert SVG implementation files to use floats instead of doubles to match the spec/IDLs. * bindings/scripts/CodeGeneratorJS.pm: * ksvg2/svg/SVGAngle.cpp: * ksvg2/svg/SVGAnimatedTemplate.h: * ksvg2/svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::getEndTime): (WebCore::SVGAnimationElement::getStartTime): (WebCore::SVGAnimationElement::getCurrentTime): (WebCore::SVGAnimationElement::getSimpleDuration): * ksvg2/svg/SVGAnimationElement.h: * ksvg2/svg/SVGFitToViewBox.cpp: (WebCore::SVGFitToViewBox::parseViewBox): * ksvg2/svg/SVGLength.cpp: (WebCore::SVGLength::setValueAsString): * ksvg2/svg/SVGLinearGradientElement.cpp: (WebCore::SVGLinearGradientElement::buildGradient): * ksvg2/svg/SVGMatrix.idl: * ksvg2/svg/SVGNumber.idl: * ksvg2/svg/SVGParserUtilities.cpp: (WebCore::SVGPathParser::parseSVG): (WebCore::SVGPathParser::calculateArc): (WebCore::SVGPathParser::svgLineToHorizontal): (WebCore::SVGPathParser::svgLineToVertical): (WebCore::SVGPathParser::svgCurveToCubicSmooth): (WebCore::SVGPathParser::svgCurveToQuadratic): (WebCore::SVGPathParser::svgCurveToQuadraticSmooth): (WebCore::SVGPathParser::svgArcTo): * ksvg2/svg/SVGParserUtilities.h: * ksvg2/svg/SVGPathElement.cpp: (WebCore::SVGPathElement::SVGPathElement): (WebCore::SVGPathElement::getTotalLength): (WebCore::SVGPathElement::getPointAtLength): (WebCore::SVGPathElement::getPathSegAtLength): (WebCore::SVGPathElement::createSVGPathSegMovetoAbs): (WebCore::SVGPathElement::createSVGPathSegMovetoRel): (WebCore::SVGPathElement::createSVGPathSegLinetoAbs): (WebCore::SVGPathElement::createSVGPathSegLinetoRel): (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs): (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel): (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs): (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel): (WebCore::SVGPathElement::createSVGPathSegArcAbs): (WebCore::SVGPathElement::createSVGPathSegArcRel): (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs): (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel): (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs): (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel): (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs): (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel): (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs): (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel): (WebCore::SVGPathElement::svgMoveTo): (WebCore::SVGPathElement::svgLineTo): (WebCore::SVGPathElement::svgLineToHorizontal): (WebCore::SVGPathElement::svgLineToVertical): (WebCore::SVGPathElement::svgCurveToCubic): (WebCore::SVGPathElement::svgCurveToCubicSmooth): (WebCore::SVGPathElement::svgCurveToQuadratic): (WebCore::SVGPathElement::svgCurveToQuadraticSmooth): (WebCore::SVGPathElement::svgArcTo): (WebCore::SVGPathElement::parseMappedAttribute): * ksvg2/svg/SVGPathElement.h: * ksvg2/svg/SVGPathSegArc.cpp: (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs): (WebCore::SVGPathSegArcAbs::setX): (WebCore::SVGPathSegArcAbs::x): (WebCore::SVGPathSegArcAbs::setY): (WebCore::SVGPathSegArcAbs::y): (WebCore::SVGPathSegArcAbs::setR1): (WebCore::SVGPathSegArcAbs::r1): (WebCore::SVGPathSegArcAbs::setR2): (WebCore::SVGPathSegArcAbs::r2): (WebCore::SVGPathSegArcAbs::setAngle): (WebCore::SVGPathSegArcAbs::angle): (WebCore::SVGPathSegArcRel::SVGPathSegArcRel): (WebCore::SVGPathSegArcRel::setX): (WebCore::SVGPathSegArcRel::x): (WebCore::SVGPathSegArcRel::setY): (WebCore::SVGPathSegArcRel::y): (WebCore::SVGPathSegArcRel::setR1): (WebCore::SVGPathSegArcRel::r1): (WebCore::SVGPathSegArcRel::setR2): (WebCore::SVGPathSegArcRel::r2): (WebCore::SVGPathSegArcRel::setAngle): (WebCore::SVGPathSegArcRel::angle): * ksvg2/svg/SVGPathSegArc.h: * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs): (WebCore::SVGPathSegCurvetoCubicAbs::setX): (WebCore::SVGPathSegCurvetoCubicAbs::x): (WebCore::SVGPathSegCurvetoCubicAbs::setY): (WebCore::SVGPathSegCurvetoCubicAbs::y): (WebCore::SVGPathSegCurvetoCubicAbs::setX1): (WebCore::SVGPathSegCurvetoCubicAbs::x1): (WebCore::SVGPathSegCurvetoCubicAbs::setY1): (WebCore::SVGPathSegCurvetoCubicAbs::y1): (WebCore::SVGPathSegCurvetoCubicAbs::setX2): (WebCore::SVGPathSegCurvetoCubicAbs::x2): (WebCore::SVGPathSegCurvetoCubicAbs::setY2): (WebCore::SVGPathSegCurvetoCubicAbs::y2): (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel): (WebCore::SVGPathSegCurvetoCubicRel::setX): (WebCore::SVGPathSegCurvetoCubicRel::x): (WebCore::SVGPathSegCurvetoCubicRel::setY): (WebCore::SVGPathSegCurvetoCubicRel::y): (WebCore::SVGPathSegCurvetoCubicRel::setX1): (WebCore::SVGPathSegCurvetoCubicRel::x1): (WebCore::SVGPathSegCurvetoCubicRel::setY1): (WebCore::SVGPathSegCurvetoCubicRel::y1): (WebCore::SVGPathSegCurvetoCubicRel::setX2): (WebCore::SVGPathSegCurvetoCubicRel::x2): (WebCore::SVGPathSegCurvetoCubicRel::setY2): (WebCore::SVGPathSegCurvetoCubicRel::y2): * ksvg2/svg/SVGPathSegCurvetoCubic.h: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX2): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x2): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY2): (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y2): (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel): (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX): (WebCore::SVGPathSegCurvetoCubicSmoothRel::x): (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY): (WebCore::SVGPathSegCurvetoCubicSmoothRel::y): (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX2): (WebCore::SVGPathSegCurvetoCubicSmoothRel::x2): (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY2): (WebCore::SVGPathSegCurvetoCubicSmoothRel::y2): * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs): (WebCore::SVGPathSegCurvetoQuadraticAbs::setX): (WebCore::SVGPathSegCurvetoQuadraticAbs::x): (WebCore::SVGPathSegCurvetoQuadraticAbs::setY): (WebCore::SVGPathSegCurvetoQuadraticAbs::y): (WebCore::SVGPathSegCurvetoQuadraticAbs::setX1): (WebCore::SVGPathSegCurvetoQuadraticAbs::x1): (WebCore::SVGPathSegCurvetoQuadraticAbs::setY1): (WebCore::SVGPathSegCurvetoQuadraticAbs::y1): (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel): (WebCore::SVGPathSegCurvetoQuadraticRel::setX): (WebCore::SVGPathSegCurvetoQuadraticRel::x): (WebCore::SVGPathSegCurvetoQuadraticRel::setY): (WebCore::SVGPathSegCurvetoQuadraticRel::y): (WebCore::SVGPathSegCurvetoQuadraticRel::setX1): (WebCore::SVGPathSegCurvetoQuadraticRel::x1): (WebCore::SVGPathSegCurvetoQuadraticRel::setY1): (WebCore::SVGPathSegCurvetoQuadraticRel::y1): * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: (WebCore::SVGPathSegCurvetoQuadraticRel::toString): * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs): (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setX): (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::x): (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setY): (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::y): (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel): (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setX): (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::x): (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setY): (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::y): * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: * ksvg2/svg/SVGPathSegLineto.cpp: (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs): (WebCore::SVGPathSegLinetoAbs::setX): (WebCore::SVGPathSegLinetoAbs::x): (WebCore::SVGPathSegLinetoAbs::setY): (WebCore::SVGPathSegLinetoAbs::y): (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel): (WebCore::SVGPathSegLinetoRel::setX): (WebCore::SVGPathSegLinetoRel::x): (WebCore::SVGPathSegLinetoRel::setY): (WebCore::SVGPathSegLinetoRel::y): * ksvg2/svg/SVGPathSegLineto.h: * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs): (WebCore::SVGPathSegLinetoHorizontalAbs::setX): (WebCore::SVGPathSegLinetoHorizontalAbs::x): (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel): (WebCore::SVGPathSegLinetoHorizontalRel::setX): (WebCore::SVGPathSegLinetoHorizontalRel::x): * ksvg2/svg/SVGPathSegLinetoHorizontal.h: * ksvg2/svg/SVGPathSegLinetoVertical.cpp: (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs): (WebCore::SVGPathSegLinetoVerticalAbs::setY): (WebCore::SVGPathSegLinetoVerticalAbs::y): (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel): (WebCore::SVGPathSegLinetoVerticalRel::setY): (WebCore::SVGPathSegLinetoVerticalRel::y): * ksvg2/svg/SVGPathSegLinetoVertical.h: * ksvg2/svg/SVGPathSegList.cpp: (WebCore::SVGPathSegList::getPathSegAtLength): * ksvg2/svg/SVGPathSegList.h: * ksvg2/svg/SVGPathSegMoveto.cpp: (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs): (WebCore::SVGPathSegMovetoAbs::setX): (WebCore::SVGPathSegMovetoAbs::x): (WebCore::SVGPathSegMovetoAbs::setY): (WebCore::SVGPathSegMovetoAbs::y): (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel): (WebCore::SVGPathSegMovetoRel::setX): (WebCore::SVGPathSegMovetoRel::x): (WebCore::SVGPathSegMovetoRel::setY): (WebCore::SVGPathSegMovetoRel::y): * ksvg2/svg/SVGPathSegMoveto.h: * ksvg2/svg/SVGPolyElement.cpp: (WebCore::SVGPolyElement::svgPolyTo): * ksvg2/svg/SVGRadialGradientElement.cpp: (WebCore::SVGRadialGradientElement::buildGradient): * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::viewport): (WebCore::SVGSVGElement::getCurrentTime): * ksvg2/svg/SVGStopElement.cpp: (WebCore::SVGStopElement::SVGStopElement): (WebCore::SVGStopElement::parseMappedAttribute): * ksvg2/svg/SVGStopElement.h: * ksvg2/svg/SVGTransform.cpp: (SVGTransform::translate): (SVGTransform::scale): * ksvg2/svg/SVGTransformDistance.cpp: (WebCore::SVGTransformDistance::addToSVGTransform): (WebCore::SVGTransformDistance::distance): * ksvg2/svg/SVGTransformable.cpp: (WebCore::SVGTransformable::parseTransformAttribute): 2007-07-03 Anders Carlsson Reviewed by Darin. http://bugs.webkit.org/show_bug.cgi?id=14437 CrashTracer: [REGRESSION] 76 crashes in Safari at com.apple.WebCore: WebCore::Frame::settings const + 6 (14437) Based on a patch from Maxime Britto. * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]): If the script caused the frame to go away, return nil. This can only happen if a plugin in a subframe destroys its frame. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): ASSERT that this is only called on the main frame. 2007-07-03 John Sullivan Written by Darin, reviewed by me - fixed REGRESSION (Leopard, around 9A464): Safari opens the same local documents more than once due to canonicalization change * loader/mac/LoaderNSURLExtras.m: (canonicalURL): pass URL through KURL so we get KURL's version of canonicalization as well as NSURLProtocol's version of canonicalization 2007-07-03 Sam Weinig Reviewed by Darin. Seventh round of fixes for implicit 64-32 bit conversion errors. - Adds more narrowPrecision functions to FloatPoint, FloatSize and FloatRect. - Changes over more implicit conversions to use new functions. * bindings/js/kjs_window.cpp: (KJS::WindowFunc::callAsFunction): * platform/graphics/FloatPoint.cpp: (WebCore::FloatPoint::matrixTransform): (WebCore::FloatPoint::narrowPrecision): * platform/graphics/FloatPoint.h: * platform/graphics/FloatRect.cpp: (WebCore::FloatRect::narrowPrecision): * platform/graphics/FloatRect.h: * platform/graphics/FloatSize.cpp: (WebCore::FloatSize::narrowPrecision): * platform/graphics/FloatSize.h: * platform/graphics/Path.cpp: (WebCore::Path::createRoundedRectangle): (WebCore::Path::createRectangle): (WebCore::Path::createEllipse): * platform/graphics/mac/ColorMac.mm: (WebCore::nsColor): * platform/graphics/mac/IconMac.mm: (WebCore::Icon::paint): * platform/graphics/svg/cg/CgSupport.cpp: (WebCore::applyStrokeStyleToContext): * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: (WebCore::CGShadingRefForRadialGradient): (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache): (WebCore::SVGPaintServerGradient::handleBoundingBoxModeAndGradientTransformation): * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: (WebCore::applyLuminanceToAlphaFilter): (WebCore::applyExpandAlphatoGrayscaleFilter): (WebCore::transformImageIntoGrayscaleMask): * platform/mac/WebCoreTextRenderer.mm: (WebCoreDrawTextAtPoint): * rendering/RenderPath.cpp: (WebCore::RenderPath::mapAbsolutePointToLocal): * rendering/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::calcViewport): * rendering/RenderSVGImage.cpp: (WebCore::RenderSVGImage::nodeAtPoint): * rendering/RenderSVGText.cpp: (WebCore::RenderSVGText::relativeBBox): 2007-07-03 Anders Carlsson Reviewed by Adam. Crash playing MP11 on cnbc.com The WMP Netscape plugin still creates a window even when windowless mode is turned on. Work around this by always removing the "windowlessvideo" parameter before passing it to the plugin. According to http://msdn2.microsoft.com/en-us/library/bb249373.aspx, "The windowlessVideo property is not supported for Netscape Navigator. Setting a value for this property in Navigator may yield unexpected results." * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWndProc): (WebCore::PluginViewWin::paint): (WebCore::PluginViewWin::invalidateRect): (WebCore::PluginViewWin::determineQuirks): (WebCore::PluginViewWin::setParameters): (WebCore::PluginViewWin::PluginViewWin): (WebCore::PluginViewWin::init): * plugins/win/PluginViewWin.h: (WebCore::): 2007-07-03 Qing Zhao Reviewed by George Staikos. Only draw sunken state for appropriate widgets. Not, for example, for lineedits. * platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::applyTheme): 2007-07-03 Antti Koivisto Reviewed by Maciej. REGRESSION: misplaced selection ring remains after link is no longer focused. Fix placement of selection ring when part of the ring is in a different layer. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::addFocusRingRects): Get coordinates right when moving to a different layer. * rendering/RenderObject.cpp: (WebCore::RenderObject::setStyle): Don't reset state variables when not necessary. When repaint() was called at the end of setSyle() it would get repaint rects wrong in some cases. 2007-07-03 Antti Koivisto Reviewed by Maciej. Blind fix for CrashTracer: [USER] 25 crashes in Safari at com.apple.WebCore: WebCore::Frame::document const + 6 No one has managed to reproduce this but it looks like null check is needed here. There are plausible ways m_frame could be null for a live FrameView object. * page/FrameView.cpp: (WebCore::FrameView::needsLayout): 2007-07-02 Oliver Hunt Reviewed by Darin. Fix for single-pixel image optimization needs to be rewritten to not depend on floating point bitmap Tested by fast/replaced/image-solid-color-with-alpha.html Switch from float to byte based bitmap when pulling the color from 1x1 pixel images so that we can use the single pixel image optimisation in WebKit/win. * platform/graphics/cg/ImageCG.cpp: (WebCore::BitmapImage::checkForSolidColor): 2007-07-02 Adam Roben Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error http://bugs.webkit.org/show_bug.cgi?id=14498 There were two bugs: 1) xPos/yPos were flipped 2) + binds tighter than ?:, so the order of operations was incorrect Reviewed by Darin. Test: fast/inline-block/14498-positionForCoordinates.html * rendering/RenderContainer.cpp: (WebCore::RenderContainer::positionForCoordinates): 2007-07-02 Darin Adler Reviewed by Kevin Decker and Tim Hatcher. - fix some classes need finalize methods because of non-trivial work done in dealloc methods * bindings/objc/DOMRGBColor.mm: (+[DOMRGBColor initialize]): Added. Tells finalizer to run on main thread, which is needed because we are sharing a CFDictionary here with no locking. * bridge/mac/WebCoreAXObject.mm: (+[WebCoreAXObject initialize]): Added. Tells finalizer to run on main thread. (-[WebCoreAXObject finalize]): Added. Calls detach. * WebCore.xcodeproj/project.pbxproj: Let Xcode do what it wants to do. 2007-07-02 Sam Weinig Reviewed by Darin. Sixth round of fixes for implicit 64-32 bit conversion errors. Use new narrowPrecisionToFloat() and narrowPrecisionToCGFloat() where appropriate. * html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::setShadow): (WebCore::CanvasRenderingContext2D::applyShadow): * html/CanvasStyle.cpp: (WebCore::CanvasStyle::applyStrokeColor): (WebCore::CanvasStyle::applyFillColor): * ksvg2/svg/SVGAngle.cpp: * ksvg2/svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::parseKeyNumbers): (WebCore::parseKeySplines): (WebCore::SVGAnimationElement::handleTimerEvent): (WebCore::SVGAnimationElement::updateAnimatedValueForElapsedSeconds): * ksvg2/svg/SVGPatternElement.cpp: (WebCore::SVGPatternElement::buildPattern): * ksvg2/svg/SVGRadialGradientElement.cpp: (WebCore::SVGRadialGradientElement::buildGradient): * platform/graphics/cg/AffineTransformCG.cpp: (WebCore::AffineTransform::AffineTransform): (WebCore::AffineTransform::setMatrix): (WebCore::AffineTransform::map): (WebCore::AffineTransform::setA): (WebCore::AffineTransform::setB): (WebCore::AffineTransform::setC): (WebCore::AffineTransform::setD): (WebCore::AffineTransform::setE): (WebCore::AffineTransform::setF): (WebCore::AffineTransform::scale): (WebCore::AffineTransform::rotate): (WebCore::AffineTransform::translate): (WebCore::AffineTransform::shear): 2007-07-02 John Sullivan * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]): added a comment 2007-07-02 Sam Weinig Rubberstamped by Darin. Rename FloatConversionUtilities.h to FloatConversion.h. Fix Win32 build. * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * platform/DeprecatedString.cpp: * platform/FloatConversion.h: Copied from platform/FloatConversionUtilities.h. * platform/FloatConversionUtilities.h: Removed. * platform/StringImpl.cpp: 2007-07-02 Sam Weinig Reviewed by Darin. Fifth round of fixes for implicit 64-32 bit conversion errors. Add toFloat() method to string classes and use it where appropriate. * WebCore.xcodeproj/project.pbxproj: * css/cssparser.cpp: (WebCore::CSSParser::lex): * ksvg2/svg/SVGAngle.cpp: (WebCore::SVGAngle::setValueAsString): * platform/AtomicString.h: (WebCore::AtomicString::toFloat): * platform/DeprecatedString.cpp: (WebCore::DeprecatedString::toFloat): * platform/DeprecatedString.h: * platform/FloatConversionUtilities.h: Added. (WebCore::narrowPrecisionToFloat): (WebCore::narrowPrecisionToCGFloat): * platform/PlatformString.h: * platform/String.cpp: (WebCore::String::toFloat): * platform/StringImpl.cpp: (WebCore::StringImpl::toFloat): * platform/StringImpl.h: 2007-07-02 Sam Weinig Reviewed by Kevin McCullough. Fourth round of fixes for implicit 64-32 bit conversion errors. Use new piDouble and piFloat constants instead of M_PI. * html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::rotate): * ksvg2/svg/SVGParserUtilities.cpp: (WebCore::SVGPathParser::calculateArc): * platform/graphics/Path.cpp: (WebCore::pathLengthApplierFunction): (WebCore::Path::createEllipse): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawEllipse): (WebCore::GraphicsContext::strokeArc): * platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::setCurrentPage): * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: * rendering/RenderPath.cpp: (WebCore::drawMarkerWithData): 2007-07-01 Adam Roben Clarify/fix {Shadow,BorderImage}ParseContext's memory management Prefast emitted warnings that drew my attention to {Shadow,BorderImage}ParseContext::failed(). It turned out that these methods were actually correct, but rather confusing. "failed" really meant "abort and clean up" rather than "did you fail?", which was unclear. However, once I figured that out, the "and clean up" part was still a bit confusing, because all failed() did was to set a flag that would later cause the ParseContext's members to be deleted in the destructor. To clear this up, I've gotten rid of the failed() method altogether. It always returned false, so I've replaced all calls to it with the value false. I also noticed that the lifetime management of the ParseContexts' members was in all cases confusing, and in some cases wrong. The m_border{Top,Right,Bottom,Left} members of BorderImageParseContext were leaked whenever a border-image property was successfully parsed. I fixed that by holding these members in OwnPtrs. The CSSPrimitiveValue members of {Shadow,BorderImage}ParseContext, which inherit from Shared, were being explicitly deleted, which is not a safe way to manage the lifetime of objects that inherit from Shared. To fix this, I put those members inside RefPtrs. These two changes allowed me to remove the destructors entirely. Reviewed by Darin. All regression tests pass. * css/cssparser.cpp: (WebCore::ShadowParseContext::commitValue): Use .release() to avoid ref-count churn. (WebCore::ShadowParseContext::commitLength): Use a RefPtr for the new value to avoid a leak. (WebCore::CSSParser::parseShadow): Use 'false' instead of 'context.failed()', and use .release() to avoid ref-count churn. (WebCore::BorderImageParseContext::commitWidth): Updated to use OwnPtr. (WebCore::CSSParser::parseBorderImage): Use 'false' instead of 'context.failed'. 2007-07-01 Anders Carlsson Reviewed by John Sullivan. Crash in Mail at WebCore::Frame::setUserStyleSheetLocation (reproducible w/ particular message) * loader/Cache.cpp: (WebCore::Cache::requestResource): Only insert the resource in the LRU list if the cache is enabled. (WebCore::Cache::insertInLRUList): (WebCore::Cache::resourceAccessed): Assert that the resource is in the cache. 2007-07-01 Darin Adler * css/tokenizer.flex: Rolled out the fix for 14453. The layout test wasn't passing. We'll try again. 2007-07-01 Adam Roben Fix a crash in ~PluginViewWin() This crash was introduced in r23827. Reviewed by Anders. Fixes dom/html/level2/html/HTMLAnchorElement01.html * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::~PluginViewWin): Allow m_plugin to be null. 2007-07-01 Rob Buis Reviewed by Darin. http://bugs.webkit.org/show_bug.cgi?id=14453 REGRESSION: www.nzherald.co.nz almost all the formating is gone * css/tokenizer.flex: Allow hex colors with 2, 4, or 5 hex digits. 2007-07-01 Sam Weinig Reviewed by Oliver. Third round of implicit 64-32 bit conversion errors fixes. - Use new CSSPrimitiveValue::getDoubleValue() and CSSPrimitiveValue::getIntValue() methods instead of CSSPrimitiveValue::getFloatValue() where appropriate. * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeLengthInt): (WebCore::CSSPrimitiveValue::computeLengthIntForLength): (WebCore::CSSPrimitiveValue::computeLengthShort): (WebCore::CSSPrimitiveValue::computeLengthFloat): (WebCore::CSSPrimitiveValue::computeLengthDouble): (WebCore::CSSPrimitiveValue::getDoubleValue): * css/CSSPrimitiveValue.h: (WebCore::CSSPrimitiveValue::getDoubleValue): (WebCore::CSSPrimitiveValue::getFloatValue): (WebCore::CSSPrimitiveValue::getIntValue): * css/Counter.h: (WebCore::Counter::listStyleNumber): * css/MediaQueryEvaluator.cpp: (WebCore::parseAspectRatio): * css/cssparser.cpp: (WebCore::BorderImageParseContext::commitBorderImage): * css/cssstyleselector.cpp: (WebCore::convertToLength): (WebCore::applyCounterList): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundSize): (WebCore::CSSStyleSelector::mapBackgroundXPosition): (WebCore::CSSStyleSelector::mapBackgroundYPosition): * html/HTMLTableElement.cpp: (WebCore::HTMLTableElement::parseMappedAttribute): * ksvg2/css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty): * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::KSVGPainterFactory::cssPrimitiveToLength): (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle): 2007-07-01 Pamela Greene Reviewed by Darin. Fix for Bug 14320: gradient stops at identical offsets are applied in the wrong order Use std::stable_sort() instead of qsort() to sort gradient stops. Adjust the comparison function accordingly. * html/CanvasGradient.cpp: (WebCore::compareStops): (WebCore::CanvasGradient::findStop): 2007-07-01 Holger Hans Peter Freyther Reviewed by Darin. m_usesPageCache was not initialized. As the b/f cache is only implemented in the Mac port and WebView.mm is taking care of calling Settings::setUsesPageCache I decided to make it false by default. * page/Settings.cpp: (WebCore::Settings::Settings): m_usesPageCache was not initialized 2007-07-01 Holger Hans Peter Freyther Reviewed by Darin. Inherited- and NonInheritedFlags is a bit field. But for comparsion the other part of the union _iflags/_niflags is used for comparions. This will compare 5 uninitialized bits of _iflags and 22 of _niflags. Make sure the unused bits have a specified value. * ksvg2/css/SVGRenderStyle.h: (WebCore::SVGRenderStyle::setBitDefaults): Make sure the unused bits have a value as well. 2007-06-30 Adam Roben Compile WebCore with /W4 on Windows Some more warnings were disabled globally, including assignment within a conditional, unused variable, and various warnings related to inability to instantiate opaque structs. In addition, the "unreachable code" warning was turned off for CSSGrammar.cpp and XPathGrammar.cpp. Reviewed by Oliver. * WebCore.vcproj/WebCore.vcproj: 2007-06-29 Adam Roben Give CString an equality operator to fix a bug in HTMLFormElement::formData The bug was spotted by MSVC /W4. The problem was that we were comparing a CString to a char* using ==, but CString had no equality operator. The result was that the CString was being cast to a const char* and a pointer comparison was being done, which would (essentially) always return false. There are two parts to the fix: get rid of CString's const char* casting operator, and add an equality operator. Previous uses of the casting operator have been changed to use CString::data(). Test: http/misc/isindex-formdata.html Reviewed by Oliver. * dom/XMLTokenizer.cpp: (WebCore::parseXMLDocumentFragment): * html/HTMLDocument.cpp: (WebCore::HTMLDocument::determineParseMode): * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): * loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForCSSCharset): * platform/CString.cpp: (WebCore::operator==): * platform/CString.h: * platform/KURL.cpp: (WebCore::encodeRelativeString): * platform/StringImpl.cpp: (WebCore::StringImpl::toDouble): * platform/network/cf/FormDataStreamCFNet.cpp: (WebCore::setHTTPBody): * platform/network/mac/FormDataStreamMac.mm: (WebCore::setHTTPBody): * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCF_HTML): * plugins/win/PluginPackageWin.cpp: (WebCore::splitString): * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): (WebCore::PluginStreamWin::destroyStream): (WebCore::PluginStreamWin::sendJavaScriptStream): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::start): (WebCore::createUTF8String): (WebCore::PluginViewWin::userAgent): * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::locateStylesheetSubResource): * xml/XSLTProcessor.cpp: (WebCore::xsltParamArrayFromParameterMap): 2007-06-29 Adam Roben Initialize two variables that MSVC /W4 isn't smart enough to realize always get initialized Reviewed by John. * editing/Editor.cpp: (WebCore::Editor::advanceToNextMisspelling): * html/HTMLParser.cpp: 2007-06-29 Adam Roben Fix some possibly unitialized variables found by MSVC /W4 Reviewed by John. * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): 2007-06-29 Adam Roben Remove bogus cast found by MSVC /W4 Reviewed by John and Oliver. * ksvg2/css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): 2007-06-29 Adam Roben Remove unused local functions uncovered by MSVC /W4 Reviewed by John and Oliver. * platform/win/SearchPopupMenuWin.cpp: * rendering/RenderText.cpp: 2007-06-29 Adam Roben Don't take the address of temporary values to appease MSVC /W4 Reviewed by Oliver. No regression test possible. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::invalidateItem): (WebCore::PopupMenu::valueChanged): (WebCore::PopupWndProc): * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore): * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::shapeAndPlaceItem): * platform/win/WidgetWin.cpp: (WebCore::Widget::invalidateRect): 2007-06-29 Adam Roben Make an int -> UINT conversion explicit that MSVC /W4 complains about Reviewed by John and Oliver. No regression test possible. * platform/win/SoundWin.cpp: 2007-06-29 Adam Roben Remove unreachable code uncovered by MSVC /W4 Reviewed by Oliver. No regression test possible. * html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::createPattern): * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isLiveLink): * html/HTMLElement.cpp: (WebCore::HTMLElement::contentEditable): * platform/DeprecatedString.cpp: (WebCore::allocateHandle): (WebCore::freeHandle): * plugins/win/npapi.cpp: (pluginViewForInstance): * rendering/RenderImage.cpp: (WebCore::RenderImage::isWidthSpecified): (WebCore::RenderImage::isHeightSpecified): * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isControlStyled): 2007-06-29 John Sullivan Reviewed by Oliver Hunt. - WebCore support for accessing the set of rectangles that encompass the selected text * page/Frame.h: * page/Frame.cpp: (WebCore::Frame::selectionTextRects): new function, fills in a passed Vector with the line box rects that represent the selected range * rendering/RenderText.cpp: (WebCore::RenderText::addLineBoxRects): fixed off-by-one bug involving use of the confusing function InlineTextBox::end() * WebCore.exp: exported symbol for this new function 2007-06-29 Justin Garcia Reviewed by Harrison. REGRESSION: In Mail, a crash occurs when attempting to undo a newly created To Do Rolled out a change made in r23787. * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::handleGeneralDelete): 2007-06-29 Geoffrey Garen Reviewed by Darin Adler, Anders Carlsson. Fixed REGRESSION: XMLHttpRequest.responseXML returns NULL if response MIME type is not XML -- breaks Wikipedia widget The spec says that responseXML must return null for any HTTP response with a non-XML MIME type. Technically, that leaves non-HTTP responses free to do whatever they want. * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::getResponseXML): Only return null for non-XML MIME types if the response was HTTP. 2007-06-29 Sam Weinig Reviewed by Darin. Second pass at fixing implicit 64-32 bit conversion errors. - Use new JSValue::toFloat() method instead of toNumber() where appropriate. * bindings/js/JSCanvasRenderingContext2DCustom.cpp: (WebCore::JSCanvasRenderingContext2D::setFillColor): (WebCore::JSCanvasRenderingContext2D::setStrokeColor): (WebCore::JSCanvasRenderingContext2D::strokeRect): (WebCore::JSCanvasRenderingContext2D::drawImage): (WebCore::JSCanvasRenderingContext2D::drawImageFromRect): (WebCore::JSCanvasRenderingContext2D::setShadow): * bindings/js/JSHTMLSelectElementCustom.cpp: (WebCore::JSHTMLSelectElement::remove): * bindings/js/JSSVGMatrixCustom.cpp: (WebCore::JSSVGMatrix::rotateFromVector): * bindings/js/kjs_events.cpp: (KJS::JSClipboardPrototypeFunction::callAsFunction): * bindings/scripts/CodeGeneratorJS.pm: * ksvg2/svg/SVGScriptElement.cpp: (WebCore::SVGScriptElement::executeScript): 2007-06-29 Adele Peterson Rolling out fix for since it broke layout tests. * html/HTMLInputElement.h: * html/HTMLTextAreaElement.h: 2007-06-29 Geoffrey Garen Reviewed by Oliver Hunt. Fixed REGRESSION: Synchronous XHR for missing local file throws exception -- breaks Wikipedia widget * WebCore.xcodeproj/project.pbxproj: * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::send): Don't throw exceptions for local files. 2007-06-29 Ada Chan Reviewed by Adam. Fixed a previous fix to a signed/unsigned mismatch. * plugins/win/PluginPackageWin.cpp: (WebCore::splitString): 2007-06-29 Adele Peterson Reviewed by Ada and Kevin McCullough. Fix for REGRESSION: Select All selects the whole page when used in readonly textareas Implemented canSelectAll and selectAll for text fields and textareas, since they're special cases even when they're not editable. Tests: fast/forms/input-readonly-select-all.html fast/forms/textarea-readonly-select-all.html * html/HTMLInputElement.h: (WebCore::HTMLInputElement::canSelectAll): (WebCore::HTMLInputElement::selectAll): * html/HTMLTextAreaElement.h: (WebCore::HTMLTextAreaElement::canSelectAll): (WebCore::HTMLTextAreaElement::selectAll): 2007-06-29 Adam Roben Build fix This is what happens when you test your patch on two OSs and then commit from the wrong one. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::valueChanged): (WebCore::RenderTextControl::itemText): (WebCore::RenderTextControl::itemIsSeparator): 2007-06-29 Adam Roben Start compiling WebCore with /W3 under MSVC One warning was globally disabled: implicit conversion of int to bool. Reviewed by Darin. * WebCore.vcproj/WebCore.vcproj: 2007-06-29 Adam Roben Turn DeprecatedStringData's copy constructor into a static method to appease MSVC /W3 DeprecatedStringData now has no public copy constructor. The single call to the old one has been replaced with a call to the new DeprecatedStringData::createAndAdopt static method. Reviewed by Darin. All regression tests pass. * platform/DeprecatedString.cpp: (WebCore::DeprecatedStringData::createAndAdopt): (WebCore::DeprecatedStringData::adopt): (WebCore::DeprecatedString::detachIfInternal): * platform/DeprecatedString.h: 2007-06-29 Adam Roben Fix more signed/unsigned mismatches uncovered by MSVC /W3 Reviewed by John. No regression tests possible. * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::filenameHasSaneExtension): * platform/win/FontDataWin.cpp: (WebCore::FontData::containsCharacters): * platform/win/PlatformScrollBarSafari.cpp: (WebCore::): * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::advance): (WebCore::UniscribeController::shapeAndPlaceItem): * platform/win/WebCoreTextRenderer.cpp: (WebCore::doDrawTextAtPoint): * plugins/win/PluginDatabaseWin.cpp: (WebCore::parseVersionString): * plugins/win/PluginPackageWin.cpp: (WebCore::splitString): * plugins/win/PluginViewWin.cpp: (WebCore::freeStringArray): (WebCore::PluginViewWin::invalidateTimerFired): 2007-06-29 Adam Roben Change PopupMenuClient::listSize to return an int to appease warnings from MSVC /W3 Reviewed by John. No regression test possible. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::menuListDefaultEventHandler): * platform/PopupMenuClient.h: * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::calculatePositionAndSize): (WebCore::PopupMenu::focusFirst): (WebCore::PopupMenu::focusLast): (WebCore::PopupMenu::down): (WebCore::PopupMenu::up): (WebCore::PopupMenu::paint): * rendering/RenderMenuList.cpp: * rendering/RenderMenuList.h: * rendering/RenderTextControl.cpp: * rendering/RenderTextControl.h: 2007-06-29 Adam Roben Fix two typos spotted by MSVC /W3 Both typos were a semicolon following the condition of an if. This would cause the intended body of the if to always execute. Unfortunately neither of these fixes are testable. BackForwardList::goForward is only called from WebBackForwardList, and the createDragImageFromImage bug would only manifest itself when CreateCompatibleDC failed. Reviewed by Mark. * history/BackForwardList.cpp: (WebCore::BackForwardList::goForward): * platform/win/DragImageWin.cpp: (WebCore::createDragImageFromImage): 2007-06-29 Adam Treat Reviewed by george Staikos. Support horizontal and vertical scroll, and set the right units. * platform/qt/WheelEventQt.cpp: (WebCore::PlatformWheelEvent::PlatformWheelEvent): 2007-06-28 Adam Roben Get WebCore compiling with /W2 on Windows Reviewed by Steve. No regression tests affected. * WebCore.vcproj/WebCore.vcproj: Turn the warning level up to 2, and disable two warnings: implicit int <=> float conversion, and class vs. struct inconsistency. * dom/CharacterData.cpp: (WebCore::CharacterData::deleteData): Cast to int before negating. * loader/Cache.cpp: (WebCore::Cache::remove): Ditto. * platform/graphics/Path.cpp: (WebCore::pathLengthApplierFunction): Consistently use floats. * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawEllipse): Ditto. * platform/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): Ditto. 2007-06-28 Geoffrey Garen Reviewed by Maciej Stachowiak. Fixed DOM timers fire without a local autorelease pool => pathologically high high water mark I couldn't measure any performance problems with iBench HTML or PLT. * WebCore.xcodeproj/project.pbxproj: Changed .cpp file to be ObjC++. * platform/mac/SharedTimerMac.cpp: (WebCore::timerFired): Added autorelease pool. 2007-06-28 Mitz Pettel Reviewed by Beth. - fix http://bugs.webkit.org/show_bug.cgi?id=14118 ASSERTION FAILED: !needsLayout() seen again Test: fast/dynamic/recursive-layout.html * page/FrameView.cpp: (WebCore::FrameView::layout): Removed the midLayout guards around the calls to invalidateSelection() and updateWidgetPositions(). Those calls may dirty the layout, but in that case they also update it, so they should be allowed to do it. Added an ASSERT to make sure that when they return, the root is not marked for layout. 2007-06-28 Sam Weinig Rubberstamped by Adam Roben. Roll out r23861. It caused the buildbot to fail on intel. * page/Page.cpp: (WebCore::Page::goToItem): 2007-06-26 Maxime Britto Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=13038 ASSERTION FAILED: item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame Modification of an ASSERT on goToItem related to go back/forward in history.Don't need to check the frameset if the target is _blank. * page/Page.cpp: (WebCore::Page::goToItem): 2007-06-28 Anders Carlsson Reviewed by Oliver. with PNG src rendered as image document. Complete the URL before passing it to the frame loader client. * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::isImageType): 2007-06-28 Rob Buis Reviewed by Maciej. http://bugs.webkit.org/show_bug.cgi?id=14373 CSS1: selectors (classes and IDs) cannot start with a dash or with a digit Make sure the id selector validates against the CSS2.1 identfier definition, not the hexcolor/HASH definition. * css/CSSGrammar.y: * css/cssparser.cpp: (WebCore::CSSParser::lex): (WebCore::CSSParser::text): * css/tokenizer.flex: 2007-06-28 Simon Hausmann Reviewed by Zack. Implemented PasteboardQt::writeSelection to copy the selected text into the Clipboard as well as PasteboardQt::plainText to retrieve plain text from the clipboard for pasting for example into form fields. * platform/qt/PasteboardQt.cpp: (WebCore::Pasteboard::writeSelection): 2007-06-28 Antti Koivisto Reviewed by Mitz. Fix http://bugs.webkit.org/show_bug.cgi?id=14332 Bug 14332: REGRESSION (r21145): 's borders are ignored when it has children Covered by existing tests. * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::collapsedLeftBorder): (WebCore::RenderTableCell::collapsedRightBorder): (WebCore::RenderTableCell::collapsedTopBorder): (WebCore::RenderTableCell::collapsedBottomBorder): 2007-06-26 Mitz Pettel Reviewed by Oliver. - fix http://bugs.webkit.org/show_bug.cgi?id=14329 REGRESSION: TEXTAREA - cannot drag-and-drop text at en.wikipedia.org/ Test: fast/repaint/text-selection-rect-in-overflow-2.html * rendering/RenderObject.cpp: (WebCore::RenderObject::computeAbsoluteRepaintRect): Added code to account for overflow scroll and columns. * rendering/RenderText.cpp: (WebCore::RenderText::selectionRect): Adjust for columns only in the non-clipped case, since RenderObject::absolutePosition() does not. 2007-06-26 Mitz Pettel Reviewed by Sam. - http://bugs.webkit.org/show_bug.cgi?id=14415 Remove the unused method RenderObject::setTable() * rendering/RenderObject.h: 2007-06-26 MorganL Reviewed by Maciej. Implement http://bugs.webkit.org/show_bug.cgi?id=14225 Bug 14225: Make it possible to define platform-specific ResourceRequest without #ifdefs This change moves the bulk of ResourceRequest into a base class named ResourceRequestBase with all platform-specific bits pushed into ResourceRequest. This allows ports to easily add new members to a ResourceRequest without having to #ifdef the code that is shared between ports. * WebCore.exp: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * platform/network/ResourceRequest.cpp: Removed. * platform/network/ResourceRequest.h: Removed. * platform/network/ResourceRequestBase.cpp: Added. (WebCore::ResourceRequestBase::asResourceRequest): (WebCore::ResourceRequestBase::isEmpty): (WebCore::ResourceRequestBase::isNull): (WebCore::ResourceRequestBase::url): (WebCore::ResourceRequestBase::setURL): (WebCore::ResourceRequestBase::cachePolicy): (WebCore::ResourceRequestBase::setCachePolicy): (WebCore::ResourceRequestBase::timeoutInterval): (WebCore::ResourceRequestBase::setTimeoutInterval): (WebCore::ResourceRequestBase::mainDocumentURL): (WebCore::ResourceRequestBase::setMainDocumentURL): (WebCore::ResourceRequestBase::httpMethod): (WebCore::ResourceRequestBase::setHTTPMethod): (WebCore::ResourceRequestBase::httpHeaderFields): (WebCore::ResourceRequestBase::httpHeaderField): (WebCore::ResourceRequestBase::setHTTPHeaderField): (WebCore::ResourceRequestBase::httpBody): (WebCore::ResourceRequestBase::setHTTPBody): (WebCore::ResourceRequestBase::allowHTTPCookies): (WebCore::ResourceRequestBase::setAllowHTTPCookies): (WebCore::ResourceRequestBase::addHTTPHeaderField): (WebCore::ResourceRequestBase::addHTTPHeaderFields): (WebCore::operator==): (WebCore::ResourceRequestBase::isConditional): (WebCore::ResourceRequestBase::updatePlatformRequest): (WebCore::ResourceRequestBase::updateResourceRequest): * platform/network/ResourceRequestBase.h: Added. (WebCore::): (WebCore::ResourceRequestBase::httpContentType): (WebCore::ResourceRequestBase::setHTTPContentType): (WebCore::ResourceRequestBase::httpReferrer): (WebCore::ResourceRequestBase::setHTTPReferrer): (WebCore::ResourceRequestBase::clearHTTPReferrer): (WebCore::ResourceRequestBase::httpUserAgent): (WebCore::ResourceRequestBase::setHTTPUserAgent): (WebCore::ResourceRequestBase::httpAccept): (WebCore::ResourceRequestBase::setHTTPAccept): (WebCore::ResourceRequestBase::ResourceRequestBase): (WebCore::operator!=): * platform/network/cf/ResourceRequest.h: Added. (WebCore::ResourceRequest::ResourceRequest): * platform/network/curl/ResourceRequest.h: Added. (WebCore::ResourceRequest::ResourceRequest): (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest): * platform/network/mac/ResourceRequest.h: Added. (WebCore::ResourceRequest::ResourceRequest): * platform/network/qt/ResourceRequest.h: Added. (WebCore::ResourceRequest::ResourceRequest): (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest): 2007-06-26 Adam Roben Add ChangeLog entries from the Windows merge. Reviewed by Maciej. * ChangeLog: 2007-06-26 Sam Weinig Reviewed by Maciej. Make sure not to enumerate the toString() function. * bindings/js/kjs_window.cpp: * bindings/scripts/CodeGeneratorJS.pm: Add support for [DontEnum]. * html/HTMLAnchorElement.idl: 2007-06-26 Alp Toker Reviewed by Mitz, landed by Anders. http://bugs.webkit.org/show_bug.cgi?id=14421 Implement GraphicsContext::clearRect() * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::clearRect): 2007-06-26 Alp Toker Reviewed and landed by Anders. http://bugs.webkit.org/show_bug.cgi?id=14416 Content does not render fully in some cases Fix mismatched calls to cairo_save/restore due to an early method return. * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawLine): 2007-06-26 Tristan O'Tierney Reviewed by John Sullivan. Added two accessor functions for * bindings/objc/DOMHTML.mm: (-[DOMHTMLInputElement _isEdited]): (-[DOMHTMLTextAreaElement _isEdited]): Added an accessor to the isEdited value of a DOM node's render object * bindings/objc/DOMPrivate.h: Added header definitions for _isEdited 2007-06-26 Sam Weinig Fix Win32 build. * WebCore.vcproj/WebCore.vcproj: 2007-06-26 Sam Weinig Fix Qt and Gdk builds. * WebCore.pro: 2007-06-26 Sam Weinig Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=14111 Autogenerate Event JS binding - Moves the dataTransfer method into MouseEvent where it should be. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSEventCustom.cpp: Added. (WebCore::JSEvent::clipboardData): (WebCore::toJS): * bindings/js/JSEventTargetNode.cpp: * bindings/js/JSXMLHttpRequest.cpp: * bindings/js/kjs_events.cpp: * bindings/js/kjs_events.h: * bindings/objc/DOMUtility.mm: (KJS::createDOMWrapper): * bindings/scripts/CodeGeneratorJS.pm: * dom/Event.h: (WebCore::Event::returnValue): (WebCore::Event::setReturnValue): (WebCore::Event::clipboardData): * dom/Event.idl: * dom/MouseEvent.h: (WebCore::MouseEvent::dataTransfer): * dom/MouseEvent.idl: 2007-06-26 Timothy Hatcher Reviewed by Mark Rowe. Follow up fix for: Bug 14385: Web Inspector's computed style doesn't show implicitly set properties http://bugs.webkit.org/show_bug.cgi?id=14385 Correctly remember the "Show implicit properties" setting as you switch nodes. * page/inspector/ResourcePanel.js: 2007-06-26 Justin Garcia Reviewed by John. Crash at RenderTextControl::calcHeight() after deleting text in a search field Editing removed a node that was part of a search field's internal structure that should not be removed. * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the selection to delete ends at [container, x], where x is the number of children in container, don't remove container. Special case code elsewhere in this function will remove it if necessary. 2007-06-25 Sam Weinig Reviewed by Maciej. Patch for http://bugs.webkit.org/show_bug.cgi?id=11315 Mutating document.constructor.prototype mutates Object.prototype Test: fast/js/constructor.html * bindings/scripts/CodeGeneratorJS.pm: add constructor attribute to classes with constructors. It is an non-enumeratable, non-deletable, readonly attribute. 2007-06-26 George Staikos Repair the OS X build. * WebCore.exp: 2007-06-26 Adam Treat Reviewed by Adam Roben. Make the SQLite icon database optional. * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::isOpen): (WebCore::IconDatabase::isPrivateBrowsingEnabled): (WebCore::IconDatabase::enabled): * loader/icon/IconDatabase.h: 2007-06-25 Sam Weinig Reviewed by Adam Roben. Patch for http://bugs.webkit.org/show_bug.cgi?id=14369 HTML syntax highlighting colors and DOM tree colors should be the same * css/view-source.css: * page/inspector/ResourcePanel.js: * page/inspector/inspector.css: * page/inspector/inspector.js: * page/inspector/utilities.js: 2007-06-25 Adam Roben Fix Bug 14402: Main resource of http://www.apple.com/safari/ is called "www.apple.com" instead of "safari" http://bugs.webkit.org/show_bug.cgi?id=14402 The solution was to make KURL::lastPathComponent ignore trailing slashes, which is what -[NSURL lastPathComponent] does, too. Reviewed by Oliver. * platform/KURL.cpp: (WebCore::KURL::lastPathComponent): 2007-06-25 Sam Weinig Reviewed by Adam Roben. Patch for http://bugs.webkit.org/show_bug.cgi?id=14257 Web Inspector lists favicon.ico as "other" instead of "image" * page/InspectorController.cpp: (WebCore::InspectorResource::type): 2007-06-25 Adele Peterson Reviewed by Hyatt. Fix for Scrollbar and resize corner for overflow area is not hidden with style "visibility: hidden;" http://bugs.webkit.org/show_bug.cgi?id=14297 Test: fast/overflow/hidden-scrollbar-resize.html * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer): Updated our shouldPaint check to consider visibility. 2007-06-25 Oliver Hunt Reviewed by Darin. REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info Fixing logic error in DragController * manual-tests/drop-text-acquires-style.html: Added. * page/DragController.cpp: (WebCore::documentFragmentFromDragData): 2007-06-25 Sam Weinig Reviewed by Adam Roben. Annotate prototypes by adding "Prototype" subtitle. * page/inspector/ResourcePanel.js: 2007-06-25 George Staikos Reviewed by Zack. Start to add proxy and SSL support to WebKitQt. Proxying works. * platform/network/ResourceHandleInternal.h: (WebCore::ResourceHandleInternal::ResourceHandleInternal): * platform/network/qt/ResourceHandleQt.cpp: (WebCore::ResourceHandle::start): 2007-06-25 Alp Toker Reviewed by Adam Roben. http://bugs.webkit.org/show_bug.cgi?id=14386 Gdk build fix * WebCore.pro: Fix gtk/gdk typo. 2007-06-25 Timothy Hatcher Reviewed by Anders. Bug 14385: Web Inspector's computed style doesn't show implicitly set properties http://bugs.webkit.org/show_bug.cgi?id=14385 Add a toggle to show implict computed properties. * page/inspector/ResourcePanel.js: * page/inspector/inspector.css: * page/inspector/inspector.js: 2007-06-25 Alp Toker Reviewed by Mark. http://bugs.webkit.org/show_bug.cgi?id=13975 Use system-provided libjpeg and libpng * WebCore.pro: Remove bundled libjpeg and libpng sources. * platform/image-decoders/jpeg: Remove sources. * platform/image-decoders/png: Remove sources. 2007-06-25 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=14202 Table caption renders too narrow sometimes Test: fast/table/caption-relayout.html * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): Mark the caption for layout if the table width changed. 2007-06-25 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=14245 Underline painted under
, not repainted properly Test: fast/inline/br-text-decoration.html * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawLineForText): Added an early return if the line width is zero. Also changed the line stroke to a rect fill, so that lines with length shorter than their thickness paint correctly. 2007-06-25 Mitz Pettel Reviewed by Maciej. - fix http://bugs.webkit.org/show_bug.cgi?id=14341 rules="none" ignored in certain cases Covered by existing tests. * html/HTMLTableElement.cpp: (WebCore::HTMLTableElement::getSharedCellDecl): 2007-06-24 Sam Weinig Reviewed by Mitz. Patch for http://bugs.webkit.org/show_bug.cgi?id=14379 Anchor elements show up as their href in the properties pane, not HTMLAnchorElement * page/inspector/ResourcePanel.js: make sure not to call an overriden toString() by using Object.prototype.toString.call(). 2007-06-24 Adam Roben Fix http://bugs.webkit.org/show_bug.cgi?id=14374 Bug 14374: Computed Style section should be expanded by default Reviewed by Sam. No regression test possible. * page/inspector/ResourcePanel.js: Expand all style sections. 2007-06-24 Adam Roben Unify the style of enums in the Inspector JS All our enums are now represented by an object with a property for each enum value. Reviewed by Sam. No regression test possible. * page/inspector/ConsolePanel.js: * page/inspector/Resource.js: * page/inspector/ResourcePanel.js: * page/inspector/inspector.js: 2007-06-23 Sam Weinig Reviewed by Mitz. Patch for http://bugs.webkit.org/show_bug.cgi?id=14321 getComputedStyle(...).zIndex returns string "normal" Test: fast/css/getComputedStyle-zIndex-auto.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 'auto' instead of 'normal'. 2007-06-24 Matt Lilek Reviewed by Tim Hatcher. Bug 14265: Cannot resize columns in webinspector http://bugs.webkit.org/show_bug.cgi?id=14265 * page/inspector/inspector.css: * page/inspector/inspector.html: * page/inspector/inspector.js: 2007-06-23 Adam Roben Silence a build warning about not finding `num-cpus` Reviewed by Mark Rowe. * WebCore.vcproj/build-generated-files.sh: Look for num-cpus in its new location. 2007-06-22 Anders Carlsson Reviewed by Darin. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::didFinishLoading): No need to fetch the size from resourceData. 2007-06-22 Anders Carlsson Reviewed by Darin. Crash playing a very large QuickTime movie inside Safari. Get rid of m_completeDeliveryData and use the loader's resource data instead. This reduces the memory usage for plug-ins which loads large files and use a transfer mode of NP_ASFILE or NP_ASFILEONLY. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::PluginStreamWin): (WebCore::PluginStreamWin::~PluginStreamWin): (WebCore::PluginStreamWin::didReceiveData): (WebCore::PluginStreamWin::didFinishLoading): * plugins/win/PluginStreamWin.h: 2007-06-22 Beth Dakin Reviewed by Oliver and Darin. Fix for Loading page from MangleMe fuzz tester crashes in RenderTableRow::addChild (giant ROWSPAN) We already have code that tries to prevent allocating too-large rowspans. The rowspan in this test, however, was small enough that we thought it was okay in that code, even though clearly it was still too large. I did a bunch of testing in Firefox, and it seems that they set a hard limit on the maximum rowspan right in the DOM -- 8k. So that is what this patch implements. * html/HTMLTableCellElement.cpp: (WebCore::HTMLTableCellElement::parseMappedAttribute): 2007-06-22 Justin Garcia Reviewed by Darin. Adding To Do via Note received in e-mail adds newlines on delete Deletion inserts a placeholder after it removes full paragraphs if one doesn't already exist. The code that looked for a pre-existing placeholder didn't work because of a bug in enclosingNodeOfType. * editing/htmlediting.cpp: (WebCore::enclosingNodeOfType): We start looking at node->parentNode(), but don't go above an editing root. 2007-06-22 Anders Carlsson Reviewed by Maciej and Geoff. WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari) Add a sendResourceLoadCallbacks argument to the ResourceLoader and only send resource load callbacks if it's true. Make it so that loading the user style sheet creates a resource loader with sendResourceLoadCallbacks set to false (done by adding a sendResourceLoadCallbacks argument to a bunch of classes). * loader/Cache.cpp: (WebCore::createResource): (WebCore::Cache::requestResource): * loader/Cache.h: * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): * loader/CachedCSSStyleSheet.h: * loader/CachedResource.cpp: (WebCore::CachedResource::CachedResource): * loader/CachedResource.h: (WebCore::CachedResource::sendResourceLoadCallbacks): * loader/DocLoader.cpp: (WebCore::DocLoader::requestCSSStyleSheet): (WebCore::DocLoader::requestResource): (WebCore::DocLoader::checkCacheObjectStatus): * loader/DocLoader.h: * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::MainResourceLoader): * loader/Request.cpp: (WebCore::Request::Request): * loader/Request.h: (WebCore::Request::sendResourceLoadCallbacks): * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::ResourceLoader): (WebCore::ResourceLoader::willSendRequest): (WebCore::ResourceLoader::didReceiveResponse): (WebCore::ResourceLoader::didReceiveData): (WebCore::ResourceLoader::didFinishLoadingOnePart): (WebCore::ResourceLoader::didFail): (WebCore::ResourceLoader::didCancel): * loader/ResourceLoader.h: (WebCore::ResourceLoader::sendResourceLoadCallbacks): * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::SubresourceLoader): (WebCore::SubresourceLoader::create): * loader/SubresourceLoader.h: * loader/loader.cpp: (WebCore::Loader::load): (WebCore::Loader::servePendingRequests): * loader/loader.h: * loader/mac/NetscapePlugInStreamLoaderMac.mm: (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader): 2007-06-21 Richard Connamacher Reviewed by Tim Hatcher. Bug 14305: Web Inspector marks local files with server-side compression tip http://bugs.webkit.org/show_bug.cgi?id=14305 * page/inspector/Resource.js: (WebInspector.Resource._shouldCompress): Prevent server-side compression tip from being given to local files 2007-06-21 Mark Rowe Reviewed by Darin. Fix for REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading * platform/StringImpl.cpp: (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string. This avoids returning a length of zero when the string is collapsed to empty by whitespace simplification. 2007-06-21 Dave Hyatt Fix for , large font sizes crash Windows. Limit the maximum font size to 1,000,000 to avoid crashes and issues with platforms that start failing to do anything useful if the font size is too big. Reviewed by olliej * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): 2007-06-21 Andrew Wellington Reviewed by Timothy. Stop shift+scroll wheel performing a horizontal scroll in Web Inspector * page/inspector/inspector.css: Set body margin to 0 2007-06-21 Adam Treat Reviewed by George Staikos. Implement the default resources on Qt. * platform/graphics/BitmapImage.h: * platform/graphics/Image.h: * platform/graphics/qt/ImageQt.cpp: (WebCore::Image::loadPlatformResource): (WebCore::BitmapImage::BitmapImage): (WebCore::BitmapImage::initPlatformData): (WebCore::BitmapImage::invalidatePlatformData): (WebCore::BitmapImage::getPixmap): * platform/qt/TemporaryLinkStubs.cpp: 2007-06-21 Oliver Hunt Reviewed by Darin. Use RetainPtr for holding currentEvent. This removes explicit HardRetain/Release calls and makes reference handling simpler in advance of IME refactoring. * WebCore.xcodeproj/project.pbxproj: * page/mac/EventHandlerMac.mm: (WebCore::currentEvent): (WebCore::EventHandler::currentNSEvent): (WebCore::EventHandler::wheelEvent): (WebCore::EventHandler::keyEvent): (WebCore::lastEventIsMouseUp): (WebCore::EventHandler::passMouseDownEventToWidget): (WebCore::EventHandler::eventLoopHandleMouseDragged): (WebCore::EventHandler::eventLoopHandleMouseUp): (WebCore::EventHandler::passSubframeEventToSubframe): (WebCore::EventHandler::passWheelEventToWidget): (WebCore::EventHandler::mouseDown): (WebCore::EventHandler::mouseDragged): (WebCore::EventHandler::mouseUp): (WebCore::EventHandler::mouseMoved): 2007-06-21 George Staikos Reviewed by George & Marius. Patch by me, revision by Marius, minor rev by me. Adds rendered and stylable scrollbars. * page/qt/EventHandlerQt.cpp: (WebCore::EventHandler::passMousePressEventToScrollbar): * platform/Widget.h: * platform/qt/PlatformScrollBar.h: (WebCore::PlatformScrollbar::isWidget): * platform/qt/PlatformScrollBarQt.cpp: (WebCore::PlatformScrollbar::PlatformScrollbar): (WebCore::PlatformScrollbar::~PlatformScrollbar): (WebCore::PlatformScrollbar::updateThumbPosition): (WebCore::PlatformScrollbar::updateThumbProportion): (WebCore::PlatformScrollbar::width): (WebCore::PlatformScrollbar::height): (WebCore::PlatformScrollbar::setRect): (WebCore::PlatformScrollbar::isEnabled): (WebCore::PlatformScrollbar::setEnabled): (WebCore::PlatformScrollbar::paint): (WebCore::PlatformScrollbar::thumbPosition): (WebCore::PlatformScrollbar::thumbLength): (WebCore::PlatformScrollbar::trackLength): (WebCore::PlatformScrollbar::handleMouseMoveEvent): (WebCore::PlatformScrollbar::handleMouseOutEvent): (WebCore::PlatformScrollbar::handleMousePressEvent): (WebCore::PlatformScrollbar::handleMouseReleaseEvent): (WebCore::PlatformScrollbar::startTimerIfNeeded): (WebCore::PlatformScrollbar::stopTimerIfNeeded): (WebCore::PlatformScrollbar::autoscrollPressedPart): (WebCore::PlatformScrollbar::autoscrollTimerFired): (WebCore::PlatformScrollbar::pressedPartScrollDirection): (WebCore::PlatformScrollbar::pressedPartScrollGranularity): (WebCore::PlatformScrollbar::thumbUnderMouse): (WebCore::PlatformScrollbar::horizontalScrollbarHeight): (WebCore::PlatformScrollbar::verticalScrollbarWidth): (WebCore::PlatformScrollbar::windowClipRect): * platform/qt/ScrollViewQt.cpp: (WebCore::ScrollView::addChild): (WebCore::ScrollView::removeChild): * platform/qt/WidgetQt.cpp: (WebCore::WidgetPrivate::WidgetPrivate): (WebCore::Widget::setQWidget): (WebCore::Widget::invalidate): (WebCore::Widget::invalidateRect): (WebCore::Widget::setParent): (WebCore::Widget::parent): 2007-06-21 Geoffrey Garen Reviewed by Dave Hyatt. Fixed | http://bugs.webkit.org/show_bug.cgi?id=12646 REGRESSION: RapidWeaver's "Hello" HTML page doesn't display any DHTML effects when clicking on its links (12646) I'm rolling our r7703 for these reasons: 1. It broke RapidWeaver. 2. WebKit is now orders of magnitude faster when handling deep nesting (5 seconds vs 3 minutes on my MBP in this particular case). 3. Firefox, IE, and HTML5 all allow nested heading tags. 4. Hyatt said so. * html/HTMLParser.cpp: (WebCore::HTMLParser::parseToken): 2007-06-21 Sam Weinig Reviewed by Tim Hatcher. http://bugs.webkit.org/show_bug.cgi?id=14260 ASSERTION FAILED: m_mainResource->loader == loader going back in history on any page Remove assert for now as it is causing the back button to not work in debug builds. * page/InspectorController.cpp: (WebCore::InspectorController::didCommitLoad): 2007-06-21 Lars Knoll Remove some debug output. * platform/qt/FontQt.cpp: (WebCore::generateComponents): (WebCore::Font::width): 2007-06-21 George Staikos Repair Qt/Mac OS X build. * WebCore.pro: 2007-06-21 Alexey Proskuryakov Reviewed by Anders. http://bugs.webkit.org/show_bug.cgi?id=13905 REGRESSION: A Chinese dictionary widget has a problem with XMLHttpRequest response encoding Tiger WebKit accidentally looked at HTML Http-Equiv META to determine the response encoding (regardless of the actual response MIME type). This was corrected a while ago to match other browsers and the draft XHR spec. Now restoring this functionality for "text/html", with spec editor's blessing. * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::responseMIMEType): (WebCore::XMLHttpRequest::responseIsXML): (WebCore::XMLHttpRequest::didReceiveData): * xml/xmlhttprequest.h: 2007-06-21 Andrew Wellington Mac build fix. * platform/Font.h: 2007-06-21 Lars Knoll Reviewed by Simon. another small fix for letter spacing * platform/qt/FontQt.cpp: (WebCore::generateComponents): 2007-06-21 Lars Knoll Reviewed by Simon. fix word-spacing * platform/qt/FontQt.cpp: (WebCore::generateComponents): (WebCore::Font::width): 2007-06-21 Lars Knoll Reviewed by Simon. fix letterspacing and small caps. * platform/Font.h: * platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::setPlatformFont): * platform/qt/FileChooserQt.cpp: * platform/qt/FontQt.cpp: (WebCore::TextRunComponent::TextRunComponent): (WebCore::Font::Font): (WebCore::Font::operator=): (WebCore::Font::update): (WebCore::generateComponents): (WebCore::Font::selectionRectForText): * platform/qt/RenderThemeQt.cpp: 2007-06-21 Lars Knoll Reviewed by Simon. store the metrics and space width in the Font object * platform/Font.h: * platform/qt/FontQt.cpp: (WebCore::Font::Font): (WebCore::Font::drawText): (WebCore::Font::width): (WebCore::Font::isFixedPitch): (WebCore::Font::ascent): (WebCore::Font::descent): (WebCore::Font::lineSpacing): 2007-06-21 Lars Knoll Reviewed by Simon. simplify some codepaths * platform/qt/FontQt.cpp: (WebCore::Font::drawText): (WebCore::Font::width): 2007-06-21 Lars Knoll Reviewed by Simon. fix copyright header * platform/qt/FontQt.cpp: 2007-06-21 Lars Knoll Reviewed by Simon. correctly load fonts when a list of font families is given * platform/qt/FontQt.cpp: (WebCore::Font::Font): 2007-06-21 Lars Knoll Reviewed by Simon. fix some more of the font support * platform/qt/FontQt.cpp: (WebCore::Font::drawText): (WebCore::Font::width): 2007-06-21 Lars Knoll Reviewed by Simon. Compile fixes * platform/Font.h: (WebCore::Font::isRoundingHackCharacter): * platform/qt/FontQt.cpp: (WebCore::Font::drawText): 2007-06-21 Lars Knoll Reviewed by Simon. Some more work on the implementation of FontQt. * platform/qt/FontQt.cpp: (WebCore::Font::Font): (WebCore::Font::~Font): (WebCore::Font::operator=): 2007-06-21 Lars Knoll Reviewed by Simon. Started work on the new font infrastructure for the Qt port. * WebCore.pro: * editing/Editor.cpp: (WebCore::Editor::fontForSelection): * platform/Font.h: (WebCore::Font::treatAsSpace): (WebCore::Font::treatAsZeroWidthSpace): (WebCore::Font::isRoundingHackCharacter): * platform/qt/FontQt.cpp: (WebCore::Font::operator QFont): * platform/qt/TemporaryLinkStubs.cpp: 2007-06-21 Adam Roben More Gdk build fixes. * page/gdk/ContextMenuClientGdk.cpp: (WebCore::ContextMenuClientGdk::shouldIncludeInspectElementItem): * page/gdk/ContextMenuClientGdk.h: * platform/gdk/TemporaryLinkStubs.cpp: 2007-06-21 Adam Roben Speculative Gdk build fix. * page/InspectorController.h: Only include the JS headers we really need to avoid pulling in ones like JSStringRefCF.h. 2007-06-20 Adam Roben Speculative Gdk build fix. * WebCore.pro: Don't try to build WebKitQt/Plugins on Gdk. 2007-06-20 Adam Roben Windows build fix. * WebCore.vcproj/WebCore.vcproj: Include ForwardingHeaders after everything but $WebKitLibrariesDir so that we will pick up JavaScriptCore headers directly. 2007-06-15 George Staikos Add missing symbol. * platform/qt/TemporaryLinkStubs.cpp: (WebCore::contextMenuItemTagInspectElement): 2007-06-20 Steve Falkenburg Reviewed by Maciej, Anders. Crash after dismissing JavaScript alert at end of test on http://lcamtuf.coredump.cx/ierace/ Keep a reference to the Page (via the main frame) for the load deferred pages. Reference is held via the frame since Page isn't refcounted. * page/Chrome.cpp: (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer): 2007-06-15 Adam Treat Reviewed by George Staikos. Add ICO support to the Qt build. * WebCore.pro: * platform/graphics/qt/ImageDecoderQt.cpp: (Q_IMPORT_PLUGIN): 2007-06-15 George Staikos Fixing Qt build. * ForwardingHeaders/JavaScriptCore/APICast.h: Added. * WebCore.pro: * page/InspectorController.h: 2007-06-20 Adam Roben More speculative Qt/Gdk build fixes. * WebCore.pro: Add new files. 2007-06-20 Adam Roben Speculative Qt/Gdk build fix. Added forwarding headers for JavaScriptCore. We may eventually move InspectorController off of the JSC API, but for now this is the quickest way to a working build. * ForwardingHeaders/JavaScriptCore/JSBase.h: Added. * ForwardingHeaders/JavaScriptCore/JSContextRef.h: Added. * ForwardingHeaders/JavaScriptCore/JSObjectRef.h: Added. * ForwardingHeaders/JavaScriptCore/JSStringRef.h: Added. * ForwardingHeaders/JavaScriptCore/JSStringRefCF.h: Added. * ForwardingHeaders/JavaScriptCore/JSValueRef.h: Added. * ForwardingHeaders/JavaScriptCore/JavaScriptCore.h: Added. 2007-06-20 Sam Weinig Rubber stamped by Adam Roben. Add licenses. * page/inspector/ConsolePanel.js: * page/inspector/NetworkPanel.js: * page/inspector/Resource.js: * page/inspector/ResourceCategory.js: * page/inspector/ResourcePanel.js: 2007-06-20 Mark Rowe Reviewed by Adam. * WebCore.exp: Export InspectorController::inspect so WebKit can see it. 2007-06-20 Geoffrey Garen Reviewed by Adele Peterson, Oliver Hunt, Anders Carlsson. Fixed Leopard9A446 : VitalSource Bookshelf 4.5: Crashes when you click on sign in (stringByEvaluatingJavaScriptFromString returning nil instead of "") I'm basically rolling out the change for because my testing shows that it was backwards. * html/HTMLElement.cpp: (dumpInnerHTML): New debug-only function to work around gdb being perpetually suck-tastic. * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Return "", not nil. This function never used to return nil, so let's not start now. I've filed to cover the documentation bug, 2007-06-20 Adam Roben Addressed some of Geoff's comments. * page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent): Added a FIXME. * platform/ContextMenu.cpp: (WebCore::ContextMenu::addInspectElementItem): Null-check frame->page(). 2007-06-20 Adam Roben Fix crash in fast/dom/dir-no-body.html Reviewed by Mark. * html/HTMLDocument.cpp: (WebCore::HTMLDocument::createTokenizer): Don't assume we have a Frame, since we won't if someone creates an HTMLDocument from JS. 2007-06-20 Adam Roben Land the new Inspector. Co-written with Tim Hatcher. Reviewed by Anders, Adele, Hyatt, and Sam. No regression tests possible. Add a new InspectorController that is in charge of the Inspector. It has an InspectorClient that controls the Inspector's window and node highlight. * page/InspectorClient.h: Added. (WebCore::InspectorClient::~InspectorClient): * page/InspectorController.cpp: Added. (WebCore::ConsoleMessage::ConsoleMessage): (WebCore::InspectorResource::): Represents a single resource that the Inspector knows about. (WebCore::InspectorResource::InspectorResource): (WebCore::InspectorResource::~InspectorResource): (WebCore::InspectorResource::type): (WebCore::InspectorResource::setScriptObject): (WebCore::addSourceToFrame): Callback available from JS. (WebCore::getResourceDocumentNode): Ditto. (WebCore::highlightDOMNode): Ditto. (WebCore::hideDOMNodeHighlight): Ditto. (WebCore::loaded): Ditto. (WebCore::unloading): Ditto. (WebCore::attach): Ditto. (WebCore::detach): Ditto. (WebCore::log): Ditto. (WebCore::search): Ditto. (WebCore::inspectedWindow): Ditto. (WebCore::InspectorController::InspectorController): (WebCore::InspectorController::~InspectorController): (WebCore::InspectorController::inspect): Called by ContextMenuController to inspect a node. (WebCore::InspectorController::focusNode): (WebCore::InspectorController::highlight): (WebCore::InspectorController::hideHighlight): (WebCore::InspectorController::windowVisible): (WebCore::InspectorController::setWindowVisible): (WebCore::InspectorController::addMessageToConsole): (WebCore::InspectorController::attachWindow): (WebCore::InspectorController::detachWindow): (WebCore::InspectorController::windowScriptObjectAvailable): (WebCore::InspectorController::scriptObjectReady): (WebCore::InspectorController::windowUnloading): (WebCore::addHeaders): Static helper function. (WebCore::objectForRequest): Ditto. (WebCore::objectForResponse): Ditto. (WebCore::InspectorController::addScriptResource): (WebCore::InspectorController::addAndUpdateScriptResource): (WebCore::InspectorController::removeScriptResource): (WebCore::InspectorController::updateScriptResource): (WebCore::InspectorController::populateScriptResources): (WebCore::InspectorController::addScriptConsoleMessage): (WebCore::callClearFunction): Static helper function. (WebCore::InspectorController::clearScriptResources): (WebCore::InspectorController::clearScriptConsoleMessages): (WebCore::InspectorController::clearNetworkTimeline): (WebCore::InspectorController::pruneResources): (WebCore::InspectorController::didCommitLoad): Callback from FrameLoader. (WebCore::InspectorController::frameDetachedFromParent): Ditto. (WebCore::InspectorController::addResource): Ditto. (WebCore::InspectorController::removeResource): Ditto. (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto. (WebCore::InspectorController::identifierForInitialRequest): Ditto. (WebCore::InspectorController::willSendRequest): Ditto. (WebCore::InspectorController::didReceiveResponse): Ditto. (WebCore::InspectorController::didReceiveContentLength): Ditto. (WebCore::InspectorController::didFinishLoading): Ditto. (WebCore::InspectorController::didFailLoading): Ditto. * page/InspectorController.h: Added. (WebCore::InspectorController::inspectedPage): (WebCore::InspectorController::scriptContext): (WebCore::InspectorController::setScriptContext): (WebCore::InspectorController::resources): (WebCore::InspectorController::removeAllResources): Add the JavaScript that defines most of the behavior of the Inspector. * page/inspector/ConsolePanel.js: Added. * page/inspector/NetworkPanel.js: Added. * page/inspector/Resource.js: Added. * page/inspector/ResourceCategory.js: Added. * page/inspector/ResourcePanel.js: Added. * page/inspector/inspector.js: Added. * page/inspector/treeoutline.js: Renamed from WebKit/WebInspector/webInspector/treeoutline.js. * page/inspector/utilities.js: Added. Add the Inspector's CSS and HTML. * page/inspector/inspector.css: Added. * page/inspector/inspector.html: Added. Hang the InspectorController off of Page. We only create an InspectorController if an InspectorClient is given to the Page. * page/Page.cpp: (WebCore::Page::Page): * page/Page.h: (WebCore::Page::inspectorController): Use FrameLoader to notify the InspectorController of resource loads. * loader/FrameLoader.cpp: (WebCore::FrameLoader::begin): (WebCore::FrameLoader::transitionToCommitted): (WebCore::FrameLoader::continueLoadAfterWillSubmitForm): (WebCore::FrameLoader::detachFromParent): (WebCore::FrameLoader::assignIdentifierToInitialRequest): (WebCore::FrameLoader::willSendRequest): (WebCore::FrameLoader::didReceiveResponse): (WebCore::FrameLoader::didReceiveData): (WebCore::FrameLoader::sendRemainingDelegateMessages): (WebCore::FrameLoader::requestFromDelegate): (WebCore::FrameLoader::didFinishLoad): (WebCore::FrameLoader::dispatchWindowObjectAvailable): (WebCore::FrameLoader::dispatchDidCommitLoad): (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest): (WebCore::FrameLoader::dispatchWillSendRequest): (WebCore::FrameLoader::dispatchDidReceiveResponse): (WebCore::FrameLoader::dispatchDidReceiveContentLength): (WebCore::FrameLoader::dispatchDidFinishLoading): (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache): * loader/FrameLoader.h: Send console messages to the InspectorController. * page/Chrome.cpp: (WebCore::Chrome::addMessageToConsole): Send all console messages to the InspectorController. * page/Chrome.h: Add a new MessageLevel and MessageSource that are used in the Inspector JS. Report HTML errors when the Inspector window is open. We don't report errors when the window is closed because we don't want to slow down the HTMLTokenizer. * html/HTMLDocument.cpp: (WebCore::HTMLDocument::createTokenizer): * html/HTMLParser.cpp: (WebCore::HTMLParser::HTMLParser): * html/HTMLParser.h: * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::HTMLTokenizer): * html/HTMLTokenizer.h: Append the "Inspect Element" context menu item after passing the context menu to the ContextMenuClient. This work used to be done in WebKit. * page/ContextMenuClient.h: * page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent): Add the "Inspect Element" item. (WebCore::ContextMenuController::contextMenuItemSelected): Handle the "Inspect Element" item. * platform/ContextMenu.cpp: (WebCore::ContextMenu::addInspectElementItem): (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for "Inspect Element" item. * platform/ContextMenu.h: * platform/ContextMenuItem.h: (WebCore::): Add ContextMenuItemTagInspectElement. * platform/graphics/svg/SVGImageEmptyClients.h: * page/mac/WebCoreViewFactory.h: Add the "Inspect Element" localized string. * platform/LocalizedStrings.h: Ditto. * platform/mac/LocalizedStringsMac.mm: (WebCore::contextMenuItemTagInspectElement): Ditto. Miscellaneous changes: * css/view-source.css: Add message bubble styles. * loader/DocumentLoader.h: Add a frame getter. * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::updateScrollbars): Respect Frame::prohibitsScrolling. Add new images needed for the Inspector. * page/inspector/Images/attachedShadow.png: Added. * page/inspector/Images/bottomShadow.png: Added. * page/inspector/Images/breadcrumbBackground.png: Added. * page/inspector/Images/checker.png: Added. * page/inspector/Images/console.png: Added. * page/inspector/Images/darkShadow.png: Added. * page/inspector/Images/disclosureDownPressed.png: Added. * page/inspector/Images/disclosureRightDown.png: Added. * page/inspector/Images/disclosureRightPressed.png: Added. * page/inspector/Images/document.png: Added. * page/inspector/Images/domViewButton.png: Added. * page/inspector/Images/domViewButtonSelected.png: Added. * page/inspector/Images/downTriangle.png: Added. * page/inspector/Images/errorIcon.png: Added. * page/inspector/Images/errorMediumIcon.png: Added. * page/inspector/Images/folder.png: Added. * page/inspector/Images/goArrow.png: Added. * page/inspector/Images/gradient.png: Added. * page/inspector/Images/gradientHighlight.png: Added. * page/inspector/Images/gradientHighlightBottom.png: Added. * page/inspector/Images/hideStatusWidget.png: Added. * page/inspector/Images/hideStatusWidgetPressed.png: Added. * page/inspector/Images/network.png: Added. * page/inspector/Images/paneBottomGrow.png: Added. * page/inspector/Images/paneBottomGrowActive.png: Added. * page/inspector/Images/paneGrowHandleLine.png: Added. * page/inspector/Images/paneHeader.png: Added. * page/inspector/Images/paneHeaderActive.png: Added. * page/inspector/Images/plainDocument.png: Added. * page/inspector/Images/popupArrows.png: Added. * page/inspector/Images/rightTriangle.png: Added. * page/inspector/Images/segment.png: Added. * page/inspector/Images/segmentEnd.png: Added. * page/inspector/Images/segmentHover.png: Added. * page/inspector/Images/segmentHoverEnd.png: Added. * page/inspector/Images/segmentSelected.png: Added. * page/inspector/Images/segmentSelectedEnd.png: Added. * page/inspector/Images/showStatusWidget.png: Added. * page/inspector/Images/showStatusWidgetPressed.png: Added. * page/inspector/Images/sidbarItemBackground.png: Added. * page/inspector/Images/sidebarActionWidget.png: Added. * page/inspector/Images/sidebarActionWidgetPressed.png: Added. * page/inspector/Images/sidebarAttachWidget.png: Added. * page/inspector/Images/sidebarAttachWidgetPressed.png: Added. * page/inspector/Images/sidebarDetachWidget.png: Added. * page/inspector/Images/sidebarDetachWidgetPressed.png: Added. * page/inspector/Images/sidebarResizeWidget.png: Added. * page/inspector/Images/sidebarSelection.png: Added. * page/inspector/Images/sidebarSelectionBlurred.png: Added. * page/inspector/Images/sidebarSelectionBlurredTall.png: Added. * page/inspector/Images/sidebarSelectionGray.png: Added. * page/inspector/Images/sidebarSelectionGrayTall.png: Added. * page/inspector/Images/sidebarSelectionTall.png: Added. * page/inspector/Images/sidebarStatusAreaBackground.png: Added. * page/inspector/Images/sourceViewButton.png: Added. * page/inspector/Images/sourceViewButtonSelected.png: Added. * page/inspector/Images/splitviewDimple.png: Added. * page/inspector/Images/splitviewDividerBackground.png: Added. * page/inspector/Images/tab.png: Added. * page/inspector/Images/tabSelected.png: Added. * page/inspector/Images/timelinePillBlue.png: Added. * page/inspector/Images/timelinePillGray.png: Added. * page/inspector/Images/timelinePillGreen.png: Added. * page/inspector/Images/timelinePillOrange.png: Added. * page/inspector/Images/timelinePillPurple.png: Added. * page/inspector/Images/timelinePillRed.png: Added. * page/inspector/Images/timelinePillYellow.png: Added. * page/inspector/Images/tipBalloon.png: Added. * page/inspector/Images/tipBalloonBottom.png: Added. * page/inspector/Images/tipIcon.png: Added. * page/inspector/Images/tipIconPressed.png: Added. * page/inspector/Images/toggleDown.png: Added. * page/inspector/Images/toggleUp.png: Added. * page/inspector/Images/toolbarBackground.png: Added. * page/inspector/Images/toolbarBackgroundInactive.png: Added. * page/inspector/Images/toolbarButton.png: Added. * page/inspector/Images/toolbarButtonInactive.png: Added. * page/inspector/Images/toolbarButtonPressed.png: Added. * page/inspector/Images/toolbarButtonPressedInactive.png: Added. * page/inspector/Images/toolbarSplitButtonDivider.png: Added. * page/inspector/Images/toolbarSplitButtonDividerInactive.png: Added. * page/inspector/Images/treeDownTriangleBlack.png: Added. * page/inspector/Images/treeDownTriangleWhite.png: Added. * page/inspector/Images/treeLeftTriangleBlack.png: Added. * page/inspector/Images/treeRightTriangleBlack.png: Added. * page/inspector/Images/treeRightTriangleWhite.png: Added. * page/inspector/Images/warningIcon.png: Added. * page/inspector/Images/warningMediumIcon.png: Added. * page/inspector/Images/warningsErrors.png: Added. Build-fu: * WebCore.exp: Added new symbols. * WebCore.xcodeproj/project.pbxproj: Added new source files and resources. * WebCore.vcproj/WebCore.vcproj: Ditto, and copy the resources to $WebKitOutputDir. Windows build fixes: * history/HistoryItem.h: ResourceRequest is a struct. * loader/FrameLoaderClient.h: Ditto. 2007-06-20 Mitz Pettel Reviewed by Beth. - fix http://bugs.webkit.org/show_bug.cgi?id=14056 REGRESSION (r21113-21143): TR background not repainted via style class change Test: fast/repaint/table-row.html * rendering/RenderTableRow.cpp: (WebCore::RenderTableRow::layout): Added a repaint to make up for the case where the table row also needs layout, so it doesn't get a repaint in setStyle(). 2007-06-20 Mitz Pettel Reviewed by Adele. - fix http://bugs.webkit.org/show_bug.cgi?id=14040 Top and bottom border images flipped when using -webkit-border-image when border end up tiled Test: fast/borders/border-image-01.html Correctly account for the fact that "pattern space" is flipped. * platform/graphics/Image.cpp: (WebCore::Image::drawTiled): * platform/graphics/cg/ImageCG.cpp: (WebCore::Image::drawPatternCallback): (WebCore::Image::drawPattern): 2007-06-20 Anders Carlsson Reviewed by Darin. REGRESSION: HTTP header injection in XMLHttpRequest.setRequestHeader Check for either '\r' or '\n' in the header value. * xml/xmlhttprequest.cpp: (WebCore::isValidHeaderValue): 2007-06-20 Patti Hoa Reviewed by Geoffrey Garen. VO should speak URL of image links that lack tags Add additional change from review * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityAttributeValue:]): Check if the element has imgTag before asking for its url 2007-06-20 Patti Hoa Reviewed by Tristan O'Tierney. VO should speak URL of image links that lack tags * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityAttributeNames]): (-[WebCoreAXObject accessibilityAttributeValue:]): Return the url of images. 2007-06-19 Anders Carlsson Reviewed by Kevin Decker. REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed Add a new m_deferMainResourceDataLoad that can be used to control whether a data load should be deferred using a timer or not. * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::DocumentLoader): * loader/DocumentLoader.h: (WebCore::DocumentLoader::deferMainResourceDataLoad): * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::handleDataLoadSoon): (WebCore::MainResourceLoader::loadNow): (WebCore::MainResourceLoader::setDefersLoading): 2007-06-19 Patti Hoa Reviewed by Justin Garcia. Incorrect AXLeftLineTextMarkerRangeForTextMarker/AXPreviousLineStartTextMarkerForTextMarker for non-editable text * editing/visible_units.cpp: (WebCore::startPositionForLine): (WebCore::startOfLine): (WebCore::endPositionForLine): (WebCore::endOfLine): Break down the line routines to allow another try to ask for start/end of line if the returned position is not valid. An example would be when lineStart/lineEnd at different line than the input position. This can happen if the input position is before the space character at the end of a soft-wrapped non-editable line, specifically a line without webkit-line-break:after-white-space style. 2007-06-19 Patti Hoa Reviewed by Justin Garcia. VO view bounds misplaced when reading text after a line wrap * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]): Improve the accuracy of the bounds for a given range 2007-06-19 Anders Carlsson Reviewed by Darin. XPath fails LayoutTests on Windows * xml/XPathPredicate.cpp: Include MathExtras.h here so we get a version of fmod that works around a bug in the Microsoft CRT. * xml/XPathValue.cpp: (WebCore::XPath::Value::toNumber): Instead of using NAN, which isn't really the NaN value on Windows, use numeric_limits. 2007-06-19 Geoffrey Garen Reviewed by Darin Adler. Fixed cross-frame access. . * bindings/js/kjs_window.cpp: (KJS::Window::getValueProperty): * bindings/scripts/CodeGeneratorJS.pm: * page/DOMWindow.idl: 2007-06-19 Anders Carlsson Build fix. * platform/win/PopupMenuWin.cpp: 2007-06-19 Lars Knoll Reviewed by Zack Implement these methods correctly. * platform/qt/PlatformScreenQt.cpp: (WebCore::screenRect): (WebCore::screenAvailableRect): 2007-06-19 Sam Weinig Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=14226 Move the History object out of the JS bindings - Autogenerate JSHistory. * DerivedSources.make: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_window.cpp: (KJS::WindowPrivate::WindowPrivate): (KJS::Window::mark): (KJS::Window::getValueProperty): (KJS::Window::clearHelperObjectProperties): (KJS::Window::disconnectFrame): * bindings/js/kjs_window.h: (KJS::Window::): * bridge/GlobalHistory.h: Copied from WebCore/bridge/History.h. * bridge/History.h: Removed. * bridge/mac/GlobalHistoryMac.mm: Copied from WebCore/bridge/mac/HistoryMac.mm. * bridge/mac/HistoryMac.mm: Removed. * bridge/win/GlobalHistoryWin.cpp: Copied from WebCore/bridge/win/HistoryWin.cpp. * bridge/win/HistoryWin.cpp: Removed. * css/cssstyleselector.cpp: * page/DOMWindow.cpp: (WebCore::DOMWindow::disconnectFrame): (WebCore::DOMWindow::history): * page/DOMWindow.h: * page/DOMWindow.idl: * page/History.cpp: Added. (WebCore::History::History): (WebCore::History::frame): (WebCore::History::disconnectFrame): (WebCore::History::length): (WebCore::History::back): (WebCore::History::forward): (WebCore::History::go): * page/History.h: Added. * page/History.idl: Added. * platform/gdk/TemporaryLinkStubs.cpp: * platform/qt/TemporaryLinkStubs.cpp: * platform/wx/TemporaryLinkStubs.cpp: 2007-06-18 Sam Weinig Qt build fix. * platform/qt/PlatformScreenQt.cpp: (WebCore::screenDepth): (WebCore::screenDepthPerComponent): (WebCore::screenIsMonochrome): (WebCore::screenRect): (WebCore::screenAvailableRect): 2007-06-18 Sam Weinig Reviewed by Beth. Fix build and update licenses. * WebCore.xcodeproj/project.pbxproj: * page/BarInfo.cpp: * page/BarInfo.h: * page/BarInfo.idl: * page/Screen.cpp: (WebCore::Screen::height): (WebCore::Screen::width): (WebCore::Screen::colorDepth): (WebCore::Screen::pixelDepth): (WebCore::Screen::availLeft): (WebCore::Screen::availTop): (WebCore::Screen::availHeight): (WebCore::Screen::availWidth): * page/Screen.h: * page/Screen.idl: 2007-06-18 Anders Carlsson Reviewed by John Sullivan. Assertion in [LocationChangeHandler finishedLoadingFrame:] Don't send any frame load callbacks if the document load hasn't been committed for real. * loader/FrameLoader.cpp: (WebCore::FrameLoader::checkLoadCompleteForThisFrame): 2007-06-18 Sam Weinig Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=14193 Move the Screen object out of the JS bindings - Renames Screen.h to PlatformScreen.h to accommodate new class. - Autogenerates JSScreen. * DerivedSources.make: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_window.cpp: (KJS::WindowPrivate::WindowPrivate): (KJS::Window::mark): (KJS::Window::getValueProperty): (KJS::Window::clearHelperObjectProperties): * bindings/js/kjs_window.h: (KJS::Window::): * css/MediaQueryEvaluator.cpp: * page/DOMWindow.cpp: (WebCore::DOMWindow::DOMWindow): (WebCore::DOMWindow::~DOMWindow): (WebCore::DOMWindow::frame): (WebCore::DOMWindow::disconnectFrame): (WebCore::DOMWindow::screen): * page/DOMWindow.h: * page/DOMWindow.idl: * page/Screen.cpp: Added. (WebCore::Screen::Screen): (WebCore::Screen::disconnectFrame): (WebCore::Screen::height): (WebCore::Screen::width): (WebCore::Screen::colorDepth): (WebCore::Screen::pixelDepth): (WebCore::Screen::availLeft): (WebCore::Screen::availTop): (WebCore::Screen::availHeight): (WebCore::Screen::availWidth): * page/Screen.h: Added. * page/Screen.idl: Added. * page/mac/WebCoreFrameBridge.mm: * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h. * platform/Screen.h: Removed. * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp. * platform/gdk/ScreenGdk.cpp: Removed. * platform/mac/PlatformMouseEventMac.mm: * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm. * platform/mac/ScreenMac.mm: Removed. * platform/qt/PlatformScreenQt.cpp: Added. (WebCore::WebCore::screenDepth): (WebCore::WebCore::screenDepthPerComponent): (WebCore::WebCore::screenIsMonochrome): (WebCore::WebCore::screenRect): (WebCore::WebCore::screenAvailableRect): * platform/qt/TemporaryLinkStubs.cpp: * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp. * platform/win/ScreenWin.cpp: Removed. * rendering/RenderObject.cpp: 2007-06-18 Sam Weinig Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=14211 Move the BarInfo object out of the JS bindings * DerivedSources.make: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_window.cpp: (KJS::WindowPrivate::WindowPrivate): (KJS::Window::mark): (KJS::Window::getValueProperty): (KJS::Window::clearHelperObjectProperties): (KJS::Window::disconnectFrame): * bindings/js/kjs_window.h: (KJS::Window::): * page/BarInfo.cpp: Added. (WebCore::BarInfo::BarInfo): (WebCore::BarInfo::disconnectFrame): (WebCore::BarInfo::visible): * page/BarInfo.h: Added. (WebCore::BarInfo::): * page/BarInfo.idl: Added. * page/DOMWindow.cpp: (WebCore::DOMWindow::~DOMWindow): (WebCore::DOMWindow::disconnectFrame): (WebCore::DOMWindow::locationbar): (WebCore::DOMWindow::menubar): (WebCore::DOMWindow::personalbar): (WebCore::DOMWindow::scrollbars): (WebCore::DOMWindow::statusbar): (WebCore::DOMWindow::toolbar): * page/DOMWindow.h: * page/DOMWindow.idl: 2007-06-18 Sam Weinig Reviewed by Darin. Remove the FrameArray class and instead make window.frames another self-reference for window (like window.window, window.self, etc). This is what Firefox and what the HTML5 dictates. * bindings/js/kjs_window.cpp: (KJS::WindowPrivate::WindowPrivate): (KJS::Window::mark): (KJS::Window::getValueProperty): (KJS::Window::clearHelperObjectProperties): (KJS::Window::disconnectFrame): * bindings/js/kjs_window.h: 2007-06-18 Mitz Pettel Reviewed by Adele. - fix http://bugs.webkit.org/show_bug.cgi?id=13413 Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets Test: fast/forms/input-zero-height-focus.html * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setSelectionRange): Avoid setting the selection in a zero-height text control. 2007-06-18 Alp Toker Reviewed by Sam Weinig. http://bugs.webkit.org/show_bug.cgi?id=14052 Implement SoundGdk * WebCore.pro: * platform/gdk/SoundGdk.cpp: Added. (WebCore::systemBeep): * platform/gdk/TemporaryLinkStubs.cpp: (WebCore::systemBeep): 2007-06-18 Dave Hyatt Add support for horizontal mouse wheeling on Windows. Reviewed by aroben * platform/PlatformWheelEvent.h: * platform/win/WheelEventWin.cpp: (WebCore::PlatformWheelEvent::PlatformWheelEvent): 2007-06-17 Sam Weinig Win32 build fix. * WebCore.vcproj/WebCore.vcproj: 2007-06-15 David Hyatt Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image because of a botched 'round' support removal. Also update for a change in the spec that has the second stretch/round/repeat keyword match the first if omitted. Reviewed by olliej * css/cssparser.cpp: (WebCore::BorderImageParseContext::commitBorderImage): * platform/graphics/Image.cpp: (WebCore::Image::drawTiled): * platform/graphics/Image.h: (WebCore::Image::): 2007-06-15 Sam Weinig Reviewed by Darin. Patch for http://bugs.webkit.org/show_bug.cgi?id=14053 Autogenerate JS binding for Rect - Renames RectImpl to Rect, DOMStyleSheetList to JSStyleSheetList and DOMRGBColor to JSRGBColor - Moves JSStyleSheetList and JSRGBColor into the WebCore namespace. * DerivedSources.make: * WebCore.pro: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_css.cpp: (WebCore::): (WebCore::JSStyleSheetList::JSStyleSheetList): (WebCore::JSStyleSheetList::~JSStyleSheetList): (WebCore::JSStyleSheetList::getValueProperty): (WebCore::JSStyleSheetList::indexGetter): (WebCore::JSStyleSheetList::nameGetter): (WebCore::JSStyleSheetList::getOwnPropertySlot): (WebCore::toJS): (WebCore::JSStyleSheetListFunc::callAsFunction): (WebCore::JSRGBColor::JSRGBColor): (WebCore::JSRGBColor::~JSRGBColor): (WebCore::JSRGBColor::getOwnPropertySlot): (WebCore::JSRGBColor::getValueProperty): (WebCore::getJSRGBColor): * bindings/js/kjs_css.h: (WebCore::JSStyleSheetList::classInfo): (WebCore::JSStyleSheetList::): (WebCore::JSStyleSheetList::impl): (WebCore::JSRGBColor::classInfo): (WebCore::JSRGBColor::): (WebCore::JSRGBColor::impl): * bindings/objc/DOMUtility.mm: (KJS::createDOMWrapper): * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorObjC.pm: * css/CSSBorderImageValue.cpp: (WebCore::CSSBorderImageValue::CSSBorderImageValue): * css/CSSBorderImageValue.h: * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::cssText): * css/CSSPrimitiveValue.h: (WebCore::CSSPrimitiveValue::getRectValue): (WebCore::CSSPrimitiveValue::): * css/DashboardRegion.h: * css/Rect.h: Copied from css/RectImpl.h. (WebCore::Rect::~Rect): (WebCore::Rect::top): (WebCore::Rect::right): (WebCore::Rect::bottom): (WebCore::Rect::left): (WebCore::Rect::setTop): (WebCore::Rect::setRight): (WebCore::Rect::setBottom): (WebCore::Rect::setLeft): * css/Rect.idl: * css/RectImpl.h: Removed. * css/cssparser.cpp: (WebCore::CSSParser::parseShape): (WebCore::BorderImageParseContext::commitBorderImage): * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): * page/DOMWindow.idl: 2007-06-14 George Staikos Reviewed by Lars. Implement missing tab support and a slight refactor. * platform/qt/PlatformKeyboardEventQt.cpp: (WebCore::keyIdentifierForQtKeyCode): (WebCore::windowsKeyCodeForKeyEvent): (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): 2007-06-14 Dave Hyatt Fix for Bugzilla bug 14806, missing text for bold/italic fonts in non-English Windows installs. This patch adds an additional step after the lookup by full name fails. It will then look up a PostScript name in a (localized full name) -> (PostScript name) cache. If the name is not found, then the font's name table is obtained and searched for a PostScript name (and the result is cached). If lookup on PostScript name fails too, then we now properly fall back to the next font in the list (so text should never be missing). Reviewed by Darin (thoroughly reviewed, super reviewed even) * platform/win/FontCacheWin.cpp: * platform/win/FontPlatformDataWin.cpp: 2007-06-14 Anders Carlsson Reviewed by Geoff. Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object for a given plug-in. * WebCore.exp: * page/Frame.cpp: (WebCore::Frame::cleanupScriptObjectsForPlugin): * page/Frame.h: 2007-06-14 Anders Carlsson Reviewed by Geoff. -[WebPreferences setJavaEnabled:] only disables java inside , not * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestObject): If the object is a Java MIME type and Java is disabled, don't load the plug-in. * platform/MimeTypeRegistry.cpp: (WebCore::MimeTypeRegistry::isJavaAppletMIMEType): Clean this up and add another applet MIME type. 2007-06-14 George Staikos Reviewed by Lars. Implement the file chooser for Qt. * platform/qt/FileChooserQt.cpp: (WebCore::FileChooser::openFileChooser): (WebCore::FileChooser::basenameForWidth): 2007-06-14 George Staikos Reviewed by Lars. Add missing initialization of pointer. * platform/qt/ContextMenuQt.cpp: (WebCore::ContextMenu::ContextMenu): 2007-06-14 Anders Carlsson Reviewed by Mitz. Safari keeps on complaining about slow script playing NBC TV video (14133) http://bugs.webkit.org/show_bug.cgi?id=14133 Runaway JavaScript timer fires when spinning around in Google Maps street view Make sure to start and stop the timeout checker around calls to JS. * bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): 2007-06-14 George Staikos Reviewed by Maciej. Keypress causes typeahead crash on empty selects due to modulo 0. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::typeAheadFind): 2007-06-13 George Staikos Reviewed by Lars. Compile without self-linking. * WebCore.pro: 2007-06-13 Darin Adler Reviewed by Kevin Decker. - fix Safari frequently "stalls" beneath +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font) * platform/mac/WebFontCache.mm: (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily. Took out the auto-activation code. (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily, then calls NSFont to trigger activation if that returned nil, then calls internalFontWithFamily again. 2007-06-13 Anders Carlsson Reviewed by Geoff. Pass the root object to methods that end up creating new ObjcInstance objects. * bindings/objc/WebScriptObject.mm: (listFromNSArray): (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): (-[WebScriptObject setValue:forKey:]): (-[WebScriptObject valueForKey:]): (-[WebScriptObject removeWebScriptKey:]): (-[WebScriptObject setWebScriptValueAtIndex:value:]): 2007-06-13 Anders Carlsson Reviewed by Darin. Make sure an alert doesn't allow loading to continue inside a script. Make sure to defer all loads where it's possible for a second main loop to be running. * page/Chrome.cpp: (WebCore::Chrome::runModal): (WebCore::Chrome::runBeforeUnloadConfirmPanel): (WebCore::Chrome::runJavaScriptAlert): (WebCore::Chrome::runJavaScriptConfirm): (WebCore::Chrome::runJavaScriptPrompt): (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer): * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::setDefersLoading): Implement this. 2007-06-13 Alp Toker Reviewed by Rob. http://bugs.webkit.org/show_bug.cgi?id=14060 Cairo SVG support * WebCore.pro: Add new files to the build. * platform/graphics/svg/SVGPaintServerPattern.h: * platform/graphics/svg/SVGPaintServerSolid.h: * platform/graphics/svg/cairo: Added. * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added. (WebCore::RenderPath::strokeContains): (WebCore::RenderPath::strokeBBox): * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added. (WebCore::SVGPaintServer::draw): (WebCore::SVGPaintServer::teardown): (WebCore::SVGPaintServer::renderPath): * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added. (WebCore::SVGPaintServerGradient::setup): * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added. (WebCore::SVGPaintServerPattern::setup): * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added. (WebCore::SVGPaintServerSolid::setup): * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added. (WebCore::SVGResourceClipper::applyClip): * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added. (WebCore::SVGResourceMasker::applyMask): 2007-06-13 Simon Hausmann Reviewed by Lars. Added a make install target that installs the Qt port and renamed WebKitQt to QtWebKit * WebCore.pro: 2007-06-13 Adam Roben Fix one more BITMAPINFO/BITMAPINFOHEADER typo. Rubberstamped by Oliver. * platform/win/DragImageWin.cpp: (WebCore::allocImage): 2007-06-12 Oliver Hunt Reviewed by Darin. Use correct size for BITMAPINFOHEADER -- whoops. * platform/win/CursorWin.cpp: (WebCore::Cursor::Cursor): * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeImage): 2007-06-12 Sam Weinig Reviewed by Oliver. Patch for http://bugs.webkit.org/show_bug.cgi?id=14109 Cleanup JSEvent and JSClipboard in preperation for autogeneration * bindings/js/kjs_events.cpp: (KJS::DOMEvent::DOMEvent): (KJS::DOMEvent::getValueProperty): (KJS::DOMEvent::put): (KJS::DOMEvent::putValueProperty): (KJS::DOMEventPrototypeFunction::callAsFunction): (KJS::toJS): (KJS::toEvent): (KJS::): (KJS::JSClipboard::JSClipboard): (KJS::JSClipboard::~JSClipboard): (KJS::JSClipboard::getOwnPropertySlot): (KJS::JSClipboard::getValueProperty): (KJS::JSClipboard::put): (KJS::JSClipboard::putValueProperty): (KJS::JSClipboardPrototypeFunction::callAsFunction): (KJS::toClipboard): * bindings/js/kjs_events.h: (KJS::DOMEvent::): (KJS::DOMEvent::impl): (KJS::JSClipboard::impl): * dom/ClipboardEvent.h: * dom/Event.h: (WebCore::Event::srcElement): (WebCore::Event::returnValue): (WebCore::Event::clipboardData): (WebCore::Event::dataTransfer): (WebCore::Event::clipboard): * dom/MouseEvent.h: 2007-06-13 Lars Knoll Reviewed by Niko. Small cleanup * platform/qt/PlugInInfoStoreQt.cpp: (WebCore::PlugInInfoStore::supportsMIMEType): 2007-06-13 Lars Knoll Reviewed by Niko Implement the parts required for the JS bridge to know about the plugins. * WebCore.pro: * platform/qt/PlugInInfoStoreQt.cpp: Added. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex): (WebCore::PlugInInfoStore::pluginCount): (WebCore::PlugInInfoStore::supportsMIMEType): (WebCore::refreshPlugins): * platform/qt/TemporaryLinkStubs.cpp: === Merged the following changes from branches/WindowsMerge === 2007-06-09 Sam Weinig Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-06-08 Anders Carlsson Reviewed by Adam. If both the old and new WMP plugins are present, remove the old one so we won't end up choosing it. * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::getPluginsInPaths): 2007-06-08 David Hyatt Update licenses/copyrights for WebCoreWin. Reviewed by mccullough * WebCorePrefix.cpp: * bridge/win/FrameWin.cpp: * bridge/win/FrameWin.h: * bridge/win/HistoryWin.cpp: * bridge/win/PageWin.cpp: * page/win/EventHandlerWin.cpp: * platform/graphics/cg/ColorCG.cpp: * platform/graphics/cg/GraphicsContextPlatformPrivate.h: * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: * platform/graphics/win/IconWin.cpp: * platform/graphics/win/ImageWin.cpp: * platform/network/cf/FormDataStreamCFNet.cpp: * platform/network/cf/FormDataStreamCFNet.h: * platform/network/cf/ResourceHandleCFNet.cpp: * platform/network/cf/ResourceRequestCFNet.cpp: * platform/network/cf/ResourceResponseCFNet.cpp: * platform/network/win/CookieJarWin.cpp: * platform/network/win/ResourceHandleWin.cpp: * platform/network/win/ResourceHandleWin.h: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/ClipboardWin.h: * platform/win/ContextMenuWin.cpp: * platform/win/CursorWin.cpp: * platform/win/EditorWin.cpp: * platform/win/FontCacheWin.cpp: * platform/win/FontDataWin.cpp: * platform/win/FontPlatformData.h: * platform/win/FontPlatformDataWin.cpp: * platform/win/FontWin.cpp: * platform/win/GlyphPageTreeNodeWin.cpp: * platform/win/GraphicsContextWin.cpp: * platform/win/KeyEventWin.cpp: * platform/win/MimeTypeRegistryWin.cpp: * platform/win/NotImplemented.h: * platform/win/PlatformMouseEventWin.cpp: * platform/win/PlatformScrollBar.h: * platform/win/PlatformScrollBarWin.cpp: * platform/win/PopupMenuWin.cpp: * platform/win/ScreenWin.cpp: * platform/win/ScrollViewWin.cpp: * platform/win/SearchPopupMenuWin.cpp: * platform/win/SoundWin.cpp: * platform/win/TemporaryLinkStubs.cpp: * platform/win/TextBoundariesWin.cpp: * platform/win/WebCoreHistory.cpp: * platform/win/WebCoreHistory.h: * platform/win/WebCoreSystemInterface.cpp: * platform/win/WebCoreSystemInterface.h: * platform/win/WheelEventWin.cpp: * platform/win/WidgetWin.cpp: * plugins/win/PlugInInfoStoreWin.cpp: * plugins/win/PluginDatabaseWin.cpp: * plugins/win/PluginDatabaseWin.h: * plugins/win/PluginDebug.h: * plugins/win/PluginPackageWin.cpp: * plugins/win/PluginPackageWin.h: * plugins/win/PluginStreamWin.cpp: * plugins/win/PluginStreamWin.h: * plugins/win/PluginViewWin.cpp: * plugins/win/PluginViewWin.h: * plugins/win/npapi.cpp: * plugins/win/npfunctions.h: * rendering/RenderThemeSafari.cpp: * rendering/RenderThemeSafari.h: * rendering/RenderThemeWin.h: 2007-06-07 Sam Weinig Fix build. * WebCore.vcproj/WebCore.vcproj: 2007-06-07 Anders Carlsson Reviewed by Steve. Shockwave plug-in content crashes. Add a new quirk for plug-ins that need their WNDPROCs to be ASCII. If someone uses SetWindowLongA to set the WNDPROC to an ASCII one and the previous one was an Unicode one, the value returned from SetWindowLongA (the old WNDPROC) will not be a function pointer, but instead a special value. The Win32 API CallWndProc knows that when it encounters a special value it must convert the message to Unicode. Shockwave does not use CallWndProc but instead treats the WNDPROC as a function. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWndProc): (WebCore::PluginViewWin::determineQuirks): (WebCore::PluginViewWin::init): * plugins/win/PluginViewWin.h: (WebCore::): (WebCore::PluginViewWin::quirks): 2007-06-07 Sam Weinig Build fix for the build fix. * WebCore.vcproj/WebCore.vcproj: 2007-06-07 Sam Weinig Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-06-06 Sam Weinig Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-06-03 Steve Falkenburg Reviewed by Oliver. Update to last fix. Invalidate a list of rects rather than unioning them. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::invalidateTimerFired): (WebCore::PluginViewWin::invalidateRect): * plugins/win/PluginViewWin.h: 2007-06-03 Steve Falkenburg Reviewed by Oliver. 100A89+WebKit.dll: Can't select text in page location field at kids.yahoo.com Delay invalidates for windowless Flash to prevent Flash WM_PAINT and WM_USER+1 messages from starving other HWNDs. This code defers the invalidate through a WebCore::Timer. We could have used a Windows ::SetTimer to further lessen CPU load, but this would have the additional risk of negatively impacting Flash performance, since WebCore::Timer is set up to be more responsive than ::SetTimer. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::invalidateTimerFired): Added. (WebCore::PluginViewWin::invalidateRect): Delay invalidates for windowless Flash. (WebCore::PluginViewWin::determineQuirks): Add delayed invalidate quirk. * plugins/win/PluginViewWin.h: 2007-06-02 Steve Falkenburg Reviewed by Adam. Update last fix to use startsWith instead of strcmpi. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): * plugins/win/PluginViewWin.cpp: (WebCore::scriptStringIfJavaScriptURL): 2007-06-02 Steve Falkenburg Reviewed by gramps. Fix http://www.tvguide.com/ "LAUNCH VIDEO & PHOTO PLAYER" button. Make "javascript" URL scheme string compare case insensitive. * plugins/win/PluginStreamWin.cpp: (WebCore::PluginStreamWin::startStream): Use strcmpi. * plugins/win/PluginViewWin.cpp: (WebCore::scriptStringIfJavaScriptURL): Use strcmpi. 2007-06-01 Anders Carlsson Reviewed by Steve. If the value exists but is empty, return an empty String. * plugins/win/PluginPackageWin.cpp: (WebCore::getVersionInfo): 2007-06-01 Anders Carlsson Reviewed by Steve. Add the default path for the new WMP Firefox plugin. * plugins/win/PluginDatabaseWin.cpp: (WebCore::addWindowsMediaPlayerPluginPath): 2007-05-31 Sam Weinig Fixed build. * WebCore.vcproj/WebCore.vcproj: 2007-05-31 Sam Weinig Fixed build. * WebCore.vcproj/WebCore.vcproj: 2007-05-30 Ada Chan Reviewed by Adam. Fixed build. * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::itemWritingDirectionIsNatural): 2007-05-30 Sam Weinig Build Fix. * WebCore.vcproj/WebCore.vcproj: 2007-05-29 Sam Weinig Fix the build. * WebCore.vcproj/WebCore.vcproj: 2007-05-29 Anders Carlsson Reviewed by Adam. plugin is not in the right place at jumble.com/play.html Pass the plugin window coordinates for windowed plugins too. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::setNPWindowRect): 2007-05-29 Anders Carlsson Reviewed by Adam. nike.com doesn't finish loading if Flash plugin is installed play button on Flash in ESPN front page does not start movie Make sure to call NPP_SetWindow right after creating the plugin, and not from the main loop. However, the WMP plugin needs to have the plugin's window coordinates set correctly when calling NPP_SetWindow so add a quirk for that. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::determineQuirks): (WebCore::PluginViewWin::init): * plugins/win/PluginViewWin.h: (WebCore::): 2007-05-29 Sam Weinig Reviewed by Adam Roben. - Removes platform/win/NotImplemented.h because we have consolidated the notImplemented() for all platforms in platform/NotImplemented.h - Fixes remaining uses of old macro to use the new notImplemented() one. * WebCore.vcproj/WebCore.vcproj: * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::passWidgetMouseDownEventToWidget): * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: (WebCore::SVGResourceFilter::prepareFilter): (WebCore::SVGResourceFilter::applyFilter): * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: (WebCore::SVGResourceMasker::applyMask): * platform/win/GraphicsContextWin.cpp: (WebCore::contextForImage): * platform/win/NotImplemented.h: Removed. * platform/win/SearchPopupMenuWin.cpp: (WebCore::SearchPopupMenu::saveRecentSearches): (WebCore::SearchPopupMenu::loadRecentSearches): * platform/win/TemporaryLinkStubs.cpp: (Frame::print): (Frame::issueTransposeCommand): (GraphicsContextPlatformPrivate::clip): (WebCore::FrameView::updateBorder): (Widget::setIsSelected): (ScrollView::inWindow): (WebCore::focusRingColor): (WebCore::setFocusRingColorChangeFunction): (Frame::setNeedsReapplyStyles): (FrameLoader::overrideMediaType): (DocumentLoader::getResponseModifiedHeader): (ResourceHandle::willLoadFromCache): (WebCore::userIdleTime): (CachedPage::close): (WebCore::supportedKeySizes): (WebCore::signedPublicKeyAndChallengeString): * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::newStream): (WebCore::PluginViewWin::write): (WebCore::PluginViewWin::setValue): 2007-05-29 Anders Carlsson Build fix. * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::adjustSliderThumbStyle): 2007-05-29 Anders Carlsson Reviewed by Adam. Port code from open source changeset 21808, fixing http://bugs.webkit.org/show_bug.cgi?id=13871 * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeMac::adjustSliderThumbStyle): * rendering/RenderThemeSafari.h: 2007-05-29 Ada Chan Build fix. - Added "$(ProjectDir)..\platform\win" to include paths - Added WebCore\bindings\js\JSCSSStyleDeclarationCustom.cpp to project * WebCore.vcproj/WebCore.vcproj: 2007-05-28 Sam Weinig Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-05-27 Sam Weinig Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-05-24 Geoffrey Garen Reviewed by Darin Adler. Fixed a bug with Settings where a number of different objects held bare Settings* data members, even though the Page owns the Settings object and deletes it upon destruction. Added NULL checks since the Page can be deleted before the frame/document. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::load): 2007-05-24 Sam Weinig Reviewed by NOBODY. Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-05-24 Anders Carlsson Reviewed by Adam. Need to relaunch Boomer to recognize newly installed QT plug-in After installing Flash, Safari would still not display pages that needed it * plugins/win/PluginDatabaseWin.cpp: (WebCore::PluginDatabaseWin::refresh): Return whether the plugin database changed or not. (WebCore::PluginDatabaseWin::findPlugin): New function that tries to find a plug-in given its url and MIME type. (WebCore::PluginDatabaseWin::createPluginView): If no plugin is found, refresh the database and search for the plugin again if the database changed. 2007-05-24 Adele Peterson - fix http://bugs.webkit.org/show_bug.cgi?id=13837 Separator in new * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::cfHDropFormat): Need to be able to access externally * platform/win/ClipboardUtilitiesWin.h: Declare cfHDropFormat * platform/win/DragDataWin.cpp: (WebCore::DragData::containsFiles): (WebCore::DragData::asFilenames): Add implementation of containsFiles and asFilenames 2007-05-14 Geoffrey Garen Build fix. * WebCore.vcproj/WebCore.vcproj: 2007-05-14 Anders Carlsson Reviewed by Geoff. Seed10: MS Silverlight 1.0 beta plug-in is not supported * plugins/win/PluginDatabaseWin.cpp: (WebCore::addPluginsFromRegistry): New function that adds plugins from the registry from HKEY_LOCAL_MACHINE/MozillaPlugins. * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::invalidateRect): (WebCore::PluginViewWin::forceRedraw): Make these work with windowed plugins. 2007-05-13 Darin Adler Requested by Hyatt. - internal part of http://bugs.webkit.org/show_bug.cgi?id=13529 DOM3 keyIdentifier text is incorrect * platform/win/KeyEventWin.cpp: (WebCore::keyIdentifierForWindowsKeyCode): Use 4 digits for "U+" stuff. 2007-05-12 Oliver Hunt rs=hyatt. Stubs to prevent build bustage * platform/win/DragDataWin.cpp: (WebCore::DragData::containsFiles): (WebCore::DragData::asFilenames): 2007-05-11 Darin Adler * WebCore.vcproj/WebCore.vcproj: Added new RenderWordBreak.cpp/h files. 2007-05-10 Adele Peterson Reviewed by Hyatt. * bridge/win/FrameWin.cpp: (WebCore::imageFromSelection): Updated to use selectionRect instead of visibleSelectionRect 2007-05-08 Steve Falkenburg Rubber-stamped by Geoff. Moved shared EditorWin code to Editor.cpp in open source. * platform/win/EditorWin.cpp: Deleted (moved) most of this file. 2007-05-08 Steve Falkenburg Reviewed by Darin, Oliver. Removed localized string stubs. * platform/win/TemporaryLinkStubs.cpp: 2007-05-08 Steve Falkenburg Reviewed by Ada. Updated for new editor interface. * platform/win/EditorWin.cpp: (WebCore::Editor::advanceToNextMisspelling): (WebCore::isRangeUngrammatical): 2007-05-07 Alice Liu Reviewed by Oliver. Fixed Paste fidelity isn't as good as it is on the mac and Plain text copy/paste yields bad line endings on Boomer and re-organized standalone functions in DragDataWin.cpp and PasteboardWin.cpp into ClipboardUtilitiesWin.h/cpp. * WebCore.vcproj/WebCore.vcproj: * platform/win/ClipboardUtilitiesWin.cpp: Added. (WebCore::cfHDropFormat): (WebCore::getWebLocData): (WebCore::extractURL): (WebCore::texthtmlFormat): (WebCore::createGlobalData): (WebCore::markupToCF_HTML): (WebCore::urlToMarkup): (WebCore::replaceNewlinesWithWindowsStyleNewlines): (WebCore::replaceNBSPWithSpace): (WebCore::urlWFormat): (WebCore::urlFormat): (WebCore::plainTextFormat): (WebCore::plainTextWFormat): (WebCore::filenameWFormat): (WebCore::filenameFormat): (WebCore::htmlFormat): (WebCore::getURL): (WebCore::getPlainText): (WebCore::fragmentFromFilenames): (WebCore::containsFilenames): (WebCore::fragmentFromCF_HTML): (WebCore::fragmentFromHTML): (WebCore::containsHTML): * platform/win/ClipboardUtilitiesWin.h: Added. * platform/win/ClipboardWin.cpp: (WebCore::ClipboardWin::writeRange): * platform/win/DragDataWin.cpp: * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeSelection): (WebCore::Pasteboard::documentFragment): 2007-05-04 Steve Falkenburg Reviewed by Darin. Fix crash when using "check spelling while typing". * WebCore.vcproj/WebCore.vcproj: Added TextBreakIteratorInternalICUWin.cpp * platform/win/TemporaryLinkStubs.cpp: Removed findSentenceBoundary, findNextSentenceFromIndex. 2007-05-04 Alice Liu Reviewed by Darin. changed use of DeprecatedString::fromUTF8 to UTF8Encoding().decode() * platform/win/DragDataWin.cpp: (WebCore::fragmentFromHTML): * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::documentFragment): 2007-05-03 Steve Falkenburg Reviewed by Ada, Oliver. Checkpoint: Spelling Spell checking engine support * platform/win/EditorWin.cpp: (WebCore::findFirstBadGrammarInRange): Account for start offset when reporting bad grammar range (fixed my porting mistake). (WebCore::Editor::advanceToNextMisspelling): Include user description with spelling error. (WebCore::isRangeUngrammatical): Include user description with spelling error. 2007-05-03 Alice Liu Reviewed by Oliver. Fixed HTML formatted clipboard data is not converted from UTF8 when pasted * platform/win/DragDataWin.cpp: (WebCore::fragmentFromHTML): * platform/win/PasteboardWin.cpp: (WebCore::fragmentFromCF_HTML): (WebCore::Pasteboard::documentFragment): 2007-05-03 Oliver Hunt Reviewed by Steve Fix misuse of GlobalLock. * platform/win/PasteboardWin.cpp: (WebCore::createGlobalData): 2007-05-03 Oliver Hunt Reviewed by Steve. Add logic to draw underlines for grammar and spelling errors. (rdar://problem/4769832) * platform/win/GraphicsContextWin.cpp: (WebCore::spellingPatternColor): (WebCore::grammarPatternColor): Can't define global const with constructor so use function scoped globals instead. (WebCore::setCGStrokeColor): Utility function pulled over from GraphicsContextCG (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): * platform/win/TemporaryLinkStubs.cpp: Remove old drawLineForMisspellingOrBadGrammar stub 2007-05-01 Steve Falkenburg Reviewed by Oliver. Fix crash when retrieving title of context menu after it has been selected. Necessary to get spelling corrections code working. * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::itemWithAction): menu item info fType is a set of flags, MFT_STRING is 0, so we need to or off flags before comparing. 2007-04-29 Adam Roben Build fix after r21183. * WebCore.vcproj/WebCore.vcproj: Added LayoutState.(h|cpp). 2007-04-29 Oliver Hunt Reviewed by Steve. Fix for REGRESSION (r19672-19697): Safari drag image drags at original size (13261) Prevent build bustage from opensource changes, correct scaling * platform/win/DragImageWin.cpp: (WebCore::scaleDragImage): 2007-04-24 Steve Falkenburg Reviewed by Darin, Oliver. Checkpoint: Spelling Spell checking engine support Ported code from EditorMac.mm into EditorWin.cpp. Once this works, I'll move this code into Editor.cpp and remove it form EditorMac.mm. * platform/win/EditorWin.cpp: (WebCore::Editor::ignoreSpelling): (WebCore::Editor::learnSpelling): (WebCore::findFirstMisspellingInRange): (WebCore::paragraphAlignedRangeForRange): (WebCore::findFirstGrammarDetailInRange): (WebCore::findFirstBadGrammarInRange): (WebCore::Editor::advanceToNextMisspelling): (WebCore::Editor::isSelectionMisspelled): (WebCore::isRangeUngrammatical): (WebCore::Editor::isSelectionUngrammatical): (WebCore::Editor::guessesForUngrammaticalSelection): (WebCore::Editor::guessesForMisspelledSelection): (WebCore::Editor::showSpellingGuessPanel): (WebCore::Editor::spellingPanelIsShowing): (WebCore::Editor::markMisspellingsAfterTypingToPosition): (WebCore::markAllMisspellingsInRange): (WebCore::markAllBadGrammarInRange): (WebCore::markMisspellingsOrBadGrammar): (WebCore::Editor::markMisspellings): (WebCore::Editor::markBadGrammar): * platform/win/TemporaryLinkStubs.cpp: 2007-04-23 Anders Carlsson Reviewed by Ada. REGRESSION: Acrobat 8 plug-in fails to scroll with trackpad two-finger scroll or mouse wheel (12995) * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::passWheelEventToWidget): Get rid of passWheelEventToSubframe and pass wheel events to all widgets. 2007-04-23 Adam Roben Build fix. * page/win/EventHandlerWin.cpp: Removed passWheelEventToSubframe. 2007-04-20 Beth Dakin Reviewed by Adam. Fix for Boomer does not send scroll events * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::ScrollViewPrivate::valueChanged): 2007-04-19 Adam Roben * WebCore.vcproj/WebCore.vcproj: Removed empty filter. 2007-04-19 Adam Roben * WebCore.vcproj/WebCore.vcproj: Removed unused files. 2007-04-18 Adam Roben Reviewed by Oliver. Added an equality operator to COMPtr. * platform/win/COMPtr.h: (operator==): (operator!=): 2007-04-18 Oliver Hunt Reviewed by Geoff. Allow images to be dragged from page and dropped as files. This is the remainder of the fix for -- Dragging image or link from boomer doesn't create webloc or image file. * platform/win/ClipboardWin.cpp: (WebCore::filesystemPathFromUrlOrTitle): Make name generation nicer, and better match Firefox (WebCore::createGlobalURLContent): rename function (WebCore::createGlobalImageFileContent): Copies image data into global store (WebCore::createGlobalUrlFileDescriptor): Rename function Updated for parameter change on filesystemPathFromUrlOrTitle (WebCore::createGlobalImageFileDescriptor): Set up file descriptor for image drag (WebCore::getCachedImage): Helper function (WebCore::writeImageToDataObject): Attempts to build and insert data for image->file drag (WebCore::ClipboardWin::declareAndWriteDragImage): Attempts to build and insert data for image->file drag (WebCore::ClipboardWin::writeURL): Add call to imageDataToDataObject 2007-04-17 Adam Roben Rubberstamped by Oliver. * platform/network/cf/ResourceHandleCFNet.cpp: Removed an unnecessary include. 2007-04-17 Oliver Hunt Whoops, had code commented out from manual failure test. Also fixed date of previous changelog entry * platform/win/ClipboardWin.cpp: (WebCore::writeFileToDataObject): 2007-04-17 Oliver Hunt Reviewed by Ada. Partial fix for -- Dragging image or link from boomer doesn't create webloc or image file. Add all the ground work to set up FileDescriptors and FileContent for allowing files to be created from drag and drop actions, and hook up logic for links to create WebLoc data for drag and drop. * platform/win/ClipboardWin.cpp: (WebCore::fileDescriptorFormat): (WebCore::fileContentFormat): Clipboard formats (WebCore::pathRemoveBadFSCharacters): (WebCore::filesystemPathFromUrlOrTitle): Helper functions for create filenames (WebCore::createGlobalDataForURLContent): Create the WebLoc content (WebCore::createGlobalDataForUrlFileDescriptor): Create a file descriptor for the WebLoc data (WebCore::writeFileToDataObject): Basic helper function to push generated file info into the target DataObject (WebCore::ClipboardWin::writeURL): Now puts WebLoc file onto the Clipboard 2007-04-16 Adam Roben Reviewed by Adele. Fix Focus ring SPI in GraphicsContextWin.cpp needs to move to WebKitSystemInterface * platform/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::drawFocusRing): Use wkDrawFocusRing. 2007-04-14 Adam Roben * WebCore.vcproj/WebCore.submit.sln: Use the Debug_Internal configuration. 2007-04-14 Adam Roben Small correctness fix that is needed for building OpenSource. * platform/win/PopupMenuWin.cpp: Use RenderTheme instead of RenderThemeWin. 2007-04-13 Adam Roben Reviewed by Tim. Sync our config.h with the OpenSource version so we can merge ours in later. * config.h: Added #defines from the OpenSource version, moved Windows-specific defines inside #if PLATFORM(WIN[_OS]), and got rid of assert.h * platform/win/CursorWin.cpp: (WebCore::Cursor::Cursor): Use ASSERT instead of assert. 2007-04-13 Adam Roben Rubberstamped by Tim. Removed the loader/win directory since it only contains empty files. * WebCore.vcproj/WebCore.vcproj: Removed empty files. * loader/win/FrameLoaderWin.cpp: Removed. * loader/win/ResourceLoaderWin.cpp: Removed. 2007-04-12 Adam Roben Rubberstamped by Steve. Removed unused file. * WebCore.vcproj/WebCore.sln: Removed. 2007-04-12 Adam Roben Didn't mean to commit this. * WebCore.vcproj/WebCore.vcproj: 2007-04-12 Adam Roben Reviewed by Steve. Need to be able to use debug WebKit with release Safari. * WebCore.vcproj/WebCore.vcproj: * WebCore.vcproj/debug.vsprops: * WebCore.vcproj/debug_internal.vsprops: Added. * WebCore.vcproj/release.vsprops: 2007-04-11 Adam Roben Reviewed by Tim. Get rid of FrameViewWin.cpp, since it's empty. * WebCore.vcproj/WebCore.vcproj: * bridge/win/FrameViewWin.cpp: Removed. 2007-04-11 Adam Roben Reviewed by Anders. Update for changes to Pasteboard. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeImage): 2007-04-10 Brady Eidson Reviewed by Darin - PageCache and PageState should be combined Changed a TemporaryLinkStub and updated the project file * WebCore.vcproj/WebCore.vcproj: * platform/win/TemporaryLinkStubs.cpp: (CachedPage::close): 2007-04-10 John Sullivan * platform/win/TemporaryLinkStubs.cpp: (WebCore::Editor::markBadGrammar): Keep build going: added stub for this new method 2007-04-10 Anders Carlsson Reviewed by Adam. Can not open player on http://radioalice.com Fix scriptStringIfJavaScriptURL to not use the path of the URL. This would ignore any characters past a '?' character because that would be parsed as the query part of the URL. * plugins/win/PluginViewWin.cpp: (WebCore::scriptStringIfJavaScriptURL): Make this be more like the mac, chopping off the first 12 characters ("javascript:") and then decoding the remaining characters. 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 Production 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 Production 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. Production 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 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 Production 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 Production build fix. ...and add ImageAnimationObserver.h into its new location. * WebCore.vcproj/WebCore.vcproj: 2006-12-05 Steve Falkenburg Production 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 Production 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): 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
width ignored Cells in table with non-zero cellpadding are not considered empty. * rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::recalcColumn): 2007-06-28 Adam Roben Fix Prefast: typo in RenderBlock::paintObject Reviewed by Hyatt. No layout test possible, as this bug didn't have any effect since "bool & bool" has the same value as "bool && bool" * rendering/RenderBlock.cpp: (WebCore::RenderBlock::paintObject): Changed & to &&. 2007-06-28 Adam Roben Fix word-break and -webkit-user-modify allow any value The bug was caused by two typos found by prefast. Reviewed by Hyatt. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Fixed typos. 2007-06-20 Matt Perry Reviewed by Adam. - Fix http://bugs.webkit.org/show_bug.cgi?id=14251: onchange handler for select controls doesn't fire when changing via keyboard * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Got rid of a call to saveLastSelection in the "Enter" key handler for select controls that was preventing onchange from firing. 2007-06-27 Sam Weinig Fix Gdk, Qt, and Win32 builds. * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: 2007-06-27 Sam Weinig Reviewed by Geoff. Patch for http://bugs.webkit.org/show_bug.cgi?id=14319 Move the Selection object out of the JS bindings - Renames JS Object Selection to DOMSelection to avoid a name conflict. * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_window.cpp: (KJS::WindowPrivate::WindowPrivate): (KJS::Window::mark): (KJS::Window::clearHelperObjectProperties): (KJS::WindowFunc::callAsFunction): (KJS::Window::disconnectFrame): * bindings/js/kjs_window.h: (KJS::Window::): * page/DOMSelection.cpp: Added. (WebCore::DOMSelection::DOMSelection): (WebCore::DOMSelection::frame): (WebCore::DOMSelection::disconnectFrame): (WebCore::DOMSelection::anchorNode): (WebCore::DOMSelection::baseNode): (WebCore::DOMSelection::anchorOffset): (WebCore::DOMSelection::baseOffset): (WebCore::DOMSelection::focusNode): (WebCore::DOMSelection::extentNode): (WebCore::DOMSelection::focusOffset): (WebCore::DOMSelection::extentOffset): (WebCore::DOMSelection::isCollapsed): (WebCore::DOMSelection::type): (WebCore::DOMSelection::rangeCount): (WebCore::DOMSelection::collapse): (WebCore::DOMSelection::collapseToEnd): (WebCore::DOMSelection::collapseToStart): (WebCore::DOMSelection::empty): (WebCore::DOMSelection::setBaseAndExtent): (WebCore::DOMSelection::setPosition): (WebCore::DOMSelection::modify): (WebCore::DOMSelection::getRangeAt): (WebCore::DOMSelection::removeAllRanges): (WebCore::DOMSelection::addRange): (WebCore::DOMSelection::toString): * page/DOMSelection.h: Added. * page/DOMSelection.idl: Added. * page/DOMWindow.cpp: (WebCore::DOMWindow::disconnectFrame): (WebCore::DOMWindow::getSelection): * page/DOMWindow.h: * page/DOMWindow.idl: 2007-06-27 Sam Weinig Reviewed by Maciej. 2nd patch for http://bugs.webkit.org/show_bug.cgi?id=14111 Autogenerate Event JS binding - Cleanup kjs_events * bindings/js/kjs_events.cpp: (WebCore::JSAbstractEventListener::JSAbstractEventListener): (WebCore::JSAbstractEventListener::handleEvent): (WebCore::JSAbstractEventListener::isHTMLEventListener): (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener): (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener): (WebCore::JSUnprotectedEventListener::listenerObj): (WebCore::JSUnprotectedEventListener::windowObj): (WebCore::JSUnprotectedEventListener::clearWindowObj): (WebCore::JSUnprotectedEventListener::mark): (WebCore::JSEventListener::JSEventListener): (WebCore::JSEventListener::~JSEventListener): (WebCore::JSEventListener::listenerObj): (WebCore::JSEventListener::windowObj): (WebCore::JSEventListener::clearWindowObj): (WebCore::JSLazyEventListener::JSLazyEventListener): (WebCore::JSLazyEventListener::listenerObj): (WebCore::JSLazyEventListener::parseCode): (WebCore::getNodeEventListener): (WebCore::JSClipboard::JSClipboard): (WebCore::JSClipboard::getValueProperty): (WebCore::JSClipboard::putValueProperty): (WebCore::JSClipboardPrototypeFunction::callAsFunction): (WebCore::toJS): (WebCore::toClipboard): * bindings/js/kjs_events.h: (WebCore::JSClipboard::classInfo): (WebCore::JSClipboard::impl): * bindings/js/kjs_window.h: * ksvg2/events/JSSVGLazyEventListener.h: 2007-06-27 Sam Weinig Reviewed by Adam Roben. Patch for http://bugs.webkit.org/show_bug.cgi?id=12045 Crash under gmalloc at WTF::RefPtr::operator-> Test: fast/forms/thumbslider-no-parent-slider.html Test: fast/forms/thumbslider-crash.html * rendering/RenderObject.h: (WebCore::RenderObject::isSlider): * rendering/RenderSlider.h: (WebCore::RenderSlider::isSlider): * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paint): Only paint thumbslider if the parent renderer is a RenderSlider. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintSliderThumb): * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintSliderThumb): 2007-06-27 George Staikos Make Qt builds link when XSLT is turned off. * WebCore.pro: 2007-06-27 Steve Falkenburg Turn on static code analysis (Windows only). Affects only folks that have Visual Studio Team Suite installed, or who have replaced their compiler with the version shipping in the Vista SDK. Reviewed by Oliver. * WebCore.vcproj/WebCore.vcproj: 2007-06-27 George Staikos Remove old commented out files that no-longer exist. * WebCore.pro: 2007-06-27 Justin Garcia Reviewed by John. REGRESSION: Pasting sometimes leaves out trailing newline Pasting with a trailing interchange newline doesn't work when pasting into an empty line. Code that handles removing brs at the insertion position tries to also handle trailing interchange newlines by re-using those brs and fails. Removed that code and handle all interchange newlines with code later in doApply(). * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): Don't try to re-use the endBR when there's a trailing interchange newline. 2007-06-27 Anders Carlsson Reviewed by Oliver. When Shockwave plugin has been loaded, exiting crashes Safari Add a "load count" for plugin packages. When the load count is zero, unload the plugin. * plugins/win/PluginPackageWin.cpp: (WebCore::PluginPackageWin::PluginPackageWin): (WebCore::PluginPackageWin::load): (WebCore::PluginPackageWin::unload): (WebCore::PluginPackageWin::unloadWithoutShutdown): * plugins/win/PluginPackageWin.h: * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::~PluginViewWin): Make sure to unload the plugin package and clear any references to plugin script objects. 2007-06-27 George Staikos This was succeeding compile by luck. Setup dependencies properly. * WebCore.pro: 2007-06-27 Justin Garcia Reviewed by John. Breaking blockquoted list should not automatically renumber the second list When a quoted numbered list is broken in half, it's cloned to make the second list. That second list needs its start attribute set so that the numbers of the list items in it will be preserved. * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply): Set the start attribute of a cloned list to be the original number of the first list item in it. 2007-06-27 Alexey Proskuryakov Reviewed by Geoff. http://bugs.webkit.org/show_bug.cgi?id=14413 GIF animation throttling is different from MSIE * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::frameDurationAtIndex): Change the cut-off value to 50ms to match MSIE. 2007-06-27 Sam Weinig Reviewed by Darin. First pass at fixing implicit 64-32 bit conversion errors. - Add 'f' suffix where necessary. * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]): * css/csshelper.h: * css/cssstyleselector.cpp: (WebCore::): (WebCore::CSSStyleSelector::largerFontSize): (WebCore::CSSStyleSelector::smallerFontSize): * html/CanvasGradient.cpp: (WebCore::CanvasGradient::addColorStop): * html/CanvasPattern.cpp: (WebCore::CanvasPattern::createPattern): * ksvg2/css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty): * ksvg2/css/SVGRenderStyle.h: * ksvg2/events/SVGZoomEvent.cpp: (WebCore::SVGZoomEvent::SVGZoomEvent): * ksvg2/svg/SVGLength.cpp: (WebCore::SVGLength::SVGLength): (WebCore::SVGLength::value): (WebCore::SVGLength::setValue): (WebCore::SVGLength::valueAsPercentage): (WebCore::SVGLength::PercentageOfViewport): * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::pixelUnitToMillimeterX): (WebCore::SVGSVGElement::pixelUnitToMillimeterY): (WebCore::SVGSVGElement::getScreenCTM): * ksvg2/svg/SVGTextContentElement.cpp: (WebCore::SVGTextContentElement::getComputedTextLength): (WebCore::SVGTextContentElement::getSubStringLength): (WebCore::SVGTextContentElement::getRotationOfChar): * ksvg2/svg/SVGTransformDistance.cpp: (WebCore::SVGTransformDistance::SVGTransformDistance): (WebCore::SVGTransformDistance::distance): * page/InspectorController.cpp: (WebCore::InspectorResource::InspectorResource): * platform/graphics/FloatPoint3D.cpp: (WebCore::FloatPoint3D::normalize): * platform/graphics/Path.cpp: (WebCore::pathLengthApplierFunction): (WebCore::Path::createRoundedRectangle): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawLine): (WebCore::GraphicsContext::strokeArc): * platform/graphics/cg/ImageCG.cpp: (WebCore::FrameData::clear): * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::frameDurationAtIndex): * platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::setCurrentPage): * platform/graphics/svg/SVGPaintServerPattern.cpp: (WebCore::SVGPaintServerPattern::externalRepresentation): * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient): * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: (WebCore::cgGradientCallback): (WebCore::CGShadingRefForRadialGradient): (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache): * platform/mac/FontDataMac.mm: (WebCore::webFallbackFontFamily): * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::placeBoxesHorizontally): * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setValueForPosition): (WebCore::RenderSlider::setPositionFromValue): 2007-06-27 Alexey Proskuryakov Reviewed by Geoff. http://bugs.webkit.org/show_bug.cgi?id=14288 XMLHttpRequest doesn't use a correct content type for file:// URLs Test: fast/dom/xmlhttprequest-html-response-encoding.html * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::responseMIMEType): Use MIME type provided by the network layer, since it provides it even for non-HTTP responses. 2007-06-26 Alp Toker Reviewed by Sam Weinig. http://bugs.webkit.org/show_bug.cgi?id=14061 Implement more of FrameLoaderClientGdk Make FrameLoaderClientGdk work properly when the MIME type is set. * loader/gdk/FrameLoaderClientGdk.cpp: (WebCore::FrameLoaderClientGdk::objectContentType): (WebCore::FrameLoaderClientGdk::canShowMIMEType): 2007-06-26 Alp Toker Reviewed by Maciej. http://bugs.webkit.org/show_bug.cgi?id=14058 Gdk font backend cleanup * platform/FontData.h: Remove obsolete function. * platform/gdk/FontDataGdk.cpp: (WebCore::FontData::containsCharacters): Lock/unlock only once. (WebCore::FontData::platformWidthForGlyph): Remove needless cast. * platform/gdk/FontPlatformData.h: Remove obsolete function. * platform/gdk/FontPlatformDataGdk.cpp: (WebCore::FontPlatformData::FontPlatformData): Pass the actual size, not the pixel size. (WebCore::FontPlatformData::~FontPlatformData): Free m_fontMatrix. * platform/gdk/GlyphPageTreeNodeGdk.cpp: (WebCore::GlyphPage::fill): Lock/unlock only once. 2007-06-26 Mitz Pettel Reviewed by Hyatt. - fix http://bugs.webkit.org/show_bug.cgi?id=14406
is used inside it. Reviewed by olliej Added fast/invalid/td-inside-object.html * html/HTMLObjectElement.h: (WebCore::HTMLObjectElement::tagPriority): * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): * html/HTMLParserErrorCodes.cpp: (WebCore::htmlParserErrorMessageTemplate): * html/HTMLParserErrorCodes.h: 2007-05-26 David Hyatt Don't compare the "isset" variables in background layers, since they lead us to turn off the Aqua look incorrectly, even when the background matches the default. Reviewed by olliej * rendering/RenderStyle.cpp: (WebCore::BackgroundLayer::operator==): 2007-05-26 David Hyatt Improve the

->

error message to not spew two errors. Fix a bug where errors reported inside document.write didn't get reported as such because of a mistake in the notation of SegmentedString. Reviewed by aroben * html/HTMLParser.cpp: (WebCore::HTMLParser::processCloseTag): * platform/SegmentedString.h: (WebCore::SegmentedSubstring::clear): 2007-05-26 David Hyatt Fix for bug 13887, percentage height block not sized correctly inside positioned percentage height containing block. Reviewed by mitz fast/block/positioning/complex-percentage-height.html * rendering/RenderBox.cpp: (WebCore::RenderBox::calcPercentageHeight): 2007-05-26 Mitz Pettel Reviewed by Oliver Hunt. - finish fixing http://bugs.webkit.org/show_bug.cgi?id=13871 Box shadow should not apply to Aqua-themed controls Covered by fast/forms/box-shadow-override.html I forgot to include adjustSliderThumbStyle in the previous patch and the test didn't detect it because of a bug introduced in r21739. * rendering/RenderThemeMac.h: * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbStyle): 2007-05-26 Mitz Pettel Reviewed by Hyatt. - fix http://bugs.webkit.org/show_bug.cgi?id=13876 Box-Shadow disappears if shadow doesn't fit in the window size Tests: fast/repaint/box-shadow-h.html fast/repaint/box-shadow-v.html * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): 2007-05-26 Alexey Proskuryakov Reviewed by Darin. http://bugs.webkit.org/show_bug.cgi?id=13605 REGRESSION: Browser crashes when switching Kotoeri input modes The problem could no longer be reproduced with Kotoeri thanks to a fix in , but we still need to protect from invalid ranges passed from input methods. Test: editing/input/replace-invalid-range.html * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge selectNSRange:]): Added a null check. 2007-05-26 Darin Adler * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::doUpdateResourceResponse): Alexey pointed out that I was wrong about object lifetime, so rolling this change out. 2007-05-26 Darin Adler Reviewed by Anders. * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::doUpdateResourceResponse): Fixed code where a temporary String is used after destroyed. 2007-05-26 Mitz Pettel Reviewed by Darin. - http://bugs.webkit.org/show_bug.cgi?id=13842 Simplify Color::light() and Color::dark() Not testable. * platform/graphics/Color.cpp: (WebCore::Color::light): (WebCore::Color::dark): 2007-05-26 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13870 RenderFrameSet should only allow frame and frameset children Covered by fast/frames/inline-object-inside-frameset.html * rendering/RenderFrame.h: (WebCore::RenderFrame::isFrame): Added. * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::paint): Removed check for inline objects that is no longer needed. (WebCore::RenderFrameSet::isChildAllowed): Added. Allows the child only if it is a frame or another frameset. * rendering/RenderFrameSet.h: * rendering/RenderObject.h: (WebCore::RenderObject::isFrame): Added. 2007-05-26 Mitz Pettel Reviewed by Darin. - http://bugs.webkit.org/show_bug.cgi?id=13871 Box shadow should not apply to Aqua-themed controls Test: fast/forms/box-shadow-override.html * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustCheckboxStyle): (WebCore::RenderTheme::adjustRadioStyle): * rendering/RenderThemeMac.h: * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustButtonStyle): (WebCore::RenderThemeMac::adjustMenuListStyle): (WebCore::RenderThemeMac::adjustSliderTrackStyle): (WebCore::RenderThemeMac::adjustSearchFieldStyle): (WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle): (WebCore::RenderThemeMac::adjustSearchFieldDecorationStyle): (WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationStyle): (WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle): 2007-05-26 Holger Freyther Reviewed by Anders. * platform/gdk/FrameGdk.cpp: Catch up to make it compile (WebCore::FrameGdk::FrameGdk): The Settings is now owned by the Page 2007-05-25 Sam Weinig Reviewed by Oliver of the Hunt. Fixed at least 43 xhtml tests fail in Leopard because they are being interpreted as html Adds a work around for which explicitly sets local .xhtml files to have the MIME type application/xhtml+xml. * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::doUpdateResourceResponse): 2007-05-25 Geoffrey Garen Reviewed by Darin Adler. Fixed The page cache has no global cap. Beefed up the PageCache class to track which HistoryItems are cached, and decide how to evict old HistoryItems as new ones are added. * history/BackForwardList.cpp: Removed support for managing the page cache through the BackForwardList since this is deprecated in Mac's WebBackForwardList, and doesn't exist on other platforms. Added a Page* back pointer so that Mac WebBackForwardList can still support its deprecated API, using the new hotness. This isn't a big burden, since Page is responsible for calling BackForwardList::close upon destruction, anyway. * history/HistoryItem.cpp: Replaced CachedPage* with boolean that tells you whether you're in the page cache. This prevents us from having more than one persistent repository for cached pages. * history/PageCache.cpp: If you're playing along at home, this code is the reason for the patch. * loader/FrameLoader.cpp: If you're playing along at home, the minuses in this file are the reason for the patch. Replaced call to FrameLoaderClient::loadedFromCachedPage with its one-line implementation because WebCore calling itself through WebKit is uncivilized. * page/Settings.cpp: Added support for removing a Page's HistoryItems from the page cache. 2007-05-25 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13869 Many leaks seen on buildbot after r21735 - fix another regression from r21739: ::-webkit-slider-thumb style not applied. Test: fast/forms/slider-thumb-stylability.html * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setStyle): (WebCore::RenderSlider::createThumbStyle): 2007-05-25 Justin Garcia Reviewed by Harrison. REGRESSION: Can't apply style to selection that ends after an image * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyInlineStyle): Use range compliant equivalents when creating the Range used to compute pastEndNode(), otherwise Range's constructor ASSERTs and pastEndNode() returns null. Added a testcase. If the incoming Range is collapsed at [br, 0], callers want the style to be applied to the br, so expand the Range to include it. We got away without expanding before because pastEndNode of a Range from [br, 0] to [br, 0] is the node after the br. Using range compliant equivalents changed that. There's already test coverage for this change. Changed while loop termination for finding the end of a run so that we don't process pastEnd. end.node() may now be non-atomic and we'd blow past it. There's already test coverage for this change. 2007-05-25 Beth Dakin Rubber stamped by Hyatt Adding an ASSERT for good measure. * page/FrameView.cpp: (WebCore::FrameView::layout): 2007-05-25 Kevin McCullough Reviewed by Geoff. - REGRESSION: Excel: Worksheet tabs in spreadsheet saved as web page don't work - Change load to check the URL as well as the referrer since it is possilbe to have a referrer which limits a load even thought the URL would allow it. There is a bug about how we need to re-evaluate the whole load architecture: Rethink canLoad() to have a consistent and comprehensive architecture. * loader/FrameLoader.cpp: (WebCore::FrameLoader::loadSubframe): (WebCore::FrameLoader::load): (WebCore::FrameLoader::canLoad): * loader/FrameLoader.h: 2007-05-25 Anders Carlsson Reviewed by Brady. http://bugs.webkit.org/show_bug.cgi?id=13757 REGRESSION: Leaks seen on buildbot after r21497. Fix multipart data loading so it works like Tiger Safari. When one part of a multipart connection has been loaded, move the subresource loader from the subresource loaders set and into a special multipart subresource loader set. This set is not considered when asking a document loader if it's currently loading. * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::stopLoading): Always stop the multipart subresource loaders here. (WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart): New function that moves the loader from m_subresourceLoaders to m_multipartSubresourceLoaders and updates the document loader's state. * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::incrementProgress): If a progress item already exists, reuse it. This can happen in some rare circumstances when dealing with multipart data. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didReceiveResponse): Call subresourceLoaderFinishedLoadingOnePart if the response is multipart. 2007-05-25 Patti Hoa Reviewed by Tim Hatcher. Exception raise inspecting note contents in the background * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityDescription]): Only allow asking the attachmentView for description if attachmentView supports this description attribute 2007-05-25 Beth Dakin Reviewed by Oliver and Hyatt. Fix for REGRESSION: In Mail, attempting to create a To Do results in a crash This regressed with r21635. Now that -boundingBox updates layout if it is needed, we infinitely recurse when Mail draws a custom highlight. The fix is to put a guard around laying out the render tree. * page/FrameView.cpp: (WebCore::FrameViewPrivate::reset): (WebCore::FrameView::layout): 2007-05-25 Patti Hoa Reviewed by John Sullivan. selection in web areas doesn't seem to be working for text navigation * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityIsAttributeSettable:]): Fixed up incorrect string comparison for AXSelectedTextMarkerRange ax attribute so this attribute can actually announce its settability. 2007-05-25 Darin Adler Reviewed by Alice. - fix REGRESSION: In a new Mail message, the caret isn't immediately inserted when tabbing into or clicking in the message body This latent problem was uncovered by , which removed some code that did extra work whenever setCaretVisible made the caret visible. * page/Frame.cpp: (WebCore::Frame::selectionLayoutChanged): Call invalidateCaretRect when turning the caret on. All other call sites that touched m_caretPaint were doing this, but this was not. 2007-05-25 Darin Adler Reviewed by Harrison. * DerivedSources.make: Tweaked spelling. 2007-05-25 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13872 REGRESSION: An empty search field can have a cancel button Test: fast/forms/search-cancel-button-style-sharing.html * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::createCancelButtonStyle): Prevented sharing of the cancel button style between search fields that share style, because each search field mutates the style to show and hide the cancel button. 2007-05-25 David Harrison Reviewed by Kevin and Geoff. * DerivedSources.make: Add an inclusion guard for CSSGrammar.h and XPathGrammar.h, because older versions of bison do not * css/maketokenizer: Unconditionally define the flex basic types that are not part of newer versions of flex. Was only needed on Linux. Now needed on Mac OS 10.5, and is OK to do on 10.4.9. 2007-05-25 Geoffrey Garen Reviewed by Darin Adler. Moved JavaScriptCore-related pending public API to public API. Moved -JSObject * bindings/objc/WebScriptObjectPendingPublic.h: from here * bindings/objc/WebScriptObject.h: to here * bindings/objc/WebScriptObject.mm: and out of its temporary category 2007-05-25 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13767 REGRESSION: Multipart image documents are garbled Test: http/tests/multipart/invalid-image-data-standalone.html * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent): Added. * loader/DocumentLoader.h: * loader/ImageDocument.cpp: (WebCore::ImageTokenizer::finish): If the image is multipart, make a copy of the current part instead of using the resource data, which is going to be overwritten by the next part. * loader/MainResourceLoader.h: (WebCore::MainResourceLoader::isLoadingMultipartContent): Added. 2007-05-25 Anders Carlsson Fix no-svg build. * bindings/js/kjs_html.cpp: (KJS::HTMLElementFunction::callAsFunction): 2007-05-25 Anders Carlsson Reviewed by Mitz. After resizing the window larger than the image, hovering over the image still shows magnify glass One part of the bug was already fixed by my previous commit. This fixes the case where the window is sized so the image fit after it has been zoomed in. * loader/ImageDocument.cpp: (WebCore::ImageDocument::windowSizeChanged): 2007-05-25 John Sullivan Reviewed by Anders and Tim - WebCore change for: REGRESSION: In Gmail and Mail, a hang occurs when attempting to grammar/spellcheck a word in a reply * editing/Editor.cpp: (WebCore::findFirstBadGrammarInRange): Use the more obvious way to check whether a range is empty. In this case the more obvious way would also have caused no problem to occur. Also added an assertion. Though this change is enough to fix the symptom of the bug, the real fix is in WebKit. 2007-05-25 Anders Carlsson Reviewed by Darin (Sorta). * loader/ImageDocument.cpp: (WebCore::ImageDocument::restoreImageSize): Use removeProperty here. 2007-05-25 Geoffrey Garen Reviewed by Darin Adler. Some cleanup to Cache while Fixing The page cache has no global cap. * loader/Cache.cpp: Removed destructor to help identify this class as a singleton. * loader/Cache.h: Made constructor and destructor private to match the singleton model of PageCache. Put structs related to Cache inside its declaration to fix some namespace conflicts I had while writing my patch. (They don't exist anymore, but I figured this might help future development.) 2007-05-24 Geoffrey Garen Reviewed by Darin Adler. Fixed a bug with Settings where a number of different objects held bare Settings* data members, even though the Page owns the Settings object and deletes it upon destruction. Added NULL checks since the Page can be deleted before the frame/document. * page/Settings.cpp: Removed reliance on setNeedsReapplyStylesForSettingsChange. * css/cssstyleselector.cpp: CSSStyleSelector was the worst offender. It held a number of back pointers that were not guaranteed. I removed the Settings*, Frame*, and FrameView* back pointers, but others could probably go, too. I replaced them with a single Document* pointer, which is guaranteed because the Document owns the CSSStyleSelector. * page/Page.cpp: Removed setNeedsReapplyStylesForSettingsChange -- the Settings object is now a proper subcontroller of Page, so it doesn't need to use a global table to find its page anymore. Also, this function confusingly implied that the Frames in a page can have heterogeneous settings, which is not true. 2007-05-25 David Hyatt Make sure -webkit-border-fit accounts for padding as well as border. Reviewed by aroben * rendering/RenderBlock.cpp: (WebCore::RenderBlock::borderFitAdjust): 2007-05-25 David Hyatt Rework line numbering (again). This time I finally think I have it right for all the document.write insanity that can occur. Reviewed by aroben * html/HTMLParser.cpp: (WebCore::HTMLParser::reportErrorToConsole): * html/HTMLParserErrorCodes.cpp: (WebCore::htmlParserDocumentWriteMessage): * html/HTMLParserErrorCodes.h: * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::write): * html/HTMLTokenizer.h: (WebCore::HTMLTokenizer::lineNumberPtr): (WebCore::HTMLTokenizer::processingContentWrittenByScript): * platform/SegementedSring.cpp (WebCore::SegmentedString::setExcludeLineNumbers): * platform/SegmentedString.h: (WebCore::SegmentedSubstring::SegmentedSubstring): (WebCore::SegmentedSubstring::clear): (WebCore::SegmentedSubstring::excludeLineNumbers): (WebCore::SegmentedSubstring::setExcludeLineNumbers): (WebCore::SegmentedString::excludeLineNumbers): (WebCore::SegmentedString::advance): 2007-05-24 Geoffrey Garen Reviewed by Adam Roben. Added a debug-only CachedPage counter. This helped me track down an SVG timer bug in my recent page cache work. * history/CachedPage.cpp: 2007-05-24 David Hyatt Improve
error reporting to catch s inside table parts. Tweak the wording of some of the error messages to be a bit better. Reviewed by olliej * html/HTMLParser.cpp: (WebCore::HTMLParser::insertNode): (WebCore::HTMLParser::processCloseTag): (WebCore::HTMLParser::popBlock): * html/HTMLParserErrorCodes.cpp: (WebCore::htmlParserErrorMessageTemplate): * html/HTMLParserErrorCodes.h: 2007-05-24 Rob Buis Reviewed by Hyatt. http://bugs.webkit.org/show_bug.cgi?id=4104 first-letter not updating style with hover http://bugs.webkit.org/show_bug.cgi?id=13169 css-formatted first letter won't hide dynamically Update first letter when RenderBlock::setStyle is called. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::createElement): * dom/Document.h: (WebCore::Document::usesFirstLetterRules): (WebCore::Document::setUsesFirstLetterRules): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::setStyle): (WebCore::RenderBlock::updateFirstLetter): 2007-05-24 Mitz Pettel Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13800 REGRESSION: Moving a slider moves another unrelated slider Test: fast/forms/slider-thumb-shared-style.html RenderSlider mutates the thumb's style, therefore it must not be shared with another slider's thumb, a situation that could occur if the sliders themselves shared style. * rendering/RenderSlider.cpp: (WebCore::RenderSlider::createThumbStyle): Always use a private copy for the thumb style. 2007-05-24 Adele Peterson Reviewed by Darin. Fix for Form values sometimes get transposed (iGoogle) Test: fast/history/redirect-load-no-form-restoration.html * history/HistoryItem.cpp: (WebCore::HistoryItem::setURL): Clear the document state when the url changes for a HistoryItem. (WebCore::HistoryItem::isCurrentDocument): Added. Compares the HistoryItem url to the document's url. This might not be the best way to do this, but it works for now. * history/HistoryItem.h: * loader/FrameLoader.cpp: (WebCore::FrameLoader::saveDocumentState): Only set the document (and form) state if the document is current for the history item. 2007-05-24 Mitz Pettel Reviewed by Adele. - fix http://bugs.webkit.org/show_bug.cgi?id=13857 REGRESSION: onChange function applied to select element executes twice when focus is set Test: fast/forms/select-double-onchange.html * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::menuListOnChange): Changed to update m_lastOnChangeIndex before dispatching the change event to avoid reentrancy. 2007-05-24 Darin Adler Reviewed by Hyatt. - fix REGRESSION (21618): Mail block quotes are missing the lines on the side This patch fixes three problems: 1) makes the "skip canLoad check" boolean also skip the check that prevents any loads while the document is in provisional state; this is the proximate cause of the bug * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::create): Don't check the frame's state if skipCanLoadCheck is true. 2) moves the "skip canLoad check" boolean to the Request object; the old implementation would cause that flag to affect the new request we served, which might not be the resource with that flag set 3) fixes error-handling code path that would leak requests * html/HTMLImageLoader.cpp: (WebCore::HTMLImageLoader::updateFromElement): Pass false to the CachedImage constructor to indicate we are not making this object for the cache. * loader/Cache.cpp: (WebCore::createResource): Pass true to the CachedImage constructor to indicate we are making this object for the cache. (WebCore::Cache::requestResource): Add new code that assumes the object will already have the inCache bit set, and that will delete the object and return 0 if the cache is disabled and the load failed. * loader/CachedImage.h: * loader/CachedImage.cpp: (WebCore::CachedImage::CachedImage): Added a forCache boolean parameter. Always false for the constructor that's only used outside the cache code, and passed in as a boolean for the constructor that's used both in cache and outside cache. * loader/CachedResource.h: * loader/CachedResource.cpp: (WebCore::CachedResource::CachedResource): Added a forCache boolean parameter that determines the initial state of the m_inCache flag. This is needed to prevent a resource from being destroyed if an error occurs during the initial load. * loader/DocLoader.cpp: (WebCore::DocLoader::requestCSSStyleSheet): Added FIXME. (WebCore::DocLoader::setLoadInProgress): Added null check. * loader/Request.h: * loader/Request.cpp: (WebCore::Request::Request): Added a shouldSkipCanLoadCheck boolean here, since we need to track this for each request. * loader/loader.h: * loader/loader.cpp: (WebCore::Loader::load): Pass the skipCanLoadCheck boolean to the Request constructor rather than to the servePendingRequests function. (WebCore::Loader::servePendingRequests): Add a loop so we can handle cases where the request fails immediately without leaking the request and thinking that we're loading forever. 2007-05-24 David Hyatt Add error reporting for residual style. Reviewed by aroben * html/HTMLParser.cpp: (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): (WebCore::HTMLParser::reopenResidualStyleTags): * html/HTMLParserErrorCodes.cpp: (WebCore::htmlParserErrorMessageTemplate): * html/HTMLParserErrorCodes.h: 2007-05-24 David Hyatt Report