Timeline



Jan 12, 2009:

11:54 PM Changeset in webkit [39852] by mrowe@apple.com
  • 6 edits in trunk/WebKitTools

Use the modern spelling of WebKit.

  • Scripts/find-extra-includes:
  • Scripts/report-include-statistics:
  • Scripts/run-webkit-app:
  • Scripts/svn-unapply:
  • Scripts/update-webkit:
8:51 PM Changeset in webkit [39851] by barraclough@apple.com
  • 38 edits in trunk

JavaScriptCore:

2009-01-12 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Make the JSImmediate interface private.

All manipulation of JS values should be through the JSValuePtr class, not by using JSImmediate
directly. The key missing methods on JSValuePtr are:

  • isCell() - check for values that are JSCell*s, and as such where asCell() may be used.
  • isInt32Fast() getInt32Fast() - fast check/access for integer immediates.
  • isUInt32Fast() getUInt32Fast() - ditto for unsigned integer immediates.

The JIT is allowed full access to JSImmediate, since it needs to be able to directly
manipulate JSValuePtrs. The Interpreter is provided access to perform operations directly
on JSValuePtrs through the new JSFastMath interface.

No performance impact.

  • API/JSCallbackObjectFunctions.h: (JSC::::toNumber):
  • API/JSValueRef.cpp: (JSValueIsEqual): (JSValueIsStrictEqual):
  • JavaScriptCore.exp:
  • bytecode/CodeBlock.h: (JSC::CodeBlock::isKnownNotImmediate):
  • bytecompiler/BytecodeGenerator.cpp: (JSC::keyForImmediateSwitch):
  • bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::JSValueHashTraits::constructDeletedValue): (JSC::BytecodeGenerator::JSValueHashTraits::isDeletedValue):
  • interpreter/Interpreter.cpp: (JSC::jsLess): (JSC::jsLessEq): (JSC::jsAdd): (JSC::jsIsObjectType): (JSC::cachePrototypeChain): (JSC::Interpreter::tryCachePutByID): (JSC::Interpreter::tryCacheGetByID): (JSC::Interpreter::privateExecute): (JSC::Interpreter::tryCTICachePutByID): (JSC::Interpreter::tryCTICacheGetByID): (JSC::Interpreter::cti_op_add): (JSC::Interpreter::cti_op_get_by_id_self_fail): (JSC::Interpreter::cti_op_get_by_id_proto_list): (JSC::Interpreter::cti_op_instanceof): (JSC::Interpreter::cti_op_mul): (JSC::Interpreter::cti_op_get_by_val): (JSC::Interpreter::cti_op_get_by_val_byte_array): (JSC::Interpreter::cti_op_sub): (JSC::Interpreter::cti_op_put_by_val): (JSC::Interpreter::cti_op_put_by_val_array): (JSC::Interpreter::cti_op_put_by_val_byte_array): (JSC::Interpreter::cti_op_negate): (JSC::Interpreter::cti_op_div): (JSC::Interpreter::cti_op_eq): (JSC::Interpreter::cti_op_lshift): (JSC::Interpreter::cti_op_bitand): (JSC::Interpreter::cti_op_rshift): (JSC::Interpreter::cti_op_bitnot): (JSC::Interpreter::cti_op_neq): (JSC::Interpreter::cti_op_urshift): (JSC::Interpreter::cti_op_call_eval): (JSC::Interpreter::cti_op_throw): (JSC::Interpreter::cti_op_is_undefined): (JSC::Interpreter::cti_op_stricteq): (JSC::Interpreter::cti_op_nstricteq): (JSC::Interpreter::cti_op_switch_imm): (JSC::Interpreter::cti_vm_throw):
  • interpreter/Interpreter.h: (JSC::Interpreter::isJSArray): (JSC::Interpreter::isJSString): (JSC::Interpreter::isJSByteArray):
  • jit/JIT.cpp: (JSC::JIT::compileOpStrictEq): (JSC::JIT::privateCompileMainPass):
  • jit/JIT.h: (JSC::JIT::isStrictEqCaseHandledInJITCode):
  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArith_op_rshift): (JSC::JIT::compileFastArith_op_bitand): (JSC::JIT::compileFastArith_op_mod):
  • jit/JITCall.cpp: (JSC::JIT::unlinkCall): (JSC::JIT::compileOpCall):
  • jit/JITInlineMethods.h: (JSC::JIT::getConstantOperandImmediateInt): (JSC::JIT::isOperandConstantImmediateInt):
  • parser/Nodes.cpp: (JSC::processClauseList):
  • runtime/ArrayPrototype.cpp: (JSC::arrayProtoFuncIndexOf): (JSC::arrayProtoFuncLastIndexOf):
  • runtime/BooleanPrototype.cpp: (JSC::booleanProtoFuncValueOf):
  • runtime/Collector.cpp: (JSC::Heap::protect): (JSC::Heap::unprotect): (JSC::Heap::heap):
  • runtime/JSByteArray.cpp: (JSC::JSByteArray::getOwnPropertySlot):
  • runtime/JSByteArray.h: (JSC::JSByteArray::getIndex):
  • runtime/JSCell.cpp:
  • runtime/JSCell.h: (JSC::JSValuePtr::isNumberCell): (JSC::JSValuePtr::asCell): (JSC::JSValuePtr::isNumber):
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::globalFuncParseInt):
  • runtime/JSImmediate.h: (JSC::js0): (JSC::jsImpossibleValue): (JSC::JSValuePtr::toInt32): (JSC::JSValuePtr::toUInt32): (JSC::JSValuePtr::isCell): (JSC::JSValuePtr::isInt32Fast): (JSC::JSValuePtr::getInt32Fast): (JSC::JSValuePtr::isUInt32Fast): (JSC::JSValuePtr::getUInt32Fast): (JSC::JSValuePtr::makeInt32Fast): (JSC::JSValuePtr::areBothInt32Fast): (JSC::JSFastMath::canDoFastBitwiseOperations): (JSC::JSFastMath::equal): (JSC::JSFastMath::notEqual): (JSC::JSFastMath::andImmediateNumbers): (JSC::JSFastMath::xorImmediateNumbers): (JSC::JSFastMath::orImmediateNumbers): (JSC::JSFastMath::canDoFastRshift): (JSC::JSFastMath::canDoFastUrshift): (JSC::JSFastMath::rightShiftImmediateNumbers): (JSC::JSFastMath::canDoFastAdditiveOperations): (JSC::JSFastMath::addImmediateNumbers): (JSC::JSFastMath::subImmediateNumbers): (JSC::JSFastMath::incImmediateNumber): (JSC::JSFastMath::decImmediateNumber):
  • runtime/JSNumberCell.h: (JSC::JSValuePtr::asNumberCell): (JSC::jsNumber): (JSC::JSValuePtr::uncheckedGetNumber): (JSC::JSNumberCell::toInt32): (JSC::JSNumberCell::toUInt32): (JSC::JSValuePtr::toJSNumber): (JSC::JSValuePtr::getNumber): (JSC::JSValuePtr::numberToInt32): (JSC::JSValuePtr::numberToUInt32):
  • runtime/JSObject.h: (JSC::JSValuePtr::isObject): (JSC::JSValuePtr::get): (JSC::JSValuePtr::put):
  • runtime/JSValue.cpp: (JSC::JSValuePtr::toInteger): (JSC::JSValuePtr::toIntegerPreserveNaN):
  • runtime/JSValue.h:
  • runtime/Operations.cpp: (JSC::JSValuePtr::equalSlowCase): (JSC::JSValuePtr::strictEqualSlowCase):
  • runtime/Operations.h: (JSC::JSValuePtr::equal): (JSC::JSValuePtr::equalSlowCaseInline): (JSC::JSValuePtr::strictEqual): (JSC::JSValuePtr::strictEqualSlowCaseInline):
  • runtime/Protect.h: (JSC::gcProtect): (JSC::gcUnprotect):
  • runtime/StringPrototype.cpp: (JSC::stringProtoFuncCharAt): (JSC::stringProtoFuncCharCodeAt):
  • runtime/Structure.cpp: (JSC::Structure::createCachedPrototypeChain):

WebCore:

2009-01-12 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Deprecate JSValuePtr::getNumber() - two ways to get a number should be enough.

  • bindings/js/JSSQLTransactionCustom.cpp: (WebCore::JSSQLTransaction::executeSql):
  • bindings/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):

WebKit/mac:

2009-01-12 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Deprecate JSValuePtr::getNumber() - two ways to get a number should be enough.

  • WebView/WebView.mm: (aeDescFromJSValue):
6:33 PM Changeset in webkit [39850] by beidson@apple.com
  • 2 edits in trunk/WebKit/win

2009-01-12 Brady Eidson <beidson@apple.com>

Reviewed by NOBODY (OOPS!).


<rdar://problem/6490446> - Crash when going back to a cached page

  • WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::savePlatformDataToCachedPage): ENABLE(CFNETWORK) needed to be USE(CFNETWORK)
5:09 PM Changeset in webkit [39849] by cmarrin@apple.com
  • 4 edits in trunk/WebCore

Fixed https://bugs.webkit.org/show_bug.cgi?id=22919

I added a common getElapsedTime() function to AnimationBase which uses a combination of
the techniques from KeyframeAnimation and AnimationBase to compute elapsedTime in all
states.

  • page/animation/AnimationBase.cpp: (WebCore::AnimationBase::progress): (WebCore::AnimationBase::getElapsedTime):
  • page/animation/AnimationBase.h:
  • page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::animate):
4:22 PM Changeset in webkit [39848] by bfulgham@webkit.org
  • 3 edits
    2 adds in trunk

Correct scrolldelay units (s -> ms)

4:20 PM Changeset in webkit [39847] by Simon Fraser
  • 2 edits in trunk/WebCore

2009-01-12 Simon Fraser <Simon Fraser>

Reviewed by Dan Bernstein

https://bugs.webkit.org/show_bug.cgi?id=23273

In RenderBox::repaintLayerRectsForImage(), the repaint rect does not have
to be computed in absolute coordintes. Instead, we compute a repaintRect
relative to the RenderObject, which can repaint itself.

  • rendering/RenderBox.cpp: (WebCore::RenderBox::repaintLayerRectsForImage):
4:15 PM Changeset in webkit [39846] by hyatt@apple.com
  • 2 edits in trunk/WebCore

2009-01-12 David Hyatt <hyatt@apple.com>

Apply the same idea as the previous fix but for matched declarations.

Reviewed by Dan Bernstein

  • css/CSSStyleSelector.h:
4:15 PM Changeset in webkit [39845] by beidson@apple.com
  • 17 edits in trunk

WebCore:

2009-01-12 Brady Eidson <beidson@apple.com>

Reviewed by Darin Adler

<rdar://problem/6468274> - Track Non-get requests in global history

  • WebCore.base.exp:
  • history/HistoryItem.cpp: (WebCore::HistoryItem::HistoryItem):
  • history/HistoryItem.h: (WebCore::HistoryItem::lastVisitWasHTTPNonGet): (WebCore::HistoryItem::setLastVisitWasHTTPNonGet):

WebKit/mac:

2009-01-12 Brady Eidson <beidson@apple.com>

Reviewed by Darin Adler

<rdar://problem/6468274> - Track Non-get requests in global history

  • History/WebHistory.mm: (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
  • History/WebHistoryInternal.h:
  • History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): (-[WebHistoryItem dictionaryRepresentation]): (-[WebHistoryItem _lastVisitWasHTTPNonGet]):
  • History/WebHistoryItemPrivate.h:
  • WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): Only pass the method through if it was an HTTP load

WebKit/win:

2009-01-12 Brady Eidson <beidson@apple.com>

Reviewed by Darin Adler

<rdar://problem/6468274> - Track Non-get requests in global history

  • WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::updateGlobalHistory):
  • WebHistory.cpp: (WebHistory::addItem):
  • WebHistory.h:
  • Interfaces/IWebHistoryItemPrivate.idl:
  • WebHistoryItem.cpp: (WebHistoryItem::initFromDictionaryRepresentation): (WebHistoryItem::dictionaryRepresentation): (WebHistoryItem::lastVisitWasHTTPNonGet): (WebHistoryItem::setLastVisitWasHTTPNonGet):
  • WebHistoryItem.h:
3:49 PM Changeset in webkit [39844] by kevino@webkit.org
  • 2 edits in trunk/WebKit/wx

wx build fix. JSValue* -> JSValuePtr.

3:47 PM Changeset in webkit [39843] by kevino@webkit.org
  • 5 edits in trunk/WebCore

!ENABLE(SVG_FONTS) build fix. Move defaultUnitsPerEm into a non-SVG header so it can be used by all builds.

3:41 PM Changeset in webkit [39842] by kevino@webkit.org
  • 2 edits in trunk/WebCore

wx build typo fix.

3:39 PM Changeset in webkit [39841] by kevino@webkit.org
  • 2 edits in trunk/JavaScriptCore

Since platform date time functions have moved to JSC, now the wx port JSC needs to depend on wx.

3:18 PM Changeset in webkit [39840] by andersca@apple.com
  • 5 edits in trunk/WebKit/mac

2009-01-12 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Move marshalling into NetscapePluginInstanceProxy.


Add support for marshallin strings.


  • Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCEvaluate): (WKPCInvoke):
  • Plugins/Hosted/NetscapePluginInstanceProxy.h:
  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::marshalValue):
  • Plugins/Hosted/WebKitPluginHostTypes.h:
3:01 PM Changeset in webkit [39839] by hyatt@apple.com
  • 2 edits in trunk/WebCore

2009-01-12 David Hyatt <hyatt@apple.com>

Make sure the set of matched rules has a reserved capacity of 32. This prevents remalloc thrash as
elements are matched, since the Vector is shrinking and growing over and over. 1% PLT speedup.

Reviewed by Oliver Hunt

  • css/CSSStyleSelector.h:
2:37 PM Changeset in webkit [39838] by hyatt@apple.com
  • 2 edits in trunk/WebCore

2009-01-12 David Hyatt <hyatt@apple.com>

Optimize Element::attributeChanged to just check if accessibility is enabled up front before looking at the
two accessibility-related attributes. This avoids the rest of the code for all attributes on the PLT.
Tiny speedup.

Reviewed by Oliver Hunt

  • dom/Element.cpp: (WebCore::Element::attributeChanged):
2:34 PM Changeset in webkit [39837] by hyatt@apple.com
  • 2 edits in trunk/WebCore

2009-01-12 David Hyatt <hyatt@apple.com>

Optimize the retrieval of line height. If the document is not using any first-line rules, just immediately
default to the normal case. Tiny speedup on PLT.

Reviewed by Oliver Hunt

  • rendering/RenderFlow.cpp: (WebCore::RenderFlow::lineHeight):
2:25 PM Changeset in webkit [39836] by andersca@apple.com
  • 5 edits in trunk/WebKit/mac

2009-01-12 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Implement WKPCInvoke.


  • Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCEvaluate): (WKPCInvoke):
  • Plugins/Hosted/NetscapePluginInstanceProxy.h:
  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::idForObject): (WebKit::NetscapePluginInstanceProxy::invoke):
  • Plugins/Hosted/WebKitPluginClient.defs:
2:15 PM QtWebKitTodo edited by Simon Hausmann
(diff)
2:15 PM Changeset in webkit [39835] by hyatt@apple.com
  • 2 edits in trunk/WebCore

2009-01-12 David Hyatt <hyatt@apple.com>

Fix 0.6% regression in PLT. Make sure not to waste time updating NSScrollView's can blit on scroll state
in the ScrollView constructor, since this is always going to be properly updated by FrameView anyway.

Reviewed by Oliver Hunt

  • platform/ScrollView.cpp: (WebCore::ScrollView::ScrollView):
1:42 PM Changeset in webkit [39834] by Simon Fraser
  • 12 edits in trunk/WebCore

2009-01-12 Simon Fraser <Simon Fraser>

Reviewed by Dan Bernstein

https://bugs.webkit.org/show_bug.cgi?id=23220

Merge layoutDelta into LayoutState. This requires that we
push even when layoutState is disabled, so that layoutDelta
can still be stored.

1:38 PM Changeset in webkit [39833] by andersca@apple.com
  • 5 edits in trunk/WebKit/mac

2009-01-12 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Move marshalling code to NetscapePluginInstanceProxy. Add support for marshalling JS objects.


  • Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCEvaluate):
  • Plugins/Hosted/NetscapePluginInstanceProxy.h:
  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::marshalValue):
  • Plugins/Hosted/WebKitPluginHostTypes.h:
