Timeline
Oct 6, 2008:
- 11:58 PM Changeset in webkit [37371] by
-
- 31 edits in trunk
WebCore:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to (kinda sorta) paint basic pages (with no frames on them).
Reviewed by Sam Weinig
- WebCore.base.exp:
- WebCore.xcodeproj/project.pbxproj:
- loader/EmptyClients.h: (WebCore::EmptyFrameLoaderClient::hasWebView):
- loader/FrameLoader.cpp: (WebCore::FrameLoader::loadWithDocumentLoader): (WebCore::FrameLoader::transitionToCommitted):
- loader/FrameLoaderClient.h:
- page/FocusController.cpp: (WebCore::FocusController::setActive):
- page/FrameView.cpp: (WebCore::FrameView::FrameView): (WebCore::FrameView::init): (WebCore::FrameView::layoutIfNeededRecursive):
- page/FrameView.h:
WebKit/gtk:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to paint some basic pages.
Reviewed by Sam Weinig
- WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
- WebCoreSupport/FrameLoaderClientGtk.h:
WebKit/mac:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to paint some basic pages.
Reviewed by Sam Weinig
- WebCoreSupport/WebChromeClient.mm: (WebChromeClient::windowResizerRect): (WebChromeClient::repaint): (WebChromeClient::screenToWindow): (WebChromeClient::windowToScreen): (WebChromeClient::platformWindow):
- WebCoreSupport/WebFrameLoaderClient.h:
- WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::forceLayoutForNonHTML): (WebFrameLoaderClient::dispatchDidCommitLoad): (WebFrameLoaderClient::transitionToCommittedForNewPage): (WebFrameLoaderClient::createFrame):
- WebView/WebFrame.mm: (-[WebFrame _drawRect:contentsOnly:]):
- WebView/WebFrameInternal.h:
- WebView/WebFrameView.mm:
- WebView/WebFrameViewInternal.h:
- WebView/WebHTMLView.mm: (-[WebHTMLView drawSingleRect:]): (-[WebHTMLView drawRect:]):
- WebView/WebView.mm: (-[WebView isFlipped]): (-[WebView _boundsChanged]): (-[WebView _mustDrawUnionedRect:singleRects:count:]): (-[WebView drawSingleRect:]): (-[WebView drawRect:]): (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): (-[WebView initWithFrame:frameName:groupName:]): (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): (-[WebView initWithCoder:]): (-[WebView removeSizeObservers]): (-[WebView viewWillMoveToWindow:]): (-[WebView viewWillMoveToSuperview:]): (-[WebView _usesDocumentViews]):
- WebView/WebViewInternal.h:
WebKit/qt:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to paint some basic pages.
Reviewed by Sam Weinig
- WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
WebKit/win:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to paint some basic pages.
Reviewed by Sam Weinig
- WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::createFrame):
- WebCoreSupport/WebFrameLoaderClient.h:
WebKit/wx:
2008-10-06 David Hyatt <hyatt@apple.com>
Enable viewless Mac WebKit to paint some basic pages.
Reviewed by Sam Weinig
- WebKitSupport/FrameLoaderClientWx.cpp:
- WebKitSupport/FrameLoaderClientWx.h:
- 10:43 PM Changeset in webkit [37370] by
-
- 10 edits in trunk/JavaScriptCore
2008-10-06 Sam Weinig <sam@webkit.org>
Reviewed by Cameron Zwarich.
Fix for https://bugs.webkit.org/show_bug.cgi?id=21415
Improve the division between PropertyStorageArray and PropertyMap
- Rework ProperyMap to store offsets in the value so that they don't change when rehashing. This allows us not to have to keep the PropertyStorageArray in sync and thus not have to pass it in.
- Rename PropertyMap::getOffset -> PropertyMap::get since put/remove now also return offsets.
- A Vector of deleted offsets is now needed since the storage is out of band.
1% win on SunSpider. Wash on V8 suite.
- JavaScriptCore.exp:
- VM/CTI.cpp: (JSC::transitionWillNeedStorageRealloc):
- VM/Machine.cpp: (JSC::Machine::privateExecute): Transition logic can be greatly simplified by the fact that the storage capacity is always known, and is correct for the inline case.
- kjs/JSObject.cpp: (JSC::JSObject::put): Rename getOffset -> get. (JSC::JSObject::deleteProperty): Ditto. (JSC::JSObject::getPropertyAttributes): Ditto. (JSC::JSObject::removeDirect): Use returned offset to clear the value in the PropertyNameArray. (JSC::JSObject::allocatePropertyStorage): Add assert.
- kjs/JSObject.h: (JSC::JSObject::getDirect): Rename getOffset -> get (JSC::JSObject::getDirectLocation): Rename getOffset -> get (JSC::JSObject::putDirect): Use propertyStorageCapacity to determine whether or not to resize. Also, since put now returns an offset (and thus addPropertyTransition does also) setting of the PropertyStorageArray is now done here. (JSC::JSObject::transitionTo):
- kjs/PropertyMap.cpp: (JSC::PropertyMap::checkConsistency): PropertyStorageArray is no longer passed in. (JSC::PropertyMap::operator=): Copy the delete offsets vector. (JSC::PropertyMap::put): Instead of setting the PropertyNameArray explicitly, return the offset where the value should go. (JSC::PropertyMap::remove): Instead of removing from the PropertyNameArray explicitly, return the offset where the value should be removed. (JSC::PropertyMap::get): Switch to using the stored offset, instead of the implicit one. (JSC::PropertyMap::insert): (JSC::PropertyMap::expand): This is never called when m_table is null, so remove that branch and add it as an assertion. (JSC::PropertyMap::createTable): Consistency checks no longer take a PropertyNameArray. (JSC::PropertyMap::rehash): No need to rehash the PropertyNameArray now that it is completely out of band.
- kjs/PropertyMap.h: (JSC::PropertyMapEntry::PropertyMapEntry): Store offset into PropertyNameArray. (JSC::PropertyMap::get): Switch to using the stored offset, instead of the implicit one.
- kjs/StructureID.cpp: (JSC::StructureID::StructureID): Initialize the propertyStorageCapacity to JSObject::inlineStorageCapacity. (JSC::StructureID::growPropertyStorageCapacity): Grow the storage capacity as described below. (JSC::StructureID::addPropertyTransition): Copy the storage capacity. (JSC::StructureID::toDictionaryTransition): Ditto. (JSC::StructureID::changePrototypeTransition): Ditto. (JSC::StructureID::getterSetterTransition): Ditto.
- kjs/StructureID.h: (JSC::StructureID::propertyStorageCapacity): Add propertyStorageCapacity which is the current capacity for the JSObjects PropertyStorageArray. It starts at the JSObject::inlineStorageCapacity (currently 2), then when it first needs to be resized moves to the JSObject::nonInlineBaseStorageCapacity (currently 16), and after that doubles each time.
- 9:42 PM Changeset in webkit [37369] by
-
- 2 edits in trunk/WebCore
- build fix
- bindings/objc/DOMEvents.h:
- 9:16 PM Changeset in webkit [37368] by
-
- 4 edits3 adds in branches/Safari-3-2-branch
Merge r33567.
- 9:16 PM Changeset in webkit [37367] by
-
- 3 edits2 adds in branches/Safari-3-2-branch/WebCore
Merge r36108.
- 8:53 PM Changeset in webkit [37366] by
-
- 8 edits in trunk/JavaScriptCore
2008-10-06 Cameron Zwarich <zwarich@apple.com>
Reviewed by Oliver Hunt.
Bug 21396: Remove the OptionalCalleeActivation call frame slot
<https://bugs.webkit.org/show_bug.cgi?id=21396>
Remove the OptionalCalleeActivation call frame slot. We have to be
careful to store the activation object in a register, because objects
in the scope chain do not get marked.
This is a 0.3% speedup on both SunSpider and the V8 benchmark.
- VM/CTI.cpp: (JSC::CTI::privateCompileMainPass):
- VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
- VM/CodeGenerator.cpp: (JSC::CodeGenerator::CodeGenerator): (JSC::CodeGenerator::emitReturn):
- VM/CodeGenerator.h:
- VM/Machine.cpp: (JSC::Machine::dumpRegisters): (JSC::Machine::unwindCallFrame): (JSC::Machine::privateExecute): (JSC::Machine::cti_op_call_JSFunction): (JSC::Machine::cti_op_push_activation): (JSC::Machine::cti_op_tear_off_activation): (JSC::Machine::cti_op_construct_JSConstruct):
- VM/Machine.h: (JSC::Machine::initializeCallFrame):
- VM/RegisterFile.h: (JSC::RegisterFile::):
- 7:15 PM Changeset in webkit [37365] by
-
- 2 edits in branches/Safari-3-2-branch/WebKit/mac/Misc
Merge _webkit_localCacheDirectoryWithBundleIdentifier:.
- 6:21 PM Changeset in webkit [37364] by
-
- 2 edits in trunk/JavaScriptCore
2008-10-06 Tony Chang <tony@chromium.org>
Reviewed by Alexey Proskuryakov.
Chromium doesn't use pthreads on windows, so make its use conditional.
Also convert a WORD to a DWORD to avoid a compiler warning. This
matches the other methods around it.
- wtf/ThreadingWin.cpp: (WTF::wtfThreadEntryPoint): (WTF::ThreadCondition::broadcast):
- 6:15 PM Changeset in webkit [37363] by
-
- 2 edits in trunk/JavaScriptCore
2008-10-06 Mark Mentovai <mark@moxienet.com>
Reviewed by Tim Hatcher.
Allow ENABLE_DASHBOARD_SUPPORT and ENABLE_MAC_JAVA_BRIDGE to be
disabled on the Mac.
- wtf/Platform.h:
- 6:14 PM Changeset in webkit [37362] by
-
- 6 edits in trunk/WebCore
2008-10-06 Mark Mentovai <mark@moxienet.com>
Reviewed by Tim Hatcher.
Use #if ENABLE(feature) where possible, and #if ENABLE_feature where
Platform.h is not available, in preference to #ifdef ENABLE_feature.
#ifdef is wrong now that features are disabled by #defining
ENABLE_feature to 0.
- bindings/objc/DOMEvents.h:
- bindings/objc/PublicDOMInterfaces.h:
- dom/Document.idl:
- page/DOMWindow.idl:
- svg/svgtags.in:
- 6:11 PM Changeset in webkit [37361] by
-
- 2 edits in trunk/WebCore
2008-10-06 Mark Mentovai <mark@moxienet.com>
Reviewed by Sam Weinig.
- platform/network/mac/FormDataStreamMac.mm: #import <wtf/Threading.h> to get the declaration for isMainThread().
- 6:10 PM Changeset in webkit [37360] by
-
- 2 edits in branches/Safari-3-2-branch/WebCore
Merge r36811.
- 6:10 PM Changeset in webkit [37359] by
-
- 7 edits2 adds in branches/Safari-3-2-branch
Merge r37008.
- 6:09 PM Changeset in webkit [37358] by
-
- 2 edits1 move in trunk/WebCore
2008-10-06 Jeremy Moskovich <jeremy@chromium.org>
Reviewed by Tim Hatcher.
WebCoreObjCExtras.c is actually an obj-c++ file, so change its name
to reflect that.
- WebCore.xcodeproj/project.pbxproj:
- platform/mac/WebCoreObjCExtras.c: Removed.
- platform/mac/WebCoreObjCExtras.mm: Copied from WebCore/platform/mac/WebCoreObjCExtras.c.
- 6:05 PM Changeset in webkit [37357] by
-
- 2 edits in trunk/WebCore
2008-10-06 Jeremy Moskovich <jeremy@chromium.org>
Reviewed by Dan Bernstein.
Added C++ forward declaration for the NSURLAuthenticationChallenge class
so that the m_currentMacChallenge variable doesn't cause a
compilation error when ResourceHandleInternal.h is included from a C++ file.
Fixes: https://bugs.webkit.org/show_bug.cgi?id=21411
- platform/network/ResourceHandleInternal.h:
- 5:38 PM Changeset in webkit [37356] by
-
- 3 edits3 adds in branches/Safari-3-2-branch
Merge r36810.
- 5:38 PM Changeset in webkit [37355] by
-
- 4 edits3 adds in branches/Safari-3-2-branch
Merge r33972.
- 5:17 PM Changeset in webkit [37354] by
-
- 2 edits in trunk/WebCore
Windows build fix.
- 4:47 PM Changeset in webkit [37353] by
-
- 4 edits in trunk
https://bugs.webkit.org/show_bug.cgi?id=21416
Pass 0 for size to VirtualAlloc, as documented by MSDN.
Identified by Application Verifier.
Reviewed by Darin Adler.
- kjs/collector.cpp: (KJS::freeBlock):
WebCore:
https://bugs.webkit.org/show_bug.cgi?id=21416
Add missing null checks identified by Application Verifier.
Reviewed by Darin Adler.
- platform/win/SharedTimerWin.cpp: (WebCore::clearTimer):
- 4:15 PM Changeset in webkit [37352] by
-
- 2 edits in trunk/WebCore
2008-10-06 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcher.
Removed accidentally left in debugging statement.
- inspector/front-end/inspector.js:
- 4:10 PM Changeset in webkit [37351] by
-
- 1 edit in trunk/WebCore/ChangeLog
2008-10-06 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcher and Oliver Hunt.
https://bugs.webkit.org/show_bug.cgi?id=21412
Bug 21412: Refactor user initiated profile count to be more stable
- inspector/InspectorController.cpp: Keep track of the user-initiated profiles here now. (WebCore::InspectorController::InspectorController): (WebCore::InspectorController::startUserInitiatedProfiling): (WebCore::InspectorController::stopUserInitiatedProfiling):
- inspector/InspectorController.h: The front end will now need to check for the existence of the user- initiated profile title and use its count instead of keeping its own.
- inspector/front-end/ProfilesPanel.js:
- 4:09 PM Changeset in webkit [37350] by
-
- 1 edit in trunk/JavaScriptCore/ChangeLog
2008-10-06 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcheri and Oliver Hunt.
https://bugs.webkit.org/show_bug.cgi?id=21412
Bug 21412: Refactor user initiated profile count to be more stable
- Export UString::from for use with creating the profile title.
- JavaScriptCore.exp:
- 4:08 PM Changeset in webkit [37349] by
-
- 6 edits in trunk
2008-10-06 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcher.
https://bugs.webkit.org/show_bug.cgi?id=21412
Bug 21412: Refactor user initiated profile count to be more stable
- Export UString::from for use with creating the profile title.
- JavaScriptCore.exp:
WebCore:
2008-10-06 Kevin McCullough <kmccullough@apple.com>
Reviewed by Tim Hatcher.
https://bugs.webkit.org/show_bug.cgi?id=21412
Bug 21412: Refactor user initiated profile count to be more stable
- inspector/InspectorController.cpp: Keep track of the user-initiated profiles here now. (WebCore::InspectorController::InspectorController): (WebCore::InspectorController::startUserInitiatedProfiling): (WebCore::InspectorController::stopUserInitiatedProfiling):
- inspector/InspectorController.h: The front end will now need to check for the existence of the user- initiated profile title and use its count instead of keeping its own.
- inspector/front-end/ProfilesPanel.js:
- 3:41 PM Changeset in webkit [37348] by
-
- 5 edits in trunk/WebKit/mac
Rubber-stamped by Anders Carlsson.
Rename _webkit_applicationCacheDirectoryWithBundleIdentifier to _webkit_localCacheDirectoryWithBundleIdentifier.
- Misc/WebKitNSStringExtras.h:
- Misc/WebKitNSStringExtras.m: (+[NSString _webkit_localCacheDirectoryWithBundleIdentifier:]):
- WebView/WebDataSource.mm: (-[WebDataSource _transferApplicationCache:]):
- WebView/WebView.mm: (WebKitInitializeApplicationCachePathIfNecessary):
- 3:22 PM Changeset in webkit [37347] by
-
- 3 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
Make WebNetscapePluginStream a WebCore::NetscapePlugInStreamLoaderClient.
- Plugins/WebBaseNetscapePluginStream.h: (WebNetscapePluginStream::~WebNetscapePluginStream):
- Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::didReceiveResponse): (-[WebBaseNetscapePluginStream startStreamWithResponse:]): (WebNetscapePluginStream::wantsAllStreams): (-[WebBaseNetscapePluginStream wantsAllStreams]): (WebNetscapePluginStream::didFail): (-[WebBaseNetscapePluginStream destroyStreamWithError:]): (WebNetscapePluginStream::didFinishLoading): (-[WebBaseNetscapePluginStream finishedLoading]): (WebNetscapePluginStream::didReceiveData): (-[WebBaseNetscapePluginStream receivedData:]):
- 2:56 PM Changeset in webkit [37346] by
-
- 3 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Bring back the stop method. It was called through performSelector, which
is why I couldn't find any references to it.
- Plugins/WebBaseNetscapePluginStream.h:
- Plugins/WebBaseNetscapePluginStream.mm: (-[WebBaseNetscapePluginStream stop]):
- 2:28 PM Changeset in webkit [37345] by
-
- 4 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
More conversion and cleanup.
- Plugins/WebBaseNetscapePluginStream.h:
- Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::startStream): (-[WebBaseNetscapePluginStream startStreamWithResponse:]):
- Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
- 2:05 PM Changeset in webkit [37344] by
-
- 3 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
Fold initWithRequestURL into initWithRequest.
- Plugins/WebBaseNetscapePluginStream.h:
- Plugins/WebBaseNetscapePluginStream.mm: (-[WebBaseNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
- 1:57 PM Changeset in webkit [37343] by
-
- 3 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
Change the init methods not to return nil on failures. (These failures never occur anyway)
Use initWithRequest as the initializer, initWithRequestURL is going to be merged with it.
- Plugins/WebBaseNetscapePluginStream.mm: (-[WebBaseNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]): (-[WebBaseNetscapePluginStream initWithRequestURL:plugin:notifyData:sendNotification:]):
- Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView evaluateJavaScriptPluginRequest:]):
- 1:34 PM Changeset in webkit [37342] by
-
- 4 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by David Hyatt.
Convert more methods over to C++.
- Plugins/WebBaseNetscapePluginStream.h:
- Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::ownerForStream): (WebNetscapePluginStream::pluginCancelledConnectionError): (WebNetscapePluginStream::errorForReason): (-[WebBaseNetscapePluginStream errorForReason:]): (-[WebBaseNetscapePluginStream startStreamResponseURL:expectedContentLength:lastModifiedDate:MIMEType:headers:]): (WebNetscapePluginStream::cancelLoadAndDestroyStreamWithError): (-[WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError:]): (WebNetscapePluginStream::deliverData): (WebNetscapePluginStream::deliverDataTimerFired): (WebNetscapePluginStream::deliverDataToFile): (-[WebBaseNetscapePluginStream finishedLoading]): (-[WebBaseNetscapePluginStream receivedData:]):
- Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView destroyStream:reason:]):
- 1:25 PM Changeset in webkit [37341] by
-
- 2 edits in trunk/WebCore
Reviewed by Sam Weinig.
- separate GDI text drawing into its own function
- platform/graphics/win/FontCGWin.cpp: (WebCore::drawGDIGlyphs): (WebCore::Font::drawGlyphs):
- 1:13 PM Changeset in webkit [37340] by
-
- 3 edits in trunk/WebKit/mac
2008-10-06 David Hyatt <hyatt@apple.com>
Add SPI for a new viewless WebKit mode. The idea is that when this flag is set there will be no
views created except for the outermost WebView.
Reviewed by Tim Hatcher
- WebView/WebView.mm:
- WebView/WebViewInternal.h:
- 1:02 PM Changeset in webkit [37339] by
-
- 4 edits in trunk/WebKit/mac
2008-10-06 Anders Carlsson <andersca@apple.com>
Reviewed by David Hyatt.
Convert more methods over to C++.
- Plugins/WebBaseNetscapePluginStream.h:
- Plugins/WebBaseNetscapePluginStream.mm: (WebNetscapePluginStream::reasonForError): (WebNetscapePluginStream::destroyStreamWithReason): (WebNetscapePluginStream::cancelLoadWithError): (-[WebBaseNetscapePluginStream cancelLoadWithError:]): (WebNetscapePluginStream::destroyStreamWithError): (-[WebBaseNetscapePluginStream destroyStreamWithError:]): (-[WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError:]): (-[WebBaseNetscapePluginStream _deliverDataToFile:]): (-[WebBaseNetscapePluginStream finishedLoading]):
- Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView webFrame:didFinishLoadWithError:]):
- 12:55 PM Changeset in webkit [37338] by
-
- 3 edits in trunk/WebCore
<rdar://problem/6249833> Fix default button appearance
Reviewed by Adele Peterson.
- rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::supportsFocus): (WebCore::RenderThemeWin::determineClassicState): (WebCore::RenderThemeWin::determineButtonState): (WebCore::RenderThemeWin::getClassicThemeData): (WebCore::RenderThemeWin::getThemeData): (WebCore::drawControl):
- rendering/RenderThemeWin.h:
- 11:31 AM Changeset in webkit [37337] by
-
- 21 edits in trunk
2008-10-06 Maciej Stachowiak <mjs@apple.com>
Not reviewed. Build fix.
- API/JSValueRef.cpp: (JSValueToBoolean):
- ChangeLog:
- JavaScriptCore.exp:
- VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
- VM/Machine.cpp: (JSC::Machine::privateExecute): (JSC::Machine::cti_op_loop_if_true): (JSC::Machine::cti_op_not): (JSC::Machine::cti_op_jtrue):
- kjs/ArrayPrototype.cpp: (JSC::arrayProtoFuncFilter): (JSC::arrayProtoFuncEvery): (JSC::arrayProtoFuncSome):
- kjs/BooleanConstructor.cpp: (JSC::constructBoolean): (JSC::callBooleanConstructor):
- kjs/GetterSetter.h:
- kjs/JSCell.h: (JSC::JSValue::toBoolean):
- kjs/JSNumberCell.cpp: (JSC::JSNumberCell::toBoolean):
- kjs/JSNumberCell.h:
- kjs/JSObject.cpp: (JSC::JSObject::toBoolean):
- kjs/JSObject.h:
- kjs/JSString.cpp: (JSC::JSString::toBoolean):
- kjs/JSString.h:
- kjs/JSValue.h:
- kjs/RegExpConstructor.cpp: (JSC::setRegExpConstructorMultiline):
- kjs/RegExpObject.cpp: (JSC::RegExpObject::match):
- kjs/RegExpPrototype.cpp: (JSC::regExpProtoFuncToString):
JavaScriptGlue:
2008-10-06 Maciej Stachowiak <mjs@apple.com>
Not reviewed. Build fix.
- JSUtils.cpp: (KJSValueToCFTypeInternal):
- 11:19 AM Changeset in webkit [37336] by
-
- 2 edits in trunk/JavaScriptGlue
2008-10-06 Maciej Stachowiak <mjs@apple.com>
Not reviewed.
- fix build; toBoolean no longer takes an ExecState
- JSUtils.cpp: (KJSValueToCFTypeInternal):
- 11:11 AM Changeset in webkit [37335] by
-
- 7 edits in trunk/WebCore
2008-10-06 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon.
Add native virtual keycode to PlatformKeyboardEvent
- 10:51 AM Changeset in webkit [37334] by
-
- 5 edits in trunk/WebCore
2008-10-06 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon.
Enable WebCore::String <> CFStringRef conversion functions for QtWebKit/Mac
- 10:50 AM Changeset in webkit [37333] by
-
- 19 edits in trunk/JavaScriptCore
2008-10-06 Maciej Stachowiak <mjs@apple.com>
Reviewed by Sam Weinig.
- optimize op_jtrue, op_loop_if_true and op_not in various ways https://bugs.webkit.org/show_bug.cgi?id=21404
1) Make JSValue::toBoolean nonvirtual and completely inline by
making use of the StructureID type field.
2) Make JSValue::toBoolean not take an ExecState; doesn't need it.
3) Make op_not, op_loop_if_true and op_jtrue not read the
ExecState (toBoolean doesn't need it any more) and not check
exceptions (toBoolean can't throw).
- API/JSValueRef.cpp: (JSValueToBoolean):
- JavaScriptCore.exp:
- VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
- VM/Machine.cpp: (JSC::Machine::privateExecute): (JSC::Machine::cti_op_loop_if_true): (JSC::Machine::cti_op_not): (JSC::Machine::cti_op_jtrue):
- kjs/ArrayPrototype.cpp: (JSC::arrayProtoFuncFilter): (JSC::arrayProtoFuncEvery): (JSC::arrayProtoFuncSome):
- kjs/BooleanConstructor.cpp: (JSC::constructBoolean): (JSC::callBooleanConstructor):
- kjs/GetterSetter.h:
- kjs/JSCell.h: (JSC::JSValue::toBoolean):
- kjs/JSNumberCell.cpp:
- kjs/JSNumberCell.h: (JSC::JSNumberCell::toBoolean):
- kjs/JSObject.cpp:
- kjs/JSObject.h: (JSC::JSObject::toBoolean): (JSC::JSCell::toBoolean):
- kjs/JSString.cpp:
- kjs/JSString.h: (JSC::JSString::toBoolean):
- kjs/JSValue.h:
- kjs/RegExpConstructor.cpp: (JSC::setRegExpConstructorMultiline):
- kjs/RegExpObject.cpp: (JSC::RegExpObject::match):
- kjs/RegExpPrototype.cpp: (JSC::regExpProtoFuncToString):
- 10:46 AM Changeset in webkit [37332] by
-
- 3 edits in trunk/WebCore
2008-10-06 Tor Arne Vestbø <tavestbo@trolltech.com>
Reviewed by Simon.
Use bundles on QtWebKit/Mac for platform modules
- 10:00 AM Changeset in webkit [37331] by
-
- 6 edits in trunk
2008-10-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
Reviewed by Simon.
Build fix for MinGW.
- platform/win/SystemTimeWin.cpp:
- plugins/win/PluginViewWin.cpp: (WebCore::PluginView::invalidateRect):
2008-10-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
Reviewed by Simon.
Build fix for MinGW.
- JavaScriptCore.pri:
- kjs/DateMath.cpp: (JSC::highResUpTime):
- 8:44 AM Changeset in webkit [37330] by
-
- 2 edits in trunk/WebCore
Mimic the inspector/ directory structure in WebCore.vcproj
- WebCore.vcproj/WebCore.vcproj:
- 8:39 AM Changeset in webkit [37329] by
-
- 2 edits in trunk/WebCore
Windows build fix
- WebCore.vcproj/WebCore.vcproj: Update the Include path for all configurations to include WebCore/inspector.
- 1:23 AM Changeset in webkit [37328] by
-
- 938 edits in trunk
Reviewed by Darin Adler.
SVG should support ascent and descent properties <font-face> instead of <font>!
https://bugs.webkit.org/show_bug.cgi?id=21365
Tested by many many existing SVG tests.
- svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::ascent): (WebCore::SVGFontFaceElement::descent):
Oct 5, 2008:
- 11:44 PM Changeset in webkit [37327] by
-
- 2 edits in trunk/WebCore
2008-10-05 Darin Fisher <darin@chromium.org>
Reviewed by Eric Seidel.
REGRESSION: crash in ScriptElement::notifyFinished
Fixes https://bugs.webkit.org/show_bug.cgi?id=21329
- dom/ScriptElement.cpp: (WebCore::ScriptElementData::notifyFinished): Revert part of r35744 to ensure that the ScriptElementData object is not destroyed prematurely.
- 11:33 PM Changeset in webkit [37326] by
-
- 2 edits in trunk/JavaScriptCore
2008-10-05 Cameron Zwarich <zwarich@apple.com>
Reviewed by Oliver Hunt.
Remove ScopeNode::containsClosures() now that it is unused.
- kjs/nodes.h: (JSC::ScopeNode::containsClosures):
- 11:05 PM Changeset in webkit [37325] by
-
- 3 edits in trunk/JavaScriptCore
2008-10-05 Maciej Stachowiak <mjs@apple.com>
Reviewed by Cameron Zwarich.
- fix releas-only test failures caused by the fix to bug 21375
- VM/Machine.cpp: (JSC::Machine::unwindCallFrame): Update ExecState while unwinding call frames; it now matters more to have a still-valid ExecState, since dynamicGlobalObject will make use of the ExecState's scope chain.
- VM/Machine.h:
- 11:00 PM Changeset in webkit [37324] by
-
- 15 edits in trunk
2008-10-05 Cameron Zwarich <zwarich@apple.com>
Reviewed by Oliver Hunt.
Bug 21364: Remove the branch in op_ret for OptionalCalleeActivation and OptionalCalleeArguments
<https://bugs.webkit.org/show_bug.cgi?id=21364>
Use information from the parser to detect whether an activation is
needed or 'arguments' is used, and emit explicit instructions to tear
them off before op_ret. This allows a branch to be removed from op_ret
and simplifies some other code. This does cause a small change in the
behaviour of 'f.arguments'; it is no longer live when 'arguments' is not
mentioned in the lexical scope of the function.
It should now be easy to remove the OptionaCalleeActivation slot in the
call frame, but this will be done in a later patch.
- VM/CTI.cpp: (JSC::CTI::privateCompileMainPass):
- VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
- VM/CodeGenerator.cpp: (JSC::CodeGenerator::emitReturn):
- VM/CodeGenerator.h:
- VM/Machine.cpp: (JSC::Machine::unwindCallFrame): (JSC::Machine::privateExecute): (JSC::Machine::retrieveArguments): (JSC::Machine::cti_op_create_arguments): (JSC::Machine::cti_op_tear_off_activation): (JSC::Machine::cti_op_tear_off_arguments):
- VM/Machine.h:
- VM/Opcode.h:
- kjs/Arguments.cpp: (JSC::Arguments::mark):
- kjs/Arguments.h: (JSC::Arguments::isTornOff): (JSC::Arguments::Arguments): (JSC::Arguments::copyRegisters): (JSC::JSActivation::copyRegisters):
- kjs/JSActivation.cpp: (JSC::JSActivation::argumentsGetter):
- kjs/JSActivation.h:
LayoutTests:
- fast/js/function-dot-arguments-expected.txt:
- fast/js/resources/function-dot-arguments.js:
- 7:48 PM Changeset in webkit [37323] by
-
- 8 edits in trunk/JavaScriptCore
2008-10-05 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver Hunt.
- fixed "REGRESSION (r37297): fast/js/deep-recursion-test takes too long and times out" https://bugs.webkit.org/show_bug.cgi?id=21375
The problem is that dynamicGlobalObject had become O(N) in number
of call frames, but unwinding the stack for an exception called it
for every call frame, resulting in O(N2) behavior for an
exception thrown from inside deep recursion.
Instead of doing it that way, stash the dynamic global object in JSGlobalData.
- JavaScriptCore.exp:
- VM/Machine.cpp: (JSC::DynamicGlobalObjectScope::DynamicGlobalObjectScope): Helper class to temporarily store and later restore a dynamicGlobalObject in JSGlobalData. (JSC::DynamicGlobalObjectScope::~DynamicGlobalObjectScope): (JSC::Machine::execute): In each version, establish a DynamicGlobalObjectScope. For ProgramNode, always establish set new dynamicGlobalObject, for FunctionBody and Eval, only if none is currently set.
- VM/Machine.h:
- kjs/ExecState.h:
- kjs/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): Ininitalize new dynamicGlobalObject field to 0.
- kjs/JSGlobalData.h:
- kjs/JSGlobalObject.h: (JSC::ExecState::dynamicGlobalObject): Moved here from ExecState for benefit of inlining. Return lexical global object if this is a globalExec(), otherwise look in JSGlobalData for the one stashed there.
- 6:43 PM Changeset in webkit [37322] by
-
- 3 edits in trunk/WebCore
2008-10-05 Chris Lord <chris@openedhand.com>
Reviewed by Alp Toker. Landed by Jan Alonzo.
https://bugs.webkit.org/show_bug.cgi?id=20624
WebKit-gtk uses deprecated GtkType/GtkObject
- plugins/gtk/gtk2xtbin.c: (gtk_xtbin_get_type):
- plugins/gtk/gtk2xtbin.h:
- 5:58 PM Changeset in webkit [37321] by
-
- 5 edits in trunk/JavaScriptCore
2008-10-05 Sam Weinig <sam@webkit.org>
Reviewed by Maciej Stachowiak.
Avoid an extra lookup when transitioning to an existing StructureID
by caching the offset of property that caused the transition.
1% win on V8 suite. Wash on SunSpider.
- kjs/PropertyMap.cpp: (JSC::PropertyMap::put):
- kjs/PropertyMap.h:
- kjs/StructureID.cpp: (JSC::StructureID::StructureID): (JSC::StructureID::addPropertyTransition):
- kjs/StructureID.h: (JSC::StructureID::setCachedTransistionOffset): (JSC::StructureID::cachedTransistionOffset):
- 3:47 PM Changeset in webkit [37320] by
-
- 4 edits in trunk/JavaScriptCore
2008-10-05 Cameron Zwarich <zwarich@apple.com>
Reviewed by Maciej Stachowiak.
Bug 21364: Remove the branch in op_ret for OptionalCalleeActivation and OptionalCalleeArguments
<https://bugs.webkit.org/show_bug.cgi?id=21364>
This patch does not yet remove the branch, but it does a bit of refactoring
so that a CodeGenerator now knows whether the associated CodeBlock will need
a full scope before doing any code generation. This makes it possible to emit
explicit tear-off instructions before every op_ret.
- VM/CodeBlock.h: (JSC::CodeBlock::CodeBlock):
- VM/CodeGenerator.cpp: (JSC::CodeGenerator::generate): (JSC::CodeGenerator::CodeGenerator): (JSC::CodeGenerator::emitPushScope): (JSC::CodeGenerator::emitPushNewScope):
- kjs/nodes.h: (JSC::ScopeNode::needsActivation):
- 2:57 PM Changeset in webkit [37319] by
-
- 2 edits in trunk/WebCore
2008-10-05 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Reviewed by David Hyatt.
GTK_WINDOW_HWND not GTK_WINDOWING_HWND
https://bugs.webkit.org/show_bug.cgi?id=20725
Updated to ToT by Jan Alonzo.
- plugins/gtk/PluginViewGtk.cpp: (WebCore::PluginView::getValue):
- 2:50 PM Changeset in webkit [37318] by
-
- 2 edits in trunk/WebCore
2008-10-05 Jan Michael Alonzo <jmalonzo@webkit.org>
Reviewed by Darin Adler.
Invalid cast from GdkWindow to GtkWidget
https://bugs.webkit.org/show_bug.cgi?id=21391
Fix a misplaced closing parenthesis to actually cast the widget, not the window
- platform/gtk/PlatformScreenGtk.cpp: (WebCore::screenDepth):
- 12:12 PM Changeset in webkit [37317] by
-
- 11 edits30 adds in trunk
WebCore:
2008-10-04 Adam Barth <abarth@webkit.org>
Reviewed by Darin Alder.
Attach the Origin header to POST requests to help defend against
cross-site request forgery.
Collin Jackson <collinj@webkit.org> also contributed to this patch.
Tests: http/tests/security/originHeader/origin-header-for-data.html
http/tests/security/originHeader/origin-header-for-empty.html
http/tests/security/originHeader/origin-header-for-get.html
http/tests/security/originHeader/origin-header-for-https.html
http/tests/security/originHeader/origin-header-for-post.html
- bindings/js/JSDOMWindowBase.cpp: (WebCore::createWindow):
- loader/FrameLoader.cpp: (WebCore::FrameLoader::createWindow): (WebCore::FrameLoader::urlSelected): (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::outgoingOrigin): (WebCore::FrameLoader::loadURL): (WebCore::FrameLoader::addExtraFieldsToRequest): (WebCore::FrameLoader::loadPostRequest): (WebCore::FrameLoader::loadResourceSynchronously): (WebCore::FrameLoader::loadItem):
- loader/FrameLoader.h:
- loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::create):
- loader/loader.cpp: (WebCore::Loader::Host::servePendingRequests):
- platform/SecurityOrigin.cpp: (WebCore::SecurityOrigin::toHTTPOrigin):
- platform/SecurityOrigin.h:
- platform/network/ResourceRequestBase.h: (WebCore::ResourceRequestBase::httpOrigin): (WebCore::ResourceRequestBase::setHTTPOrigin): (WebCore::ResourceRequestBase::clearHTTPOrigin):
- xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::makeSimpleCrossSiteAccessRequest): (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight): (WebCore::XMLHttpRequest::handleAsynchronousPreflightResult): (WebCore::XMLHttpRequest::didReceiveResponsePreflight):
LayoutTests:
2008-10-04 Adam Barth <abarth@webkit.org>
Reviewed by Darin Adler.
Tests for the new Origin header.
Collin Jackson <collinj@webkit.org> also contributed to this patch.
- http/tests/security/originHeader: Added.
- http/tests/security/originHeader/origin-header-for-data-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-data.html: Added.
- http/tests/security/originHeader/origin-header-for-empty-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-empty.html: Added.
- http/tests/security/originHeader/origin-header-for-get-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-get.html: Added.
- http/tests/security/originHeader/origin-header-for-https-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-https.html: Added.
- http/tests/security/originHeader/origin-header-for-post-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-post.html: Added.
- http/tests/security/originHeader/origin-header-for-xmlhttprequest-expected.txt: Added.
- http/tests/security/originHeader/origin-header-for-xmlhttprequest.html: Added.
- http/tests/security/originHeader/resources: Added.
- http/tests/security/originHeader/resources/origin-header-post-to-http.html: Added.
- http/tests/security/originHeader/resources/print-origin.cgi: Added.
- 10:38 AM Changeset in webkit [37316] by
-
- 4 edits in trunk/JavaScriptCore
2008-10-05 Gavin Barraclough <barraclough@apple.com>
Reviewed by Cameron Zwarich.
Fix for bug #21387 - using SamplingTool with CTI.
(1) A repatch offset offset changes due to an additional instruction to update SamplingTool state.
(2) Fix an incusion order problem due to ExecState changes.
(3) Change to a MACHINE_SAMPLING macro, use of exec should now be accessing global data.
- VM/CTI.h: (JSC::CTI::execute):
- VM/SamplingTool.h: (JSC::SamplingTool::privateExecuteReturned):
- kjs/Shell.cpp:
- 1:28 AM Changeset in webkit [37315] by
-
- 3 edits2 adds in trunk
Bug 21381: Incremental parsing of html causes bogus line numbers in some cases
<https://bugs.webkit.org/show_bug.cgi?id=21381>
Reviewed by Tim Hatcher.
If we hit a parsing boundary (end of a packet, etc) in the middle of a
<script> element when we are doing an incremental parse, we exit the
parser, and reenter later when more data is available. During this
reentry we incorrectly reset the scriptStartLineno to the current line
in the parser, which is now part way through the script element.
The solution is to track whether we are entering or reentering the parsing
of a script element. We do this simply by 0 checking scriptStartLineno,
and resetting it after we complete parsing of each script element.
Test: http/tests/incremental/pause-in-script-element.pl