dglazkov@chromium.org [Thu, 5 Feb 2009 00:49:11 +0000 (00:49 +0000)]
2009-02-04 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Eric Seidel.
Rename layout test result to the correct name.
* storage/transaction-callback-exception-crash-expected.txt: Renamed from LayoutTests/storage/transaction-callback-exception-crash.txt.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40650
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca@apple.com [Thu, 5 Feb 2009 00:40:30 +0000 (00:40 +0000)]
2009-02-04 Anders Carlsson <andersca@apple.com>
Reviewed by Mark Rowe.
Fix 64-bit build.
* WebView/WebScriptDebugger.mm:
(WebScriptDebugger::initGlobalCallFrame):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40649
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Thu, 5 Feb 2009 00:40:13 +0000 (00:40 +0000)]
2009-02-04 Mads Adger <mad@chromium.org>
Reviewed by Antti Koivisto.
Bug 23180 Reading freed memory at DocumentLoader::checkForPendingPreloads
https://bugs.webkit.org/show_bug.cgi?id=23180
Added a protector for the document potentially holding on the last reference to the loader we are interating with.
* loader/loader.cpp:
(WebCore::Loader::Host::didFinishLoading):
(WebCore::Loader::Host::didFail):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40648
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Thu, 5 Feb 2009 00:35:17 +0000 (00:35 +0000)]
2009-02-04 Cary Clark <caryclark@google.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23163
Don't scroll to show current focus on devices that use
directional pads for navigation.
* dom/Element.cpp:
(WebCore::Element::updateFocusAppearance):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40647
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Thu, 5 Feb 2009 00:31:21 +0000 (00:31 +0000)]
2009-02-04 Cary Clark <caryclark@google.com>
Reviewed by Darin Adler.
Change RenderBlock::columnGap() access permissions from protected to
public. ANDROID creates an array of focus rectangles for navigation
with a trackball or directional pad, and needs access to the column gap
to implement this logic.
Android has no testing harness @ webkit.org, thus no tests.
* rendering/RenderBlock.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40646
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Thu, 5 Feb 2009 00:27:35 +0000 (00:27 +0000)]
2009-02-04 Cary Clark <caryclark@google.com>
Reviewed by Eric Seidel.
Fixes: https://bugs.webkit.org/show_bug.cgi?id=22917
Add ENABLE_ON_FIRST_TEXTAREA_FOCUS_SELECT_ALL to permit the ANDROID
platform to select all when focusing on a textarea. This matches
the user interface guidelines other applications on the platform.
* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::updateFocusAppearance):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40645
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdakin@apple.com [Thu, 5 Feb 2009 00:19:31 +0000 (00:19 +0000)]
2009-02-04 Beth Dakin <bdakin@apple.com>
Reviewed by Dave Hyatt.
Fix for <rdar://problem/
6386112> Some inline-elements are not
becoming proper dashboard-regions
RenderInline needs its own implementation of addDashboardRegions
because otherwise all of the coordinate calculations are
inaccurate.
* rendering/RenderInline.cpp:
(WebCore::RenderInline::addDashboardRegions):
* rendering/RenderInline.h:
* rendering/RenderObject.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40644
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Thu, 5 Feb 2009 00:12:52 +0000 (00:12 +0000)]
2009-02-04 David Hyatt <hyatt@apple.com>
Move addChild/removeChild from RenderContainer to RenderObject.
Reviewed by Sam Weinig
* rendering/RenderContainer.cpp:
* rendering/RenderContainer.h:
* rendering/RenderObject.cpp:
(WebCore::updateListMarkerNumbers):
(WebCore::RenderObject::addChild):
(WebCore::RenderObject::removeChild):
* rendering/RenderObject.h:
(WebCore::RenderObject::addChildIgnoringContinuation):
* rendering/RenderSVGContainer.cpp:
* rendering/RenderSVGContainer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40643
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
beidson@apple.com [Thu, 5 Feb 2009 00:05:39 +0000 (00:05 +0000)]
2009-02-04 Brady Eidson <beidson@apple.com>
Reviewed by Sam Weinig
<rdar://problem/
3541409> - Further HistoryItem / BF cache cleanup
* history/CachedFrame.cpp:
(WebCore::CachedFrame::CachedFrame):
(WebCore::CachedFrame::restore):
* history/CachedFrame.h:
* history/CachedPage.cpp:
(WebCore::CachedPage::restore):
* history/CachedPage.h:
(WebCore::CachedPage::mainFrameView):
* history/HistoryItem.cpp:
(WebCore::HistoryItem::HistoryItem):
(WebCore::HistoryItem::~HistoryItem):
* history/HistoryItem.h:
(WebCore::HistoryItem::isInPageCache):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::open):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40642
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
pkasting@chromium.org [Thu, 5 Feb 2009 00:00:18 +0000 (00:00 +0000)]
2009-02-04 Peter Kasting <pkasting@google.com>
Reviewed by David Hyatt.
https://bugs.webkit.org/show_bug.cgi?id=23743
Fix memory corruption with open-source GIF decoders.
* platform/image-decoders/ImageDecoder.h:
(WebCore::RGBA32Buffer::clear):
* platform/image-decoders/gif/GIFImageDecoder.cpp:
(WebCore::GIFImageDecoder::clearFrameBufferCache):
* platform/image-decoders/skia/GIFImageDecoder.cpp:
(WebCore::GIFImageDecoder::clearFrameBufferCache):
(WebCore::GIFImageDecoder::initFrameBuffer):
* platform/image-decoders/skia/ImageDecoder.h:
(WebCore::RGBA32Buffer::clear):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40641
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
simon.fraser@apple.com [Wed, 4 Feb 2009 23:56:55 +0000 (23:56 +0000)]
2009-02-04 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dave Hyatt
https://bugs.webkit.org/show_bug.cgi?id=23360
When using accelerated compositing, make repaints use the correct
repaint container. Hook up the RenderLayerCompositor in RenderView,
and add to RenderView a method that repaints both the view
contents, and any intersecting composited layers.
Make enclosingCompositingLayer() a method on RenderObject, and update
the compositor to use that. Add a helper method on the compositor to
get the non-self compositing ancestor: ancestorCompositingLayer().
Call repaintRectangleInViewAndCompositedLayers() in places that don't do
container-relative repainting: selection redraw on focus change, caret,
and widget updates.
Fix a bug in RenderLayerCompositor where the m_compositingLayersNeedUpdate flag
would get cleared for partial updates, thus preventing subsequent full updates.
Fix a bug in RenderLayer::ensureBacking() that made new backing every time.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40640
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Wed, 4 Feb 2009 23:55:56 +0000 (23:55 +0000)]
2009-02-04 Dmitry Titov <dimich@chromium.org>
Reviewed by Darin Adler.
Regression test for https://bugs.webkit.org/show_bug.cgi?id=22753
* fast/dom/Window/cached-timeout-stopped-on-close-expected.txt: Added.
* fast/dom/Window/cached-timeout-stopped-on-close.html: Added.
* fast/dom/Window/resources/cached-timeout-page-1.html: Added.
* fast/dom/Window/resources/cached-timeout-page-2.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40639
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig@apple.com [Wed, 4 Feb 2009 23:44:14 +0000 (23:44 +0000)]
2009-02-04 Sam Weinig <sam@webkit.org>
Reviewed by David Hyatt.
Add toRenderImage methods for casting RenderObjects to RenderImages. The methods will assert if the object
is not a RenderImage. Also add a toRenderImage method that takes a RenderImage but returns void and that
is unimplemented. This method will catch anyone trying to do a cast when the object is already a RenderImage.
* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::defaultEventHandler):
* html/HTMLEmbedElement.cpp:
(WebCore::HTMLEmbedElement::attach):
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::parseMappedAttribute):
(WebCore::HTMLImageElement::attach):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::parseMappedAttribute):
(WebCore::HTMLInputElement::attach):
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::attach):
* html/HTMLVideoElement.cpp:
(WebCore::HTMLVideoElement::attach):
* loader/ImageLoader.cpp:
(WebCore::ImageLoader::setImage):
(WebCore::ImageLoader::updateFromElement):
(WebCore::ImageLoader::notifyFinished):
* page/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
(WebCore::AccessibilityRenderObject::addChildren):
* page/DragController.cpp:
(WebCore::getCachedImage):
(WebCore::getImage):
* platform/mac/PasteboardMac.mm:
(WebCore::Pasteboard::writeImage):
* rendering/RenderImage.h:
(WebCore::toRenderImage):
* wml/WMLImageElement.cpp:
(WebCore::WMLImageElement::parseMappedAttribute):
(WebCore::WMLImageElement::attach):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40638
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Wed, 4 Feb 2009 23:28:11 +0000 (23:28 +0000)]
WebKit/mac:
2009-02-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by Mark Rowe.
Part I of <rdar://problem/
6552272>.
Clear the redirectURLs entry when first visiting a site, so sites that
only redirect you the first time you visit them can later learn that
they don't redirect.
* History/WebHistory.mm:
(-[WebHistory _visitedURL:withTitle:method:wasFailure:serverRedirectURL:isClientRedirect:]):
WebKit/win:
2009-02-04 Geoffrey Garen <ggaren@apple.com>
Reviewed by Mark Rowe.
Part I of <rdar://problem/
6552272>.
Clear the redirectURLs entry when first visiting a site, so sites that
only redirect you the first time you visit them can later learn that
they don't redirect.
* WebHistory.cpp:
(WebHistory::visitedURL):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40637
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Wed, 4 Feb 2009 23:25:46 +0000 (23:25 +0000)]
2009-02-04 Jungshik Shin <jshin@chromium.org>
Reviewed by Eric Seidel and Dave Hyatt.
https://bugs.webkit.org/show_bug.cgi?id=20531
Make alternateFamilyName customized for Windows and Chromium.
* platform/graphics/FontCache.cpp:
(WebCore::alternateFamilyName):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40636
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eric@webkit.org [Wed, 4 Feb 2009 23:22:51 +0000 (23:22 +0000)]
2009-02-04 Jungshik Shin <jshin@chromium.org>
Reviewed by Eric Seidel.
This comes from Chromium patch (http://codereview.chromium.org/17624).
Add m_disableFontFallback to UniscriberHelper class and set it
to true when filling up glyph pages for non-BMP code points.
When it's set true, UniscriberHelper does not do its own font
fallback. Neither does it do glyph placement. Font fallback
will be taken care of in the simple script font path and glyph
placement is not necessary for simple scripts.
Layout test is missing at the moment due to the lack of freely
distributable font covering a non-BMP code page. A test page
is available at http://i18nl10n.com/webkit/nonbmp2.html
See also https://bugs.webkit.org/show_bug.cgi?id=23602
* platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp:
(WebCore::fillNonBMPGlyphs):
* platform/graphics/chromium/UniscribeHelper.cpp:
(WebCore::UniscribeHelper::UniscribeHelper):
(WebCore::UniscribeHelper::shape):
(WebCore::UniscribeHelper::fillShapes):
* platform/graphics/chromium/UniscribeHelper.h:
(WebCore::UniscribeHelper::setDisableFontFallback):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40635
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig@apple.com [Wed, 4 Feb 2009 23:20:07 +0000 (23:20 +0000)]
2009-02-04 Sam Weinig <sam@webkit.org>
Reviewed by David Hyatt.
Remove some unnecessary #includes of RenderStyle.h
* css/CSSPrimitiveValueMappings.h:
* css/SVGCSSComputedStyleDeclaration.cpp:
* dom/Node.h:
* rendering/PointerEventsHitRules.h:
* rendering/RenderImageGeneratedContent.h:
* rendering/RenderMarquee.h:
* rendering/RenderScrollbar.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40634
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Wed, 4 Feb 2009 22:59:41 +0000 (22:59 +0000)]
2009-02-04 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Sam Weinig.
https://bugs.webkit.org/show_bug.cgi?id=23657
Clean up WebCore/storage IDLs.
* storage/SQLError.idl: Changed to match spec.
* storage/SQLResultSet.idl: Changed to match spec.
* storage/SQLStatementCallback.idl: Removed.
* storage/SQLStatementErrorCallback.idl: Removed.
* storage/SQLTransactionCallback.idl: Removed.
* storage/SQLTransactionErrorCallback.idl: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40633
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Wed, 4 Feb 2009 22:52:49 +0000 (22:52 +0000)]
2009-02-04 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Sam Weinig.
https://bugs.webkit.org/show_bug.cgi?id=23655
Clean up storage layout tests a bit.
* storage/close-during-stress-test.html: Moved brace to new line.
* storage/empty-statement.html: Moved brace to new line.
* storage/execute-sql-args.html: Moved brace to new line.
* storage/quota-tracking.html: Moved brace to new line.
* storage/success-callback.html: Moved brace to new line, removed erroneous callback argument.
* storage/transaction-callback-exception-crash.html: Added.
* storage/transaction-callback-exception-crash.txt: Renamed from LayoutTests/storage/transaction_callback_exception_crash-expected.txt.
* storage/transaction_callback_exception_crash.html: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40632
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
timothy@apple.com [Wed, 4 Feb 2009 22:34:25 +0000 (22:34 +0000)]
Change the WebSourceId typedef from int to intptr_t now that <rdar://problem/
6263297> is fixed.
<rdar://problem/
6263293> WebScriptDebugDelegate should use intptr_t for sourceId, not int
Reviewed by Oliver Hunt.
* WebView/WebScriptDebugDelegate.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40631
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
timothy@apple.com [Wed, 4 Feb 2009 22:34:14 +0000 (22:34 +0000)]
Switched over from using the WebSafeForwarder for the Script Debug delegate and added high performance CallScriptDebugDelegate functions.
WebKit:
2009-02-04 Timothy Hatcher <timothy@apple.com>
Removed the WebDefaultScriptDebugDelegate now that we have CallScriptDebugDelegate.
<rdar://problem/
6508457> Launching widget in Dashcode debugger is
super-slow due forwardInvocation: calling debug delegate
Reviewed by Oliver Hunt.
* WebKit.xcodeproj/project.pbxproj:
WebKit/mac:
2009-02-04 Timothy Hatcher <timothy@apple.com>
Switched over from using the WebSafeForwarder for the Script Debug
delegate and added high performance CallScriptDebugDelegate functions.
<rdar://problem/
6508457> Launching widget in Dashcode debugger is
super-slow due forwardInvocation: calling debug delegate
Reviewed by Oliver Hunt.
* DefaultDelegates/WebDefaultScriptDebugDelegate.h: Removed.
* DefaultDelegates/WebDefaultScriptDebugDelegate.m: Removed.
* WebView/WebScriptDebugger.mm:
(WebScriptDebugger::initGlobalCallFrame): Use CallScriptDebugDelegate.
(WebScriptDebugger::sourceParsed): Ditto.
(WebScriptDebugger::callEvent): Ditto.
(WebScriptDebugger::atStatement): Ditto.
(WebScriptDebugger::returnEvent): Ditto.
(WebScriptDebugger::exception): Ditto.
* WebView/WebView.mm:
(-[WebViewPrivate dealloc]): Removed scriptDebugDelegateForwarder.
(-[WebView _cacheScriptDebugDelegateImplementations]): Added. Gets the
method implementations for the script debug delegate. Also caches what
didParseSource method to use.
(WebViewGetScriptDebugDelegateImplementations): Added. Returns the
WebScriptDebugDelegateImplementations structure.
(-[WebView setScriptDebugDelegate:]): Call _cacheScriptDebugDelegateImplementations.
(CallDelegate): Added more overloaded versions that take different arguments.
(CallScriptDebugDelegate): Added overloaded versions that take different arguments.
* WebView/WebViewInternal.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40630
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 22:29:04 +0000 (22:29 +0000)]
2009-02-04 David Hyatt <hyatt@apple.com>
Fix for https://bugs.webkit.org/show_bug.cgi?id=23734, blank content on blogs.msdn.com.
Add debugging code that will catch the incorrect dirtying of a table section immediately if it happens
during calcRowHeight or layoutRows. This should make it possible to discover future bugs where table sections don't
paint.
The bug in blogs.msdn.com, which was caused by a bad setNeedsLayout in RenderLayer::updateScrollInfoAtferLayout. Make
sure to do only a local setNeedsLayout inside that function.
Reviewed by Beth Dakin
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateScrollInfoAfterLayout):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::RenderObject):
* rendering/RenderObject.h:
(WebCore::RenderObject::isSetNeedsLayoutForbidden):
(WebCore::RenderObject::setNeedsLayoutIsForbidden):
(WebCore::RenderObject::setNeedsLayout):
(WebCore::RenderObject::setChildNeedsLayout):
(WebCore::RenderObject::markContainingBlocksForLayout):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::layout):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::calcRowHeight):
(WebCore::RenderTableSection::layoutRows):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40629
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig@apple.com [Wed, 4 Feb 2009 22:27:50 +0000 (22:27 +0000)]
2009-02-04 Sam Weinig <sam@webkit.org>
Reviewed by David Hyatt.
Rename RenderStyle::Diff to StyleDifference and move it to
RenderStyleConstants.h.
* rendering/RenderBR.cpp:
(WebCore::RenderBR::styleDidChange):
* rendering/RenderBR.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleWillChange):
(WebCore::RenderBlock::styleDidChange):
* rendering/RenderBlock.h:
* rendering/RenderBox.cpp:
(WebCore::RenderBox::styleWillChange):
(WebCore::RenderBox::styleDidChange):
* rendering/RenderBox.h:
* rendering/RenderButton.cpp:
(WebCore::RenderButton::styleWillChange):
(WebCore::RenderButton::styleDidChange):
* rendering/RenderButton.h:
* rendering/RenderFieldset.cpp:
(WebCore::RenderFieldset::styleDidChange):
* rendering/RenderFieldset.h:
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::styleDidChange):
* rendering/RenderFileUploadControl.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):
* rendering/RenderInline.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::styleChanged):
* rendering/RenderLayer.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::updateLayerCompositingState):
(WebCore::RenderLayerCompositor::rebuildCompositingLayerTree):
* rendering/RenderLayerCompositor.h:
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::styleDidChange):
* rendering/RenderListBox.h:
* rendering/RenderListItem.cpp:
(WebCore::RenderListItem::styleDidChange):
* rendering/RenderListItem.h:
* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::styleWillChange):
(WebCore::RenderListMarker::styleDidChange):
* rendering/RenderListMarker.h:
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::styleDidChange):
* rendering/RenderMenuList.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::setStyle):
(WebCore::RenderObject::styleWillChange):
(WebCore::RenderObject::styleDidChange):
* rendering/RenderObject.h:
* rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::styleDidChange):
* rendering/RenderReplaced.h:
* rendering/RenderSVGGradientStop.cpp:
(WebCore::RenderSVGGradientStop::styleDidChange):
* rendering/RenderSVGGradientStop.h:
* rendering/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::styleDidChange):
* rendering/RenderSVGInlineText.h:
* rendering/RenderScrollbarPart.cpp:
(WebCore::RenderScrollbarPart::styleWillChange):
(WebCore::RenderScrollbarPart::styleDidChange):
* rendering/RenderScrollbarPart.h:
* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::styleDidChange):
* rendering/RenderSlider.h:
* rendering/RenderTable.cpp:
(WebCore::RenderTable::styleDidChange):
* rendering/RenderTable.h:
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::styleWillChange):
(WebCore::RenderTableCell::styleDidChange):
* rendering/RenderTableCell.h:
* rendering/RenderTableRow.cpp:
(WebCore::RenderTableRow::styleWillChange):
* rendering/RenderTableRow.h:
* rendering/RenderText.cpp:
(WebCore::RenderText::styleDidChange):
* rendering/RenderText.h:
(WebCore::RenderText::styleWillChange):
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::styleDidChange):
* rendering/RenderTextControl.h:
* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::styleDidChange):
* rendering/RenderTextControlSingleLine.h:
* rendering/RenderWidget.cpp:
(WebCore::RenderWidget::styleDidChange):
* rendering/RenderWidget.h:
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::diff):
(WebCore::RenderStyle::setClip):
* rendering/style/RenderStyle.h:
* rendering/style/RenderStyleConstants.h:
(WebCore::):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40628
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig@apple.com [Wed, 4 Feb 2009 21:02:02 +0000 (21:02 +0000)]
2009-02-03 Sam Weinig <sam@webkit.org>
Reviewed by David Hyatt.
Move PseudoId enum out of RenderStyle and into RenderStyleConstants.h
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::matchRulesForList):
(WebCore::CSSStyleSelector::initForStyleResolve):
(WebCore::CSSStyleSelector::SelectorChecker::SelectorChecker):
(WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
(WebCore::CSSStyleSelector::styleForElement):
(WebCore::CSSStyleSelector::pseudoStyleForElement):
(WebCore::CSSStyleSelector::checkSelector):
(WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
(WebCore::CSSStyleSelector::SelectorChecker::checkScrollbarPseudoClass):
(WebCore::CSSStyleSelector::applyProperty):
* css/CSSStyleSelector.h:
* dom/Node.cpp:
(WebCore::Node::diff):
* page/FrameView.cpp:
(WebCore::FrameView::createScrollbar):
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::paint):
* rendering/MediaControlElements.cpp:
(WebCore::MediaTextDisplayElement::MediaTextDisplayElement):
(WebCore::MediaTimeDisplayElement::MediaTimeDisplayElement):
(WebCore::MediaControlInputElement::MediaControlInputElement):
(WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement):
(WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
(WebCore::MediaControlSeekButtonElement::MediaControlSeekButtonElement):
(WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
(WebCore::MediaControlFullscreenButtonElement::MediaControlFullscreenButtonElement):
* rendering/MediaControlElements.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleDidChange):
(WebCore::RenderBlock::updateBeforeAfterContent):
(WebCore::RenderBlock::firstLineBlock):
(WebCore::RenderBlock::updateFirstLetter):
* rendering/RenderBlock.h:
* rendering/RenderBox.cpp:
(WebCore::RenderBox::isAfterContent):
* rendering/RenderButton.cpp:
(WebCore::RenderButton::updateBeforeAfterContent):
* rendering/RenderButton.h:
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::createButtonStyle):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):
(WebCore::isAfterContent):
(WebCore::RenderInline::addChildIgnoringContinuation):
(WebCore::RenderInline::splitInlines):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::createScrollbar):
(WebCore::RenderLayer::updateScrollCornerStyle):
(WebCore::RenderLayer::updateResizerStyle):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::createScrollbar):
* rendering/RenderMedia.cpp:
(WebCore::RenderMedia::createPanel):
(WebCore::RenderMedia::createTimelineContainer):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::createScrollbar):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::selectionBackgroundColor):
(WebCore::RenderObject::selectionForegroundColor):
(WebCore::RenderObject::firstLineStyleSlowCase):
(WebCore::RenderObject::getCachedPseudoStyle):
(WebCore::RenderObject::getUncachedPseudoStyle):
* rendering/RenderObject.h:
(WebCore::RenderObject::isAnonymousBlock):
* rendering/RenderObjectChildList.cpp:
(WebCore::RenderObjectChildList::destroyLeftoverChildren):
(WebCore::beforeAfterContainer):
(WebCore::RenderObjectChildList::invalidateCounters):
(WebCore::RenderObjectChildList::updateBeforeAfterContent):
* rendering/RenderObjectChildList.h:
* rendering/RenderScrollbar.cpp:
(WebCore::RenderScrollbar::getScrollbarPseudoStyle):
(WebCore::pseudoForScrollbarPart):
* rendering/RenderScrollbar.h:
* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::createThumbStyle):
* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::createInnerTextStyle):
(WebCore::RenderTextControlSingleLine::createResultsButtonStyle):
(WebCore::RenderTextControlSingleLine::createCancelButtonStyle):
(WebCore::RenderTextControlSingleLine::createScrollbar):
* rendering/style/RenderStyle.cpp:
(WebCore::pseudoBit):
* rendering/style/RenderStyle.h:
(WebCore::):
* rendering/style/RenderStyleConstants.h:
(WebCore::):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40625
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ddkilzer@apple.com [Wed, 4 Feb 2009 19:56:21 +0000 (19:56 +0000)]
CrashTracer: [REGRESSION] 53 crashes in Safari at com.apple.WebCore: WebCore::LegacyWebArchive::create + 2706
<rdar://problem/
6509514>
Reviewed by Mark Rowe.
* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create): Fix it correctly this time.
Check for the value returned from WebCore::IconDatabase::iconForPageURL(),
not WebCore::Image::data().
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40623
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 19:44:19 +0000 (19:44 +0000)]
2009-02-04 David Hyatt <hyatt@apple.com>
Rename removeFromObjectLists and move it into RenderBox, since it only applies to boxes.
Reviewed by Adam Roben
* rendering/RenderBox.cpp:
(WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
(WebCore::RenderBox::styleWillChange):
* rendering/RenderBox.h:
* rendering/RenderContainer.cpp:
(WebCore::RenderContainer::removeChild):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::styleWillChange):
* rendering/RenderObject.h:
* rendering/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::removeChild):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40622
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Wed, 4 Feb 2009 19:43:13 +0000 (19:43 +0000)]
Fix WebCore/ChangeLog date discrepancy.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40621
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Wed, 4 Feb 2009 19:41:10 +0000 (19:41 +0000)]
WebCore:
2009-02-04 Jeremy Moskovich <jeremy@chromium.org>
Reviewed by Dave Hyatt.
https://bugs.webkit.org/show_bug.cgi?id=23471
Fix text-overflow:ellipsis; for RTL case.
Test: fast/css/text-overflow-ellipses.html
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::placeEllipsisBox): Add support for rtl placement.
(WebCore::InlineTextBox::paintDecoration): Correctly draw decorations
for rtl truncation.
LayoutTests:
2009-02-04 Jeremy Moskovich <jeremy@chromium.org>
Reviewed by Dave Hyatt.
https://bugs.webkit.org/show_bug.cgi?id=23471
Fix text-overflow:ellipsis; for RTL case.
Rebaseline LayoutTests/editing/spelling/inline_spelling_markers.html to reflect correct behavior.
* fast/css/text-overflow-ellipses.html: Added.
* platform/mac/editing/spelling/inline_spelling_markers-expected.checksum:
* platform/mac/editing/spelling/inline_spelling_markers-expected.png:
* platform/mac/fast/css/text-overflow-ellipses-expected.checksum: Added.
* platform/mac/fast/css/text-overflow-ellipses-expected.png: Added.
* platform/mac/fast/css/text-overflow-ellipses-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40620
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Wed, 4 Feb 2009 19:06:37 +0000 (19:06 +0000)]
2009-02-02 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23700
Upstream local changes to due to unforking of SimpleFontData
(corresponds to Chromium check-in http://src.chromium.org/viewvc/chrome?view=rev&revision=8646).
* platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp:
(WebCore::fillBMPGlyphs): Removed extra checks for ZWS chars.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40619
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 18:25:14 +0000 (18:25 +0000)]
2009-02-04 David Hyatt <hyatt@apple.com>
<rdar://problem/
6554115> REGRESSION (r40475): World leak (JS global object) after viewing a photo on Facebook
Fix a ginormous leak. (GINORMOUS!) Make sure to disconnect the event listeners attached to the Document,
because, like, they point to a lot of stuff... like ... everything...
Reviewed by Darin Adler
* dom/Document.cpp:
(WebCore::Document::removeAllEventListenersFromAllNodes):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40618
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin@chromium.org [Wed, 4 Feb 2009 18:11:07 +0000 (18:11 +0000)]
2009-02-04 Darin Fisher <darin@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23731
Add JSCCustom and V8Custom as extended IDL attributes
This helps avoid having to add #ifdefs to the IDL files to support V8 bindings.
* bindings/scripts/CodeGeneratorJS.pm:
* dom/Document.idl:
* dom/Node.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPointList.idl:
* svg/SVGTransformList.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40617
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mitz@apple.com [Wed, 4 Feb 2009 18:03:57 +0000 (18:03 +0000)]
- build fix
* rendering/RenderImageGeneratedContent.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40616
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kevino@webkit.org [Wed, 4 Feb 2009 18:01:18 +0000 (18:01 +0000)]
Reviewed by Kevin Ollivier.
Switch to using a ref-counted wxFont pointer for FontPlatformData to fix a crash
with assigning to uninitialized HashTable buckets.
https://bugs.webkit.org/show_bug.cgi?id=23669
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40615
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 17:39:48 +0000 (17:39 +0000)]
2009-02-04 David Hyatt <hyatt@apple.com>
Fix a crash in generated content when a generated image with an already-cached background image gets
created. It's not completely clear how to reproduce this crash.
Reviewed by Adam Roben
* rendering/RenderImageGeneratedContent.h:
(WebCore::RenderImageGeneratedContent::imagePtr):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40614
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann@webkit.org [Wed, 4 Feb 2009 14:56:24 +0000 (14:56 +0000)]
2009-02-04 Simon Hausmann <simon.hausmann@nokia.com>
Unreviewed Qt build fix.
Changed ASSERT(image) to ASSERT(!image.isNull()).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40613
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann@webkit.org [Wed, 4 Feb 2009 14:23:55 +0000 (14:23 +0000)]
2009-02-04 Trenton Schulz <trenton.schulz@nokia.com>
Reviewed by Simon Hausmann.
Fix implementation of PluginViewMac::invalidateRect to update only the
specified rect, not the entire browser window.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40612
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Wed, 4 Feb 2009 14:04:04 +0000 (14:04 +0000)]
2009-02-04 Holger Hans Peter Freyther <zecke@selfish.org>
Rubber stamped by Mark Rowe.
FramePrivate was removed in r40024 remove the forward
declaration as well.
* page/Frame.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40611
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Wed, 4 Feb 2009 13:37:52 +0000 (13:37 +0000)]
Make isFrameSet virtual and by default return false, reimplement it in HTMLDocument.
https://bugs.webkit.org/show_bug.cgi?id=23426
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40610
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann@webkit.org [Wed, 4 Feb 2009 09:34:37 +0000 (09:34 +0000)]
2009-02-04 David Boddie <dboddie@trolltech.com>
Reviewed by Simon Hausmann.
Doc: Documented the return value of the evaluateJavaScript() function.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40609
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Wed, 4 Feb 2009 08:55:28 +0000 (08:55 +0000)]
Reviewed by Sam Weinig.
https://bugs.webkit.org/show_bug.cgi?id=23681
Worker tests crash in debug builds if run --singly
The crash happened because worker threads continued running while debug-only static objects
were already being destroyed on main thread.
* runtime/Structure.cpp: Create static debug-only sets in heap, so that they don't get
destroyed.
* wtf/ThreadingPthreads.cpp: Changed assertions to conventional form.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40608
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver@apple.com [Wed, 4 Feb 2009 05:24:44 +0000 (05:24 +0000)]
<rdar://problem/
6554092> Slow script dialog starts coming up over and over again
Reviewed by John Sullivan.
Work around <rdar://problem/
6554067> by consuming any exceptions that are
thrown by _web_localizedDescription
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40607
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 05:06:19 +0000 (05:06 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Move the isRenderInline checks for clientWidth/Height and scrollWidth/Height to the DOM element
versions of the functions. Since internal render tree usage doesn't ever (incorrectly) call these
functions on RenderInlines, this manages to get virtual function calls out of contentWidth/Height and
availableWidth/Height.
Reviewed by Mark Rowe
* dom/Element.cpp:
(WebCore::Element::clientWidth):
(WebCore::Element::clientHeight):
(WebCore::Element::scrollWidth):
(WebCore::Element::scrollHeight):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::clientWidth):
(WebCore::RenderBox::clientHeight):
(WebCore::RenderBox::scrollWidth):
(WebCore::RenderBox::scrollHeight):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40606
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bfulgham@webkit.org [Wed, 4 Feb 2009 04:59:39 +0000 (04:59 +0000)]
2009-02-03 Brad Garcia <bgarcia@google.com>
Remove call to canResize when trying to determine if pointer
is within a frame.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40605
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 04:26:08 +0000 (04:26 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Reduce the number of calls to virtualChildren (indirectly made via RenderObject::firstChild()).
This is a small gain on the PLT.
Reviewed by Mark Rowe
* rendering/bidi.cpp:
(WebCore::inlineWidth):
(WebCore::bidiNext):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40604
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
simon.fraser@apple.com [Wed, 4 Feb 2009 02:45:10 +0000 (02:45 +0000)]
Fix typo in Changelog
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40565
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
simon.fraser@apple.com [Wed, 4 Feb 2009 02:41:38 +0000 (02:41 +0000)]
2009-02-03 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dave Hyatt
https://bugs.webkit.org/show_bug.cgi?id=23628
Fix selection repainting to do container-relative repaints. RenderView now
repaints the seleciton using the containerForRepaint() for each RenderSelectionInfo.
selectionRect() is now a wrapper for selectionRectForRepaint() with no container.
Pull SelectionInfo out of RenderObject.h, and BlockSelectionInfo out
of RenderBlock.h and move them into RenderSelectionInfo.h, with some
sharing and refactoring.
RenderBlock::selectionGapRectsForRepaint() is not yet container-aware.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40564
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 02:06:42 +0000 (02:06 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Add inline capacity back to CSSMutableStyleDeclaration now that the bug in Vector has been fixed.
Reviewed by Darin Adler & Sam Weinig
* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::removePropertiesInSet):
* css/CSSMutableStyleDeclaration.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40563
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
barraclough@apple.com [Wed, 4 Feb 2009 02:02:32 +0000 (02:02 +0000)]
2009-02-03 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
https://bugs.webkit.org/show_bug.cgi?id=23715
Simplify MacroAssembler interface, by combining comparison methods.
Seprate operations are combined as follows:
jz32/jnz32/jzPtr/jnzPtr -> branchTest32/branchTestPtr,
j*(Add|Mul|Sub)32/j*(Add|Mul|Sub)Ptr -> branch(Add|Mul|Sub)32/branch(Add|Mul|Sub)Ptr
j*32/j*Ptr (all other two op combparisons) -> branch32/brnachPtr
set*32 -> set32
Also, represent the Scale of BaseIndex addresses as a plain enum (0,1,2,3),
instead of as multiplicands (1,2,4,8).
This patch singificantly reduces replication of code, and increases functionality supported
by the MacroAssembler. No performance impact.
* assembler/MacroAssembler.h:
(JSC::MacroAssembler::):
(JSC::MacroAssembler::branchPtr):
(JSC::MacroAssembler::branchPtrWithPatch):
(JSC::MacroAssembler::branch32):
(JSC::MacroAssembler::branch16):
(JSC::MacroAssembler::branchTestPtr):
(JSC::MacroAssembler::branchTest32):
(JSC::MacroAssembler::branchAddPtr):
(JSC::MacroAssembler::branchAdd32):
(JSC::MacroAssembler::branchMul32):
(JSC::MacroAssembler::branchSubPtr):
(JSC::MacroAssembler::branchSub32):
(JSC::MacroAssembler::set32):
(JSC::MacroAssembler::setTest32):
* assembler/X86Assembler.h:
(JSC::X86Assembler::):
(JSC::X86Assembler::jccRel32):
(JSC::X86Assembler::setccOpcode):
(JSC::X86Assembler::cmpq_mr):
(JSC::X86Assembler::setcc_r):
(JSC::X86Assembler::sete_r):
(JSC::X86Assembler::setne_r):
(JSC::X86Assembler::jne):
(JSC::X86Assembler::je):
(JSC::X86Assembler::jl):
(JSC::X86Assembler::jb):
(JSC::X86Assembler::jle):
(JSC::X86Assembler::jbe):
(JSC::X86Assembler::jge):
(JSC::X86Assembler::jg):
(JSC::X86Assembler::ja):
(JSC::X86Assembler::jae):
(JSC::X86Assembler::jo):
(JSC::X86Assembler::jp):
(JSC::X86Assembler::js):
(JSC::X86Assembler::jcc):
(JSC::X86Assembler::X86InstructionFormatter::putModRmSib):
* jit/JIT.cpp:
(JSC::JIT::compileOpStrictEq):
(JSC::JIT::emitSlowScriptCheck):
(JSC::JIT::privateCompileMainPass):
(JSC::JIT::privateCompileSlowCases):
(JSC::JIT::privateCompile):
(JSC::JIT::privateCompileCTIMachineTrampolines):
* jit/JITArithmetic.cpp:
(JSC::JIT::compileFastArith_op_lshift):
(JSC::JIT::compileFastArith_op_mod):
(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::compileBinaryArithOp):
(JSC::JIT::compileFastArith_op_add):
(JSC::JIT::compileFastArith_op_mul):
* jit/JITCall.cpp:
(JSC::JIT::compileOpCall):
(JSC::JIT::compileOpCallSlowCase):
* jit/JITInlineMethods.h:
(JSC::JIT::checkStructure):
(JSC::JIT::emitJumpIfJSCell):
(JSC::JIT::emitJumpIfNotJSCell):
(JSC::JIT::emitJumpIfImmediateNumber):
(JSC::JIT::emitJumpIfNotImmediateNumber):
(JSC::JIT::emitJumpIfImmediateInteger):
(JSC::JIT::emitJumpIfNotImmediateInteger):
(JSC::JIT::emitFastArithDeTagImmediateJumpIfZero):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::compileGetByIdHotPath):
(JSC::JIT::compilePutByIdHotPath):
(JSC::JIT::privateCompilePutByIdTransition):
(JSC::JIT::privateCompilePatchGetArrayLength):
(JSC::JIT::privateCompileGetByIdProto):
(JSC::JIT::privateCompileGetByIdProtoList):
(JSC::JIT::privateCompileGetByIdChainList):
(JSC::JIT::privateCompileGetByIdChain):
* runtime/RegExp.cpp:
(JSC::RegExp::match):
* wrec/WRECGenerator.cpp:
(JSC::WREC::Generator::generateEnter):
(JSC::WREC::Generator::generateIncrementIndex):
(JSC::WREC::Generator::generateLoadCharacter):
(JSC::WREC::Generator::generateJumpIfNotEndOfInput):
(JSC::WREC::Generator::generateBackreferenceQuantifier):
(JSC::WREC::Generator::generateNonGreedyQuantifier):
(JSC::WREC::Generator::generateGreedyQuantifier):
(JSC::WREC::Generator::generatePatternCharacterPair):
(JSC::WREC::Generator::generatePatternCharacter):
(JSC::WREC::Generator::generateCharacterClassInvertedRange):
(JSC::WREC::Generator::generateCharacterClassInverted):
(JSC::WREC::Generator::generateAssertionBOL):
(JSC::WREC::Generator::generateAssertionEOL):
(JSC::WREC::Generator::generateAssertionWordBoundary):
(JSC::WREC::Generator::generateBackreference):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40562
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 01:52:34 +0000 (01:52 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Fix a bug in Vector's shrinkCapacity method. It did not properly copy elements into the inline buffer
when shrinking down from a size that was greater than the inline capacity.
Reviewed by Maciej
* wtf/Vector.h:
(WTF::VectorBuffer::VectorBuffer):
(WTF::VectorBuffer::allocateBuffer):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40561
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
justin.garcia@apple.com [Wed, 4 Feb 2009 01:18:18 +0000 (01:18 +0000)]
WebCore:
2009-02-03 Justin Garcia <justin.garcia@apple.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=13490
Implement execCommand("styleWithCSS", ...)
Determine whether or not to use HTML formatting tags for styling on the new
boolean on Editor instead of whether or not the document is quirks mode.
* editing/ApplyStyleCommand.cpp:
(WebCore::StyleChange::StyleChange):
(WebCore::StyleChange::init):
(WebCore::ApplyStyleCommand::applyBlockStyle):
(WebCore::ApplyStyleCommand::applyTextDecorationStyle):
(WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
* editing/Editor.cpp:
(WebCore::Editor::Editor):
(WebCore::Editor::clear):
* editing/Editor.h:
(WebCore::Editor::setShouldStyleWithCSS):
(WebCore::Editor::shouldStyleWithCSS):
* editing/EditorCommand.cpp:
(WebCore::executeStyleWithCSS):
(WebCore::stateStyleWithCSS):
(WebCore::CommandEntry::):
LayoutTests:
2009-02-03 Justin Garcia <justin.garcia@apple.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=13490
Implement execCommand("styleWithCSS", ...)
* editing/execCommand/
5685604-1-expected.txt: Added.
* editing/execCommand/
5685604-1.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40560
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
krit@webkit.org [Wed, 4 Feb 2009 01:05:44 +0000 (01:05 +0000)]
2009-02-03 Dirk Schulze <krit@webkit.org>
Reviewed by Sam Weinig.
This is a follow up of r40546. Call toImage() once speeds up ImageBuffer::getImageData()
* platform/graphics/qt/ImageBufferQt.cpp:
(WebCore::ImageBuffer::getImageData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40559
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca@apple.com [Wed, 4 Feb 2009 00:55:17 +0000 (00:55 +0000)]
2009-02-03 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
- Fix for <rdar://problem/
6549743>
On Tiger, create an autorelease pool before creating the NSGraphicsContext and drain it immediately
after the call to -[NSView displayRectIgnoringOpacity:inContext:].
* platform/mac/WidgetMac.mm:
(WebCore::Widget::paint):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40558
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kevino@webkit.org [Wed, 4 Feb 2009 00:46:23 +0000 (00:46 +0000)]
ChangeLog date fix.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40557
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kevino@webkit.org [Wed, 4 Feb 2009 00:39:11 +0000 (00:39 +0000)]
Reviewed by Darin Adler.
Change the way wxWidgets build gets arguments.
Change "checkForArgumentAndRemoveFromARGV" in build-webkit to check if the
argument passed matches one in ARGV exactly (allows, ie, --wx-args not to be
removed when --wx is checked for).
https://bugs.webkit.org/show_bug.cgi?id=23701
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40556
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Wed, 4 Feb 2009 00:31:19 +0000 (00:31 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Back this change out since it is causing layout tests to crash. There is something subtle going on
here.
Reviewed by Darin Adler
* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::removePropertiesInSet):
* css/CSSMutableStyleDeclaration.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40555
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Tue, 3 Feb 2009 23:57:53 +0000 (23:57 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Give the properties vector of mutable style declarations an initial inline capacity to reduce malloc churn.
Reviewed by Sam Weinig
* css/CSSMutableStyleDeclaration.cpp:
(WebCore::CSSMutableStyleDeclaration::removePropertiesInSet):
* css/CSSMutableStyleDeclaration.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Tue, 3 Feb 2009 23:56:06 +0000 (23:56 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Avoid creating extra copies of NSURLRequests for non-HTTP URLs. Only mark platform requests
as needing updating when HTTP fields change if the scheme of the URL is actually HTTP or HTTPS.
Thus cuts down significantly on the number of copied NSURLRequests and is about a 1% gain on the PLT.
Reviewed by Darin Adler
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::addExtraFieldsToRequest):
* platform/KURL.cpp:
(WebCore::KURL::invalidate):
(WebCore::KURL::KURL):
* platform/KURL.h:
(WebCore::KURL::isHTTPOrHTTPS):
* platform/network/ResourceRequestBase.cpp:
(WebCore::ResourceRequestBase::setCachePolicy):
(WebCore::ResourceRequestBase::setTimeoutInterval):
(WebCore::ResourceRequestBase::setMainDocumentURL):
(WebCore::ResourceRequestBase::setHTTPMethod):
(WebCore::ResourceRequestBase::setHTTPHeaderField):
(WebCore::ResourceRequestBase::setResponseContentDispositionEncodingFallbackArray):
(WebCore::ResourceRequestBase::setHTTPBody):
(WebCore::ResourceRequestBase::setAllowHTTPCookies):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40553
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bfulgham@webkit.org [Tue, 3 Feb 2009 23:53:20 +0000 (23:53 +0000)]
Commit test cases for https://bugs.webkit.org/show_bug.cgi?id=23178.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40552
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 23:25:52 +0000 (23:25 +0000)]
2009-02-03 Xan Lopez <xan@gnome.org>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=23711
Add manual test for floating divs with scrollbars.
* manual-tests/gtk/floatingdiv.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40551
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 23:25:37 +0000 (23:25 +0000)]
2009-02-03 Xan Lopez <xan@gnome.org>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=23711
There's no need to hold an extra ref to the scrollbar, calling
setPlatformWidget takes ownership of it.
Also do not disconnect the signals when destroying the widget,
it's superfluous.
* platform/gtk/ScrollbarGtk.cpp:
(ScrollbarGtk::ScrollbarGtk):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40550
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 23:25:24 +0000 (23:25 +0000)]
2009-02-03 Xan Lopez <xan@gnome.org>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=23711
Declare scrollBar as GtkWidget* to avoid needless
casting.
* platform/gtk/ScrollbarGtk.cpp:
(ScrollbarGtk::ScrollbarGtk):
(ScrollbarGtk::~ScrollbarGtk):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40549
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 23:25:09 +0000 (23:25 +0000)]
2009-02-03 Xan Lopez <xan@gnome.org>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=23711
Properly calculate the scrollbar location for their
usage in RenderLayout.
* platform/gtk/ScrollbarGtk.cpp:
(ScrollbarGtk::frameRectsChanged):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40548
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Tue, 3 Feb 2009 22:14:08 +0000 (22:14 +0000)]
2009-02-03 David Hyatt <hyatt@apple.com>
Rename addLineBoxRects to absoluteRectsForRange, and do the same thing for the corresponding quads methods. Move the RenderContainer implementations
of these methods up to RenderObject.
Reviewed by Beth Dakin
* bindings/objc/DOM.mm:
(-[DOMNode lineBoxRects]):
* dom/Range.cpp:
(WebCore::Range::addLineBoxRects):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::drawNodeHighlight):
* rendering/RenderContainer.cpp:
* rendering/RenderContainer.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::absoluteRectsForRange):
(WebCore::RenderObject::absoluteQuadsForRange):
* rendering/RenderObject.h:
* rendering/RenderText.cpp:
(WebCore::RenderText::absoluteRectsForRange):
(WebCore::RenderText::absoluteQuadsForRange):
* rendering/RenderText.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40547
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
krit@webkit.org [Tue, 3 Feb 2009 21:26:14 +0000 (21:26 +0000)]
2009-02-03 Dirk Schulze <krit@webkit.org>
Reviewed by Sam Weinig and Oliver Hunt.
Added getImageData() support for QtWebKit.
[QT] lacks getImageData / putImageData support in Canvas
https://bugs.webkit.org/show_bug.cgi?id=22186
* platform/graphics/qt/ImageBufferQt.cpp:
(WebCore::ImageBuffer::getImageData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40546
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 21:00:06 +0000 (21:00 +0000)]
2009-02-03 Eric Roman <eroman@chromium.org>
Reviewed by Holger Freyther.
Fix FrameChromium.cpp following r40473 which moved Frame::adjustPageHeight to FrameView::adjustPageHeight.
* page/chromium/FrameChromium.cpp:
(WebCore::computePageRectsForFrame):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40545
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
simon.fraser@apple.com [Tue, 3 Feb 2009 20:43:55 +0000 (20:43 +0000)]
2009-02-02 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dave Hyatt
https://bugs.webkit.org/show_bug.cgi?id=23358
Hook accelerated compositing into RenderLayer.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40544
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
simon.fraser@apple.com [Tue, 3 Feb 2009 20:14:37 +0000 (20:14 +0000)]
2009-02-03 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dave Hyatt
https://bugs.webkit.org/show_bug.cgi?id=23365
Hook up accelerated compositing layers the native
view system on Mac.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40543
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
krit@webkit.org [Tue, 3 Feb 2009 19:51:10 +0000 (19:51 +0000)]
2009-02-03 Dirk Schulze <krit@webkit.org>
Reviewed by Holger Hans Peter Freyther.
Fixed getImageData and putImageData and respect pre-
multiplied colors.
Cairo's ImageBuffer::getImageData() does not handle alpha=0 case correctly
https://bugs.webkit.org/show_bug.cgi?id=21575
* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBuffer::getImageData):
(WebCore::ImageBuffer::putImageData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40542
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mitz@apple.com [Tue, 3 Feb 2009 19:49:50 +0000 (19:49 +0000)]
WebCore:
Reviewed by Brady Eidson.
- fix <rdar://problem/
6550530> REGRESSION (r40508): Window opened with window.open has no initial history item (global and back/forward)
Test: fast/history/window-open.html
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::createWindow): Pass the missing lockBackForwardList parameter
to FrameLoader::changeLocation().
LayoutTests:
Reviewed by Brady Eidson.
- test for <rdar://problem/
6550530> REGRESSION (r40508): Window opened with window.open has no initial history item (global and back/forward)
* fast/history/window-open-expected.txt: Added.
* fast/history/window-open.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40541
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zecke@webkit.org [Tue, 3 Feb 2009 19:40:56 +0000 (19:40 +0000)]
2009-02-03 Hiroyuki Ikezoe <poincare@ikezoe.net>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=22988
[GTK] Need a public method to add a WebKitWebHistoryItem to
WebKitWebBackForwardList.
Wrap WebCore::BackForwardList::addItem.
* tests/main.c:
(test_webkit_web_back_forward_list_add_item):
(main):
* webkit/webkitwebbackforwardlist.cpp:
(_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_add_item):
* webkit/webkitwebbackforwardlist.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40540
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
treat@webkit.org [Tue, 3 Feb 2009 17:46:02 +0000 (17:46 +0000)]
2009-02-03 Adam Treat <adam.treat@torchmobile.com>
Fix the Qt build after r40536.
* bridge/qt/qt_runtime.cpp:
(JSC::Bindings::convertQVariantToValue):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40539
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mitz@apple.com [Tue, 3 Feb 2009 17:41:06 +0000 (17:41 +0000)]
- fix -Wmissing-prototypes builds
* loader/WorkerThreadableLoader.cpp:
(WebCore::workerContextDidSendData): Marked this function static.
(WebCore::workerContextDidReceiveResponse): Ditto.
(WebCore::workerContextDidReceiveData): Ditto.
(WebCore::workerContextDidFinishLoading): Ditto.
(WebCore::workerContextDidFail): Ditto.
(WebCore::workerContextDidGetCancelled): Ditto.
(WebCore::workerContextDidReceiveAuthenticationCancellation): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40538
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ddkilzer@apple.com [Tue, 3 Feb 2009 17:29:59 +0000 (17:29 +0000)]
CrashTracer: [REGRESSION] 53 crashes in Safari at com.apple.WebCore: WebCore::LegacyWebArchive::create + 2706
<rdar://problem/
6509514>
Reviewed by Adam Roben.
* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create): Null check the value returned
from WebCore::IconDatabase::iconForPageURL().
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40537
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann@webkit.org [Tue, 3 Feb 2009 16:10:21 +0000 (16:10 +0000)]
JavaScriptCore:
2009-02-03 Simon Hausmann <simon.hausmann@nokia.com>
Reviewed by Tor Arne Vestbø.
Added accessor for JSByteArray storage.
WebCore:
2009-02-03 Simon Hausmann <simon.hausmann@nokia.com>
Reviewed by Tor Arne Vestbø.
Fix conversion of QByteArray to JavaScript and back. Instead of
converting it to a String (data loss!) we now map it to JSByteArray.
WebKit/qt:
2009-02-03 Simon Hausmann <simon.hausmann@nokia.com>
Reviewed by Tor Arne Vestbø.
Added a unit test to verify the succesful conversion from QByteArray to
JSByteArray and back to QByteArray.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40536
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 15:44:07 +0000 (15:44 +0000)]
Build fix.
* GNUmakefile.am: Removed WorkerTask.{h,cpp}.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40535
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 10:32:28 +0000 (10:32 +0000)]
2009-02-03 Dmitry Titov <dimich@chromium.org>
Reviewed by Alexey Proskuryakov.
https://bugs.webkit.org/show_bug.cgi?id=22718
Implement WindowTimers interface in Workers.
This patch moves timeoutID from Document to ScriptExecutionContext
and exposes JS methods setTimeout/setInterval/clearTimeout/clearInterval inside of a Worker.
Also added a test for those methods.
Test: fast/workers/worker-timeout.html
* bindings/js/JSWorkerContextCustom.cpp:
(WebCore::setTimeoutOrInterval):
Creates ScheduledAction and calls WorkerContext::installTimeout to actually add a timer.
(WebCore::JSWorkerContext::setTimeout):
(WebCore::JSWorkerContext::clearTimeout):
(WebCore::JSWorkerContext::setInterval):
(WebCore::JSWorkerContext::clearInterval):
Added methods exposed to JS.
* dom/Document.cpp:
* dom/Document.h:
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::addTimeout):
(WebCore::ScriptExecutionContext::removeTimeout):
(WebCore::ScriptExecutionContext::findTimeout):
* dom/ScriptExecutionContext.h:
The timerID map moves from Document to ScriptExecutionContext,
to be available to Document and to WorkerContext.
* dom/WorkerContext.cpp:
(WebCore::WorkerContext::installTimeout): Adds a DOMTimeout.
(WebCore::WorkerContext::removeTimeout): Removes a DOMTimeout.
* dom/WorkerContext.h:
* page/DOMTimer.cpp:
(WebCore::DOMTimer::DOMTimer):
(WebCore::DOMTimer::~DOMTimer):
(WebCore::DOMTimer::removeById):
Code change here reflects move of timeoutID map to the ScriptExecutionContext.
Some checks and casts are no longer needed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40534
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 09:18:34 +0000 (09:18 +0000)]
2009-02-03 Dmitry Titov <dimich@chromium.org>
Reviewed by Alexey Proskuryakov.
https://bugs.webkit.org/show_bug.cgi?id=23560
Implement SharedTimer on WorkerRunLoop
* JavaScriptCore.exp:
Forgot to expose ThreadCondition::timedWait() in one of previous patches.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40533
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 09:11:35 +0000 (09:11 +0000)]
2009-02-03 Dmitry Titov <dimich@chromium.org>
Reviewed by Alexey Proskuryakov.
https://bugs.webkit.org/show_bug.cgi?id=23560
Implement SharedTimer for Workers.
* dom/WorkerRunLoop.cpp:
Added private class WorkerSharedTimer that implements SharedTimer interface for worker threads.
(WebCore::WorkerSharedTimer::WorkerSharedTimer):
(WebCore::WorkerSharedTimer::setFiredFunction):
(WebCore::WorkerSharedTimer::setFireTime):
(WebCore::WorkerSharedTimer::stop):
(WebCore::WorkerSharedTimer::isActive):
(WebCore::WorkerSharedTimer::fireTime):
(WebCore::WorkerSharedTimer::fire):
(WebCore::WorkerRunLoop::WorkerRunLoop):
Initializes a WorkerSharedTimer instance.
(WebCore::WorkerRunLoop::~WorkerRunLoop):
The destructor is here so compiler is ok with having OwnPtr<WorkerSharedTimer> in .h file w/o defining WorkerSharedTimer.
(WebCore::WorkerRunLoop::run):
Set/reset shared timer interface on ThreadTimers, use MessageQueue::waitForMessageTimed() if timer is active.
* dom/WorkerRunLoop.h:
Add member of type OwnPtr<WorkerSharedTimer>
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40532
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken@apple.com [Tue, 3 Feb 2009 08:57:35 +0000 (08:57 +0000)]
2009-02-03 Steve Falkenburg <sfalken@apple.com>
Build fix.
* WebCore.vcproj/WebCore.vcproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40531
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 08:24:45 +0000 (08:24 +0000)]
Windows build fix.
* dom/CrossThreadCopier.h: Changed forward declarations to use struct instead of class where
appropriate.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40530
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 08:05:12 +0000 (08:05 +0000)]
2009-02-03 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebHistory.cpp:
(WebHistory::visitedURL):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40529
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 07:57:09 +0000 (07:57 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebHistory.cpp:
(WebHistory::visitedURL):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40528
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 07:41:14 +0000 (07:41 +0000)]
Reviewed by Alexey Proskuryakov.
Part 2 of
Bug 23636: Make the async api of ThreadableLoader functional for the worker context.
<https://bugs.webkit.org/show_bug.cgi?id=23636>
Enable the async portion of ThreadableLoader for workers.
No observable change in behavior, so no test.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40527
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 07:38:38 +0000 (07:38 +0000)]
2009-02-02 David Levin <levin@chromium.org>
Reviewed by Alexey Proskuryakov.
Bug 23636: Make the async api of ThreadableLoader functional for the worker context.
<https://bugs.webkit.org/show_bug.cgi?id=23636>
No observable change in behavior, so no test.
* WebCore.xcodeproj/project.pbxproj:
* dom/Worker.cpp:
* dom/Worker.h:
* dom/WorkerContext.cpp:
(WebCore::WorkerContext::addMessage):
(WebCore::WorkerContext::postTask):
(WebCore::WorkerContext::postTaskToWorkerObject):
* dom/WorkerContext.h:
* dom/WorkerMessagingProxy.cpp:
(WebCore::MessageWorkerContextTask::performTask):
(WebCore::WorkerMessagingProxy::postMessageToWorkerContext):
(WebCore::WorkerMessagingProxy::postTaskToWorkerContext):
Expose postTaskToWorkerContext for use by the worker object thread.
(WebCore::WorkerMessagingProxy::postTaskToWorkerObject):
Change the name of postTaskToParentContext to postTaskToWorkerObject for consistency
with postMessageToWorkerObject.
* dom/WorkerMessagingProxy.h:
* dom/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::run):
(WebCore::WorkerRunLoop::postTask):
* dom/WorkerRunLoop.h:
* dom/WorkerTask.cpp: Removed.
* dom/WorkerTask.h: Removed.
Removed WorkerTask and replaced with the existing ScriptExecutionContext::Task.
The resulted in the class going away along with an adapter that made
a ScriptExecutionContext::Task look like a WorkerTask.
* dom/WorkerThread.cpp:
* dom/WorkerThread.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40526
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 07:36:38 +0000 (07:36 +0000)]
2009-02-02 David Levin <levin@chromium.org>
Reviewed by Alexey Proskuryakov.
Bug 23618: Templated worker tasks should be more error proof to use.
<https://bugs.webkit.org/show_bug.cgi?id=23618>
Add the generic worker tasks templates needed for the WorkerThreadableLoader.
No observable change in behavior, so no test.
* GNUmakefile.am:
* WebCore.pro:
* WebCore.scons:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* WebCoreSources.bkl:
* dom/CrossThreadCopier.cpp: Added.
* dom/CrossThreadCopier.h: Added.
(WebCore::CrossThreadCopierPassThrough::copy):
* dom/GenericWorkerTask.h:
Stop doing the WorkerMessagingProxy::askedToTerminate call automatically
in performTask because was not obvious that it would be done and not always needed.
(WebCore::GenericWorkerTask1::create):
(WebCore::GenericWorkerTask1::GenericWorkerTask1):
(WebCore::GenericWorkerTask1::performTask):
(WebCore::GenericWorkerTask2::create):
(WebCore::GenericWorkerTask2::GenericWorkerTask2):
(WebCore::GenericWorkerTask2::performTask):
(WebCore::GenericWorkerTask3::create):
(WebCore::GenericWorkerTask3::GenericWorkerTask3):
(WebCore::GenericWorkerTask3::performTask):
(WebCore::GenericWorkerTask4::create):
(WebCore::GenericWorkerTask4::GenericWorkerTask4):
(WebCore::GenericWorkerTask4::performTask):
(WebCore::GenericWorkerTask5::create):
(WebCore::GenericWorkerTask5::GenericWorkerTask5):
(WebCore::GenericWorkerTask5::performTask):
(WebCore::GenericWorkerTask6::create):
(WebCore::GenericWorkerTask6::GenericWorkerTask6):
(WebCore::GenericWorkerTask6::performTask):
(WebCore::GenericWorkerTask7::create):
(WebCore::GenericWorkerTask7::GenericWorkerTask7):
(WebCore::GenericWorkerTask7::performTask):
(WebCore::createCallbackTask):
* dom/WorkerContext.cpp:
(WebCore::addMessageTask):
(WebCore::WorkerContext::addMessage):
* dom/WorkerMessagingProxy.h:
(WebCore::WorkerMessagingProxy::askedToTerminate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40525
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig@apple.com [Tue, 3 Feb 2009 06:45:48 +0000 (06:45 +0000)]
2009-02-02 Sam Weinig <sam@webkit.org>
Reviewed by David "The Barnabas Jones" Hyatt.
Move removeChildNode, appendChildNode and insertChildNode from
RenderContainer into RenderObjectChildList. Make moveChildNode
static in RenderBlock, as that was the only user.
* rendering/RenderBlock.cpp:
(WebCore::moveChild):
(WebCore::RenderBlock::makeChildrenNonInline):
(WebCore::RenderBlock::removeChild):
(WebCore::RenderBlock::handleRunInChild):
* rendering/RenderContainer.cpp:
(WebCore::RenderContainer::addChild):
(WebCore::RenderContainer::removeChild):
* rendering/RenderContainer.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::splitInlines):
(WebCore::RenderInline::splitFlow):
(WebCore::RenderInline::childBecameNonInline):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::handleDynamicFloatPositionChange):
* rendering/RenderObject.h:
(WebCore::RenderObject::createsAnonymousWrapper):
* rendering/RenderObjectChildList.cpp:
(WebCore::updateListMarkerNumbers):
(WebCore::RenderObjectChildList::removeChildNode):
(WebCore::RenderObjectChildList::appendChildNode):
(WebCore::RenderObjectChildList::insertChildNode):
* rendering/RenderObjectChildList.h:
* rendering/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::addChild):
(WebCore::RenderSVGContainer::removeChild):
* rendering/RenderSVGContainer.h:
* rendering/RenderTable.cpp:
(WebCore::RenderTable::removeChild):
* rendering/RenderTable.h:
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::removeChild):
* rendering/RenderTableSection.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40524
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap@webkit.org [Tue, 3 Feb 2009 06:39:28 +0000 (06:39 +0000)]
Reviewed by Darin Alder.
https://bugs.webkit.org/show_bug.cgi?id=23697
Leaks seen on Worker tests
* dom/WorkerMessagingProxy.cpp: (WebCore::WorkerMessagingProxy::workerContextDestroyedInternal):
Zero out m_workerThread, so that the proxy could be deleted once workerObjectDestroyed()
is called.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40523
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver@apple.com [Tue, 3 Feb 2009 06:08:53 +0000 (06:08 +0000)]
<https://bugs.webkit.org/show_bug.cgi?id=21414> REGRESSION: Regular Expressions and character classes, shorthands and ranges
<rdar://problem/
6543487>
Reviewed by Gavin Barraclough.
In certain circumstances when WREC::Generator::generateCharacterClassInvertedRange invokes
itself recursively, it will incorrectly emit (and thus consume) the next single character
match in the current character class. As WREC uses a binary search this out of sequence
codegen could result in a character match being missed and so cause the regex to produce
incorrect results.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40522
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Tue, 3 Feb 2009 05:26:40 +0000 (05:26 +0000)]
2009-02-02 David Hyatt <hyatt@apple.com>
Move positionForCoordinates up from RenderContainer into RenderBox.
Reviewed by Sam Weinig
* rendering/RenderBox.cpp:
(WebCore::RenderBox::positionForCoordinates):
* rendering/RenderBox.h:
* rendering/RenderContainer.cpp:
* rendering/RenderContainer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40521
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bfulgham@webkit.org [Tue, 3 Feb 2009 04:47:49 +0000 (04:47 +0000)]
Incorrect handling of findstr results in *.vcproj.
Fixes https://bugs.webkit.org/show_bug.cgi?id=15813
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40520
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 04:46:11 +0000 (04:46 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebKitSupport/FrameLoaderClientWx.cpp:
(WebCore::FrameLoaderClientWx::updateGlobalHistoryForRedirectWithoutHistoryItem):
(WebCore::FrameLoaderClientWx::createPlugin):
(WebCore::FrameLoaderClientWx::createJavaAppletWidget):
* WebKitSupport/FrameLoaderClientWx.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40519
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt@apple.com [Tue, 3 Feb 2009 04:33:23 +0000 (04:33 +0000)]
2009-02-02 David Hyatt <hyatt@apple.com>
Refactor the handling of before/after content and generated content. Move most of the functions from
RenderContainer into RenderObjectChildList.
Reviewed by Sam Weinig
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateBeforeAfterContent):
* rendering/RenderBlock.h:
* rendering/RenderBox.cpp:
(WebCore::RenderBox::isAfterContent):
* rendering/RenderBox.h:
* rendering/RenderButton.cpp:
(WebCore::RenderButton::updateBeforeAfterContent):
* rendering/RenderContainer.cpp:
* rendering/RenderContainer.h:
* rendering/RenderCounter.cpp:
(WebCore::destroyCounterNodeChildren):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):
(WebCore::RenderInline::addChildIgnoringContinuation):
(WebCore::RenderInline::splitInlines):
* rendering/RenderObject.h:
* rendering/RenderObjectChildList.cpp:
(WebCore::beforeAfterContainer):
(WebCore::findBeforeAfterParent):
(WebCore::invalidateCountersInContainer):
(WebCore::RenderObjectChildList::invalidateCounters):
(WebCore::RenderObjectChildList::updateBeforeAfterContent):
* rendering/RenderObjectChildList.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40518
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dglazkov@chromium.org [Tue, 3 Feb 2009 04:23:16 +0000 (04:23 +0000)]
2009-02-02 Dmitry Titov <dimich@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23661
Fix Chromium build.
* history/HistoryItem.h: need to include <wtf/OwnPtr.h>
* rendering/RenderThemeChromiumMac.mm:
(WebCore::RenderThemeChromiumMac::adjustMenuListStyle): isEnabled() is now on FormControlElement.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40517
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 03:08:41 +0000 (03:08 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* plugins/PluginView.cpp:
(WebCore::PluginView::performRequest):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40516
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 03:06:25 +0000 (03:06 +0000)]
WebKit/qt:
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* Api/qwebframe.cpp:
(QWebFrame::QWebFrame):
(QWebFrame::load):
(QWebFrame::setHtml):
(QWebFrame::setContent):
WebKit/wx:
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebFrame.cpp:
(wxWebFrame::LoadURL):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40515
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 03:03:35 +0000 (03:03 +0000)]
WebCore:
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebCore.base.exp:
WebKit/mac:
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* Plugins/WebPluginController.mm:
(-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40514
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 02:56:50 +0000 (02:56 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* webkit/webkitwebview.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40513
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 02:54:37 +0000 (02:54 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* webkit/webkitwebframe.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40512
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 02:52:53 +0000 (02:52 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::loadURLIntoChild):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40511
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren@apple.com [Tue, 3 Feb 2009 02:52:21 +0000 (02:52 +0000)]
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::createFrame):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40510
268f45cc-cd09-0410-ab3c-
d52691b4dbfc