1:31 PM Changeset in webkit [39832] by jchaffraix@webkit.org
  • 2 edits in trunk/WebCore

2009-01-12 Julien Chaffraix <jchaffraix@pleyo.com>

Reviewed by Holger Freyther.

[Qt] Build fix after turning the fontCache to a singleton
https://bugs.webkit.org/show_bug.cgi?id=23253

Add a stub implementation for WebCore::fontCache() and FontCache::FontCache().

  • platform/graphics/qt/FontCacheQt.cpp: (WebCore::fontCache): (WebCore::FontCache::FontCache):
1:07 PM Changeset in webkit [39831] by Dimitri Glazkov
  • 5 edits
    2 adds in trunk

2009-01-12 Eric Roman <eroman@chromium.org>

Reviewed by Darin Adler.


Fix some bugs with Selection::appendTrailingWhitespace().
https://bugs.webkit.org/show_bug.cgi?id=23232


Test: editing/selection/doubleclick-whitespace-crash.html


  • editing/Selection.cpp: (WebCore::makeSearchRange): (WebCore::Selection::appendTrailingWhitespace):

2009-01-12 Eric Roman <eroman@chromium.org>

Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23232

  • editing/selection/doubleclick-whitespace-crash-expected.txt: Added.
  • editing/selection/doubleclick-whitespace-crash.html: Added.
  • editing/selection/doubleclick-whitespace-expected.txt:
  • editing/selection/doubleclick-whitespace.html:
12:26 PM Changeset in webkit [39830] by eric@webkit.org
  • 1 edit
    5 adds in trunk/WebCore

2009-01-12 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add the first pieces of platform/graphics/chromium
https://bugs.webkit.org/show_bug.cgi?id=23257

  • platform/graphics/chromium/ColorChromium.cpp: Added. (WebCore::focusRingColor):
  • platform/graphics/chromium/FontCacheChromiumWin.cpp: Added. (WebCore::FontCache::platformInit): (WebCore::isStringASCII): (WebCore::LookupAltName): (WebCore::FontCodepage::): (WebCore::FontCodepage::if): (WebCore::createFontIndirectAndGetWinName): (WebCore::fontContainsCharacter): (WebCore::FontCache::getFontDataForCharacters): (WebCore::FontCache::alternateFamilyName): (WebCore::FontCache::getSimilarFontPlatformData): (WebCore::FontCache::getLastResortFallbackFont): (WebCore::toGDIFontWeight): (WebCore::FontCache::getGenericFontForScript): (WebCore::FillLogFont): (WebCore::FontCache::fontExists): (WebCore::TraitsInFamilyProcData::TraitsInFamilyProcData): (WebCore::traitsInFamilyEnumProc): (WebCore::FontCache::getTraitsInFamily): (WebCore::FontCache::createFontPlatformData):
  • platform/graphics/chromium/FontCacheLinux.cpp: Added. (WebCore::FontCache::platformInit): (WebCore::FontCache::getFontDataForCharacters): (WebCore::FontCache::alternateFamilyName): (WebCore::FontCache::getSimilarFontPlatformData): (WebCore::FontCache::getLastResortFallbackFont): (WebCore::FontCache::getTraitsInFamily): (WebCore::FontCache::createFontPlatformData): (WebCore::FontCache::getGenericFontForScript):
  • platform/graphics/chromium/FontChromiumWin.cpp: Added. (WebCore::windowsCanHandleTextDrawing): (WebCore::skiaDrawText): (WebCore::PaintSkiaText): (WebCore::Font::drawGlyphs): (WebCore::Font::selectionRectForComplexText): (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::Font::offsetForPositionForComplexText):
11:25 AM Changeset in webkit [39829] by darin@chromium.org
  • 3 edits
    6 adds in trunk/WebCore

2009-01-12 Darin Fisher <darin@chromium.org>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=23254
Upstream page/chromium/

  • page/chromium/AXObjectCacheChromium.cpp: Added. (WebCore::AXObjectCache::detachWrapper): (WebCore::AXObjectCache::attachWrapper): (WebCore::AXObjectCache::postNotification): (WebCore::AXObjectCache::postNotificationToElement): (WebCore::AXObjectCache::handleFocusedUIElementChanged):
  • page/chromium/AccessibilityObjectChromium.cpp:
  • page/chromium/AccessibilityObjectWrapper.h:
  • page/chromium/ChromeClientChromium.h: Added.
  • page/chromium/DragControllerChromium.cpp: Added. (WebCore::DragController::dragOperation): (WebCore::DragController::isCopyKeyDown): (WebCore::DragController::maxDragImageSize): (WebCore::DragController::cleanupAfterSystemDrag):
  • page/chromium/EventHandlerChromium.cpp: Added. (WebCore::EventHandler::passMousePressEventToSubframe): (WebCore::EventHandler::passMouseMoveEventToSubframe): (WebCore::EventHandler::passMouseReleaseEventToSubframe): (WebCore::EventHandler::passWheelEventToWidget): (WebCore::EventHandler::passWidgetMouseDownEventToWidget): (WebCore::EventHandler::passMouseDownEventToWidget): (WebCore::EventHandler::tabsToAllControls): (WebCore::EventHandler::eventActivatedView): (WebCore::EventHandler::createDraggingClipboard): (WebCore::EventHandler::focusDocumentView): (WebCore::EventHandler::accessKeyModifiers):
  • page/chromium/FrameChromium.cpp: Added. (WebCore::computePageRectsForFrame): (WebCore::Frame::dragImageForSelection):
  • page/chromium/FrameChromium.h: Added.
11:10 AM Changeset in webkit [39828] by Dimitri Glazkov
  • 4 edits in trunk/WebCore

2008-01-12 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=22936
Fix uninitialized memory read error, reported by Purify.

  • platform/graphics/SimpleFontData.cpp: (WebCore::SimpleFontData::SimpleFontData): Added initializer for

m_unitsPerEm using cDefaultUnitsPerEm constant.

  • svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::unitsPerEm): Replaced literal value with

the constant.

  • svg/SVGFontFaceElement.h: Added cDefaultUnitsPerEm constant.
7:50 AM Changeset in webkit [39827] by treat@webkit.org
  • 2 edits in trunk/WebCore

Do not set fixedLayoutSize for anything other than the mainframe during
the transition as this is a page level state like the viewportSize.

5:03 AM Changeset in webkit [39826] by vestbo@webkit.org
  • 2 edits in trunk/WebKit/qt

2009-01-12 Tor Arne Vestbø <tavestbo@trolltech.com>

Reviewed by Simon Hausmann.

[Qt] Ensure that we're always notified of navigation actions for local anchors

FrameLoader::checkNavigationPolicy() does not notify us if the request has
been checked before (which happens for local anchors), but in the case of
our clients not accepting the navigation request we do want to be notified
again later on, so we clear the lastCheckedRequest flag.

4:51 AM Changeset in webkit [39825] by vestbo@webkit.org
  • 2 edits in trunk/WebKit/qt

2009-01-12 Ariya Hidayat <ariya.hidayat@trolltech.com>

Rubber-stamped by Tor Arne Vestbø.

Build fix: use qobject_cast which does not rely on RTTI. This fixes the
unit test when building it with a version of Qt (e.g. Qt/Embedded)
configured without RTTI.

  • tests/qwebframe/tst_qwebframe.cpp:
3:10 AM Changeset in webkit [39824] by ap@webkit.org
  • 2 edits in trunk/LayoutTests

Update test results.

  • fast/dom/Window/window-properties-expected.txt: Remove appcache dynamic entries methods.
2:46 AM Changeset in webkit [39823] by jchaffraix@webkit.org
  • 18 edits in trunk

WebCore:

2009-01-12 Julien Chaffraix <jchaffraix@pleyo.com>

Reviewed by Darin Adler.

Bug 22861: Turn the FontCache into a singleton
https://bugs.webkit.org/show_bug.cgi?id=22861

  • Added fontCache() to get the global FontCache.
  • Made all the methods in FontCache instance method.
  • Changed FontCache:: to fontCache()-> in WebCore.
  • WebCore.base.exp: Now export fontCache().
  • css/CSSFontFaceSource.cpp: (WebCore::CSSFontFaceSource::getFontData):
  • css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::CSSFontSelector): (WebCore::CSSFontSelector::~CSSFontSelector): (WebCore::CSSFontSelector::addFontFaceRule): (WebCore::fontDataForGenericFamily):
  • platform/graphics/Font.cpp: (WebCore::Font::glyphDataForCharacter):
  • platform/graphics/FontCache.cpp: (WebCore::fontCache): (WebCore::FontCache::FontCache):
  • platform/graphics/FontCache.h:
  • platform/graphics/FontFallbackList.cpp: (WebCore::FontFallbackList::FontFallbackList): (WebCore::FontFallbackList::invalidate): (WebCore::FontFallbackList::releaseFontData): (WebCore::FontFallbackList::fontDataAt): (WebCore::FontFallbackList::fontDataForCharacters): (WebCore::FontFallbackList::setPlatformFont):
  • platform/graphics/SimpleFontData.cpp: (WebCore::SimpleFontData::~SimpleFontData):
  • platform/graphics/mac/FontCacheMac.mm: (WebCore::fontCacheATSNotificationCallback):
  • platform/graphics/mac/SimpleFontDataMac.mm: (WebCore::SimpleFontData::smallCapsFontData):
  • platform/graphics/win/FontCacheWin.cpp: (WebCore::getCJKCodePageMasks):
  • platform/graphics/win/SimpleFontDataWin.cpp: (WebCore::SimpleFontData::containsCharacters):

WebKit/mac:

2009-01-12 Julien Chaffraix <jchaffraix@pleyo.com>

Reviewed by Darin Adler.

Bug 22861: Turn the FontCache into a singleton
https://bugs.webkit.org/show_bug.cgi?id=22861

  • Misc/WebCoreStatistics.mm: (+[WebCoreStatistics cachedFontDataCount]): (+[WebCoreStatistics cachedFontDataInactiveCount]): (+[WebCoreStatistics purgeInactiveFontData]): Redirected all the static calls to the global FontCache instance.

WebKit/win:

2009-01-12 Julien Chaffraix <jchaffraix@pleyo.com>

Reviewed by Darin Adler.

Bug 22861: Turn the FontCache into a singleton
https://bugs.webkit.org/show_bug.cgi?id=22861

  • WebCoreStatistics.cpp: (WebCoreStatistics::cachedFontDataCount): (WebCoreStatistics::cachedFontDataInactiveCount): (WebCoreStatistics::purgeInactiveFontData): Redirected all the static calls to the global FontCache instance.
1:58 AM QtWebKitJournal edited by Simon Hausmann
(diff)
1:41 AM Changeset in webkit [39822] by Simon Hausmann
  • 2 edits in trunk/WebKit/qt

2009-01-12 Simon Hausmann <simon.hausmann@nokia.com>

Rubber-stamped by Tor Arne Vestbø.

When the QWebView is disabled context menus implemented in JavaScript should not pop up.

Just like in QWidget::event() we have to check for the disabled state and
ignore context menu events.

1:36 AM Changeset in webkit [39821] by Simon Hausmann
  • 2 edits in trunk/WebKit/qt

2009-01-12 Simon Hausmann <simon.hausmann@nokia.com

Reviewed by Tor Arne Vestbø.

Fix QWebView appearance when showed uninitialized without page.

Only set WA_OpaquePaintEvent if we have a page set that will actually
paint the entire contents, otherwise the optimization does not apply
as we do not have a paintEvent() implementation and Qt has to fill the
view with its default background instead.

1:12 AM Changeset in webkit [39820] by vestbo@webkit.org
  • 2 edits in trunk/WebKit/qt

2009-01-11 Ariya Hidayat <ariya.hidayat@trolltech.com>

Rubber-stamped by Tor Arne Vestbø.

Do not create a QVariant from QObject* directly, use the
template-specialized function.

  • tests/qwebframe/tst_qwebframe.cpp: (MyQObject::myOverloadedSlot):

Jan 11, 2009:

11:48 PM Changeset in webkit [39819] by Darin Adler
  • 10 edits
    3 copies
    4 adds in trunk

WebCore:

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein.

Bug 23247: createSVGPathSegCurvetoCubicSmoothAbs doesn't set y2 correctly
https://bugs.webkit.org/show_bug.cgi?id=23247

Also fix problems where partially parsed paths will still have an effect
rather than failing parsing and being ignored.

Test: dom/path-segments.html

  • platform/graphics/Path.h: (WebCore::Path::swap): Added.
  • svg/SVGParserUtilities.cpp: (WebCore::SVGPathParser::parseSVG): Removed unneeded special case for empty string. (WebCore::PathBuilder::build): Changed to not modify the path if parsing fails. (WebCore::SVGPathSegListBuilder::build): Changed to not modify the segment list if parsing fails. (WebCore::SVGPathSegListBuilder::svgMoveTo): Put the path element into the vector, not directly into the segment list. (WebCore::SVGPathSegListBuilder::svgLineTo): Ditto. (WebCore::SVGPathSegListBuilder::svgLineToHorizontal): Ditto. (WebCore::SVGPathSegListBuilder::svgLineToVertical): Ditto. (WebCore::SVGPathSegListBuilder::svgCurveToCubic): Ditto. (WebCore::SVGPathSegListBuilder::svgCurveToCubicSmooth): Ditto. (WebCore::SVGPathSegListBuilder::svgCurveToQuadratic): Ditto. (WebCore::SVGPathSegListBuilder::svgCurveToQuadraticSmooth): Ditto. (WebCore::SVGPathSegListBuilder::svgArcTo): Ditto. (WebCore::SVGPathSegListBuilder::svgClosePath): Ditto.
  • svg/SVGPathSegCurvetoCubicSmooth.h: (WebCore::SVGPathSegCurvetoCubicSmooth::SVGPathSegCurvetoCubicSmooth): Set y2 to y2, not to y.

WebKitTools:

2009-01-11 Darin Adler <Darin Adler>

  • Scripts/make-js-test-wrappers: Updated so it won't overwrite tests in the svg/dom directory that aren't using standard wrappers.

LayoutTests:

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein.

Bug 23247: createSVGPathSegCurvetoCubicSmoothAbs doesn't set y2 correctly
https://bugs.webkit.org/show_bug.cgi?id=23247

Also fix problems where partially parsed paths will still have an effect
rather than failing parsing and being ignored.

Renamed the path-parser.html test to fuzz-path-parser.html, since it's a fuzz test,
to make room for a non-fuzz test of the path parser.

  • platform/mac/svg/custom/path-bad-data-expected.txt: Updated results, since the old ones were based on incorrect path parsing behavior.
  • svg/dom/fuzz-path-parser-expected.txt: Copied from svg/dom/path-parser-expected.txt. Also updated because the parser no longer tolerates extra characters at the end of the string, which it was doing by accident.
  • svg/dom/fuzz-path-parser.html: Copied from svg/dom/path-parser.html.
  • svg/dom/path-parser-expected.txt: Replaced fuzz test results with new test results.
  • svg/dom/path-parser.html: Replaced fuzz test with a new test.
  • svg/dom/path-segments-expected.txt: Added.
  • svg/dom/path-segments.html: Added.
  • svg/dom/resources/TEMPLATE.html: Copied from fast/js/resources/TEMPLATE.html.
  • svg/dom/resources/path-parser.js: Added. Mostly, this test shows that we are processing the path while parsing it, which is a bug. This test would be much more useful if that was fixed. But it also shows that we were incorrectly tolerating extra characters after the path, which is now fixed.
  • svg/dom/resources/path-segments.js: Added.
11:44 PM Changeset in webkit [39818] by Darin Adler
  • 41 edits in trunk/WebCore

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Oliver Hunt.

Bug 23102: turn on unused parameter warnings in WebCore
https://bugs.webkit.org/show_bug.cgi?id=23102

