- 27 May, 2008 5 commits
-
-
kevino@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
Reviewed by Tim Hatcher. - https://bugs.webkit.org/show_bug.cgi?id=19180 speed up SunSpider by optimizing immediate number cases Add immediate number cases for the &, |, and ^ operators. Makes standalone SunSpider 1.010x faster. * VM/Machine.cpp: (KJS::Machine::privateExecute): Add areBothImmediateNumbers special cases for the &, |, and ^ operators. * kjs/JSImmediate.h: (KJS::JSImmediate::xorImmediateNumbers): Added. (KJS::JSImmediate::orImmediateNumbers): Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon. Fix linking error (missing gdi32 and user32 libraries). * WebCore.pro: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon. Fix web inspector does not returns its state properly after its window is minimized. As hinted by Holger, InspectorClientView::hideEvent is not needed. This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34147 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon. Update the WebKit.qrc so that Web Inspector is functional again. * page/inspector/WebKit.qrc: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 May, 2008 15 commits
-
-
slewis@apple.com authored
Windows build fix. * kjs/testkjs.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Anders. http://bugs.webkit.org/show_bug.cgi?id=16495 [GTK] Accessibility support with ATK/AT-SPI Implement basic action, text and editable text accessibility. Provide utility functions to simplify const string return and casting and add some more stubs. It's now possible to navigate and manipulate forms and text using assistive technologies. * page/gtk/AccessibilityObjectWrapperAtk.cpp: (returnString): (core): * platform/gtk/LocalizedStringsGtk.cpp: (WebCore::AXButtonActionVerb): (WebCore::AXRadioButtonActionVerb): (WebCore::AXTextFieldActionVerb): (WebCore::AXCheckedCheckBoxActionVerb): (WebCore::AXUncheckedCheckBoxActionVerb): (WebCore::AXLinkActionVerb): (WebCore::imageTitle): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34144 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
2008-05-26 Maciej Stachowiak <mjs@apple.com> Reviewed by Anders. - make addStaticGlobals protected instead of private so subclasses can use it * JavaScriptCore.exp: * kjs/JSGlobalObject.h: WebCore: 2008-05-25 Maciej Stachowiak <mjs@apple.com> Reviewed by Anders. - bind the window's "document" and "window" properties to static slots 1.7% speedup on Acid3 test 26 Only the "document" part matters for Acid3, but since I was doing this anyway, "window" also seemed like a good one to optimize. * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::JSDOMWindowBase): Allocate variable slots for document and window; but just put null in the document slot for now. (WebCore::JSDOMWindowBase::updateDocument): Fill in the document slot. (WebCore::JSDOMWindowBase::~JSDOMWindowBase): Make our shell stop tracking us. * bindings/js/JSDOMWindowBase.h: * bindings/js/JSDOMWindowShell.cpp: (WebCore::JSDOMWindowShell::JSDOMWindowShell): Allocate HashSet for our still-not-dead inner windows. (WebCore::JSDOMWindowShell::updateDocument): Update all our inner windows ever (to make sure the update to the document property shows up everywhere). * bindings/js/JSDOMWindowShell.h: (WebCore::JSDOMWindowShell::setWindow): Update our hash. (WebCore::JSDOMWindowShell::clearFormerWindow): Ditto. * bindings/js/JSDocumentCustom.cpp: (WebCore::toJS): Don't set self as a property map property of the window, this is no longer necessary. * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::initScript): Update document for the newly created window. * bindings/js/kjs_proxy.h: * page/Frame.cpp: (WebCore::Frame::setDocument): If the document is not null, update our window. LayoutTests: 2008-05-26 Maciej Stachowiak <mjs@apple.com> Reviewed by Anders. - update test result for document/window being allocated to var slots * http/tests/security/cross-frame-access-put-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34143 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
collinj@webkit.org authored
Reviewed by Sam Weinig, landed by Collin Jackson. http://bugs.webkit.org/show_bug.cgi?id=19163 Modified some http/security layout tests to allow them to run in Firefox. * http/tests/security/aboutBlank/xss-DENIED-set-opener.html: * http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change.html: * http/tests/security/resources/localhost-accesssor.html: Added a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=434912 * http/tests/security/resources/cross-frame-access.js: Changed shouldBe to also gracefully handle exceptions * http/tests/security/resources/foreign-domain-iframe-for-selection-test.html: Added feature detection for setBaseAndExtent and selectAllChildren * http/tests/security/cross-frame-access-enumeration-expected.txt: * http/tests/security/cross-frame-access-enumeration.html: Fixed typo (missing '.html') * http/tests/security/cross-frame-access-call-expected.txt: * http/tests/security/cross-frame-access-call.html: * http/tests/security/cross-frame-access-first-time.html: * http/tests/security/cross-frame-access-put.html: * http/tests/security/cross-frame-access-selection.html: Caught exceptions that Firefox throws, to allow the test to run to completion. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Sam. This patch does two things: * It adds a toJSNewlyCreated function for creating JS wrappers for nodes where we know that the node doesn't have a wrapper. This avoids a hash lookup. * It adds toJSNewlyCreated methods for JSElement and JSText. All in all this is a 4.3% speedup on Acid 3 test 26. * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSElementCustom.cpp: (WebCore::toJSNewlyCreated): * bindings/js/JSNodeCustom.cpp: (WebCore::createWrapper): (WebCore::toJSNewlyCreated): (WebCore::toJS): * bindings/js/JSTextCustom.cpp: Added. (WebCore::toJSNewlyCreated): * bindings/scripts/CodeGeneratorJS.pm: * dom/Document.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Anders Carlsson. Inline the getOwnPropertySlot for JSNode, JSEventTargetNode, JSElement, and JSDocument for a 1-2% speedup on Acide 3 test 26. * bindings/js/JSEventTargetNode.cpp: * bindings/js/JSEventTargetNode.h: (WebCore::JSEventTargetNode::getOwnPropertySlot): (WebCore::JSEventTargetNode::getValueProperty): (WebCore::JSEventTargetNode::put): (WebCore::JSEventTargetNode::putValueProperty): * bindings/scripts/CodeGeneratorJS.pm: * dom/Document.idl: * dom/Element.idl: * dom/Node.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
Reviewed by Maciej. - https://bugs.webkit.org/show_bug.cgi?id=19239 Removed code that would only useful if if there was any way to create an Entity node or if we populated EntityReference nodes. It's likely that we'll remove these node types entirely in some future version of WebKit, depending in part on what happens with these in HTML 5. 1.8% speedup of Acid3 test 26. The only read-only nodes we ever create are EntityReference nodes. These are only created by explicit calls to the Document.createEntityReference function. Since the created nodes are read-only, there can be no children of these nodes, so no other types of nodes can be read-only despite the rule that makes descendants of Entity and EntityReference nodes read-only. * bindings/objc/DOM.mm: Removed unneeded include. * dom/Attr.cpp: (WebCore::Attr::setValue): Removed unnecessary isReadOnlyNode check. (WebCore::Attr::setNodeValue): Ditto. * dom/CharacterData.cpp: (WebCore::CharacterData::setData): Removed unnecessary isReadOnlyNode check. (WebCore::CharacterData::substringData): Don't initialize the ec variable before calling checkCharDataOperation, since that function already does it. (WebCore::CharacterData::appendData): Removed unnecessary isReadOnlyNode check. (WebCore::CharacterData::insertData): Don't initialize ec. (WebCore::CharacterData::deleteData): Ditto. (WebCore::CharacterData::replaceData): Ditto. (WebCore::CharacterData::setNodeValue): Removed now-misleading comment. (WebCore::CharacterData::checkCharDataOperation): Removed unnecessary isReadOnlyNode check. * dom/CharacterData.h: Made checkCharDataOperation private and non-virtual since it's never used or defined in any other class. * dom/Element.cpp: (WebCore::Element::setAttribute): Removed unneeded isReadOnlyNode check. * dom/Entity.cpp: Removed the entire contents of this file. * dom/Entity.h: Replaced the class with a stub -- just enough to keep the public bindings (JavaScript and Objective-C compiling), but the class is abstract and can't be instantianted. * dom/EntityReference.cpp: Removed unused constructor. (WebCore::EntityReference::cloneNode): Removed unneeded code and comments to clone nonexistent child nodes. * dom/EntityReference.h: Removed unused constructor and unnecessary override of childTypeAllowed, since no children are allowed at all. * dom/NamedAttrMap.cpp: (WebCore::NamedAttrMap::setNamedItem): Removed unneeded isReadOnlyNode check. (WebCore::NamedAttrMap::removeNamedItem): Ditto. * dom/NamedAttrMap.h: Removed isReadOnlyNode function. * dom/Node.cpp: Removed the old isReadOnlyNode function. It made lots of virtual nodeType function calls. * dom/Node.h: (WebCore::Node::isReadOnlyNode): Replaced the old virtual isReadOnlyNode function with a new simple non-virtual one. * dom/ProcessingInstruction.cpp: (WebCore::ProcessingInstruction::setData): Removed unneeded isReadOnlyNode check. * dom/Text.cpp: (WebCore::Text::splitText): Removed unneeded isReadOnlyNode check. (WebCore::Text::replaceWholeText): Removed unnecessary isReadOnlyNode assertion. There is no reason for this function to go out of its way to mention the read-only node issue when none of the other DOM mutation functions do. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Reviewed by Sam. Cleanup SecurityOrigin::canAccess. Removed comment referring to an old version of the code. Removed some useless code. * platform/SecurityOrigin.cpp: (WebCore::SecurityOrigin::canAccess): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
Reviewed by Darin Adler. Fixed <rdar://problem/5960859> After an eval of a non-string or a syntax error, all profile stack frames are incorrect SunSpider reports a .3% speedup, possibly because eval of a string is a little more efficient now. * VM/Machine.cpp: (KJS::callEval): Make sure to call didExecute when returning early. I simplified this function to remove one early return, making the job of adding special code to early returns easier. (KJS::Machine::execute): Use the new function ExecState when notifying the profiler. (This doesn't change behavior now, but it might lead to subtle errors in the future.) git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
Reviewed by Sam. Add a name to the source frame. * fast/frames/viewsource-empty-attribute-value-expected.txt: * fast/frames/viewsource-empty-attribute-value.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jmalonzo@webkit.org authored
Reviewed by Alp Toker. * platform/gtk/LocalizedStringsGtk.cpp: (WebCore::contextMenuItemTagSelectAll): Fix GTK+ version check. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
2008-05-23 Tor Arne Vestbø <tavestbo@trolltech.com> Reviewed by Simon. Fixed toLower and toUpper implementations to allow being called with a null result pointer and resultLength, to determine the number of characters needed for the case conversion. LayoutTests: 008-05-23 Tor Arne Vestbø <tavestbo@trolltech.com> Reviewed by Simon. Added a comment to the skipping of fast/css/case-transform.html that mentions the reason of failure being a Qt bug. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hausmann@webkit.org authored
Reviewed by Simon Update QtWebkit layout-tests in accordance with bug 18976 https://bugs.webkit.org/show_bug.cgi?id=18976 The test fast/xsl/xslt-text.xml is on our skipped list due to missing XSLT support in Qt. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 May, 2008 14 commits
-
-
rdar://problem/5840884mrowe@apple.com authored
<rdar://problem/5840884> _recursive_resumeNullEventsForAllNetscapePlugins and _pauseNullEvents not defined Follow-up for r33052. _recursive_resumeNullEventsForAllNetscapePlugins and _recursive_pauseNullEventsForAllNetscapePlugins need to be declared in WebFramePrivate.h rather than WebFrameInternal.h so they can be used from outside of WebKit. Reviewed by Darin Adler. * WebView/WebFrame.mm: (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]): (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]): * WebView/WebFrameInternal.h: * WebView/WebFramePrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/3582905cfleizach@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs@apple.com authored
Reviewed by Darin. - don't repaint nodes that are removed before layout 4.3% speedup on Acid3 test 26 Mitz points out the new flag can also be used to optimize other cases of needless repaint such as <https://bugs.webkit.org/show_bug.cgi?id=15129>. * rendering/RenderContainer.cpp: (WebCore::RenderContainer::removeChildNode): If the child has never had a layout, don't bother to repaint it, since there's nothing to dirty. * rendering/RenderObject.cpp: (WebCore::RenderObject::RenderObject): Initialize m_everHadLayout to false. (WebCore::RenderObject::setNeedsLayout): Set m_everHadLayout to true if we are being marked as not needing layout. * rendering/RenderObject.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by Darin Adler. - fix https://bugs.webkit.org/show_bug.cgi?id=19086 <rdar://problem/5962254> REGRESSION (r28519-r28535): Caret doesn't paint past the right edge of a block Test: fast/repaint/caret-outside-block.html * editing/SelectionController.cpp: (WebCore::repaintRectForCaret): Restored this function which was removed in r28523, but changed it to inflate only the width. (WebCore::SelectionController::caretRepaintRect): Changed back to use repaintRectForCaret(). (WebCore::SelectionController::recomputeCaretRect): Ditto. LayoutTests: Reviewed by Darin Adler. - pixel test for https://bugs.webkit.org/show_bug.cgi?id=19086 <rdar://problem/5962254> REGRESSION (r28519-r28535): Caret doesn't paint past the right edge of a block * fast/repaint/caret-outside-block.html: Added. * platform/mac/fast/repaint/caret-outside-block-expected.checksum: Added. * platform/mac/fast/repaint/caret-outside-block-expected.png: Added. * platform/mac/fast/repaint/caret-outside-block-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=18940 [CURL] Allow \n as line terminator for headers The line terminator for message-header fields should be CRLF. However, it is recommended to recognise as a line terminator also a single LF. * platform/network/curl/ResourceHandleManager.cpp: (WebCore::headerCallback): Allow headers to be terminated by "\n" and not just by "\r\n". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Niko. Drop WebView focus when the widget is focused out. * webkit/webkitwebview.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rwlbuis@webkit.org authored
Fix the test. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jmalonzo@webkit.org authored
Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=19142 [Gtk] Remove build options --svg-experimental and --cross-document-messaging * configure.ac * WebCore/GNUmakefile.am: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rwlbuis@webkit.org authored
Fix SVG test results for tiger buildbot. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34122 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=18935 [Gtk] Plugin Load crashes with NP_FULL mode Fix crash due to uninitialized variable. * WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::FrameLoaderClient): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
RS=Alexey git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34120 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
* kjs/regexp_object.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ap@webkit.org authored
Changed regular expression matching result array to be lazily filled, because many callers only care about it being non-null. 2% improvement on Acid3 test 26. * kjs/array_instance.cpp: Added a void* member to ArrayStorage for ArrayInstance subclasses to use. * kjs/array_instance.h: (KJS::ArrayInstance::lazyCreationData): (KJS::ArrayInstance::setLazyCreationData): Added methods to access it from subclasses. * kjs/regexp_object.cpp: (KJS::RegExpMatchesArray::RegExpMatchesArray): (KJS::RegExpMatchesArray::getOwnPropertySlot): (KJS::RegExpMatchesArray::put): (KJS::RegExpMatchesArray::deleteProperty): (KJS::RegExpMatchesArray::getPropertyNames): (KJS::RegExpMatchesArray::fillArrayInstanceIfNeeded): (KJS::RegExpMatchesArray::~RegExpMatchesArray): (KJS::RegExpObjectImp::arrayOfMatches): RegExpMatchesArray is a subclass of ArrayInstance that isn't filled until accessed for the first time. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rwlbuis@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=18927 Unify path data debug output Implement unified path data output for Mac svg tests. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 May, 2008 6 commits
-
-
alp@webkit.org authored
Reviewed by Alp Toker. cygwin-downloader.py fixes. Remove two non-working mirrors. Add a check for missing dependency packages to avoid bailing out on an inconsistent Cygwin package list. * CygwinDownloader/cygwin-downloader.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
timothy@apple.com authored
a large object that was not being unprotected. <rdar://problem/5961999> Inspector protects a large JavaScript object and never unprotects it (large leak) Reviewed by Darin Adler. * page/InspectorController.cpp: (WebCore::InspectorController::inspectedPageDestroyed): Call close() and removed a call to stopDebugging() and moved it to close(). (WebCore::InspectorController::close): Add stopDebugging() and stopUserInitiatedProfiling(). Removed an ASSERT and added an if statement before calling JSValueUnprotect. We don't always have a m_scriptContext and m_scriptObject. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
GTK+/Win32 build fixes. Link against Windows ICU without using icu-config since it's not available on that platform. Link against Ws2_32 when the curl http backend is chosen since we use select() directly. * configure.ac: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Win32/gcc3 build fix in Pango font backend. UChar needs to be explicitly cast to gunichar2. * platform/graphics/gtk/FontGtk.cpp: (WebCore::utf16_to_utf8): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Win32/gcc build fix. Remove MSVC assumption. * wtf/TCSpinLock.h: (TCMalloc_SlowLock): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-