Timeline
Dec 14, 2008:
- 6:13 PM Changeset in webkit [39296] by
-
- 10 edits in trunk/WebCore
2008-12-13 Darin Adler <Darin Adler>
Reviewed by Sam Weinig.
- half of https://bugs.webkit.org/show_bug.cgi?id=17425 eliminate DeprecatedPtrList
- dom/Document.cpp: (WebCore::Document::removeImage): Change to set slots in the vector to 0 rather than removing items from a list. (WebCore::Document::dispatchImageLoadEventsNow): Rewrite to process the list. Since we now use a "set to zero" design, we don't need to be careful about where the iterator points while iterating the list, instead we just have to skip zeros.
- dom/Document.h: Use Vector instead of DeprecatedPtrList.
- dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchGenericEvent): Use a Vector instead of a DeprecatedPtrList for the list of nodes to handle. Also streamlined the logic a bit and used goto in a couple key places.
- dom/Node.cpp: (WebCore::Node::eventParentNode): Moved this function into this file because it's a virtual function so already can't be inlined. Also updated to return a ContainerNode, so it needs to be in a place where the definition of ContainerNode is visible, not the header file.
- dom/Node.h: Changed return type of eventParentNode to ContainerNode and moved its definition into the cpp file.
- dom/XMLTokenizerLibxml2.cpp: (WebCore::PendingCallbacks::~PendingCallbacks): Added a call to deleteAllValues here instead of setAutoDelete in the constructor, since we're using Deque instead of DeprecatedPtrList. (WebCore::PendingCallbacks::callAndRemoveFirstCallback): Changed the code to use an OwnPtr since the deque won't delete the callback object.
- editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Use a Vector instead of a DeprecatedPtrList.
- svg/SVGElement.cpp: (WebCore::SVGElement::eventParentNode): Moved this function into this file because it's a virtual function so already can't be inlined. Also updated to return a ContainerNode.
- svg/SVGElement.h: Changed setShadowParentNode to take a ContainerNode*, made eventParentNode return a ContainerNode*, and made m_shadowParent a ContainerNode*.
- 4:41 PM Changeset in webkit [39295] by
-
- 4 edits in trunk/WebKit
WebKit/mac:
Reviewed by Darin Adler.
- fix <rdar://problem/3258561> WebHistoryAllItemsRemovedNotification should add items to userInfo
- History/WebHistory.mm: (-[WebHistoryPrivate allItems]): Added this helper method, which returns all values in the _entriesByURL dictionary. (-[WebHistory removeAllItems]): Changed to send the array of all items in the notification.
WebKit/win:
Reviewed by Darin Adler.
- Windows equivalent of <rdar://problem/3258561> WebHistoryAllItemsRemovedNotification should add items to userInfo
- WebHistory.cpp: (WebHistory::removeAllItems): Changed to create an array of all items and send it in the notification.
- 3:37 PM Changeset in webkit [39294] by
-
- 10 edits4 adds in trunk
Reviewed by George Staikos.
Fixes: https://bugs.webkit.org/show_bug.cgi?id=22857
Jumps within a WML deck using <go> task elements fail. Manual reloading
is necessary to display the page - fix cache-policy in WMLGoElement::executeTask
to prevent the problem.
Refactor setActiveCardInDocument in two new functions: findNamedCardInDocument
and determineActiveCard, to fix a side-effect of executing a <go> task:
when switching cards within a deck the active card was changed before the load
was fired which resulted in a flash effect on the screen, and doing unnecessary work.
Test: wml/go-task-animation.html
- 6:47 AM Changeset in webkit [39293] by
-
- 3 edits3 adds in trunk
2008-12-14 Dirk Schulze <krit@webkit.org>
Reviewed by Oliver Hunt.
WebCore:
Fixes an issue in cairo. A fully transparent color can cause wrong
drawings on canvas' composite.
https://bugs.webkit.org/show_bug.cgi?id=22846
[CAIRO] Canvas: transparent color and composite
Test: fast/canvas/canvas-transparency-and-composite.html
- platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::fillPath): (WebCore::GraphicsContext::strokePath):
LayoutTest:
Ensure correct behaviour of composite on a fully transparent color.
- fast/canvas/canvas-transparency-and-composite-expected.txt: Added.
- fast/canvas/canvas-transparency-and-composite.html: Added.
- fast/canvas/resources/canvas-transparency-and-composite.js: Added.
- 3:46 AM Changeset in webkit [39292] by
-
- 12 edits in trunk/WebCore
2008-12-13 Julien Chaffraix <jchaffraix@webkit.org>
Reviewed by Darin Adler.
Bug 22665: Remove setCreatedByParser(bool) from the few elements that use it
https://bugs.webkit.org/show_bug.cgi?id=22665
Remove setCreatedByParser from frame and iframe.
- html/HTMLElementFactory.cpp: (WebCore::frameConstructor): (WebCore::iframeConstructor): (WebCore::objectConstructor):
- html/HTMLFrameElement.cpp: (WebCore::HTMLFrameElement::HTMLFrameElement):
- html/HTMLFrameElement.h:
- html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::HTMLFrameElementBase):
- html/HTMLFrameElementBase.h:
- html/HTMLFrameOwnerElement.cpp: (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement):
- html/HTMLFrameOwnerElement.h: (WebCore::HTMLFrameOwnerElement::createdByParser):
- html/HTMLIFrameElement.cpp: (WebCore::HTMLIFrameElement::HTMLIFrameElement):
- html/HTMLIFrameElement.h:
- html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::HTMLPlugInElement):
- html/HTMLTagNames.in:
- 2:45 AM Changeset in webkit [39291] by
-
- 1 edit in trunk/LayoutTests/ChangeLog
Fix a typo in ChangeLog.
- 2:07 AM Changeset in webkit [39290] by
-
- 3 edits in trunk/LayoutTests
Suggested by Holger Freyther.
- fast/workers/worker-navigator-expected.txt:
- fast/workers/worker-navigator.html: navigator.platform.length is intentionally zero on Gtk+, changed to check for uts type.
- 1:55 AM Changeset in webkit [39289] by
-
- 15 edits2 moves4 adds in trunk
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=22843
Auto-generate JSWorkerContext
- bindings/scripts/CodeGeneratorJS.pm:
- dom/WorkerContext.idl: Added.
- page/DOMWindow.idl: Added ExtendsDOMGlobalObject, a new attribute for behaviors common to DOMWindow and WorkerContext.
- bindings/js/WorkerScriptController.cpp: (WebCore::WorkerScriptController::initScript): Made JSWorkerContext creation look more like JSDOMWindow creation, to work with generated code.
- DerivedSources.make:
- GNUmakefile.am:
- WebCore.pro:
- WebCore.scons:
- WebCore.vcproj/WebCore.vcproj:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSWorkerContext.cpp: Removed.
- bindings/js/JSWorkerContext.h: Removed.
- bindings/js/JSWorkerContextBase.cpp: Copied from WebCore/bindings/js/JSWorkerContext.cpp. (WebCore::JSWorkerContextBase::JSWorkerContextBase): (WebCore::JSWorkerContextBase::~JSWorkerContextBase): (WebCore::JSWorkerContextBase::scriptExecutionContext): (WebCore::getJSWorkerContextBaseTable): (WebCore::): (WebCore::JSWorkerContextBase::put):
- bindings/js/JSWorkerContextBase.h: Copied from WebCore/bindings/js/JSWorkerContext.h.
- bindings/js/JSWorkerContextCustom.cpp: Added. (WebCore::JSWorkerContext::customGetOwnPropertySlot): (WebCore::JSWorkerContext::mark): (WebCore::JSWorkerContext::self): (WebCore::JSWorkerContext::setSelf): (WebCore::JSWorkerContext::addEventListener): (WebCore::JSWorkerContext::removeEventListener): Moved code around. Note that currently, JSWorkerContextBase lookup table is empty, but we'll need to add some global objects to it in the future, as it is done in JSDOMWindowBase.
- page/WorkerNavigator.cpp:
- page/WorkerNavigator.h: Added ENABLE(WORKERS) ifdefs.
Dec 13, 2008:
- 11:55 PM Changeset in webkit [39288] by
-
- 1 edit4 deletes in trunk/LayoutTests
2008-12-13 Dirk Schulze <krit@webkit.org>
Reviewed by Oliver Hunt.
LayoutTest:
This test is wrong. We shouldn't fill something with a gradient, if the
path is empty.
- fast/canvas/gradient-empty-path.html: Removed.
- platform/mac/fast/canvas/gradient-empty-path-expected.checksum: Removed.
- platform/mac/fast/canvas/gradient-empty-path-expected.png: Removed.
- platform/mac/fast/canvas/gradient-empty-path-expected.txt: Removed.
- 11:19 PM Changeset in webkit [39287] by
-
- 4 edits in trunk/JavaScriptCore
2008-12-13 Gavin Barraclough <barraclough@apple.com>
Reviewed by Cameron Zwarich.
Re-enable WREC on 64-bit.
Implements one of the MacroAssembler::jnzPtr methods, previously only implemented for 32-bit x86.
- assembler/MacroAssembler.h: (JSC::MacroAssembler::testImm64): (JSC::MacroAssembler::jnzPtr):
- assembler/X86Assembler.h: (JSC::X86Assembler::testq_i32r): (JSC::X86Assembler::testq_rr):
- wtf/Platform.h:
- 5:28 PM Changeset in webkit [39286] by
-
- 2 edits in trunk/JavaScriptCore
2008-12-13 Gavin Barraclough <barraclough@apple.com>
Fix PPC builds.
- assembler/MacroAssembler.h:
- 4:24 PM Changeset in webkit [39285] by
-
- 2 edits in trunk/JavaScriptCore
2008-12-13 Gavin Barraclough <barraclough@apple.com>
Build fix only, no review.
- bytecode/CodeBlock.h:
- 3:58 PM Changeset in webkit [39284] by
-
- 11 edits in trunk/JavaScriptCore
2008-12-13 Gavin Barraclough <barraclough@apple.com>
Reviewed by Cameron Zwarich.
Port the remainder of the JIT, bar calling convention related code, and code
implementing optimizations which can be disabled, to use the MacroAssembler.
- assembler/MacroAssembler.h: (JSC::MacroAssembler::DataLabelPtr::DataLabelPtr): (JSC::MacroAssembler::RepatchBuffer::RepatchBuffer): (JSC::MacroAssembler::RepatchBuffer::link): (JSC::MacroAssembler::RepatchBuffer::addressOf): (JSC::MacroAssembler::RepatchBuffer::setPtr): (JSC::MacroAssembler::addPtr): (JSC::MacroAssembler::lshift32): (JSC::MacroAssembler::mod32): (JSC::MacroAssembler::rshift32): (JSC::MacroAssembler::storePtrWithRepatch): (JSC::MacroAssembler::jnzPtr): (JSC::MacroAssembler::jzPtr): (JSC::MacroAssembler::jump): (JSC::MacroAssembler::label):
- assembler/X86Assembler.h: (JSC::X86Assembler::): (JSC::X86Assembler::xchgl_rr): (JSC::X86Assembler::jmp_m): (JSC::X86Assembler::repatchAddress): (JSC::X86Assembler::getRelocatedAddress):
- bytecode/CodeBlock.cpp: (JSC::CodeBlock::CodeBlock):
- bytecode/CodeBlock.h: (JSC::JITCodeRef::JITCodeRef): (JSC::CodeBlock::setJITCode): (JSC::CodeBlock::jitCode): (JSC::CodeBlock::executablePool):
- jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileLinkPass): (JSC::JIT::privateCompile): (JSC::JIT::privateCompileCTIMachineTrampolines):
- jit/JIT.h: (JSC::CallRecord::CallRecord): (JSC::JumpTable::JumpTable): (JSC::JIT::emitCTICall): (JSC::JIT::JSRInfo::JSRInfo):
- jit/JITArithmetic.cpp:
- jit/JITCall.cpp:
- jit/JITInlineMethods.h: (JSC::JIT::emitNakedCall): (JSC::JIT::emitCTICall_internal): (JSC::JIT::checkStructure): (JSC::JIT::emitFastArithDeTagImmediateJumpIfZero): (JSC::JIT::addSlowCase): (JSC::JIT::addJump): (JSC::JIT::emitJumpSlowToHot):
- jit/JITPropertyAccess.cpp: (JSC::JIT::privateCompileGetByIdChainList): (JSC::JIT::privateCompileGetByIdChain):
- 3:28 PM Changeset in webkit [39283] by
-
- 2 edits in trunk/WebCore
2008-12-13 Darin Adler <Darin Adler>
- fix Release build
- dom/Node.cpp: (WebCore::Node::rareData): Remove inappropriate inline directive.
- 3:17 PM Changeset in webkit [39282] by
-
- 2 edits in trunk/WebKit/mac
2008-12-13 Darin Adler <Darin Adler>
- <rdar://problem/6441035> WebTextIterator class not exported in WebKit
- WebKit.exp: Added the class. We forgot to export it when we added the WebTextIterator SPI.
- 3:02 PM Changeset in webkit [39281] by
-
- 4 edits2 adds in trunk
WebCore:
2008-12-13 Darin Adler <Darin Adler>
Reviewed by Dan Bernstein.
- fix https://bugs.webkit.org/show_bug.cgi?id=18734 REGRESSION (r31081): Focus problems in Gmail 2/Plain text message text <rdar://problem/5892415>
Test: fast/forms/textarea-selection-preservation.html
The regression reported was caused by the fact that the renderer code had
a bug where it would constantly think the newline at the end of text was
missing, and so it would replace all the text even though it wasn't changing,
which would destroy the selection.
When writing the regression test I discovered another problem: The value
property in HTMLTextAreaElement was intentionally changing the selection
to the end of the textarea, but doing that even when the value wasn't changing.
This patch fixes both and the test checks both.
- html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::setValue): Exit early if the value is not changing.
- rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::text): Add a newline character for each <br> element encountered in the control
LayoutTests:
2008-12-13 Darin Adler <Darin Adler>
Reviewed by Dan Bernstein.
- test for https://bugs.webkit.org/show_bug.cgi?id=18734 REGRESSION (r31081): Focus problems in Gmail 2/Plain text message text <rdar://problem/5892415>
- fast/forms/textarea-selection-preservation-expected.txt: Added.
- fast/forms/textarea-selection-preservation.html: Added.
- 2:58 PM Changeset in webkit [39280] by
-
- 7 edits4 deletes in trunk/WebCore
2008-12-13 Darin Adler <Darin Adler>
- file deletion part of https://bugs.webkit.org/show_bug.cgi?id=17497 eliminate DeprecatedValueList
- GNUmakefile.am: Removed references to deleted files.
- WebCore.pro: Ditto.
- WebCore.scons: Ditto.
- WebCore.vcproj/WebCore.vcproj: Ditto.
- WebCore.xcodeproj/project.pbxproj: Ditto.
- WebCoreSources.bkl: Ditto.
- platform/DeprecatedPtrQueue.h: Removed.
- platform/DeprecatedValueList.h: Removed.
- platform/DeprecatedValueListImpl.cpp: Removed.
- platform/DeprecatedValueListImpl.h: Removed.
- 2:53 PM Changeset in webkit [39279] by
-
- 16 edits in trunk/WebCore
2008-12-13 Darin Adler <Darin Adler>
Reviewed by Anders Carlsson.
- https://bugs.webkit.org/show_bug.cgi?id=17497 eliminate DeprecatedValueList
- css/CSSStyleDeclaration.cpp: Removed unneeded include.
- dom/Document.cpp: (WebCore::Document::removeAllEventListenersFromAllNodes): Set the removed flag on the window event listeners in case we are in the middle of dispatching events on this window. (WebCore::Document::clear): Ditto. (WebCore::Document::handleWindowEvent): Changed to use a vector instead of a DeprecatedPtrList. (WebCore::Document::windowInlineEventListenerForType): Ditto. (WebCore::Document::removeWindowInlineEventListenerForType): Ditto. Also added a call to setRemoved, which is needed here just as in other functions that remove. (WebCore::Document::removeWindowEventListener): Ditto. (WebCore::Document::hasWindowEventListener): Ditto.
- dom/Document.h: Changed RegisteredEventListenerList to RegisteredEventListeners.
- dom/Element.cpp: (WebCore::Element::attach): Use a function to access rare data instead of getting directly at the data field. (WebCore::Element::focus): Ditto. (WebCore::Element::cancelFocusAppearanceUpdate): Ditto.
- dom/ElementRareData.h: Use "using" to make things that are protected in NodeRareData be public here.
- dom/EventTarget.h: Removed include of DeprecatedValueList and related declearations that weren't needed. Tweaked the definitions of the forbidEventDispatch functions too.
- dom/EventTargetNode.cpp: (WebCore::EventTargetNode::EventTargetNode): Eliminated code that was used to initialized m_regdListeners. (WebCore::EventTargetNode::~EventTargetNode): Elminated delete of m_regdListeners. Changed code to use eventListeners() instead of m_regdListeners. (WebCore::EventTargetNode::eventListeners): Added. (WebCore::EventTargetNode::insertedIntoDocument): Use eventListeners. (WebCore::EventTargetNode::removedFromDocument): Ditto. (WebCore::EventTargetNode::willMoveToNewOwnerDocument): Ditto. (WebCore::EventTargetNode::didMoveToNewOwnerDocument): Ditto. (WebCore::EventTargetNode::addEventListener): Ditto. (WebCore::EventTargetNode::removeEventListener): Ditto. (WebCore::EventTargetNode::removeAllEventListeners): Ditto. Also added code to call setRemoved on all the listeners. (WebCore::EventTargetNode::handleLocalEvents): Ditto. (WebCore::EventTargetNode::dispatchGenericEvent): Fixed indentation. (WebCore::EventTargetNode::removeInlineEventListenerForType): Use the new event listeners vector. Also added missing call to setRemoved. (WebCore::EventTargetNode::inlineEventListenerForType): Ditto.
- dom/EventTargetNode.h: Added a new RegisteredEventListenerVector type and replaced the old localEventListeners function with a new eventListeners function. Removed m_regdListeners.
- dom/Node.cpp: (WebCore::Node::childNodes): Removed unneeded std prefix. (WebCore::Node::setFocus): Use function instead of going directly at rare data. (WebCore::Node::rareDataFocused): Ditto. (WebCore::Node::registerDynamicNodeList): Removed unneeded std prefix. (WebCore::Node::getElementsByName): Ditto. (WebCore::Node::getElementsByClassName): Ditto. (WebCore::Node::compareDocumentPosition): Ditto.
- dom/Node.h: Removed unneeded forward declaration of RegisteredEventListener. This is now in EventTargetNode.
- dom/NodeRareData.h: Renamed m_focused to m_isFocused and made it private. Made m_needsFocusAppearanceUpdateSoonAfterAttach private. Added listeners and ensureListeners functions as well as isFocused, setFocused, and focus-appearance functions. Made all data members private.
- dom/RegisteredEventListener.cpp: Removed operator ==.
- dom/RegisteredEventListener.h: Removed operator == and !=.
- svg/SVGElement.cpp: (WebCore::hasLoadListener): Rewrote to work with the vector.
- svg/SVGUseElement.cpp: (WebCore::SVGUseElement::transferEventListenersToShadowTree): Ditto.
- 2:39 PM Changeset in webkit [39278] by
-
- 2 edits in trunk/WebKit/gtk
[GTK] Fix crash with LayoutTests/fast/loader/frame-creation-removal.html
Call WebCore::Frame::init after the frame has been given
a name and been added to the FrameTree of the parent.
Removing the call to init is fine as FrameLoaderClientGtk::createFrame
is the only user of webkit_web_frame_init_with_web_view and is already
calling WebCore::Frame::init.
- 1:45 PM Changeset in webkit [39277] by
-
- 12 edits in trunk
Change ENABLE(FONT_FAST_PATH) to USE(FONT_FAST_PATH) and
revert pixel test results back to the state as before r39254.
- 12:45 PM Changeset in webkit [39276] by
-
- 3 edits3 adds in trunk
2008-12-13 Dirk Schulze <krit@webkit.org>
Reviewed by Darin Adler.
WebCore:
Fixes behavior of gradients on empty path in canvas/Cg
https://bugs.webkit.org/show_bug.cgi?id=22844
[Cg] Canvas fill() draws gradients even without a path
Test: fast/canvas/canvas-gradient-without-path.html
- html/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::fill): (WebCore::CanvasRenderingContext2D::stroke):
LayoutTest:
Checks behavior of gradients on an empty path in canvas.
- fast/canvas/canvas-gradient-without-path-expected.txt: Added.
- fast/canvas/canvas-gradient-without-path.html: Added.
- fast/canvas/resources/canvas-gradient-without-path.js: Added.
- 10:38 AM Changeset in webkit [39275] by
-
- 2 edits in trunk/WebKit/gtk
2008-12-13 Adam Bergkvist <adam.bergkvist@ericsson.com>
Reviewed by Holger Freyther.
Check for GTK version >= 2.14.0 before using gtk_test_init.
- tests/main.c: (main):
- 10:37 AM Changeset in webkit [39274] by
-
- 5 edits in trunk
WebKit/gtk
2008-12-13 Zan Dobersek <zandobersek@gmail.com>
Reviewed by Darin Adler.
Implement animation and transition pausing as needed by DumpRenderTree.
- webkit/webkitprivate.h:
- webkit/webkitwebframe.cpp:
WebKitTools
2008-12-13 Zan Dobersek <zandobersek@gmail.com>
Reviewed by Darin Adler.
Implement animation and transition pausing.
- DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::pauseAnimationAtTimeOnElementWithId): (LayoutTestController::pauseTransitionAtTimeOnElementWithId):
- 9:50 AM Changeset in webkit [39273] by
-
- 5 edits in trunk/WebKit/wx
Reviewed by Kevin Ollivier.
Expose findString in wxWebView as FindString.
- 9:38 AM Changeset in webkit [39272] by
-
- 2 edits in trunk/WebCore
wx build fix.