Fourth step: Remove arguments entirely in the many cases where they are not
needed at all. This step is a little less mechanical than the earlier ones.

  • dom/DOMImplementation.cpp: (WebCore::DOMImplementation::isXMLMIMEType): Pass TextCaseSensitive when creating the regular expression, since we already specify a-zA-Z in our expression.
  • dom/Document.cpp: (WebCore::Document::databaseThread): Don't pass in the document when creating a DatabaseThread.
  • dom/Element.cpp: (WebCore::Element::createRareData): Don't pass the element when creating an ElementRareData. (WebCore::Element::detach): Don't pass the element when calling resetComputedStyle. (WebCore::Element::recalcStyle): Ditto.
  • dom/ElementRareData.h: Remove the unused Element* from the constructor and the resetComputedStyle function.
  • dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchEvent): Don't pass ec to dispatchGenericEvent. (WebCore::EventTargetNode::dispatchGenericEvent): Remove the unused ec argument. (WebCore::EventTargetNode::dispatchWindowEvent): Don't pass ec to dispatchGenericEvent.
  • dom/EventTargetNode.h: Remove the ExceptionCode& argument form disaptchGenericEvent.
  • editing/ApplyStyleCommand.cpp: Remove the empty removeBlockStyle function. (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode): Remove the unused start and end arguments. (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAtBoundaries): Don't pass start and end to pushDownTextDecorationStyleAroundNode.
  • editing/ApplyStyleCommand.h: Remove the empty removeBlockStyle function. Removed the unused start and end arguments from pushDownTextDecorationStyleAroundNode.
  • editing/htmlediting.cpp: Removed include of unused RegularExpression.h header.
  • html/HTMLTokenizer.cpp: (WebCore::Token::addAttribute): Removed unused Document* argument. (WebCore::HTMLTokenizer::parseTag): Don't pass document to addAttribute.
  • html/HTMLTokenizer.h: Removed unused Document* argument to to addAttribute.
  • page/DOMWindow.cpp: (WebCore::DOMWindow::localStorage): Don't pass the frame to storageArea.
  • page/DragController.cpp: (WebCore::DragController::dragIsMove): Removed unused DragData argument. (WebCore::DragController::performDrag): Call concludeEditDrag rather than concludeDrag. (WebCore::DragController::tryDocumentDrag): Don't pass dragData to dragIsMove. (WebCore::DragController::concludeEditDrag): Renamed to make it clear this should only be called for edit drags. Removed the action mask argument. Also changed dragIsMove call sites to not pass dragData.
  • page/DragController.h: Updated for above changes and tweaked comment format.
  • page/Frame.cpp: (WebCore::createRegExpForLabels): Pass TextCaseSensitive and TextCaseInsensitive when creating regular expressions for clarity. Call match instead of search, since both do the same thing except for with negative start offsets, and none used here are negative. (WebCore::Frame::matchLabelsAgainstElement): Ditto.
  • page/Page.h: Moved TextCaseSensitivity from here to StringImpl.h in platform.
  • page/mac/AccessibilityObjectWrapper.mm: (AXAttributeStringSetHeadingLevel): Removed unused object argument. (AXAttributedStringAppendText): Ditto. (-[AccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]): Ditto.
  • page/mac/FrameMac.mm: (WebCore::regExpForLabels): Pass TextCaseSensitive and TextCaseInsensitive when creating regular expressions for clarity. Call match instead of search, since both do the same thing except for with negative start offsets, and none used here are negative. (WebCore::Frame::matchLabelsAgainstElement): Ditto.
  • platform/graphics/SegmentedFontData.cpp: (WebCore::SegmentedFontData::containsCharacter): Added. (WebCore::SegmentedFontData::containsCharacters): Updated to check all characters instead of just the first one, using containsCharacter.
  • platform/graphics/SegmentedFontData.h: Made more members private. Added containsCharacter function member.
  • platform/mac/DragImageMac.mm: (WebCore::dragImageSize): Changed to use RetainPtr<NSImage> directly instead of DragImageRef for clarity, since this is platform-specific code. (WebCore::deleteDragImage): Ditto. Also remove argument name to get rid of unused variable warning. (WebCore::scaleDragImage): Ditto. (WebCore::dissolveDragImageToFraction): Ditto. (WebCore::createDragImageFromImage): Ditto. (WebCore::createDragImageIconForCachedImage): Ditto.
  • platform/mac/WebFontCache.mm: (acceptableChoice): Removed the unused weight-related arguments. (betterChoice): Ditto. (+[WebFontCache internalFontWithFamily:traits:weight:size:]): Ditto.
  • platform/posix/FileSystemPOSIX.cpp: Removed the implementation of listDirectory because we'd rather get a link error rather than a runtime error if we use it for anything, and right now it's not used.
  • platform/text/RegularExpression.cpp: Removed unused private data, including pattern, lastMatchString, lastMatchOffsets, lastMatchCount, and lastMatchPos. Made the RegularExpression::Private::regex be private and use an accessor function to get at it. (WebCore::RegularExpression::RegularExpression): Removed the const char* version of the constructor because it's not any more efficient. Changed the boolean constructor argument to use TextCaseSensitivity instead to make it less likely we'll use it wrong. (WebCore::RegularExpression::operator=): Since the only member is a single RefPtr, just use plain old assignment on it. The only reason we do this instead of using the compiler generated assignment operator is that we want the Private structure to be internal to the .cpp file. (WebCore::RegularExpression::match): Added a null check so we won't crash if we fail to compile the regular expression. Removed the code to handle multiple match strings, since that was unused.
  • platform/text/RegularExpression.h: Changed the case sensitivity argument to use TextCaseSensitivity and not have a default value. Removed the default constructor, and the pattern, match, and pos functions.
  • platform/text/StringImpl.h: Moved the TextCaseSensitivity enum here from Page.h, because we should eventually use it in all the places where we have an argument to control case sensitivity, starting with the functions in this class.
  • platform/text/mac/ShapeArabic.c: (shapeUnicode): Removed the unused options and pErrorCode arguments. Even though this is code borrowed from ICU, this seems like a simple safe change to make. (shapeArabic): Don't pass options or pErrorCode in to shapeUnicode.
  • rendering/RenderPath.cpp: (WebCore::RenderPath::RenderPath): Removed the unused style argument. Also removed the type check. The argument already has the correct type, so it's not helpful to upcast it and then check its type again, unless we have some reason to believe the type is not reliable. And we don't.
  • rendering/RenderPath.h: Removed the RenderStyle* argument to the constructor. Also removed the explicit declaration of the destructor. It's not helpful or needed.
  • rendering/RenderSVGInlineText.cpp: (WebCore::RenderSVGInlineText::localCaretRect): Updated the comment here to make it clear that just returning an empty rect is not a good implementation. Removed the argument names to get rid of the warning.
  • rendering/RenderTreeAsText.cpp: (WebCore::printBorderStyle): Removed the unused RenderObject argument. (WebCore::operator<<): Updated for the change to printBorderStyle function.
  • storage/DatabaseThread.cpp: (WebCore::DatabaseThread::DatabaseThread): Removed the unused document argument.
  • storage/DatabaseThread.h: Ditto.
  • storage/LocalStorage.cpp: (WebCore::LocalStorage::storageArea): Removed the unused Frame* argument.
  • storage/LocalStorage.h: Ditto.
  • svg/SVGElement.cpp: (WebCore::SVGElement::sendSVGLoadEventIfPossible): Don't pass an exception code location to dispatchGenericEvent.
  • svg/SVGElementInstance.cpp: (WebCore::SVGElementInstance::dispatchEvent): Ditto.
  • svg/SVGStyledTransformableElement.cpp: Removed include of unused RegularExpression.h. (WebCore::SVGStyledTransformableElement::createRenderer): Don't pass style in to the RenderPath constructor.
  • svg/SVGTransformable.cpp: Removed include of unused RegularExpression.h.
  • xml/XSLTProcessor.cpp: (WebCore::createFragmentFromSource): Removed unused sourceNode argument. (WebCore::XSLTProcessor::transformToFragment): Don't pass sourceNode to createFragmentFromSource.
11:34 PM Changeset in webkit [39817] by ap@webkit.org
  • 5 edits in trunk/JavaScriptCore

2009-01-11 David Levin <levin@chromium.org>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23245

Add initializeThreading to key places in JS API to ensure that
UString is properly initialized.

  • API/JSContextRef.cpp: (JSContextGroupCreate): (JSGlobalContextCreate):
  • API/JSObjectRef.cpp: (JSClassCreate):
  • API/JSStringRef.cpp: (JSStringCreateWithCharacters): (JSStringCreateWithUTF8CString):
  • API/JSStringRefCF.cpp: (JSStringCreateWithCFString):
11:21 PM Changeset in webkit [39816] by ap@webkit.org
  • 4 edits
    1 move in trunk

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23165
Disable application cache dynamic entries support.

7:19 PM Changeset in webkit [39815] by Darin Adler
  • 5 edits in trunk/JavaScriptCore

2009-01-11 David Levin <levin@chromium.org>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23175

Separate out BaseString information from UString::Rep and make all baseString access go through
a member function, so that it may be used for something else (in the future) in the BaseString
case.

  • runtime/SmallStrings.cpp: (JSC::SmallStringsStorage::rep): (JSC::SmallStringsStorage::SmallStringsStorage): (JSC::SmallStrings::SmallStrings): (JSC::SmallStrings::mark): Adjust to account for the changes in UString and put the UString in place in SmallStringsStorage to aid in locality of reference among the UChar[] and UString::Rep's.
  • runtime/SmallStrings.h:
  • runtime/UString.cpp: (JSC::initializeStaticBaseString): (JSC::initializeUString): (JSC::UString::Rep::create): (JSC::UString::Rep::destroy): (JSC::UString::Rep::checkConsistency): (JSC::expandCapacity): (JSC::UString::expandPreCapacity): (JSC::concatenate): (JSC::UString::append): (JSC::UString::operator=):
  • runtime/UString.h: (JSC::UString::Rep::baseIsSelf): (JSC::UString::Rep::setBaseString): (JSC::UString::Rep::baseString): (JSC::UString::Rep::): (JSC::UString::Rep::null): (JSC::UString::Rep::empty): (JSC::UString::Rep::data): (JSC::UString::cost): Separate out the items out used by base strings from those used in Rep's that only point to base strings. (This potentially saves 24 bytes per Rep.)
7:17 PM Changeset in webkit [39814] by Darin Adler
  • 2 edits in trunk/LayoutTests

2009-01-11 Darin Adler <Darin Adler>

  • fast/frames/frame-deep-nested-resize-expected.txt: This time for sure.
6:07 PM Changeset in webkit [39813] by Darin Adler
  • 2 edits in trunk/LayoutTests

2009-01-11 Darin Adler <Darin Adler>

Fix failure of new test seen on buildbots.

  • fast/frames/frame-deep-nested-resize-expected.txt: Updated newlines to match what DumpRenderTree generates on Mac. I believe Adam generated his results under Qt DumpRenderTree. If so, then the Qt version will need to change to match the Mac version, since all the expected results were generated on Mac.
4:54 PM Changeset in webkit [39812] by treat@webkit.org
  • 3 edits
    2 adds in trunk

Correct coordinate transformation for deeply nested frames on resizing. This
fixes https://bugs.webkit.org/show_bug.cgi?id=20766.

3:55 PM Changeset in webkit [39811] by mrowe@apple.com
  • 2 edits in trunk/WebCore

Tiger build fix. The connection parameter is still used on Tiger in this method.

  • platform/network/mac/ResourceHandleMac.mm:

(-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):

2:01 PM Changeset in webkit [39810] by Darin Adler
  • 14 edits in trunk/WebCore

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein.

Bug 23102: turn on unused parameter warnings in WebCore
https://bugs.webkit.org/show_bug.cgi?id=23102

Third step: Deal with cases of arguments used only in assertions.

  • dom/MessagePort.cpp: (WebCore::MessagePortCloseEventTask::performTask): Use ASSERT_UNUSED.
  • dom/Worker.cpp: (WebCore::Worker::notifyFinished): Ditto.
  • dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::notifyFinished): Ditto.
  • loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::failedLoadingMainResource): Ditto.
  • loader/appcache/ApplicationCacheStorage.cpp: (WebCore::ApplicationCacheStorage::verifySchemaVersion): Ditto.
  • loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveData): Since loader and size are only used when logging, use UNUSED_PARAM when logging is disabled.
  • platform/mac/WidgetMac.mm: (WebCore::Widget::beforeMouseDown): Use ASSERT_UNUSED.
  • platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::didCancelAuthenticationChallenge): Use the argument since it's probably a tiny bit more efficient and gets rid of the unused argument warning.
  • rendering/RenderListMarker.cpp: (WebCore::RenderListMarker::createInlineBox): Use ASSERT_UNUSED.
  • rendering/RenderObject.cpp: (WebCore::RenderObject::createInlineBox): Ditto.
  • rendering/RenderSVGInline.cpp: (WebCore::RenderSVGInline::createInlineBox): Use UNUSED_PARAM. I couldn't use ASSERT_UNUSED because it's a single assertion, but it's the only use for two different arguments.
  • rendering/RenderText.cpp: (WebCore::RenderText::createInlineBox): Use ASSERT_UNUSED.
  • rendering/RenderThemeMac.mm: (-[WebCoreRenderThemeNotificationObserver systemColorsDidChange:]): Ditto.
1:58 PM Changeset in webkit [39809] by Darin Adler
  • 5 edits in trunk/JavaScriptCore

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein.

Bug 23239: improve handling of unused arguments in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=23239

  • runtime/DatePrototype.cpp: Moved LocaleDateTimeFormat enum outside #if so we can use this on all platforms. Changed valueOf to share the same function with getTime, since the contents of the two are identical. Removed a FIXME since the idea isn't really specific enough or helpful enough to need to sit here in the source code. (JSC::formatLocaleDate): Changed the Mac version of this function to take the same arguments as the non-Mac version so the caller doesn't have to special-case the two platforms. Also made the formatString array be const; before the characters were, but the array was a modifiable global variable. (JSC::dateProtoFuncToLocaleString): Changed to call the new unified version of formatLocaleDate and remove the ifdef. (JSC::dateProtoFuncToLocaleDateString): Ditto. (JSC::dateProtoFuncToLocaleTimeString): Ditto.
  • runtime/JSNotAnObject.cpp: (JSC::JSNotAnObject::toObject): Use the new ASSERT_UNUSED instead of the old UNUSED_PARAM.
  • runtime/RegExp.cpp: (JSC::RegExp::RegExp): Changed to only use UNUSED_PARAM when the parameter is actually unused.
  • wtf/TCSystemAlloc.cpp: (TCMalloc_SystemRelease): Changed to only use UNUSED_PARAM when the parameter is actually unused. (TCMalloc_SystemCommit): Changed to omit the argument names instead of using UNUSED_PARAM.
1:42 PM Changeset in webkit [39808] by mitz@apple.com
  • 4 edits in trunk/LayoutTests/platform/mac

Set the svn:mime-type property of recently-added PNG files to image/png.

1:22 PM Changeset in webkit [39807] by Simon Fraser
  • 5 edits
    4 adds in trunk

2009-01-11 Simon Fraser <Simon Fraser>

Reviewed by Oliver Hunt

https://bugs.webkit.org/show_bug.cgi?id=23242

Fix CanvasRenderingContext2D::transform to do a pre-multiply,
rather than a post-multiply into m_transform. This bug did not affect
drawing, but did cause m_transform to be incorrect, which impacted
willDraw(), and isPointInPath.

Test: fast/canvas/canvas-incremental-repaint-2.html

  • html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::transform):
12:05 PM Changeset in webkit [39806] by Darin Adler
  • 9 edits in trunk/WebCore

2009-01-11 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein.

Bug 23102: turn on unused parameter warnings in WebCore
https://bugs.webkit.org/show_bug.cgi?id=23102

