2008-01-09 John Sullivan Reviewed by Adam Roben and Anders Carlsson - fixed Repro assertion failure in context menu code due to missing-but-expected Reload item * platform/ContextMenu.cpp: (WebCore::ContextMenu::populate): use isLoadingInAPISense when deciding whether to include Stop or Reload in context menu, to match the WebKit API 2008-01-09 Mark Rowe Fix Windows debug build for opensource developers. * WebCore.vcproj/QTMovieWin.vcproj: Use the correct library suffix. 2007-10-01 Allan Sandfeld Jensen Reworked by Eric, Reviewed by Hyatt. - fix http://bugs.webkit.org/show_bug.cgi?id=9454 Add support for :lang inheritance and xml:lang support. Tests: fast/selectors/lang-inheritance.html fast/selectors/lang-inheritance2.html fast/selectors/lang-vs-xml-lang.html fast/selectors/lang-vs-xml-lang-xhtml.xhtml * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::canShareStyleWithElement): Do not share style between elements with different LANG-attribute. (WebCore::CSSStyleSelector::checkOneSelector): Change :lang() to recursively check the LANG attribute for all the elements parents and the content-language of the document. * dom/Document.cpp: (WebCore::Document::processHttpEquiv): Parse MIME Content-Language * dom/Document.h: (WebCore::Document::contentLanguage): (WebCore::Document::setContentLanguage): 2008-01-08 Timothy Hatcher Reviewed by Brady. Bug 16678: Unreproducible crash in KJS::JSObject::inherits() after using Web Inspector http://bugs.webkit.org/show_bug.cgi?id=16678 Add a NULL check for controller before calling JSObjectSetPrivate. * page/InspectorController.cpp: (WebCore::InspectorController::~InspectorController): 2008-01-08 Xan Lopez Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=15610 [GTK] Text rendering using Pango Use Pango to render Complex path text. * platform/graphics/gtk/FontGtk.cpp: (WebCore::utf16_to_utf8): (WebCore::convertUniCharToUTF8): (WebCore::setPangoAttributes): (WebCore::Font::drawGlyphs): (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText): 2008-01-08 Timothy Hatcher Reviewed by Darin Adler. With the web inspector displayed, a crash occurs at WebCore::Frame::document() when navigating back to previous page This fixes the crash, but the inspector was totally broken with back/forward. So this also fixes back/forward navigation so the right main resource shows up in the inspector. * page/InspectorController.cpp: (WebCore::addSourceToFrame): Add some null checks for the frame when getting the textEncoding. This was the crash. (WebCore::InspectorController::addScriptResource): Create a script object only if needed, and always add it by calling addResource. (WebCore::InspectorController::didCommitLoad): Check if the loader is loading from the page cache, and clear m_mainResource. If the load is normal, then call addAndUpdateScriptResource with the main resource. (WebCore::InspectorController::identifierForInitialRequest): If the load is from the page cache and the resource is the main resource call addAndUpdateScriptResource since didCommitLoad did not do it. 2008-01-08 Alp Toker Back out VIDEO by default in the GTK+ qmake build. The build bot doesn't have the necessary libraries installed. * WebCore.pro: 2008-01-08 Alp Toker Win build fix for breakage introduced in r29328. * WebCore.vcproj/WebCore.vcproj: 2008-01-08 Alp Toker Rubber-stamped by Mark Rowe. Enable VIDEO by default in the GTK+ qmake build. * WebCore.pro: 2008-01-08 Alp Toker GTK+ VIDEO build fix for breakage introduced in r29328. Issue noticed by Ori_B. * GNUmakefile.am: * WebCore.pro: 2008-01-08 Antti Koivisto Reviewed by Darin. HTMLAudioElement needs generated constructor. Otherwise video instanceof HTMLAudioElement is true which is bit strange. Renamed custom constructor JSHTMLAudioElementConstructor to JSAudioConstructor to avoid name clashes. Test: media/constructors.html * ChangeLog: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSAudioConstructor.cpp: Copied from WebCore/bindings/js/JSHTMLAudioElementConstructor.cpp. (WebCore::JSAudioConstructor::JSAudioConstructor): (WebCore::JSAudioConstructor::implementsConstruct): (WebCore::JSAudioConstructor::construct): * bindings/js/JSAudioConstructor.h: Copied from WebCore/bindings/js/JSHTMLAudioElementConstructor.h. * bindings/js/JSHTMLAudioElementConstructor.cpp: Removed. * bindings/js/JSHTMLAudioElementConstructor.h: Removed. * bindings/js/kjs_window.cpp: (KJS::Window::getValueProperty): * html/HTMLAudioElement.idl: 2008-01-08 Anders Carlsson Reviewed by Mitz. Don't add the applet widget to the view, that's done later by RenderApplet. * loader/FrameLoader.cpp: (WebCore::FrameLoader::createJavaAppletWidget): 2008-01-08 Antti Koivisto Reviewed by Weinig. Add security check for Audio constructor. * bindings/js/kjs_window.cpp: (KJS::Window::getValueProperty): 2008-01-08 Timothy Hatcher Reviewed by Adam Roben. List of scripts and images missing when opening Web Inspector from new window (16567) InspectorController::didLoadResourceFromMemoryCache was not being called for resources that loaded from the memory cache that the FrameLoader's client has already been notified about. This fix always calls the InspectorController when loading a memory cached resource. No test possible for the Web Inspector. * loader/DocLoader.cpp: (WebCore::DocLoader::checkCacheObjectStatus): Moved most of the logic to FrameLoader::loadedResourceFromMemoryCache so the InspectorController can always be notified. * loader/FrameLoader.cpp: (WebCore::FrameLoader::didTellClientAboutLoad): Renamed from didTellBridgeAboutLoad. (WebCore::FrameLoader::haveToldClientAboutLoad): Renamed from haveToldBridgeAboutLoad. (WebCore::FrameLoader::loadResourceSynchronously): Call the renamed didTellClientAboutLoad. (WebCore::FrameLoader::loadedResourceFromMemoryCache): Only takes a CachedResource now. Always call InspectorController. If the resource's sendResourceLoadCallbacks is false or didTellClientAboutLoad is true, do an early return. Otherwise call the client and call didTellClientAboutLoad. (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache): Removed, work now done in FrameLoader::loadedResourceFromMemoryCache. * loader/FrameLoader.h: Renamed {didTell,haveTold}BridgeAboutLoad to {didTell,haveTold}ClientAboutLoad. Made loadedResourceFromMemoryCache only take a CachedResource. Renamed m_urlsBridgeKnowsAbout to m_urlsClientKnowsAbout. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::load): Call the renamed didTellClientAboutLoad. 2008-01-08 Dan Bernstein Rubber-stamped by Sam Weinig. - prefix all member variables in CSSStyleSelector with m_ * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::init): (WebCore::CSSStyleSelector::setEncodedURL): (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::matchRules): (WebCore::CSSStyleSelector::matchRulesForList): (WebCore::CSSStyleSelector::initElementAndPseudoState): (WebCore::CSSStyleSelector::initForStyleResolve): (WebCore::CSSStyleSelector::canShareStyleWithElement): (WebCore::CSSStyleSelector::locateSharedStyle): (WebCore::CSSStyleSelector::matchUARules): (WebCore::CSSStyleSelector::styleForElement): (WebCore::CSSStyleSelector::pseudoStyleForElement): (WebCore::CSSStyleSelector::updateFont): (WebCore::CSSStyleSelector::cacheBorderAndBackground): (WebCore::CSSStyleSelector::checkSelector): (WebCore::CSSStyleSelector::checkOneSelector): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundImage): (WebCore::CSSStyleSelector::mapBackgroundSize): (WebCore::CSSStyleSelector::mapBackgroundXPosition): (WebCore::CSSStyleSelector::mapBackgroundYPosition): (WebCore::CSSStyleSelector::checkForTextSizeAdjust): (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): * css/CSSStyleSelector.h: (WebCore::CSSStyleSelector::): (WebCore::CSSRuleData::CSSRuleData): (WebCore::CSSRuleDataList::CSSRuleDataList): (WebCore::CSSRuleDataList::append): * css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty): * rendering/RenderStyle.cpp: (WebCore::RenderStyle::isStyleAvailable): 2008-01-08 David D. Kilzer Removed unnecessary files from Copy Bundle Resources build phase. Reviewed by Sam. * WebCore.xcodeproj/project.pbxproj: Files removed from build phase: DOMCoreException.idl EventException.idl MessageEvent.idl SVGAElement.idl SVGAngle.idl SVGAnimateColorElement.idl SVGAnimateElement.idl SVGAnimateTransformElement.idl SVGAnimatedAngle.idl SVGAnimatedBoolean.idl SVGAnimatedEnumeration.idl SVGAnimatedInteger.idl SVGAnimatedLength.idl SVGAnimatedLengthList.idl SVGAnimatedNumber.idl SVGAnimatedNumberList.idl SVGAnimatedPathData.idl SVGAnimatedPoints.idl SVGAnimatedPreserveAspectRatio.idl SVGAnimatedRect.idl SVGAnimatedString.idl SVGAnimatedTransformList.idl SVGAnimationElement.idl SVGCSSPropertyNames.in SVGCSSValueKeywords.in SVGCircleElement.idl SVGClipPathElement.idl SVGColor.idl SVGComponentTransferFunctionElement.idl SVGCursorElement.idl SVGDefinitionSrcElement.idl SVGDefsElement.idl SVGDescElement.idl SVGDocument.idl SVGElement.idl SVGElementInstance.idl SVGElementInstanceList.idl SVGEllipseElement.idl SVGException.idl SVGExternalResourcesRequired.idl SVGFEBlendElement.idl SVGFEColorMatrixElement.idl SVGFEComponentTransferElement.idl SVGFECompositeElement.idl SVGFEDiffuseLightingElement.idl SVGFEDisplacementMapElement.idl SVGFEDistantLightElement.idl SVGFEFloodElement.idl SVGFEFuncAElement.idl SVGFEFuncBElement.idl SVGFEFuncGElement.idl SVGFEFuncRElement.idl SVGFEGaussianBlurElement.idl SVGFEImageElement.idl SVGFEMergeElement.idl SVGFEMergeNodeElement.idl SVGFEOffsetElement.idl SVGFEPointLightElement.idl SVGFESpecularLightingElement.idl SVGFESpotLightElement.idl SVGFETileElement.idl SVGFETurbulenceElement.idl SVGFilterElement.idl SVGFilterPrimitiveStandardAttributes.idl SVGFitToViewBox.idl SVGFontElement.idl SVGFontFaceElement.idl SVGFontFaceFormatElement.idl SVGFontFaceNameElement.idl SVGFontFaceSrcElement.idl SVGFontFaceUriElement.idl SVGForeignObjectElement.idl SVGGElement.idl SVGGlyphElement.idl SVGGradientElement.idl SVGImageElement.idl SVGLangSpace.idl SVGLength.idl SVGLengthList.idl SVGLineElement.idl SVGLinearGradientElement.idl SVGLocatable.idl SVGMarkerElement.idl SVGMaskElement.idl SVGMatrix.idl SVGMetadataElement.idl SVGMissingGlyphElement.idl SVGNumber.idl SVGNumberList.idl SVGPaint.idl SVGPathElement.idl SVGPathSeg.idl SVGPathSegArcAbs.idl SVGPathSegArcRel.idl SVGPathSegClosePath.idl SVGPathSegCurvetoCubicAbs.idl SVGPathSegCurvetoCubicRel.idl SVGPathSegCurvetoCubicSmoothAbs.idl SVGPathSegCurvetoCubicSmoothRel.idl SVGPathSegCurvetoQuadraticAbs.idl SVGPathSegCurvetoQuadraticRel.idl SVGPathSegCurvetoQuadraticSmoothAbs.idl SVGPathSegCurvetoQuadraticSmoothRel.idl SVGPathSegLinetoAbs.idl SVGPathSegLinetoHorizontalAbs.idl SVGPathSegLinetoHorizontalRel.idl SVGPathSegLinetoRel.idl SVGPathSegLinetoVerticalAbs.idl SVGPathSegLinetoVerticalRel.idl SVGPathSegList.idl SVGPathSegMovetoAbs.idl SVGPathSegMovetoRel.idl SVGPatternElement.idl SVGPoint.idl SVGPointList.idl SVGPolygonElement.idl SVGPolylineElement.idl SVGPreserveAspectRatio.idl SVGRadialGradientElement.idl SVGRect.idl SVGRectElement.idl SVGRenderingIntent.idl SVGSVGElement.idl SVGScriptElement.idl SVGSetElement.idl SVGStopElement.idl SVGStringList.idl SVGStylable.idl SVGStyleElement.idl SVGSwitchElement.idl SVGSymbolElement.idl SVGTRefElement.idl SVGTSpanElement.idl SVGTests.idl SVGTextContentElement.idl SVGTextElement.idl SVGTextPathElement.idl SVGTextPositioningElement.idl SVGTitleElement.idl SVGTransform.idl SVGTransformList.idl SVGTransformable.idl SVGURIReference.idl SVGUnitTypes.idl SVGUseElement.idl SVGViewElement.idl SVGViewSpec.idl SVGZoomAndPan.idl SVGZoomEvent.idl XMLHttpRequestException.idl XPathException.idl character-sets.txt mac-encodings.txt make-charset-table.pl svgattrs.in svgtags.in xlinkattrs.in 2008-01-08 Luca Bruno Reviewed by Alp Toker. Support copying the selected URL to the clipboard. * platform/gtk/PasteboardGtk.cpp: (WebCore::Pasteboard::writeURL): implemented 2008-01-08 David D. Kilzer Renamed CharacterData::m_str to m_data Rubber-stamped by Adam again. No test cases added since there is no change in behavior. * dom/CDATASection.cpp: * dom/CharacterData.cpp: (WebCore::CharacterData::CharacterData): (WebCore::CharacterData::setData): (WebCore::CharacterData::substringData): (WebCore::CharacterData::appendData): (WebCore::CharacterData::insertData): (WebCore::CharacterData::deleteData): (WebCore::CharacterData::replaceData): (WebCore::CharacterData::nodeValue): (WebCore::CharacterData::containsOnlyWhitespace): (WebCore::CharacterData::dispatchModifiedEvent): (WebCore::CharacterData::checkCharDataOperation): (WebCore::CharacterData::dump): * dom/CharacterData.h: * dom/Comment.cpp: * dom/Text.cpp: (WebCore::Text::splitText): (WebCore::Text::createRenderer): (WebCore::Text::recalcStyle): 2008-01-08 Steve Falkenburg Fix a couple of compiler warnings. Reviewed by Mitz. * platform/win/ThreadingWin.cpp: * platform/win/UniscribeController.cpp: Remove unused function. (WebCore::UniscribeController::advance): Fix bogus warning about un-initialized variable. 2008-01-08 Adele Peterson Reviewed by Darin. Fix for fast/forms/slider-mouse-events.html is broken by media control checkin 29257 * rendering/RenderSlider.cpp: (WebCore::HTMLSliderThumbElement::defaultEventHandler): After fixing a bug in EventHandler to make sure events always go to the capturing node, this bug was exposed. MouseMove and MouseUp events were going to the thumb element, but not to the slider input element. This change makes the input element the capturing node, and then the input element forwards the mouse events to the thumb element. I also added a missing call to setDefaultHandled for the mousemove event. 2008-01-08 Adele Peterson Reviewed by Adam. * rendering/RenderThemeSafari.cpp: Use the SafariTheme version number to decide whether or not to paint the media controls in RenderThemeSafari. 2008-01-08 Oliver Hunt Reviewed by Adele and John. Fix Crash occurs at WebCore::Widget::getView() after dragging file into window that contains web page ( http://www.econocraft.com/flood_arch.htm ) We hit this crash if the page reloads between DragController::dragUpdated and DragController::performDrag, meaning that m_document starts pointing to a now viewless document. This is picked up by an assertion in performDrag which I have now replaced with an assignment given that the assertion is invalid -- it is possible for m_document to be changed between dragUpdated performDrag * page/DragController.cpp: (WebCore::DragController::performDrag): 2008-01-08 Alexey Proskuryakov Reviewed by Darin. CrashTracer: 462 crashes in Safari at com.apple.WebCore: WebCore::Node::setChanged + 96 Test: fast/dom/cssTarget-crash.html * dom/Node.cpp: (WebCore::Node::removedFromDocument): Check to see if the node being removed is currently set as the Document's cssTarget. If it is, clear the cssTarget to prevent a hanging reference to it. 2008-01-08 Adam Roben * bindings/scripts/CodeGeneratorJS.pm: Touch this so the bindings will rebuild on Windows now that the media elements are enabled. 2008-01-08 Adam Roben * svg/svgtags.in: Touch this again for the sake of the Windows bots. 2008-01-08 Timothy Hatcher Reviewed by Adam Roben. Use JSRetainPtr in the Web Inspector everywhere we own a JSStringRef. Also added some #pragma marks to help find places in the file. * page/InspectorController.cpp: (WebCore::callSimpleFunction): Use JSRetainPtr. And return the result of JSObjectCallAsFunction. (WebCore::search): Use JSRetainPtr. (WebCore::databaseTableNames): Ditto. (WebCore::localizedStrings): Ditto. (WebCore::InspectorController::~InspectorController): Ditto. (WebCore::InspectorController::focusNode): Ditto. (WebCore::InspectorController::windowScriptObjectAvailable): Ditto. (WebCore::InspectorController::scriptObjectReady): Ditto. (WebCore::addHeaders): Ditto. (WebCore::InspectorController::addScriptResource): Ditto. (WebCore::InspectorController::removeScriptResource): Ditto. (WebCore::InspectorController::updateScriptResourceRequest): Ditto. (WebCore::InspectorController::updateScriptResourceResponse): Ditto. (WebCore::InspectorController::updateScriptResource): Ditto. (WebCore::InspectorController::addDatabaseScriptResource): Ditto. (WebCore::InspectorController::removeDatabaseScriptResource): Ditto. (WebCore::InspectorController::addScriptConsoleMessage): Ditto. 2008-01-08 Dan Bernstein Rubber-stamped by Sam Weinig. - rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h} * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * editing/Editor.cpp: * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp. * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h. * platform/graphics/FontDataBaseClass.cpp: Removed. * platform/graphics/FontDataBaseClass.h: Removed. * platform/graphics/SegmentedFontData.h: * platform/graphics/SimpleFontData.h: 2008-01-08 Dan Bernstein Fix a Wx build error. * platform/graphics/wx/GlyphMapWx.cpp: (WebCore::GlyphPage::fill): 2008-01-08 Dan Bernstein Fix a Qt build error. * platform/graphics/qt/SimpleFontDataQt.cpp: (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::fontDataForCharacter): (WebCore::SimpleFontData::isSegmented): 2008-01-08 Adam Roben Windows build fix. Touch config.h to force a rebuild (apparently changing preprocessor definitions in the .vcproj doesn't force a rebuild). * config.h: 2008-01-08 Dan Bernstein Fix a Wx build failure. * webcore-wx.bkl: 2008-01-08 Dan Bernstein Fix a Qt build failure. * WebCore.pro: 2008-01-08 John Sullivan Reviewed by Adam Roben - fixed REGRESSION (r28711-r28730): With caret in an empty form field, Delete menu item is enabled but shouldn't be The enabled logic was incorrect for the Delete menu item. To fix this, I added an EditorCommandSource parameter to the enabled functions so that they can have parallel logic to the execute functions. * editing/EditorCommand.cpp: added EditorCommandSource parameter to isEnabled function prototype (WebCore::enabled): added unused EditorCommandSource parameter to these isEnabled functions: (WebCore::enabledAnySelection): (WebCore::enabledAnySelectionAndMark): (WebCore::enableCaretInEditableText): (WebCore::enabledCopy): (WebCore::enabledCut): (WebCore::enabledDelete): new function, uses logic previously used by Delete command for DOM sources; uses logic in enabledCut for menu source added unused EditorCommandSource parameter to these isEnabled functions: (WebCore::enabledInEditableText): (WebCore::enabledInRichlyEditableText): (WebCore::enabledPaste): (WebCore::enabledRangeInEditableText): (WebCore::enabledRangeInRichlyEditableText): (WebCore::enabledRedo): (WebCore::enabledUndo): (WebCore::CommandEntry::): wire up new enabledDelete function as delete function for Delete command (WebCore::Editor::Command::isEnabled): pass EditorCommandSource parameter to isEnabled function 2008-01-08 Adam Roben Visual C++ Express build fix * WebCore.vcproj/QTMovieWin.vcproj: Explicitly link against user32.lib and advapi32.lib. VS implicitly links against these, VC++ Express doesn't. 2008-01-08 Dan Bernstein - add bug number * platform/graphics/mac/FontCustomPlatformData.cpp: (WebCore::createFontCustomPlatformData): 2008-01-08 Dan Bernstein Try to fix the Qt build. * WebCore.pro: 2008-01-08 Nikolas Zimmermann Not reviewed. Try to fix Qt builds after Timothy's inspector changes. * page/inspector/WebKit.qrc: 2008-01-08 Maciej Stachowiak Reviewed by Mark. - remove duplicate definition of getElementById from HTMLDocument IDL (and ObjC bindings) * bindings/objc/PublicDOMInterfaces.h: * html/HTMLDocument.idl: 2008-01-08 David D. Kilzer Renamed CharacterData::str to m_str to match coding style Rubber-stamped by Adam. No test cases added since there is no change in behavior. * dom/CDATASection.cpp: * dom/CharacterData.cpp: (WebCore::CharacterData::CharacterData): (WebCore::CharacterData::setData): (WebCore::CharacterData::substringData): (WebCore::CharacterData::appendData): (WebCore::CharacterData::insertData): (WebCore::CharacterData::deleteData): (WebCore::CharacterData::replaceData): (WebCore::CharacterData::nodeValue): (WebCore::CharacterData::containsOnlyWhitespace): (WebCore::CharacterData::dispatchModifiedEvent): (WebCore::CharacterData::checkCharDataOperation): (WebCore::CharacterData::dump): * dom/CharacterData.h: * dom/Comment.cpp: * dom/Text.cpp: (WebCore::Text::splitText): (WebCore::Text::createRenderer): (WebCore::Text::recalcStyle): 2008-01-08 Oliver Hunt Reviewed by NOBODY (Build fix). Set the ENABLE_SVG_FONTS flag in Windows build, now builds, I'm not sure if it just caused the right files to regenerate, or if there's some configuration weirdness in the non-SVG-fonts build. * WebCore.vcproj/WebCore.vcproj: 2008-01-07 Maciej Stachowiak Reviewed by Brady. - fixed Back/Forward Cache should not include pages with databases Track whether a document has ever opened a database; if so, exclude it from b/f caching (for now) * dom/Document.cpp: (WebCore::Document::Document): * dom/Document.h: (WebCore::Document::setHasOpenDatabases): (WebCore::Document::hasOpenDatabases): * loader/FrameLoader.cpp: (WebCore::FrameLoader::canCachePage): * storage/Database.cpp: (WebCore::Database::openDatabase): 2008-01-07 Dan Bernstein Reviewed by Oliver Hunt. - fix leaks seen on the build bot * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::addFontFaceRule): Avoid creating a CSSFontFaceSource for SVG font-face elements going into an SVGCSSFontFace because it just leaks them. Avoid adding SVG font- face elements to a CSSFontFace because it will not work as expected. 2008-01-07 Mark Rowe Tiger build fix. * platform/graphics/mac/FontCustomPlatformData.cpp: (WebCore::createFontCustomPlatformData): Only include this code on Leopard. It's not needed on Tiger, and breaks the build. 2008-01-07 Antti Koivisto Reviewed by Steve. Re-enable media support in Windows build. * WebCore.vcproj/QTMovieWin.vcproj: * WebCore.vcproj/WebCore.vcproj: * WebCore.vcproj/build-generated-files.sh: 2008-01-07 Steve Falkenburg Add version resource to QTMovieWin.dll Reviewed by Adam. * WebCore.vcproj/PRODUCTVERSION: Copied from ../WebKit/win/WebKit.vcproj/PRODUCTVERSION. * WebCore.vcproj/QTMovieWin.rc: Added. * WebCore.vcproj/QTMovieWin.vcproj: * WebCore.vcproj/VERSION: Copied from ../WebKit/win/WebKit.vcproj/VERSION. * WebCore.vcproj/auto-version.sh: Copied from ../WebKit/win/WebKit.vcproj/auto-version.sh. 2008-01-07 Dan Bernstein Build fix. * platform/graphics/qt/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Added. Calls QFontDatabase::removeApplicationFont(). * platform/graphics/qt/FontCustomPlatformData.h: * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): Removed the implementation because Qt does not use the WebCore glyph cache. 2008-01-07 Dan Bernstein Reviewed by Oliver Hunt. - fix an assertion failure in svg/W3C-SVG-1.1/fonts-elem-03-b.svg on Tiger and multiple SVG layout test failures on Leopard. * css/CSSSegmentedFontFace.cpp: (WebCore::CSSSegmentedFontFace::getFontData): Avoid returning an empty SegmentedFontData. * platform/graphics/mac/FontCustomPlatformData.cpp: (WebCore::createFontCustomPlatformData): Avoid creating a font that contains no glyphs. On Leopard, ATS might create such a font given data in an unsupported format (such as SVG). 2008-01-07 Steve Falkenburg Build fix. * WebCore.vcproj/WebCore.sln: * WebCore.vcproj/WebCore.submit.sln: 2008-01-07 Oliver Hunt Reviewed by Niko. Fix painting of SVG when the image must be scaled to retain aspect ratio Test: svg/custom/image-with-aspect-ratio-stretch.svg * rendering/RenderSVGImage.cpp: (WebCore::RenderSVGImage::adjustRectsForAspectRatio): 2008-01-07 Dan Bernstein Build fix. * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): 2008-01-07 Adele Peterson Add missing newline. * rendering/MediaControlElements.cpp: 2008-01-07 Jon Honeycutt Reviewed by Hyatt. Safari does not render windowless plugins in an iframe when opacity < 1.0 Plugins in transparency layers handle their own world transforms, so only apply the horizontal/vertical transform if we are not in a transparency layer. * platform/graphics/GraphicsContext.h: Add a Windows-platform-only inTransparencyLayer() function * platform/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::getWindowsContext): Use inTransparencyLayer() (WebCore::GraphicsContext::inTransparencyLayer): (WebCore::GraphicsContext::releaseWindowsContext): Use inTransparencyLayer() * plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::paint): When retrieving the HDC, use the rect relative to the window. Pass m_isTransparent to get/releaseWindowsContext(). Only set the world transform if we are not in a transparency layer. 2008-01-07 Adele Peterson Build fix. Need to wrap these classes in #if ENABLE(VIDEO) * rendering/MediaControlElements.cpp: * rendering/MediaControlElements.h: 2008-01-07 Nikolas Zimmermann Reviewed by Mark. Enable SVG_FONTS by default. * Configurations/WebCore.xcconfig: * WebCore.vcproj/build-generated-files.sh: 2008-01-07 Dan Bernstein Build fix. * platform/graphics/qt/SimpleFontDataQt.cpp: (WebCore::SimpleFontData::SimpleFontData): (WebCore::SimpleFontData::~SimpleFontData): 2008-01-07 Adam Barth Reviewed by Sam Weinig Fixes: http://bugs.webkit.org/show_bug.cgi?id=16523 When a frame is created with the URL "about:blank" or "", it should inherit its SecurityOrigin from its opener. However, once it has decided on that SecurityOrigin, it should not change its mind. Prior to this patch, several events could induce the frame to change its SecurityOrigin, permitting an attacker to inject script into an arbitrary SecurityOrigin. This patch makes several changes: 1) Documents refuse to change from one SecurityOrigin to another unless explicitly instructed to do so. 2) Navigating to a JavaScript URL that produces a value preserves the current SecurityOrigin explicitly instead of relying on the URL to preserve the origin (which fails for about:blank URLs and SecurityOrigins with document.domain set). Ideally, we should not preserve the URL at all. Instead, the frame's URL should be the JavaScript URL, as in Firefox, but this would require changes that are too risky for this patch. I'll file this as a separate issue. 3) Various methods of navigating to JavaScript URLs were not properly handling JavaScript that returned a value (and should therefore replace the current document). This patch unifies those code paths with the path that works. There are still a handful of bugs relating to the handling of JavaScript URLs, but I'll file those as separate issues. Tests: http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url.html http/tests/security/aboutBlank/xss-DENIED-set-opener.html * dom/Document.cpp: (WebCore::Document::initSecurityOrigin): * dom/Document.h: (WebCore::Document::setSecurityOrigin): * loader/FrameLoader.cpp: (WebCore::FrameLoader::changeLocation): (WebCore::FrameLoader::urlSelected): (WebCore::FrameLoader::requestFrame): (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::executeIfJavaScriptURL): (WebCore::FrameLoader::begin): * loader/FrameLoader.h: * platform/SecurityOrigin.cpp: (WebCore::SecurityOrigin::setForURL): (WebCore::SecurityOrigin::createForFrame): * platform/SecurityOrigin.h: 2008-01-07 Adele Peterson Forgot to check in these changes in my last checkin. * rendering/RenderThemeSafari.cpp: 2008-01-07 Dan Bernstein Build fixes. * WebCore.pro: * platform/graphics/qt/FontCacheQt.cpp: (WebCore::FontCache::getCachedFontData): 2008-01-07 Timothy Hatcher Reviewed by John Sullivan. Make the Web Inspector toolbar the normal size when not docked * page/inspector/inspector.css: Changed CSS rules to have the toolbar and buttons be normal height when not docked, and small when docked. Also added some cursor properties prevent showing the text cursor over areas that are not selectable. * page/inspector/Images: A few images added and old ones removed or renamed. 2008-01-07 Alp Toker Prospective GTK+ autotools/qmake VIDEO build fix for breakage introduced in r29257. * GNUmakefile.am: * WebCore.pro: 2008-01-07 Nikolas Zimmermann Reviewed by Oliver. Build fix affecting all builds - again related to the unicode-range addition. * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::addFontFaceRule): * css/SVGCSSFontFace.cpp: (WebCore::SVGCSSFontFace::SVGCSSFontFace): * css/SVGCSSFontFace.h: * rendering/RenderSVGText.cpp: * svg/SVGFont.cpp: (WebCore::svgFontAndFontFaceElementForFontData): (WebCore::floatWidthMissingGlyphCallback): (WebCore::drawTextMissingGlyphCallback): * svg/SVGFontFaceElement.cpp: 2008-01-07 Adele Peterson Reviewed by Antti, Adam, and Mitz. WebCore part of fix for Updated look for