Second step: Fix simple Objective-C cases where we need to use UNUSED_PARAM.
That's because you can't omit an argument name in Objective-C methods.

  • bindings/objc/DOMObject.mm: (-[DOMObject copyWithZone:]): Use UNUSED_PARAM. Also rename argument to include the word "unused" so we don't just start using it without removing the macro.
  • bindings/objc/WebScriptObject.mm: (+[WebUndefined allocWithZone:]): Ditto. (-[WebUndefined initWithCoder:]): Ditto. (-[WebUndefined encodeWithCoder:]): Ditto. (-[WebUndefined copyWithZone:]): Ditto.
  • page/mac/WebDashboardRegion.m: (-[WebDashboardRegion copyWithZone:]): Ditto.
  • platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::mainThreadSetNeedsDisplay): Omit argument name. (-[WebCoreMovieObserver loadStateChanged:]): Use UNUSED_PARAM as above. (-[WebCoreMovieObserver rateChanged:]): Ditto. (-[WebCoreMovieObserver sizeChanged:]): Ditto. (-[WebCoreMovieObserver timeChanged:]): Ditto. (-[WebCoreMovieObserver didEnd:]): Ditto. (-[WebCoreMovieObserver newImageAvailable:]): Ditto.
  • platform/mac/ScrollbarThemeMac.mm: (+[ScrollbarPrefsObserver appearancePrefsChanged:]): Ditto. (+[ScrollbarPrefsObserver behaviorPrefsChanged:]): Ditto.
  • platform/mac/SharedTimerMac.mm: (-[WebCorePowerNotifier didWake:]): Ditto.
  • platform/mac/WebCoreKeyGenerator.m: (-[WebCoreKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): Ditto.
  • platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]): Ditto. (-[WebCoreResourceHandleAsDelegate connectionShouldUseCredentialStorage:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]): Ditto. (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]): Ditto. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): Ditto. (-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]): Ditto. (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]): Ditto. (-[WebCoreSynchronousLoader connection:didReceiveResponse:]): Ditto. (-[WebCoreSynchronousLoader connection:didReceiveData:]): Ditto. (-[WebCoreSynchronousLoader connectionDidFinishLoading:]): Ditto. (-[WebCoreSynchronousLoader connection:didFailWithError:]): Ditto.
11:59 AM Changeset in webkit [39805] by krit@webkit.org
  • 12 edits
    5 deletes in trunk/WebCore

2009-01-11 Dirk Schulze <krit@webkit.org>

Reviewed by Darin Adler.

Move platform dependent strokeContains back to RenderPath, Path and delete
unneeded Code in svg.

RenderPath clean-up for strokeContains
https://bugs.webkit.org/show_bug.cgi?id=22957

  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • platform/graphics/Path.h:
  • platform/graphics/cairo/PathCairo.cpp: (WebCore::Path::strokeContains):
  • platform/graphics/cg/PathCG.cpp: (WebCore::Path::strokeContains):
  • platform/graphics/qt/PathQt.cpp: (WebCore::Path::strokeContains):
  • rendering/RenderPath.cpp: (WebCore::RenderPath::strokeContains):
  • svg/graphics/cairo/RenderPathCairo.cpp: Removed.
  • svg/graphics/cg/CgSupport.cpp: Removed.
  • svg/graphics/cg/CgSupport.h: Removed.
  • svg/graphics/cg/RenderPathCg.cpp: Removed.
  • svg/graphics/cg/SVGPaintServerPatternCg.cpp:
  • svg/graphics/cg/SVGResourceMaskerCg.mm:
  • svg/graphics/qt/RenderPathQt.cpp: Removed.
11:59 AM Changeset in webkit [39804] by zecke@webkit.org
  • 2 edits in trunk

2009-01-11 Xan Lopez <xan@gnome.org>

Reviewed by Holger Freyther.

Bump version to 1.1.0 since we are breaking ABI and adding new
major features.

  • configure.ac:
11:57 AM Changeset in webkit [39803] by zecke@webkit.org
  • 2 edits in trunk/WebKit/gtk

2009-01-11 Xan Lopez <xan@gnome.org>

Reviewed by Holger Freyther.

Use NULL instead of 0 when dealing with pointers, as agreed for
the coding style of the WebKit GTK port for its GTK+ specific
files.

  • webkit/webkitwebview.cpp:
11:55 AM Changeset in webkit [39802] by zecke@webkit.org
  • 7 edits in trunk/WebKit/gtk

2009-01-11 Xan Lopez <xan@gnome.org>

Reviewed by Holger Freyther.

Add padding to the class structs to avoid breaking ABI each time
we add stuff there.

  • webkit/webkitnetworkrequest.h:
  • webkit/webkitwebbackforwardlist.h:
  • webkit/webkitwebhistoryitem.h:
  • webkit/webkitwebnavigationaction.h:
  • webkit/webkitwebpolicydecision.h:
  • webkit/webkitwebview.h:
11:47 AM Changeset in webkit [39801] by zecke@webkit.org
  • 2 edits in trunk/WebCore

[GTK] make distcheck complains that distclean is not deleting JSWorkerContextBase.lut.h

make distcheck pass by adding JSWorkerContextBase.lut.h to the
CLEANFILES that will be cleaned on a make distclean.

11:47 AM Changeset in webkit [39800] by oliver@apple.com
  • 2 edits in trunk/JavaScriptCore

build fix

11:12 AM Changeset in webkit [39799] by oliver@apple.com
  • 2 edits in trunk/JavaScriptCore

Bug 23128: get/put_by_val need to respecialise in the face of ByteArray

Reviewed by Darin Adler and Anders Carlsson

Restructure the code slightly, and add comments per Darin's suggestions

10:56 AM Changeset in webkit [39798] by oliver@apple.com
  • 2 edits in trunk/JavaScriptCore

Fix exception check for string indexing

Reviewed by Anders Carlsson.

Whoops, I accidentally removed an exception check from fast the
fast path for string indexing when i originally landed the
byte array logic.

8:54 AM Changeset in webkit [39797] by oliver@apple.com
  • 1 edit in trunk/WebKit/win/WebDownloadCFNet.cpp

attempt to fix win build

8:48 AM Changeset in webkit [39796] by oliver@apple.com
  • 3 edits in trunk/JavaScriptCore

Bug 23128: get/put_by_val need to respecialise in the face of ByteArray
<https://bugs.webkit.org/show_bug.cgi?id=23128>

Reviewed by Anders Carlsson.

Fairly simple patch, add specialised versions of cti_op_get/put_by_val
that assume ByteArray, thus avoiding a few branches in the case of bytearray
manipulation.

No effect on SunSpider. 15% win on the original testcase.

3:06 AM Changeset in webkit [39795] by ap@webkit.org
  • 3 edits in trunk/WebCore

2009-01-11 Zalan Bujtas <zbujtas@gmail.com>

Reviewed by Alexey Proskuryakov.

https://bugs.webkit.org/show_bug.cgi?id=23235
Build fix for non-VIDEO builds.

  • rendering/RenderTheme.cpp:
  • rendering/RenderTheme.h:
3:03 AM Changeset in webkit [39794] by ap@webkit.org
  • 2 edits in trunk/JavaScriptCore

Try to fix Windows build.

  • wtf/CurrentTime.cpp: Added a definition of msPerSecond (previously, this code was in DateMath.cpp, with constant definition in DateTime.h)
2:36 AM Changeset in webkit [39793] by ap@webkit.org
  • 2 edits in trunk/JavaScriptCore

2009-01-11 Alexey Proskuryakov <ap@webkit.org>

Try to fix Windows build.

  • wtf/CurrentTime.cpp: Include <sys/types.h> and <sys/timeb.h>, as MSDN says to.
2:27 AM Changeset in webkit [39792] by ap@webkit.org
  • 2 edits in trunk/WebCore

2009-01-11 Gabriella Toth <gtoth@inf.u-szeged.hu>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=19287
return value of malloc() is not checked in npruntime.cpp

Checking whether malloc can allocate memory or not. If it can't, CRASH macro is invoked
(like in fastMalloc).


  • bridge/npruntime.cpp: (_NPN_GetStringIdentifier): (_NPN_GetIntIdentifier): (NPN_InitializeVariantWithStringCopy): (_NPN_CreateObject):
2:24 AM Changeset in webkit [39791] by ap@webkit.org
  • 7 edits in trunk

2009-01-11 Glenn Wilson <gwilson@google.com>

Reviewed by Darin Adler.

Changes radio buttons so they can be 'checked' even if they
don't have the name attribute set.

See https://bugs.webkit.org/show_bug.cgi?id=21534

Test: fast/html/select-unnamed-radio.html

  • html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::preDispatchEventHandler):
1:48 AM Changeset in webkit [39790] by ap@webkit.org
  • 3 edits in trunk/LayoutTests

2009-01-11 tony chang <tony@chromium.org>

Reviewed by Darin Adler.

Remove svn:eol-style native from some utf16 files so
windows-svn doesn't alter them on checkout.

  • fast/xsl/xslt-enc16.xml: remove svn:eol-style
  • fast/xsl/xslt-enc16to16.xml: remove svn:eol-style
1:44 AM Changeset in webkit [39789] by ap@webkit.org
  • 1 edit in trunk/WebCore/ChangeLog

Fix ChangeLog date.

1:43 AM Changeset in webkit [39788] by ap@webkit.org
  • 2 edits in trunk/WebKitTools

2009-01-11 Robert Blaut <webkit@blaut.biz>

Reviewed by Eric Seidel.


<https://bugs.webkit.org/show_bug.cgi?id=23134>
Update bisect-builds for Safari 3.2 to prevent crashes

  • Scripts/bisect-builds: Added Safari 3.2 and the corresponding minimal revision, r37348.
1:40 AM Changeset in webkit [39787] by ap@webkit.org
  • 3 edits
    4 adds in trunk/LayoutTests

2009-01-11 Jungshik Shin <jshin@chromium.org>

Reviewed by Alexey Proskuryakov

  • Make fast/encoding/char-encoding test work with Chromium by replacing 'data:' with 'file:' pointing to resources/dummy.html (an empty file).
  • Put old Mac encodings in a separate char-encoding-mac.html to make it possible to to skip it.
  • Factor out common functions in char-encoding.html and char-encoding-mac.html and put them in char-encoding-utils.js

See: https://bugs.webkit.org/show_bug.cgi?id=22882

  • fast/encoding/char-encoding-mac-expected.txt: Added.
  • fast/encoding/char-encoding-mac.html: Added.
  • fast/encoding/char-encoding.html:
  • fast/encoding/resources/char-encoding-utils.js: Added.
  • fast/encoding/resources/dummy.html: Added.
1:36 AM Changeset in webkit [39786] by ap@webkit.org
  • 2 edits in trunk/WebCore

2008-12-18 Bernhard Rosenkraenzer <bero@arklinux.ch>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=22205
Fix compatibility with bison 2.4, partially based on older patch by
Priit Laes <amd@store20.com>

  • WebCore/css/CSSGrammar.y: Made compatible with bison 2.4
1:18 AM Changeset in webkit [39785] by ap@webkit.org
  • 3 edits
    3 adds in trunk

2009-01-11 Jeremy Moskovich <jeremy@chromium.org>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=16001
Incorrect assumption that selection is always contiguous LTR.

Test: editing/selection/extend-selection-bidi.html

  • rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::fillLineSelectionGap): Make this function not assume a contiguous visual LTR selection range.
12:14 AM Changeset in webkit [39784] by ap@webkit.org
  • 57 edits
    3 adds
    4 deletes in trunk

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23207
Moved currentTime() to from WebCore to WTF.

12:06 AM Changeset in webkit [39783] by ap@webkit.org
  • 3 edits in trunk/WebCore

2009-01-11 Dmitry Titov <dimich@chromium.org>

Reviewed by Darin Adler.

Make ScheduledAction (Timeout callback) able to execute the callback under WorkerContext.
Part of 'Timers in Workers' work.
https://bugs.webkit.org/show_bug.cgi?id=23223

  • bindings/js/ScheduledAction.cpp: (WebCore::ScheduledAction::execute): new method that takes WorkerContext. (WebCore::ScheduledAction::executeFunctionInContext): Executes a JSFunction in proper context with 'this' object.
  • bindings/js/ScheduledAction.h:

Jan 10, 2009:

11:45 PM Changeset in webkit [39782] by eric.carlson@apple.com
  • 7 edits in trunk/WebCore

2009-01-10 Eric Carlson <eric.carlson@apple.com>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=23210
Make it easier for ports to define custom UI for media controls

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::styleForElement): call theme()->styleSheetForMediaControls to get the media controller style sheet
  • rendering/MediaControlElements.cpp: (WebCore::MediaControlInputElement::hitTest): Added
  • rendering/MediaControlElements.h: Updated
  • rendering/RenderMedia.cpp: (WebCore::RenderMedia::forwardEvent): Call element hitTest() method instead of local function so control elements don't necessarily have to be rectangular
  • rendering/RenderTheme.cpp: (WebCore::RenderTheme::styleSheetForMediaControls): Added (WebCore::RenderTheme::hitTestMediaControlPart): Added
  • rendering/RenderTheme.h: Updated
6:47 PM Changeset in webkit [39781] by Simon Fraser
  • 4 edits
    4 adds in trunk

2009-01-10 Simon Fraser <Simon Fraser>

Reviewed by Dan Bernstein

https://bugs.webkit.org/show_bug.cgi?id=23222

We need to disable LayoutState when an object has transforms,
because LayoutState is not transform-aware and therefore
repaint rects can be computed incorrectly.

Test: fast/repaint/transform-disable-layoutstate.html

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock): (WebCore::RenderBlock::layoutOnlyPositionedObjects):
  • rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutBlock):
4:05 PM Changeset in webkit [39780] by abarth@webkit.org
  • 7 edits
    5 deletes in trunk

Revert 39779.

3:16 PM Changeset in webkit [39779] by abarth@webkit.org
  • 7 edits
    5 adds in trunk

WebCore:

2009-01-10 Adam Barth <abarth@webkit.org>

Reviewed by Darin Adler.

Fix https://bugs.webkit.org/show_bug.cgi?id=21456

We shouldn't update the document pointer of inactive windows. This
behavior differs slightly from Firefox, I'd argue that this behavior is
more correct (we both differ from IE). The HTML 5 spec is a bit in flux
on this point.

Test: http/tests/security/xss-inactive-closure.html

  • bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
  • bindings/js/ScriptController.cpp: (WebCore::ScriptController::clearWindowShell): (WebCore::ScriptController::updateDocument):
  • bindings/js/ScriptController.h:

LayoutTests:

2009-01-10 Adam Barth <abarth@webkit.org>

Reviewed by Darin Adler.

Test that we don't do goofy things with the document pointer after
navigation.

  • fast/dom/Window/dom-access-from-closure-iframe-expected.txt:
  • fast/dom/Window/dom-access-from-closure-window-expected.txt:
  • http/tests/security/resources/childWithButton.html: Added.
  • http/tests/security/resources/xss-inactive-closure-child-2.html: Added.
  • http/tests/security/resources/xss-inactive-closure-child.html: Added.
  • http/tests/security/xss-inactive-closure-expected.txt: Added.
  • http/tests/security/xss-inactive-closure.html: Added.
2:03 PM Changeset in webkit [39778] by Darin Adler
  • 2 edits in trunk/WebKit/mac

2009-01-10 Darin Adler <Darin Adler>

Reviewed by Sam Weinig.

<rdar://problem/5845089> REGRESSION (r30044): Mail custom stationery missing images
because of change to -[HTMLObjectElement data]

  • WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Added a thread violation check because I saw this being done off the main thread while testing Mail, and it caused problems. Put all the one time initialization under a single guard to make things just a little faster other times, and to make it clearer which things are one-time. Added a call to the new patchMailRemoveAttributesMethod function. (-[WebView initWithFrame:frameName:groupName:]): Added a thread violation check here too, because I assumed it would be slightly better to have a public method name in the violation message. This calls commonInitialization later, so it will hit that one eventually. (objectElementDataAttribute): Added. Just returns the value of the "data" attribute. (recursivelyRemoveMailAttributes): Added. Patch to an internal Mail method that in turn patches a WebKit method and removes the patch again on the way out. (patchMailRemoveAttributesMethod): Added. On Leopard only, checks the Mail version, and then applies the patch that fixes this bug.

Jan 9, 2009:

7:46 PM Changeset in webkit [39777] by zecke@webkit.org
  • 3 edits
    1 delete in trunk/WebCore

[QT] Make SharedTimer use QBasicTimer

Kill the SharedTimerQt.h and the usage of signal and slots
by using QBasicTimer.

7:46 PM Changeset in webkit [39776] by zecke@webkit.org
  • 2 edits in trunk/WebKit/gtk

2009-01-09 Benjamin Otte <otte@gnome.org>

Reviewed by Holger Freyther.

https://bugs.webkit.org/show_bug.cgi?id=23194

make the finalize function the dispose function. Not releasing held
objects in dispose can cause crashers later.

  • webkit/webkitwebview.cpp:
7:46 PM Changeset in webkit [39775] by zecke@webkit.org
  • 2 edits in trunk/WebKit/gtk

2009-01-09 Benjamin Otte <otte@gnome.org>

Reviewed by Holger Freyther.

https://bugs.webkit.org/show_bug.cgi?id=23194

Remove broken code that uses a fallback. The previous code did 2
policy decisions which caused crashes.
Download is still notImplemented();

  • webkit/webkitwebpolicydecision.cpp: (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_download):
7:46 PM Changeset in webkit [39774] by zecke@webkit.org
  • 2 edits in trunk/WebCore

2009-01-09 Adam Bergkvist <adam.bergkvist@ericsson.com>

Reviewed by Holger Freyther.

[CURL] POST without body becomes GET
https://bugs.webkit.org/show_bug.cgi?id=23182

Make sure that method is always set to POST even when the body is
empty. Cleaned up httpBody null check.

  • platform/network/curl/ResourceHandleManager.cpp: (WebCore::ResourceHandleManager::setupPOST):
6:00 PM Changeset in webkit [39773] by treat@webkit.org
  • 2 edits in trunk/WebCore

Build fix.

5:12 PM Changeset in webkit [39772] by adele@apple.com
  • 2 edits in trunk/WebCore

2009-01-09 Adele Peterson <adele@apple.com>

Reviewed by Darin Adler.

Fix infinite recursion in clientPaddingLeft and clientPaddingRight. This changes the code back to
how it was before RenderTextControlSingleLine was split out from RenderTextControl.


No test added since this code is only exercised when trying to place a search field's recent searches popup menu.

  • rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::clientPaddingLeft): (WebCore::RenderTextControlSingleLine::clientPaddingRight):
4:41 PM Changeset in webkit [39771] by Darin Adler
  • 6 edits in trunk

WebCore:

2009-01-09 Darin Adler <Darin Adler>

Reviewed by Jon Honeycutt.

Bug 22913: REGRESSION: Space bar doesn't scroll on windows
https://bugs.webkit.org/show_bug.cgi?id=22913
rdar://problem/6479834

  • page/EventHandler.cpp: (WebCore::EventHandler::defaultKeyboardEventHandler): Added code to call defaultSpaceEventHandler. (WebCore::EventHandler::defaultSpaceEventHandler): Added. Scrolls down or up based on the shift key.
  • page/EventHandler.h: Added defaultSpaceEventHandler.
  • platform/mac/ScrollViewMac.mm: (WebCore::ScrollView::platformScroll): Return false, because this function does not scroll. In an earlier version of this patch, I used this to prevent the patch from affecting the Mac, but I decided to use #if instead.

WebKit/win:

2009-01-09 Darin Adler <Darin Adler>

Reviewed by Jon Honeycutt.

Bug 22913: REGRESSION: Space bar doesn't scroll on windows
https://bugs.webkit.org/show_bug.cgi?id=22913
rdar://problem/6479834

  • WebView.cpp: (WebView::keyPress): Removed code to handle space bar here; put it in WebCore instead.
4:38 PM Changeset in webkit [39770] by weinig@apple.com
  • 2 edits in trunk/LayoutTests

2009-01-09 Sam Weinig <sam@webkit.org>

Check in correct results for failing test.

  • fast/dom/Window/window-properties-expected.txt:
4:14 PM Changeset in webkit [39769] by barraclough@apple.com
  • 13 edits in trunk

JavaScriptCore:

2009-01-09 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Stage two of converting JSValue from a pointer to a class type.
Remove the class JSValue. The functionallity has been transitioned
into the wrapper class type JSValuePtr.

The last stage will be to rename JSValuePtr to JSValue, remove the
overloaded -> operator, and switch operations on JSValuePtrs from
using '->' to use '.' instead.

  • API/APICast.h:
  • JavaScriptCore.exp:
  • runtime/JSCell.h: (JSC::asCell): (JSC::JSValuePtr::asCell): (JSC::JSValuePtr::isNumber): (JSC::JSValuePtr::isString): (JSC::JSValuePtr::isGetterSetter): (JSC::JSValuePtr::isObject): (JSC::JSValuePtr::getNumber): (JSC::JSValuePtr::getString): (JSC::JSValuePtr::getObject): (JSC::JSValuePtr::getCallData): (JSC::JSValuePtr::getConstructData): (JSC::JSValuePtr::getUInt32): (JSC::JSValuePtr::getTruncatedInt32): (JSC::JSValuePtr::getTruncatedUInt32): (JSC::JSValuePtr::mark): (JSC::JSValuePtr::marked): (JSC::JSValuePtr::toPrimitive): (JSC::JSValuePtr::getPrimitiveNumber): (JSC::JSValuePtr::toBoolean): (JSC::JSValuePtr::toNumber): (JSC::JSValuePtr::toString): (JSC::JSValuePtr::toObject): (JSC::JSValuePtr::toThisObject): (JSC::JSValuePtr::needsThisConversion): (JSC::JSValuePtr::toThisString): (JSC::JSValuePtr::getJSNumber):
  • runtime/JSImmediate.h: (JSC::JSValuePtr::isUndefined): (JSC::JSValuePtr::isNull): (JSC::JSValuePtr::isUndefinedOrNull): (JSC::JSValuePtr::isBoolean): (JSC::JSValuePtr::getBoolean): (JSC::JSValuePtr::toInt32): (JSC::JSValuePtr::toUInt32):
  • runtime/JSNumberCell.h: (JSC::JSValuePtr::uncheckedGetNumber): (JSC::JSValuePtr::toJSNumber):
  • runtime/JSObject.h: (JSC::JSValuePtr::isObject): (JSC::JSValuePtr::get): (JSC::JSValuePtr::put):
  • runtime/JSString.h: (JSC::JSValuePtr::toThisJSString):
  • runtime/JSValue.cpp: (JSC::JSValuePtr::toInteger): (JSC::JSValuePtr::toIntegerPreserveNaN): (JSC::JSValuePtr::toInt32SlowCase): (JSC::JSValuePtr::toUInt32SlowCase):
  • runtime/JSValue.h: (JSC::JSValuePtr::makeImmediate): (JSC::JSValuePtr::immediateValue): (JSC::JSValuePtr::JSValuePtr): (JSC::JSValuePtr::operator->): (JSC::JSValuePtr::operator bool): (JSC::JSValuePtr::operator==): (JSC::JSValuePtr::operator!=): (JSC::JSValuePtr::encode): (JSC::JSValuePtr::decode): (JSC::JSValuePtr::toFloat): (JSC::JSValuePtr::asValue): (JSC::operator==): (JSC::operator!=):

WebCore:

2009-01-09 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Delete references to JSValue, removing this class.

  • bindings/js/JSWorkerContextCustom.cpp: (WebCore::JSWorkerContext::self):
  • bindings/js/ScriptCallStack.h:
3:42 PM Changeset in webkit [39768] by eric@webkit.org
  • 1 edit
    6 adds in trunk/WebCore

2009-01-09 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add svg/graphics/skia files.
https://bugs.webkit.org/show_bug.cgi?id=23147

  • svg/graphics/skia/RenderPathSkia.cpp: Added. (WebCore::RenderPath::strokeContains):
  • svg/graphics/skia/SVGPaintServerPatternSkia.cpp: Added. (WebCore::SVGPaintServerPattern::setup):
  • svg/graphics/skia/SVGPaintServerSkia.cpp: Added. (WebCore::SVGPaintServer::draw): (WebCore::SVGPaintServer::teardown): (WebCore::SVGPaintServer::renderPath):
  • svg/graphics/skia/SVGResourceFilterSkia.cpp: Added. (WebCore::SVGResourceFilter::createPlatformData): (WebCore::SVGResourceFilter::prepareFilter): (WebCore::SVGResourceFilter::applyFilter):
  • svg/graphics/skia/SVGResourceMaskerSkia.cpp: Added. (WebCore::SVGResourceMasker::applyMask):
3:04 PM Changeset in webkit [39767] by eric@webkit.org
  • 1 edit
    2 adds in trunk/WebCore

2009-01-09 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add SkiaFontWin to platform/graphics/chromium
https://bugs.webkit.org/show_bug.cgi?id=23215

  • platform/graphics/skia/SkiaFontWin.cpp: Added. (WebCore::CachedOutlineKey::CachedOutlineKey): (WebCore::operator==): (WebCore::CachedOutlineKeyHash::hash): (WebCore::CachedOutlineKeyHash::equal): (WebCore::FIXEDToSkScalar): (WebCore::deleteOutline): (WebCore::addPolyCurveToPath): (WebCore::getPathForGlyph): (WebCore::SkiaWinOutlineCache::lookupOrCreatePathForGlyph): (WebCore::SkiaWinOutlineCache::removePathsForFont):
  • platform/graphics/skia/SkiaFontWin.h: Added.
2:55 PM Changeset in webkit [39766] by eric@webkit.org
  • 1 edit
    3 adds in trunk/WebCore

2009-01-09 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add PlatformContextSkia and PlatformGraphics.h to platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23215

  • platform/graphics/skia/PlatformContextSkia.cpp: Added. (PlatformContextSkia::State::State): (PlatformContextSkia::State::~State): (PlatformContextSkia::State::applyAlpha): (PlatformContextSkia::PlatformContextSkia): (PlatformContextSkia::~PlatformContextSkia): (PlatformContextSkia::setCanvas): (PlatformContextSkia::save): (PlatformContextSkia::restore): (PlatformContextSkia::drawRect): (PlatformContextSkia::setupPaintCommon): (PlatformContextSkia::setupPaintForFilling): (PlatformContextSkia::setupPaintForStroking): (PlatformContextSkia::setDrawLooper): (PlatformContextSkia::setMiterLimit): (PlatformContextSkia::setAlpha): (PlatformContextSkia::setLineCap): (PlatformContextSkia::setLineJoin): (PlatformContextSkia::setPorterDuffMode): (PlatformContextSkia::setFillColor): (PlatformContextSkia::getDrawLooper): (PlatformContextSkia::getStrokeStyle): (PlatformContextSkia::setStrokeStyle): (PlatformContextSkia::setStrokeColor): (PlatformContextSkia::getStrokeThickness): (PlatformContextSkia::setStrokeThickness): (PlatformContextSkia::getTextDrawingMode): (PlatformContextSkia::setTextDrawingMode): (PlatformContextSkia::setUseAntialiasing): (PlatformContextSkia::fillColor): (PlatformContextSkia::beginPath): (PlatformContextSkia::addPath): (PlatformContextSkia::setFillRule): (PlatformContextSkia::setGradient): (PlatformContextSkia::setPattern): (PlatformContextSkia::setDashPathEffect): (PlatformContextSkia::paintSkPaint): (PlatformContextSkia::bitmap): (PlatformContextSkia::isPrinting):
  • platform/graphics/skia/PlatformContextSkia.h: Added. (PlatformContextSkia::currentPath): (PlatformContextSkia::canvas): (PlatformContextSkia::gdk_skia):
  • platform/graphics/skia/PlatformGraphics.h: Added.
2:35 PM Changeset in webkit [39765] by andersca@apple.com
  • 2 edits in trunk/WebCore

2009-01-09 Anders Carlsson <andersca@apple.com>

Fix build.


  • WebCore.LP64.exp:
2:34 PM Changeset in webkit [39764] by eric@webkit.org
  • 1 edit
    1 add in trunk/WebCore

2009-01-09 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add TransformationMatrixSkia to platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23215

  • platform/graphics/skia/TransformationMatrixSkia.cpp: Added. (WebCore::TransformationMatrix::TransformationMatrix): (WebCore::TransformationMatrix::setMatrix): (WebCore::TransformationMatrix::map): (WebCore::TransformationMatrix::mapRect): (WebCore::TransformationMatrix::isIdentity): (WebCore::TransformationMatrix::reset): (WebCore::TransformationMatrix::scale): (WebCore::TransformationMatrix::rotate): (WebCore::TransformationMatrix::translate): (WebCore::TransformationMatrix::shear): (WebCore::TransformationMatrix::det): (WebCore::TransformationMatrix::inverse): (WebCore::TransformationMatrix::operator SkMatrix): (WebCore::TransformationMatrix::operator==): (WebCore::TransformationMatrix::operator*=): (WebCore::TransformationMatrix::operator*): (WebCore::TransformationMatrix::a): (WebCore::TransformationMatrix::setA): (WebCore::TransformationMatrix::b): (WebCore::TransformationMatrix::setB): (WebCore::TransformationMatrix::c): (WebCore::TransformationMatrix::setC): (WebCore::TransformationMatrix::d): (WebCore::TransformationMatrix::setD): (WebCore::TransformationMatrix::e): (WebCore::TransformationMatrix::setE): (WebCore::TransformationMatrix::f): (WebCore::TransformationMatrix::setF):
2:33 PM Changeset in webkit [39763] by ap@webkit.org
  • 10 edits
    3 copies
    3 adds in trunk/WebKit/win

2009-01-09 Brent Fulgham <bfulgham@gmail.com>

Reviewed by Adam Roben.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=23092
Separate CFNetwork-specific code in WebKit.dll into separate
implementation files. Create cURL stub files to be populated
with new implementation in a future bug report.

  • WebCookieManager.cpp: Move CFNetwork-specific routines to the new WebCookieManagerCFNet.cpp file. (WebCookieManager::Release):
  • WebCookieManagerCFNet.cpp: Copied from WebCookieManager.cpp. (WebCookieManager::cookieStorage):
  • WebCookieManagerCurl.cpp: Added. (WebCookieManager::cookieStorage): (WebCookieManager::setCookieStorage):
  • WebCoreSupport/WebFrameLoaderClient.cpp: Conditionalize two methods in this file. (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): (WebFrameLoaderClient::savePlatformDataToCachedPage):
  • WebDownload.cpp: Move CFNetwork-specific logic to the new WebDownloadCFNet.cpp (WebDownload::bundleExtension): (WebDownload::bundleMagicNumber): (WebDownload::bundlePathForTargetPath): (WebDownload::extractResumeDataFromBundle): Made static class method so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp (WebDownload::appendResumeDataToBundle): Made static class method so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp
  • WebDownload.h:
  • WebDownloadCFNet.cpp: Copied from WebDownload.cpp. (WebDownload::initToResumeWithBundle): (WebDownload::setDestination): (didFailCallback):
  • WebDownloadCurl.cpp: Added. (WebDownload::init): (WebDownload::initWithRequest): (WebDownload::initToResumeWithBundle): (WebDownload::start): (WebDownload::cancel): (WebDownload::cancelForResume): (WebDownload::deletesFileUponFailure): (WebDownload::setDeletesFileUponFailure): (WebDownload::setDestination): (WebDownload::cancelAuthenticationChallenge): (WebDownload::continueWithoutCredentialForAuthenticationChallenge): (WebDownload::useCredential):
  • WebKit.vcproj/WebKit.vcproj: Modify Apple targets to exclude the new cURL files. Modify Cairo targets to exclude CFNet files.
  • WebMutableURLRequest.cpp: Conditionalize the single method with a CFNetwork-speicic call. (WebMutableURLRequest::mutableCopy):
  • WebURLAuthenticationChallenge.cpp: Conditionalize one line that causes build problems for cURL. This will be removed later. (WebURLAuthenticationChallenge::initWithProtectionSpace):
  • WebURLAuthenticationChallengeSender.cpp:
  • WebURLAuthenticationChallengeSenderCFNet.cpp: Copied from WebURLAuthenticationChallengeSender.cpp. (WebURLAuthenticationChallengeSender::useCredential):
  • WebURLAuthenticationChallengeSenderCurl.cpp: Added. (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge): (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge): (WebURLAuthenticationChallengeSender::useCredential):
  • WebURLResponse.cpp: Exclude WebKitSystemInterface when compiling for the cURL target.
2:21 PM Changeset in webkit [39762] by ap@webkit.org
  • 3 edits
    4 adds in trunk

Reviewed by Darin Adler.

<rdar://problem/6477502> Repro crash reloading page using HTML5 AppCache on Windows

Test: http/tests/appcache/reload.html

On Windows, reloading resulted in the following sequence of events:
1) A new main resource loader was created and associated with the cache. Its document loader
was not associated with the cache yet.
2) The old document loader was destroyed, and since it was the last one, ApplicationCacheGroup
teardown started, with newestCache being zeroed out.
3) The new document loader was associated with the cache group, and cache update started.
4) Since newestCache was null, this caused many problems.

  • loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::documentLoaderDestroyed): Improve comments and assertions, no functional changes. (WebCore::ApplicationCacheGroup::associateDocumentLoaderWithCache): Revive the cache group if its newest cache pointer is already saved for teardown. Note that the cache pointer validity is ensured by MainResourceLoader that holds a reference to it.
2:20 PM Changeset in webkit [39761] by ap@webkit.org
  • 2 edits in trunk/WebKit/win

Reviewed by Darin Adler.

Fix many appcache tests on Windows by making synchronous XMLHttpRequest throw on cache miss.

  • WebFrame.cpp: (WebFrame::cannotShowURLError): Implement, so that synchronous XHR can raise exceptions, as needed for AppCache tests. I do not know why this error was not implemented.
2:12 PM Changeset in webkit [39760] by darin@chromium.org
  • 2 edits
    8 adds in trunk/WebCore

2009-01-09 Darin Fisher <darin@chromium.org>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=23214
Upstream platform/network/chromium/

  • platform/network/chromium/AuthenticationChallenge.h: Added. (WebCore::AuthenticationChallenge::AuthenticationChallenge): (WebCore::AuthenticationChallenge::sourceHandle):
  • platform/network/chromium/AuthenticationChallengeChromium.cpp: Added. (WebCore::AuthenticationChallenge::platformCompare):
  • platform/network/chromium/CookieJarChromium.cpp: Added. (WebCore::setCookies): (WebCore::cookies): (WebCore::cookiesEnabled):
  • platform/network/chromium/DNSChromium.cpp: Added. (WebCore::prefetchDNS):
  • platform/network/chromium/NetworkStateNotifierChromium.cpp: Added. (WebCore::NetworkStateNotifier::updateState): (WebCore::NetworkStateNotifier::NetworkStateNotifier):
  • platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
  • platform/network/chromium/ResourceError.h: Added. (WebCore::ResourceError::ResourceError):
  • platform/network/chromium/ResourceRequest.h: Added. (WebCore::ResourceRequest::): (WebCore::ResourceRequest::ResourceRequest): (WebCore::ResourceRequest::frame): (WebCore::ResourceRequest::setFrame): (WebCore::ResourceRequest::setTargetType): (WebCore::ResourceRequest::targetType): (WebCore::ResourceRequest::originPid): (WebCore::ResourceRequest::setOriginPid): (WebCore::ResourceRequest::securityInfo): (WebCore::ResourceRequest::setSecurityInfo): (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest):
  • platform/network/chromium/ResourceResponse.h: (WebCore::ResourceResponse::ResourceResponse): (WebCore::ResourceResponse::getSecurityInfo): (WebCore::ResourceResponse::setSecurityInfo): (WebCore::ResourceResponse::isContentFiltered): (WebCore::ResourceResponse::setIsContentFiltered): (WebCore::ResourceResponse::doUpdateResourceResponse):
1:44 PM Changeset in webkit [39759] by barraclough@apple.com
  • 1 edit in trunk/JavaScriptCore/ChangeLog

fix tyop in Changelog

1:42 PM Changeset in webkit [39758] by mitz@apple.com
  • 3 edits in trunk/WebKit/mac

Reviewed by Darin Adler.

  • fixed <rdar://problem/6234347> Add/change conditional key bindings for changing paragraph- and character-level writing direction (to match NSTextView)
  • WebView/WebHTMLView.mm: (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Added code to validate makeBaseWritingDirectionLeftToRight: and makeBaseWritingDirectionRightToLeft:. (writingDirectionKeyBindingsEnabled): Changed this function to always return YES, except on Tiger and Leopard. (-[WebHTMLView makeBaseWritingDirectionLeftToRight:]): Renamed changeBaseWritingDirectionToLTR: to this. (-[WebHTMLView makeBaseWritingDirectionRightToLeft:]): Renamed changeBaseWritingDirectionToRTL: to this. (-[WebHTMLView changeBaseWritingDirectionToLTR:]): Now calls makeBaseWritingDirectionLeftToRight:. (-[WebHTMLView changeBaseWritingDirectionToRTL:]): Now calls makeBaseWritingDirectionRightToLeft:.
  • WebView/WebView.mm: Added makeBaseWritingDirectionLeftToRight and makeBaseWritingDirectionRightToLeft to FOR_EACH_RESPONDER_SELECTOR.
1:01 PM Changeset in webkit [39757] by adele@apple.com
  • 4 edits in trunk/WebKit/win

2009-01-09 Darin Adler <Darin Adler>

Reviewed and landed by Adele Peterson.

Bug 23160: add setMemoryCacheClientCallsEnabled SPI so Safari can be faster with activity window closed
https://bugs.webkit.org/show_bug.cgi?id=23160

  • Interfaces/IWebViewPrivate.idl: Added setMemoryCacheDelegateCallsEnabled.
  • WebView.cpp: (WebView::setMemoryCacheDelegateCallsEnabled): Ditto.
  • WebView.h: Ditto.
12:53 PM Changeset in webkit [39756] by wsiegrist@apple.com
  • 19 edits in trunk/WebKitSite

2009-01-09 William Siegrist <wsiegrist@apple.com>
Reviewed by David Kilzer

Update URLs which go through redirects by changing bugs.webkit.org URLs to use https and removing /projects/webkit from Trac URLs.

Replace tabs in bugpriorities.html with spaces.

12:17 PM Changeset in webkit [39755] by oliver@apple.com
  • 3 edits in trunk/JavaScriptCore

2009-01-09 David Levin <levin@chromium.org>

Reviewed by Oliver Hunt.

https://bugs.webkit.org/show_bug.cgi?id=23175

Adjustment to previous patch. Remove call to initilizeThreading from JSGlobalCreate
and fix jsc.cpp instead.

11:42 AM Changeset in webkit [39754] by abarth@webkit.org
  • 2 edits in trunk/LayoutTests

2009-01-09 Joel Weinberger <jww@cs.berkeley.edu>

Reviewed by Darin Adler.
Landed by Adam Barth.

The test intended to test reload, but reference reload in one place and
replace in another. This makes them consistent.

  • http/tests/security/resources/xss-DENIED-assign-location-reload-attacker.html:
11:12 AM Changeset in webkit [39753] by Simon Hausmann
  • 3 edits in trunk/WebKit/qt

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Rubber-stamped by Tor Arne Vestbø.

Documentation fixes, remove duplicated docs, document missing
parameters and return values.

10:47 AM Changeset in webkit [39752] by weinig@apple.com
  • 10 edits in trunk/JavaScriptCore

2009-01-09 Sam Weinig <sam@webkit.org>

Roll r39720 back in with a working interpreted mode.

10:46 AM Changeset in webkit [39751] by pkasting@chromium.org
  • 7 edits in trunk/WebCore

2009-01-09 Peter Kasting <pkasting@google.com>

Reviewed by David Hyatt.

https://bugs.webkit.org/show_bug.cgi?id=22995
Fix flaky image animation by resetting the metadata for a frame when
we get new data for that frame. This fixes animations that halted
when the next frame of the animation wasn't complete by the time the
current frame's duration expired.

  • platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::destroyDecodedData): (WebCore::BitmapImage::dataChanged):
  • platform/graphics/BitmapImage.h: (WebCore::FrameData::~FrameData):
  • platform/graphics/cairo/ImageCairo.cpp: (WebCore::FrameData::clear):
  • platform/graphics/cg/ImageCG.cpp: (WebCore::FrameData::clear):
  • platform/graphics/qt/ImageQt.cpp: (WebCore::FrameData::clear):
  • platform/graphics/wx/ImageWx.cpp: (WebCore::FrameData::clear):
10:28 AM Changeset in webkit [39750] by oliver@apple.com
  • 1 add in trunk/JavaScriptCore/wtf/PtrAndFlags.h

Whoops, include actual file the the forwarding headers point to.

9:58 AM Changeset in webkit [39749] by Simon Hausmann
  • 2 edits in trunk/WebCore

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Rubber-stamped by Tor Arne Vestbø.

Swap the .h and the .cpp output in the Qt build for the
UserAgentStyleSheetData files, to put the definition in the .cpp file
and the declaration in the header file.

9:54 AM Changeset in webkit [39748] by oliver@apple.com
  • 2 adds in trunk

include files missed in last commit.

9:53 AM Changeset in webkit [39747] by oliver@apple.com
  • 13 edits in trunk

2009-01-09 David Levin <levin@chromium.org>

Reviewed by Oliver Hunt.

https://bugs.webkit.org/show_bug.cgi?id=23175

Added a template to make the pointer and flags combination
in UString more readable and less error prone.

9:47 AM Changeset in webkit [39746] by Simon Hausmann
  • 2 edits in trunk/WebKit/qt

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Tor Arne Vestbø.

Fix linking against QtWebKit on Windows, by defining the EXPORT macros
_exactly_ the same way as in qglobal.h, depending on QT_NODLL,
QT_MAKEDLL and QT_SHARED.

8:51 AM Changeset in webkit [39745] by vestbo@webkit.org
  • 2 edits in trunk/WebCore

2009-01-09 Tor Arne Vestbø <tavestbo@trolltech.com>

Reviewed by Simon Hausmann.

Prevent qmake from generating duplicate rules for embedded stylesheets

The STYLESHEETS_EMBED variable used to contain only one file name, but
now that it is a list of files we need to change it to be a dependency
for the stylesheet generator instead of the input.

5:03 AM Changeset in webkit [39744] by Simon Hausmann
  • 4 edits in trunk

WebCore:

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Tor Arne Vestbø.

Fix qmake warning about missing test function, a contains() call was
missing.

WebKit/qt:

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Tor Arne Vestbø.

Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
public Qt 4.4/4.5 API.

4:32 AM Changeset in webkit [39743] by ap@webkit.org
  • 2 edits in trunk/LayoutTests

https://bugs.webkit.org/show_bug.cgi?id=23165

  • fast/dom/Window/window-properties-expected.txt: Forgot to commit this with r39699, too.
4:16 AM Changeset in webkit [39742] by Simon Hausmann
  • 2 edits in trunk/WebKit/qt

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
therefore HEADERS. It's not part of the API and it moc shouldn't be
called on it.

3:10 AM Changeset in webkit [39741] by Simon Hausmann
  • 4 edits in trunk

2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>

Rubber-stamped by Tor Arne Vestbø.

Add the Qt API headers to HEADERS, too, for improved completion in IDEs.

1:42 AM Changeset in webkit [39740] by ap@webkit.org
  • 3 edits in trunk/WebCore

2009-01-09 David Levin <levin@chromium.org>

Reviewed by Alexey Proskuryakov.

https://bugs.webkit.org/show_bug.cgi?id=23199

Fix deref's of string happening on two different threads.

No observable change in behavior, so no test. However, there are asserts
being added for https://bugs.webkit.org/show_bug.cgi?id=23175 which
will detect this issue while running the normal worker tests.

  • dom/WorkerThread.cpp: (WebCore::WorkerThreadStartupData::create): (WebCore::WorkerThreadStartupData::WorkerThreadStartupData): (WebCore::WorkerThread::WorkerThread): (WebCore::WorkerThread::workerThread):
  • dom/WorkerThread.h:
12:12 AM Changeset in webkit [39739] by barraclough@apple.com
  • 2 edits in trunk/LayoutTests

2009-01-08 Gavin Barraclough <barraclough@apple.com>

RS by Oliver Hunt.

Looks like this should have been updated with r39699.

  • fast/js/global-constructors-expected.txt:
12:11 AM Changeset in webkit [39738] by barraclough@apple.com
  • 11 edits in trunk/JavaScriptCore

2009-01-08 Gavin Barraclough <barraclough@apple.com>

Reviewed by Oliver Hunt.

Encode immediates in the low word of JSValuePtrs, on x86-64.

On 32-bit platforms a JSValuePtr may represent a 31-bit signed integer.
On 64-bit platforms, if USE(ALTERNATE_JSIMMEDIATE) is defined, a full
32-bit integer may be stored in an immediate.


Presently USE(ALTERNATE_JSIMMEDIATE) uses the same encoding as the default
immediate format - the value is left shifted by one, so a one bit tag can
be added to indicate the value is an immediate. However this means that
values must be commonly be detagged (by right shifting by one) before
arithmetic operations can be performed on immediates. This patch modifies
the formattting so the the high bits of the immediate mark values as being
integer.

  • assembler/MacroAssembler.h: (JSC::MacroAssembler::not32): (JSC::MacroAssembler::orPtr): (JSC::MacroAssembler::zeroExtend32ToPtr): (JSC::MacroAssembler::jaePtr): (JSC::MacroAssembler::jbPtr): (JSC::MacroAssembler::jnzPtr): (JSC::MacroAssembler::jzPtr):
  • assembler/X86Assembler.h: (JSC::X86Assembler::): (JSC::X86Assembler::notl_r): (JSC::X86Assembler::testq_i32r):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): (JSC::JIT::privateCompileCTIMachineTrampolines):
  • jit/JIT.h:
  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArith_op_lshift): (JSC::JIT::compileFastArith_op_rshift): (JSC::JIT::compileFastArith_op_bitand): (JSC::JIT::compileFastArithSlow_op_bitand): (JSC::JIT::compileFastArith_op_mod): (JSC::JIT::compileFastArithSlow_op_mod): (JSC::JIT::compileFastArith_op_add): (JSC::JIT::compileFastArith_op_mul): (JSC::JIT::compileFastArith_op_post_inc): (JSC::JIT::compileFastArith_op_post_dec): (JSC::JIT::compileFastArith_op_pre_inc): (JSC::JIT::compileFastArith_op_pre_dec): (JSC::JIT::putDoubleResultToJSNumberCellOrJSImmediate): (JSC::JIT::compileBinaryArithOp):
  • jit/JITCall.cpp: (JSC::JIT::compileOpCallSlowCase):
  • jit/JITInlineMethods.h: (JSC::JIT::emitJumpIfJSCell): (JSC::JIT::emitJumpIfNotJSCell): (JSC::JIT::emitJumpIfImmNum): (JSC::JIT::emitJumpSlowCaseIfNotImmNum): (JSC::JIT::emitJumpSlowCaseIfNotImmNums): (JSC::JIT::emitFastArithDeTagImmediate): (JSC::JIT::emitFastArithDeTagImmediateJumpIfZero): (JSC::JIT::emitFastArithReTagImmediate): (JSC::JIT::emitFastArithImmToInt): (JSC::JIT::emitFastArithIntToImmNoCheck): (JSC::JIT::emitTagAsBoolImmediate):
  • jit/JITPropertyAccess.cpp: (JSC::resizePropertyStorage): (JSC::JIT::privateCompilePutByIdTransition): (JSC::JIT::privateCompilePatchGetArrayLength): (JSC::JIT::privateCompileGetByIdSelf): (JSC::JIT::privateCompileGetByIdProto): (JSC::JIT::privateCompileGetByIdChain): (JSC::JIT::privateCompilePutByIdReplace):
  • runtime/JSImmediate.h: (JSC::JSImmediate::isNumber): (JSC::JSImmediate::isPositiveNumber): (JSC::JSImmediate::areBothImmediateNumbers): (JSC::JSImmediate::xorImmediateNumbers): (JSC::JSImmediate::rightShiftImmediateNumbers): (JSC::JSImmediate::canDoFastAdditiveOperations): (JSC::JSImmediate::addImmediateNumbers): (JSC::JSImmediate::subImmediateNumbers): (JSC::JSImmediate::makeInt): (JSC::JSImmediate::toBoolean):
  • wtf/Platform.h:

Jan 8, 2009:

9:41 PM Changeset in webkit [39737] by weinig@apple.com
  • 10 edits in trunk/JavaScriptCore

2009-01-08 Sam Weinig <sam@webkit.org>

Revert r39720. It broke Interpreted mode.

7:45 PM Changeset in webkit [39736] by mitz@apple.com
  • 13 edits in trunk

WebCore:

Reviewed by Adam Roben.

  • use native glyph support in Core Graphics when available
  • platform/graphics/win/FontCGWin.cpp: (WebCore::Font::drawGlyphs): Changed to use drawGDIGlyphs() only if native glyph support is not available or stroking is required. Changed to pass the font's useGDI() flag to wkSetCGContextFontRenderingStyle to request the use of native glyphs.
  • platform/graphics/win/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::fontPlatformData): Added a call to wkSetFontPlatformInfo to attach the LOGFONT to the CGFont.
  • platform/graphics/win/FontPlatformDataCGWin.cpp: (WebCore::FontPlatformData::platformDataInit): Ditto.

WebKit/win:

Reviewed by Adam Roben.

  • WebPreferences changes to support Core Graphics native glyph drawing
  • Interfaces/IWebPreferencesPrivate.idl: Added font smoothing contrast getter and setter.
  • WebPreferenceKeysPrivate.h: Added WebKitFontSmoothingContrastPreferenceKey.
  • WebPreferences.cpp: (WebPreferences::initializeDefaultSettings): Initialized WebKitFontSmoothingContrastPreferenceKey to 2. (WebPreferences::setFloatValue): Added. (WebPreferences::setFontSmoothing): Changed to map FontSmoothingTypeWindows to FontSmoothingTypeMedium. (WebPreferences::fontSmoothingContrast): Added. (WebPreferences::setFontSmoothingContrast): Added. Calls wkSetFontSmoothingContrast().
  • WebPreferences.h:

WebKitLibraries:

Reviewed by Adam Roben.

  • WebKitSystemInterface changes to support Core Graphics native glyph drawing
  • win/include/WebKitSystemInterface/WebKitSystemInterface.h:
  • win/lib/WebKitSystemInterface.lib:
  • win/lib/WebKitSystemInterface_debug.lib:
7:12 PM Changeset in webkit [39735] by sfalken@apple.com
  • 2 edits in trunk/WebKit/win

<rdar://problem/6474244> REGRESSION(39561-39603): Heap corruption when saving passwords?


Reviewed by Adam Roben.

  • WebView.cpp: (WebViewWndProc): Hold a ref to the WebView inside the WNDPROC, since it could go away in an event handler.
5:51 PM Changeset in webkit [39734] by pkasting@chromium.org
  • 2 edits in trunk/WebCore

2009-01-08 Peter Kasting <pkasting@google.com>

Reviewed by Sam Weinig.

https://bugs.webkit.org/show_bug.cgi?id=22929
Fix memory regression when decoding large animated GIFs.

  • platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::clear):
5:41 PM Changeset in webkit [39733] by andersca@apple.com
  • 3 edits in trunk/WebKit/mac

2009-01-08 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Add and implement WKPCGetStringIdentifier.


  • Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCGetStringIdentifier):
  • Plugins/Hosted/WebKitPluginClient.defs:
5:36 PM Changeset in webkit [39732] by eric@webkit.org
  • 1 edit in trunk/WebCore/ChangeLog

Correct my changelog error.

2009-01-08 Scott Violet <sky@chromium.org>

Reviewed by Eric Seidel (and Adam Barth).

Fix Images to return their file extension
http://code.google.com/p/chromium/issues/detail?id=5827

  • platform/graphics/skia/ImageSourceSkia.cpp: (WebCore::ImageSource::filenameExtension):
5:22 PM Changeset in webkit [39731] by eric@webkit.org
  • 2 edits in trunk/WebCore

2009-01-08 Berend-Jan Wever <sky@chromium.org>

Reviewed by Adam Barth.

Fix Images to return their file extension
http://code.google.com/p/chromium/issues/detail?id=5827

  • platform/graphics/skia/ImageSourceSkia.cpp: (WebCore::ImageSource::filenameExtension):
5:18 PM Changeset in webkit [39730] by eric@webkit.org
  • 1 edit
    2 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add PathSkia and PatternSkia implementations to WebCore
https://bugs.webkit.org/show_bug.cgi?id=23200

  • platform/graphics/skia/PathSkia.cpp: Added. (WebCore::Path::Path): (WebCore::Path::~Path): (WebCore::Path::operator=): (WebCore::Path::isEmpty): (WebCore::Path::contains): (WebCore::Path::translate): (WebCore::Path::boundingRect): (WebCore::Path::moveTo): (WebCore::Path::addLineTo): (WebCore::Path::addQuadCurveTo): (WebCore::Path::addBezierCurveTo): (WebCore::Path::addArcTo): (WebCore::Path::closeSubpath): (WebCore::Path::addArc): (WebCore::Path::addRect): (WebCore::Path::addEllipse): (WebCore::Path::clear): (WebCore::convertPathPoints): (WebCore::Path::apply): (WebCore::Path::transform): (WebCore::Path::debugString): (WebCore::boundingBoxForCurrentStroke): (WebCore::Path::strokeBoundingRect):
  • platform/graphics/skia/PatternSkia.cpp: Added. (WebCore::shaderRule): (WebCore::Pattern::createPlatformPattern):
5:06 PM Changeset in webkit [39729] by eric@webkit.org
  • 2 edits
    2 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add ImageSourceSkia to platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23200

ImageSourceSkia is mostly a hack to support our
ICO decoder model. See ImageSourceSkia.h for more
explanation. Eventually we'd like to make our ICO
decoder lazy.

  • platform/graphics/ImageSource.h: mark m_decoder as protected
  • platform/graphics/skia/ImageSourceSkia.cpp: Added. (WebCore::createDecoder): (WebCore::ImageSource::ImageSource): (WebCore::ImageSource::~ImageSource): (WebCore::ImageSource::clear): (WebCore::ImageSource::initialized): (WebCore::ImageSource::setData): (WebCore::ImageSource::isSizeAvailable): (WebCore::ImageSource::size): (WebCore::ImageSource::frameSizeAtIndex): (WebCore::ImageSource::repetitionCount): (WebCore::ImageSource::frameCount): (WebCore::ImageSource::createFrameAtIndex): (WebCore::ImageSource::frameIsCompleteAtIndex): (WebCore::ImageSource::frameDurationAtIndex): (WebCore::ImageSource::frameHasAlphaAtIndex): (WebCore::ImageSourceSkia::setData): (WebCore::ImageSource::filenameExtension):
  • platform/graphics/skia/ImageSourceSkia.h: Added.
4:54 PM Changeset in webkit [39728] by eric@webkit.org
  • 1 edit
    2 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add NativeImageSkia (PlatformImagePtr) to platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23200

  • platform/graphics/skia/NativeImageSkia.cpp: Added. (NativeImageSkia::NativeImageSkia): (NativeImageSkia::decodedSize): (NativeImageSkia::hasResizedBitmap): (NativeImageSkia::resizedBitmap): (NativeImageSkia::shouldCacheResampling):
  • platform/graphics/skia/NativeImageSkia.h: Added. (NativeImageSkia::setDataComplete): (NativeImageSkia::isDataComplete):
4:41 PM Changeset in webkit [39727] by eric@webkit.org
  • 1 edit
    2 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add ImageBufferSkia and ImageSkia files.
https://bugs.webkit.org/show_bug.cgi?id=23200
For now we've left BitmapImage and BitmapImageSingleFrameSkia
implementations in the ImageSkia file (like ImageCG has), but
we intend to break them out into their own files.

  • platform/graphics/skia/ImageBufferSkia.cpp: Added. (WebCore::ImageBufferData::ImageBufferData): (WebCore::ImageBuffer::ImageBuffer): (WebCore::ImageBuffer::~ImageBuffer): (WebCore::ImageBuffer::context): (WebCore::ImageBuffer::image): (WebCore::ImageBuffer::getImageData): (WebCore::ImageBuffer::putImageData): (WebCore::ImageBuffer::toDataURL):
  • platform/graphics/skia/ImageSkia.cpp: Added. (WebCore::): (WebCore::FrameData::clear): (WebCore::Image::loadPlatformResource): (WebCore::Image::drawPattern): (WebCore::BitmapImage::initPlatformData): (WebCore::BitmapImage::invalidatePlatformData): (WebCore::BitmapImage::checkForSolidColor): (WebCore::BitmapImage::draw): (WebCore::BitmapImageSingleFrameSkia::draw): (WebCore::BitmapImageSingleFrameSkia::create):
4:30 PM Changeset in webkit [39726] by pam@chromium.org
  • 2 edits in trunk/WebCore

2009-01-08 James Robinson <jamesr@google.com>

Reviewed by Mark Rowe.
Landed by Pamela Greene.

WebCore::Event::timeStamp() is a simple accessor and should be const

https://bugs.webkit.org/show_bug.cgi?id=23176

  • dom/Event.h: (WebCore::Event::timeStamp):
3:44 PM Changeset in webkit [39725] by Antti Koivisto
  • 6 edits in trunk/WebCore

2009-01-08 Antti Koivisto <Antti Koivisto>

Reviewed by Oliver Hunt.

Fix <rdar://problem/6467206>
Resources loaded from the memory cache do not get correctly inserted into the DocLoader resource map (22994)


Use CachedResourceHandle in document resource map so resources get updated correctly when using
using cache validation conditionals.

  • loader/Cache.cpp: (WebCore::Cache::evict):
  • loader/DocLoader.cpp: (WebCore::DocLoader::~DocLoader): (WebCore::DocLoader::requestResource): (WebCore::DocLoader::setAutoLoadImages): (WebCore::DocLoader::removeCachedResource):
  • loader/DocLoader.h: (WebCore::DocLoader::cachedResource): (WebCore::DocLoader::allCachedResources):
  • loader/DocumentLoader.cpp: (WebCore::DocumentLoader::getSubresources):
  • loader/ImageLoader.cpp: (WebCore::ImageLoader::updateFromElement):
3:36 PM Changeset in webkit [39724] by mrowe@apple.com
  • 4 edits in trunk

Versioning.

3:35 PM Changeset in webkit [39723] by mrowe@apple.com
  • 1 copy in tags/Safari-6528.9

New tag.

3:07 PM Changeset in webkit [39722] by Stephanie Lewis
  • 2 edits in trunk/WebKit/mac

2009-01-08 Stephanie Lewis <slewis@gmail.com>

Fix Tiger build.

  • WebView/WebTextIterator.mm:
3:00 PM Changeset in webkit [39721] by andersca@apple.com
  • 6 edits in trunk/WebKit/mac

2009-01-08 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Add basic support for evaluating scripts.


  • Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::fromUTF8WithLatin1Fallback): (WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy): (WKPCReleaseObject): (marshalValue): (WKPCEvaluate):
  • Plugins/Hosted/NetscapePluginInstanceProxy.h:
  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::releaseObject): (WebKit::NetscapePluginInstanceProxy::evaluate):
  • Plugins/Hosted/WebKitPluginClient.defs:
  • Plugins/Hosted/WebKitPluginHostTypes.h:
2:51 PM Changeset in webkit [39720] by weinig@apple.com
  • 10 edits in trunk/JavaScriptCore

2009-01-08 Sam Weinig <sam@webkit.org>

Reviewed by Oliver Hunt.

Fix for https://bugs.webkit.org/show_bug.cgi?id=23197
Delay creating the PCVector until an exception is thrown
Part of <rdar://problem/6469060>
Don't store exception information for a CodeBlock until first exception is thrown

  • Change the process for re-parsing/re-generating bytecode for exception information to use data from the original CodeBlock (offsets of GlobalResolve instructions) to aid in creating an identical instruction stream on re-parse, instead of padding interchangeable opcodes, which would result in different JITed code.
  • Fix bug where the wrong ScopeChainNode was used when re-parsing/regenerating from within some odd modified scope chains.
  • Lazily create the pcVector by re-JITing the regenerated CodeBlock and stealing the the pcVector from it.

Saves ~2MB on Membuster head.

  • bytecode/CodeBlock.cpp: (JSC::CodeBlock::dump): (JSC::CodeBlock::reparseForExceptionInfoIfNecessary): (JSC::CodeBlock::hasGlobalResolveInstructionAtBytecodeOffset): (JSC::CodeBlock::hasGlobalResolveInfoAtBytecodeOffset):
  • bytecode/CodeBlock.h: (JSC::JITCodeRef::JITCodeRef): (JSC::GlobalResolveInfo::GlobalResolveInfo): (JSC::CodeBlock::getBytecodeIndex): (JSC::CodeBlock::addGlobalResolveInstruction): (JSC::CodeBlock::addGlobalResolveInfo): (JSC::CodeBlock::addFunctionRegisterInfo): (JSC::CodeBlock::hasExceptionInfo): (JSC::CodeBlock::pcVector): (JSC::EvalCodeBlock::EvalCodeBlock): (JSC::EvalCodeBlock::baseScopeDepth):
  • bytecode/Opcode.h:
  • bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::BytecodeGenerator): (JSC::BytecodeGenerator::emitResolve): (JSC::BytecodeGenerator::emitGetScopedVar):
  • bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::setRegeneratingForExceptionInfo):
  • interpreter/Interpreter.cpp: (JSC::bytecodeOffsetForPC): (JSC::Interpreter::unwindCallFrame): (JSC::Interpreter::privateExecute): (JSC::Interpreter::retrieveLastCaller): (JSC::Interpreter::cti_op_instanceof): (JSC::Interpreter::cti_op_call_NotJSFunction): (JSC::Interpreter::cti_op_resolve): (JSC::Interpreter::cti_op_construct_NotJSConstruct): (JSC::Interpreter::cti_op_resolve_func): (JSC::Interpreter::cti_op_resolve_skip): (JSC::Interpreter::cti_op_resolve_global): (JSC::Interpreter::cti_op_resolve_with_base): (JSC::Interpreter::cti_op_throw): (JSC::Interpreter::cti_op_in): (JSC::Interpreter::cti_vm_throw):
  • jit/JIT.cpp: (JSC::JIT::privateCompile):
  • parser/Nodes.cpp: (JSC::EvalNode::generateBytecode): (JSC::EvalNode::bytecodeForExceptionInfoReparse): (JSC::FunctionBodyNode::bytecodeForExceptionInfoReparse):
  • parser/Nodes.h:
2:06 PM Changeset in webkit [39719] by eric@webkit.org
  • 1 edit
    1 add in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add a cleaned-up GraphicsContextSkia implementation to WebKit.
https://bugs.webkit.org/show_bug.cgi?id=23191

  • platform/graphics/skia/GraphicsContextSkia.cpp: Added. (WebCore::): (WebCore::GraphicsContext::GraphicsContext): (WebCore::GraphicsContext::~GraphicsContext): (WebCore::GraphicsContext::platformContext): (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::beginTransparencyLayer): (WebCore::GraphicsContext::endTransparencyLayer): (WebCore::GraphicsContext::addInnerRoundedRectClip): (WebCore::GraphicsContext::addPath): (WebCore::GraphicsContext::beginPath): (WebCore::GraphicsContext::clearPlatformShadow): (WebCore::GraphicsContext::clearRect): (WebCore::GraphicsContext::clip): (WebCore::GraphicsContext::clipOut): (WebCore::GraphicsContext::clipOutEllipseInRect): (WebCore::GraphicsContext::clipPath): (WebCore::GraphicsContext::clipToImageBuffer): (WebCore::GraphicsContext::concatCTM): (WebCore::GraphicsContext::drawConvexPolygon): (WebCore::GraphicsContext::drawEllipse): (WebCore::GraphicsContext::drawFocusRing): (WebCore::GraphicsContext::drawLine): (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): (WebCore::GraphicsContext::drawLineForText): (WebCore::GraphicsContext::drawRect): (WebCore::GraphicsContext::fillPath): (WebCore::GraphicsContext::fillRect): (WebCore::GraphicsContext::fillRoundedRect): (WebCore::GraphicsContext::getCTM): (WebCore::GraphicsContext::roundToDevicePixels): (WebCore::GraphicsContext::scale): (WebCore::GraphicsContext::setAlpha): (WebCore::GraphicsContext::setCompositeOperation): (WebCore::GraphicsContext::setImageInterpolationQuality): (WebCore::GraphicsContext::setLineCap): (WebCore::GraphicsContext::setLineDash): (WebCore::GraphicsContext::setLineJoin): (WebCore::GraphicsContext::setMiterLimit): (WebCore::GraphicsContext::setPlatformFillColor): (WebCore::GraphicsContext::setPlatformShadow): (WebCore::GraphicsContext::setPlatformStrokeColor): (WebCore::GraphicsContext::setPlatformStrokeStyle): (WebCore::GraphicsContext::setPlatformStrokeThickness): (WebCore::GraphicsContext::setPlatformTextDrawingMode): (WebCore::GraphicsContext::setURLForRect): (WebCore::GraphicsContext::setUseAntialiasing): (WebCore::GraphicsContext::strokeArc): (WebCore::GraphicsContext::strokePath): (WebCore::GraphicsContext::strokeRect): (WebCore::GraphicsContext::rotate): (WebCore::GraphicsContext::translate):
1:51 PM Changeset in webkit [39718] by eric@webkit.org
  • 1 edit
    2 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add two more files for platform/graphics/skia.
https://bugs.webkit.org/show_bug.cgi?id=23191

  • platform/graphics/skia/GradientSkia.cpp: Added. (WebCore::Gradient::platformDestroy): (WebCore::F2B): (WebCore::makeSkColor): (WebCore::totalStopsNeeded): (WebCore::fillStops): (WebCore::compareStops): (WebCore::Gradient::platformGradient): (WebCore::Gradient::fill):
  • platform/graphics/skia/GraphicsContextPlatformPrivate.h: Copied from WebCore/bindings/js/ScriptValue.h. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate): (WebCore::GraphicsContextPlatformPrivate::context):
1:27 PM Changeset in webkit [39717] by hyatt@apple.com
  • 10 edits in trunk

WebCore:

2009-01-08 David Hyatt <hyatt@apple.com>

Fix for <rdar://problem/6465682> REGRESSION: In Mail, can't force a message to auto scroll.

Make scrollRectIntoViewRecursively call out to the HostWindow to continue the recursive scroll for
any scrollable views that may contain a WebView. Does nothing on platforms other than the Mac, but
might eventually be of interest to other platforms.

Reviewed by Oliver Hunt

  • WebCore.base.exp:
  • page/Chrome.cpp: (WebCore::Chrome::scrollRectIntoView):
  • page/Chrome.h:
  • page/ChromeClient.h: (WebCore::ChromeClient::scrollRectIntoView):
  • platform/HostWindow.h:
  • platform/ScrollView.cpp: (WebCore::ScrollView::scrollRectIntoViewRecursively):

WebKit/mac:

2009-01-08 David Hyatt <hyatt@apple.com>

Fix for <rdar://problem/6465682> REGRESSION: In Mail, can't force a message to auto scroll

Add a new ChromeClient method for handling exposure of scrolled rects.

Reviewed by Oliver Hunt

  • WebCoreSupport/WebChromeClient.h:
  • WebCoreSupport/WebChromeClient.mm: (WebChromeClient::scrollRectIntoView):
1:12 PM Changeset in webkit [39716] by treat@webkit.org
  • 4 edits in trunk/WebCore

No need to make this part of HostWindow and moreover HostWindow should
not have any reference to non-platform parts of WebCore.

12:59 PM Changeset in webkit [39715] by Darin Adler
  • 3 edits in trunk/WebKit/mac

2009-01-08 Darin Adler <Darin Adler>

Reviewed by Tim Hatcher.

Bug 23185: add a currentRange method to the WebTextIterator SPI
https://bugs.webkit.org/show_bug.cgi?id=23185
rdar://problem/6455834

I also noticed a garbage-collection-related threading issue that I fixed, and
that the SPI for getting text was unnecessarily inefficient, so I fixed that too.

  • WebView/WebTextIterator.h: Moved currentNode and currentText into a "deprecated" category. Added currentTextPointer and currentTextLength.
  • WebView/WebTextIterator.mm: Changed m_textIterator into an OwnPtr, and also used _textIterator to be consistent with ObjC rather than C++ naming. (+[WebTextIteratorPrivate initialize]): Added. Calls WebCoreObjCFinalizeOnMainThread, since the finalize method here works with main-thread only WebCore objects. (-[WebTextIterator initWithRange:]): Changed since _textIterator is an OwnPtr now. (-[WebTextIterator advance]): Changed name of m_textIterator. Removed null assertion, since I don't think it provides much value. (-[WebTextIterator atEnd]): Ditto. (-[WebTextIterator currentRange]): Added. (-[WebTextIterator currentTextPointer]): Added. (-[WebTextIterator currentTextLength]): Added. (-[WebTextIterator currentNode]): Did same as above, but also put into new category. (-[WebTextIterator currentText]): Ditto.
12:19 PM Changeset in webkit [39714] by eric.carlson@apple.com
  • 11 edits in trunk

2009-01-08 Eric Carlson <eric.carlson@apple.com>

Reviewed by Adele Peterson.

Simplify Mac interfaces for drawing media controller elements

<rdar://problem/6293969>

  • WebCore.base.exp: update for changed WebKitSystemInterface media controller functions
  • platform/mac/WebCoreSystemInterface.h: Ditto
  • platform/mac/WebCoreSystemInterface.mm: Ditto
  • rendering/MediaControlElements.h: (WebCore::): Add MediaControlElements enum
  • rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintMediaFullscreenButton): update for changed WebKitSystemInterface media controller functions (WebCore::RenderThemeMac::paintMediaMuteButton): Ditto (WebCore::RenderThemeMac::paintMediaPlayButton): Ditto (WebCore::RenderThemeMac::paintMediaSeekBackButton): Ditto (WebCore::RenderThemeMac::paintMediaSeekForwardButton): Ditto (WebCore::RenderThemeMac::paintMediaSliderTrack): Ditto (WebCore::RenderThemeMac::paintMediaSliderThumb): Ditto

2009-01-08 Eric Carlson <eric.carlson@apple.com>

Reviewed by Adele Peterson.

Simplify Mac interfaces for drawing media controller elements

<rdar://problem/6293969>

  • WebCoreSupport/WebSystemInterface.m: (InitWebCoreSystemInterface): Update for changes to media controller functions
11:45 AM Changeset in webkit [39713] by eric@webkit.org
  • 8 edits in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Commit the right files this time! (Instead of the ugly unfixed ones.)
https://bugs.webkit.org/show_bug.cgi?id=23191

  • platform/graphics/skia/BitmapImageSingleFrameSkia.h:
  • platform/graphics/skia/FloatPointSkia.cpp:
  • platform/graphics/skia/FloatRectSkia.cpp:
  • platform/graphics/skia/IntPointSkia.cpp:
  • platform/graphics/skia/IntRectSkia.cpp: (WebCore::IntRect::operator SkRect):
  • platform/graphics/skia/SkiaUtils.cpp: (WebCore::): (WebCore::WebCoreCompositeToSkiaComposite): (WebCore::SkPMColorToWebCoreColor): (WebCore::IntersectRectAndRegion): (WebCore::ClipRectToCanvas): (WebCore::SkPathContainsPoint): (WebCore::scratchContext):
  • platform/graphics/skia/SkiaUtils.h: (WebCore::WebCoreFloatToSkScalar): (WebCore::WebCoreDoubleToSkScalar):
10:58 AM Changeset in webkit [39712] by eric@webkit.org
  • 1 edit
    8 adds in trunk/WebCore

2009-01-08 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Eric Seidel.

Add the first few files from platform/graphics/skia
https://bugs.webkit.org/show_bug.cgi?id=23191

These are all pretty simple.
Eventually BitmapImageSingleFrameSkia might grow a .cpp file, for now it's just a header.
SkiaUtils needs to die, but that can come later, no need to block up-streaming now.

  • platform/graphics/skia/BitmapImageSingleFrameSkia.h: Added. (WebCore::BitmapImageSingleFrameSkia::isBitmapImage): (WebCore::BitmapImageSingleFrameSkia::size): (WebCore::BitmapImageSingleFrameSkia::destroyDecodedData): (WebCore::BitmapImageSingleFrameSkia::decodedSize): (WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame): (WebCore::BitmapImageSingleFrameSkia::BitmapImageSingleFrameSkia):
  • platform/graphics/skia/FloatPointSkia.cpp: Copied from WebCore/platform/graphics/mac/FloatPointMac.mm. (WebCore::FloatPoint::FloatPoint): (WebCore::FloatPoint::operator SkPoint):
  • platform/graphics/skia/FloatRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp. (WebCore::FloatRect::FloatRect): (WebCore::FloatRect::operator SkRect):
  • platform/graphics/skia/IntPointSkia.cpp: Copied from WebCore/platform/graphics/win/IntPointWin.cpp. (WebCore::IntPoint::IntPoint): (WebCore::IntPoint::operator SkIPoint): (WebCore::IntPoint::operator SkPoint):
  • platform/graphics/skia/IntRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp. (WebCore::IntRect::operator SkIRect): (WebCore::IntRect::operator SkRect): (WebCore::IntRect::IntRect):
  • platform/graphics/skia/SkiaUtils.cpp: Added. (WebCore::WebCorePointToSkiaPoint): (WebCore::WebCoreRectToSkiaRect): (WebCore::): (WebCore::WebCoreCompositeToSkiaComposite): (WebCore::InvScaleByte): (WebCore::SkPMColorToColor): (WebCore::SkPMColorToWebCoreColor): (WebCore::IntersectRectAndRegion): (WebCore::ClipRectToCanvas): (WebCore::SkPathContainsPoint): (WebCore::scratchContext):
  • platform/graphics/skia/SkiaUtils.h: Added. (WebCore::WebCoreFloatToSkScalar): (WebCore::WebCoreDoubleToSkScalar):
10:24 AM Changeset in webkit [39711] by pol@apple.com
  • 8 edits
    4 adds in trunk

2009-01-08 Pierre-Olivier Latour <pol@apple.com>

Reviewed by Dan Bernstein.

Fixed CSS Transitions with zero-duration but non-zero-delay not starting or ending properly.

Also updated AnimationController::numberOfActiveAnimations() which now returns the number of "active" animations,
instead of simply the "running" ones.

https://bugs.webkit.org/show_bug.cgi?id=23177

Tests: transitions/zero-duration-with-non-zero-delay-end.html

transitions/zero-duration-with-non-zero-delay-start.html

  • page/animation/AnimationBase.cpp: (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
  • page/animation/AnimationController.cpp: (WebCore::AnimationControllerPrivate::animationTimerFired):
  • page/animation/CompositeAnimation.cpp: (WebCore::CompositeAnimationPrivate::numberOfActiveAnimations):

Added layout tests for CSS Transitions with zero-duration but non-zero-delay.

Also updated the layout test for DRT API numberOfActiveAnimations() which now returns the number of "active" animations,
instead of simply the running ones.

https://bugs.webkit.org/show_bug.cgi?id=23177

  • animations/animation-controller-drt-api-expected.txt:
  • animations/animation-controller-drt-api.html:
  • platform/win/Skipped:
  • transitions/zero-duration-with-non-zero-delay-end-expected.txt: Added.
  • transitions/zero-duration-with-non-zero-delay-end.html: Added.
  • transitions/zero-duration-with-non-zero-delay-start-expected.txt: Added.
  • transitions/zero-duration-with-non-zero-delay-start.html: Added.
9:50 AM Changeset in webkit [39710] by pam@chromium.org
  • 2 edits in trunk/WebKitSite

2009-01-08 Brent Fulgham <bfulgham@gmail.com>

Reviewed by Adele Petersen.
Landed by Pamela Greene.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=23139
Remove links to no-longer-existing Drosera project.
Also, clean up references to wiki in the nav.inc file.

  • nav.inc: Correct paths to wiki, swap Drosera for Web Inspector.
9:05 AM Changeset in webkit [39709] by ap@webkit.org
  • 2 edits in trunk/WebCore

Reviewed by Oliver Hunt.

<rdar://problem/6477501> Repro crash loading HTML5 AppCache manifest directly

The crash happened whenever a cached resource was downloaded, as opposed to used directly.

No test, as downloading cannot be tested automatically.

  • loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::continueAfterContentPolicy): Cancel downloads that do not have an associated ResourceHandle, such as downloads from the application cache. Activity window shows "The URL can't be shown", and the frame remains empty.
8:47 AM Changeset in webkit [39708] by ap@webkit.org
  • 4 edits
    1 add in trunk/JavaScriptCore

2009-01-08 Jian Li <jianli@chromium.org>

Reviewed by Alexey Proskuryakov.

Add Win32 implementation of ThreadSpecific.
https://bugs.webkit.org/show_bug.cgi?id=22614

  • JavaScriptCore.vcproj/WTF/WTF.vcproj:
  • wtf/ThreadSpecific.h: (WTF::ThreadSpecific::ThreadSpecific): (WTF::ThreadSpecific::~ThreadSpecific): (WTF::ThreadSpecific::get): (WTF::ThreadSpecific::set): (WTF::ThreadSpecific::destroy):
  • wtf/ThreadSpecificWin.cpp: Added. (WTF::ThreadSpecificThreadExit):
  • wtf/ThreadingWin.cpp: (WTF::wtfThreadEntryPoint):
7:58 AM Changeset in webkit [39707] by Simon Hausmann
  • 3 edits in trunk/JavaScriptCore

2009-01-08 Justin McPherson <justin.mcpherson@nokia.com>

Reviewed by Simon Hausmann.

Fix compilation with Qt on NetBSD.

7:51 AM Changeset in webkit [39706] by treat@webkit.org
  • 4 edits in trunk

Don't set the minimumFontSize and minimumLogicalFontSize as these are
just for accessibility and should be left up to the client application.

7:50 AM Changeset in webkit [39705] by Simon Hausmann
  • 2 edits in trunk/WebCore

2009-01-08 Justin McPherson <justin.mcpherson@nokia.com>

Reviewed by Simon Hausmann.

Fix the Qt build on older X11 systems with special X paths
needed for NPAPI.

7:21 AM Changeset in webkit [39704] by Simon Hausmann
  • 4 edits in trunk/WebKit/qt

2009-01-08 Kavindra Palaraja <kdpalara@trolltech.com>

Reviewed by Simon Hausmann.

Small fixes to the API documentation, missing 4.5 tags and
undocumented parameters.

7:04 AM Changeset in webkit [39703] by Adam Roben
  • 2 edits in trunk/WebCore

Windows build fix after r39699

  • DerivedSources.cpp: Added JSDOMStringList.cpp.
5:47 AM Changeset in webkit [39702] by Simon Hausmann
  • 2 edits in trunk/WebCore

2009-01-08 Kent Hansen <khansen@trolltech.com>

Reviewed by Simon Hausmann.

Fix copy & paste of images in the Qt port.

Store the QPixmap itself in the mimedata, not a QPixmap* converted to bool.

4:33 AM Changeset in webkit [39701] by zecke@webkit.org
  • 2 edits in trunk/WebCore

2009-01-08 Hiroyuki Ikezoe <poincare@ikezoe.net>

Reviewed by Holger Freyther.

https://bugs.webkit.org/show_bug.cgi?id=23127

Invoke pango_coverage_get with each Unicode character.

  • platform/graphics/gtk/SimpleFontDataPango.cpp: (WebCore::SimpleFontData::containsCharacters):
4:32 AM Changeset in webkit [39700] by zecke@webkit.org
  • 3 edits in trunk/WebKit/gtk

Add webkit_web_view_reload_bypass_cache.

3:54 AM Changeset in webkit [39699] by ap@webkit.org
  • 15 edits
    8 adds in trunk

Reviewed by Darin Adler.

Part one of
https://bugs.webkit.org/show_bug.cgi?id=23165
Add support for application cache dynamic entries

Test: http/tests/appcache/dynamic-entries-no-cache.html

  • DerivedSources.make:
  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.scons:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • WebCoreSources.bkl: Added new files.
  • bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::hasItem): Added binding for hasItem(). Like other DOMApplicationCache methods, it needs to be custom to resolve relative URLs correctly.
  • bindings/js/JSDOMStringListCustom.cpp: Added.
  • dom/DOMStringList.cpp: Added.
  • dom/DOMStringList.h: Added.
  • dom/DOMStringList.idl: Added. Added an implementation of DOM 3 Core DOMStringList interface, which is returned by DOMApplicationCache items attribute.
  • dom/StaticStringList.cpp: Added.
  • dom/StaticStringList.h: Added. An implementation of DOMStringList that makes a snapshot (for DOMApplicationCache, this matches Firefox, as the spec doesn't say whether the returned list should be live or not).
  • loader/appcache/ApplicationCache.h: Added a list of pending dynamic entry actions, to be used in the near future.
  • loader/appcache/DOMApplicationCache.idl: Updated for spec changes. Instead of length attribute and item(), we now have an items attribute that returns a DOMStringList, and a hasItem convenience method.
  • loader/appcache/DOMApplicationCache.cpp: (WebCore::DOMApplicationCache::items): (WebCore::DOMApplicationCache::hasItem):
  • loader/appcache/DOMApplicationCache.h: Added implementations of items attribute and hasItem() (note that underlying ApplicationCache methods are still unimplemented though).
  • page/DOMWindow.idl: Expose a DOMStringList global constructor.
Note: See TracTimeline for information about the timeline view.