WebKit-https.git
6 years agoGraphicsContext::drawImageBuffer is inefficient
schenney@chromium.org [Thu, 7 Feb 2013 15:53:50 +0000 (15:53 +0000)]
GraphicsContext::drawImageBuffer is inefficient
https://bugs.webkit.org/show_bug.cgi?id=104367

Reviewed by Dirk Schulze.

This patch converts all of the drawImage and drawImageBuffer
convenience methods (those that take parameters of various types) to
invoke the implementing method (that takes FloatRect src and dest)
directly, rather than through the next-most-convenient method as was
done previously. This will knock some layers off the stack compared
to the existing code, and may remove one or two constructor invocations.
This may be slightly more efficient, and also makes debugging simpler.

Also removes the unused drawImage method that takes and IntRect source
area and IntRect destination. It is not invoked anywhere in a standard
WebKit checkout.

No new tests. No change in functionality, just refactoring.

* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::drawImage): Modify all the convenience versions to call
the implementing version directly.
(WebCore::GraphicsContext::drawImageBuffer): Modify all the convenience versions
to call the implementing version directly.
* platform/graphics/GraphicsContext.h:
(GraphicsContext): Remove IntRect, IntRect version of drawImage.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142123 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoConversion from localized numbers to HTML numbers should accept not only localized...
tkent@chromium.org [Thu, 7 Feb 2013 15:46:58 +0000 (15:46 +0000)]
Conversion from localized numbers to HTML numbers should accept not only localized numbers but also HTML numbers
https://bugs.webkit.org/show_bug.cgi?id=109160

Reviewed by Kentaro Hara.

Source/WebCore:

For example, A French user needs to specify a number to a number input
field. He might use a local decimal point, like 3,141592, or he might
use the standard decimal point like 3.141592. We had better accept both
of them.

We accepted both last year, but we changed the behavior so that we
accept only localized numbers because we had some cases where an input
string can be recognized as both of a localized number and the standard
number. e.g. 3.141 is 3141 in French locale and 3.141 in the
standard. Now we introduce a simple rule that we don't accept group
separator at all. So users won't confuse even if we accept both of
decimal points.

Test: fast/forms/number/number-l10n-input.html

* platform/text/PlatformLocale.cpp:
(WebCore::Locale::convertFromLocalizedNumber):
If the specified string contains invalid characters including group
separators, just return the specified string.

LayoutTests:

* fast/forms/number/number-l10n-input-expected.txt: Added.
* fast/forms/number/number-l10n-input.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142122 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[EFL] Add a WebKit2 Performance bot.
rakuco@webkit.org [Thu, 7 Feb 2013 15:35:27 +0000 (15:35 +0000)]
[EFL] Add a WebKit2 Performance bot.
https://bugs.webkit.org/show_bug.cgi?id=109188

Reviewed by Csaba Osztrogonác.

* BuildSlaveSupport/build.webkit.org-config/config.json: Add the
efl-linux-perf-1 slave (a 64-bit Release WK2 Perf bot), and make
the "EFL Linux 64-bit Release" bot trigger it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142121 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[BlackBerry] CHHW - Characters that are using 32 bits encoding get trunked to 16bits
commit-queue@webkit.org [Thu, 7 Feb 2013 15:24:28 +0000 (15:24 +0000)]
[BlackBerry] CHHW - Characters that are using 32 bits encoding get trunked to 16bits
https://bugs.webkit.org/show_bug.cgi?id=109126
PR 292540

Source/WebCore:

Patch by Xiaobo Wang <xbwang@torchmobile.com.cn> on 2013-02-07
Reviewed by Yong Li.

Change char code to 4 bytes.
Need to convert UTF32 key char to UTF16 before constructing a WTF::String.

* platform/PlatformKeyboardEvent.h:
(WebCore::PlatformKeyboardEvent::unmodifiedCharacter):
(PlatformKeyboardEvent):
* platform/blackberry/PlatformKeyboardEventBlackBerry.cpp:
(WebCore::keyIdentifierForBlackBerryCharacter):
(WebCore::windowsKeyCodeForBlackBerryCharacter):
(WebCore::adjustCharacterFromOS):
(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):

Source/WebKit/blackberry:

Patch by Xiaobo Wang <xbwang@torchmobile.com.cn> on 2013-02-07
Reviewed by Yong Li.
Internally reviewed by Mike Fenton.

Key char is UTF32 encoded, should be 4 bytes.

* Api/WebPage.cpp:
(BlackBerry::WebKit::handleScrolling):
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::handleKeyboardInput):
* WebKitSupport/InputHandler.h:
(InputHandler):
* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::directionOfPointRelativeToRect):
(BlackBerry::WebKit::SelectionHandler::setCaretPosition):
(BlackBerry::WebKit::shouldExtendSelectionInDirection):
(BlackBerry::WebKit::directionalVisiblePositionAtExtentOfBox):
(BlackBerry::WebKit::SelectionHandler::extendSelectionToFieldBoundary):
(BlackBerry::WebKit::SelectionHandler::updateOrHandleInputSelection):
* WebKitSupport/SelectionHandler.h:
(SelectionHandler):

Tools:

Patch by Xiaobo Wang <xbwang@torchmobile.com.cn> on 2013-02-07
Reviewed by Yong Li.

Change char code to 4 bytes.

* DumpRenderTree/blackberry/EventSender.cpp:
(keyDownCallback):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142120 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[chromium] New baselines for GPU-accelerated reference filters tests. Unreviewed.
senorblanco@chromium.org [Thu, 7 Feb 2013 15:21:55 +0000 (15:21 +0000)]
[chromium] New baselines for GPU-accelerated reference filters tests.  Unreviewed.
https://bugs.webkit.org/show_bug.cgi?id=104289

* platform/chromium-linux/css3/filters/effect-reference-hw-expected.png: Added.
* platform/chromium-linux/css3/filters/effect-reference-ordering-hw-expected.png:
* platform/chromium-mac-lion/css3/filters/effect-reference-hw-expected.txt: Added.
* platform/chromium-mac-snowleopard/css3/filters/effect-reference-hw-expected.txt: Added.
* platform/chromium-mac/css3/filters/effect-reference-hw-expected.png:
* platform/chromium-mac/css3/filters/effect-reference-hw-expected.txt:
* platform/chromium-mac/css3/filters/effect-reference-ordering-hw-expected.png:
* platform/chromium-win/css3/filters/effect-reference-hw-expected.png:
* platform/chromium-win/css3/filters/effect-reference-ordering-hw-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142119 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoReplace ExceptionCode assertions with ASSERT_NO_EXCEPTION macro.
mkwst@chromium.org [Thu, 7 Feb 2013 15:14:05 +0000 (15:14 +0000)]
Replace ExceptionCode assertions with ASSERT_NO_EXCEPTION macro.
https://bugs.webkit.org/show_bug.cgi?id=109044

Reviewed by Darin Adler.

The pattern:

    ExceptionCode ec = 0;
    methodThatGeneratesException(ec);
    ASSERT(!ec);

is more clearly and succinctly written as:

    methodThatGeneratesException(ASSERT_NO_EXCEPTION);

This patch replaces the occurances of the former that never touch 'ec'
again with the latter. It does the same for 'ASSERT(ec == 0);' (and, as
a drive-by, replaces 'ASSERT(ec == 0)' with 'ASSERT(!ec)' in places
where it does indeed matter that 'ec' get set properly.

No change in behavior should result from this refactoring.

* Modules/indexeddb/IDBCursor.cpp:
(WebCore::IDBCursor::direction):
* Modules/indexeddb/IDBObjectStore.cpp:
(WebCore):
* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::mode):
* dom/ContainerNode.cpp:
(WebCore::ContainerNode::takeAllChildrenFrom):
* dom/Document.cpp:
(WebCore::Document::setTitle):
* dom/MessagePort.cpp:
(WebCore::MessagePort::dispatchMessages):
(WebCore::MessagePort::disentanglePorts):
* editing/DeleteButtonController.cpp:
(WebCore::enclosingDeletableElement):
(WebCore::DeleteButtonController::createDeletionUI):
    Replaced inline ASSERT with ASSERT_NO_EXCEPTION.
(WebCore::DeleteButtonController::show):
    Replaced 'ASSERT(ec == 0)' with 'ASSERT(!ec)' to match the style guide.
* editing/EditorCommand.cpp:
(WebCore::unionDOMRanges):
* editing/ReplaceNodeWithSpanCommand.cpp:
(WebCore::swapInNodePreservingAttributesAndChildren):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplacementFragment::ReplacementFragment):
(WebCore::ReplacementFragment::removeNode):
(WebCore::ReplacementFragment::insertNodeBefore):
(WebCore::ReplacementFragment::insertFragmentForTestRendering):
(WebCore::ReplacementFragment::restoreAndRemoveTestRenderingNodesToFragment):
(WebCore::ReplaceSelectionCommand::insertAsListItems):
* editing/SplitTextNodeCommand.cpp:
(WebCore::SplitTextNodeCommand::doUnapply):
* editing/TextIterator.cpp:
(WebCore::CharacterIterator::range):
(WebCore::BackwardsCharacterIterator::range):
(WebCore::TextIterator::rangeFromLocationAndLength):
(WebCore::collapsedToBoundary):
* editing/htmlediting.cpp:
(WebCore::createTabSpanElement):
* editing/mac/EditorMac.mm:
(WebCore::Editor::fontForSelection):
(WebCore::Editor::fontAttributesForSelectionStart):
* editing/markup.cpp:
(WebCore::createMarkup):
(WebCore::trimFragment):
(WebCore::createFragmentFromMarkupWithContext):
(WebCore::fillContainerFromString):
(WebCore::createFragmentFromText):
(WebCore::createFragmentFromNodes):
* html/ColorInputType.cpp:
(WebCore::ColorInputType::createShadowSubtree):
    Replaced inline ASSERT with ASSERT_NO_EXCEPTION.
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::add):
    Replaced 'ASSERT(ec == 0)' with 'ASSERT(!ec)' to match the style guide.
* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::updatePlaceholderText):
* html/HTMLTextFormControlElement.cpp:
(WebCore::HTMLTextFormControlElement::indexForVisiblePosition):
(WebCore::HTMLTextFormControlElement::setInnerTextValue):
* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::updatePlaceholderText):
* html/ValidationMessage.cpp:
(WebCore::ValidationMessage::buildBubbleTree):
* html/shadow/MediaControlElementTypes.cpp:
(WebCore::MediaControlVolumeSliderElement::defaultEventHandler):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::getCookies):
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::addRule):
* loader/appcache/ApplicationCacheHost.cpp:
(WebCore::ApplicationCacheHost::dispatchDOMEvent):
* page/DOMSelection.cpp:
(WebCore::DOMSelection::deleteFromDocument):
* page/DragController.cpp:
(WebCore::prepareClipboardForImageDrag):
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::visiblePositionForIndex):
* rendering/style/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::initialBaselineShiftValue):
(WebCore::SVGRenderStyle::initialKerning):
(WebCore::SVGRenderStyle::initialStrokeDashOffset):
(WebCore::SVGRenderStyle::initialStrokeWidth):
* svg/SVGAnimatedLength.cpp:
(WebCore::sharedSVGLength):
(WebCore::SVGAnimatedLengthAnimator::addAnimatedTypes):
(WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue):
* svg/SVGAnimatedLengthList.cpp:
(WebCore::SVGAnimatedLengthListAnimator::addAnimatedTypes):
(WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue):
* svg/SVGLength.cpp:
(WebCore::SVGLength::SVGLength):
* svg/SVGTextContentElement.cpp:
(WebCore::SVGTextContentElement::textLengthAnimated):
* svg/animation/SVGSMILElement.cpp:
(WebCore::constructQualifiedName):
    Replaced inline ASSERT with ASSERT_NO_EXCEPTION.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142118 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[BlackBerry] Reader Mode: Opening two links quickly from reader mode causes browser...
commit-queue@webkit.org [Thu, 7 Feb 2013 15:08:22 +0000 (15:08 +0000)]
[BlackBerry] Reader Mode: Opening two links quickly from reader mode causes browser bad state
https://bugs.webkit.org/show_bug.cgi?id=109124

Patch by Sean Wang <Xuewen.Wang@torchmobile.com.cn> on 2013-02-07
Reviewed by Yong Li.

RIM BUG 291246 Internally reviewed by YongLi.
Move the WebPageGroupLoadDeferrer object from ChromeClientBlackBerry::createWindow()
into WebPageClientImpl::createWindow() to make it more close to its protecting place.

* WebCoreSupport/ChromeClientBlackBerry.cpp:
(WebCore::ChromeClientBlackBerry::createWindow):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142117 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[BlackBerry] Send type details with IMF mask as part of focus gained.
mifenton@rim.com [Thu, 7 Feb 2013 15:07:03 +0000 (15:07 +0000)]
[BlackBerry] Send type details with IMF mask as part of focus gained.
https://bugs.webkit.org/show_bug.cgi?id=109086

Reviewed by Yong Li.

PR 292609.

Add masking options based on VKB type to the IMF mask.

Reviewed Internally by Nima Ghanavatian.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::addInputStyleMaskForKeyboardType):
(WebKit):
(BlackBerry::WebKit::InputHandler::setElementFocused):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[BlackBerry] Export mimeType in NetworkJob
mary.wu@torchmobile.com.cn [Thu, 7 Feb 2013 15:05:26 +0000 (15:05 +0000)]
[BlackBerry] Export mimeType in NetworkJob
https://bugs.webkit.org/show_bug.cgi?id=109002

Reviewed by Yong Li.

NetworkJob will analysize resource mimetype and set it to resourceResponse,
we will pass it on to be used by other Streams like download stream.

RIM bug# 284408, internally reviewed by Liam Quinn.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::mimeType):
(WebCore):
* platform/network/blackberry/NetworkJob.h:
(NetworkJob):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142115 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: support JavaScript variable mutation in protocol and V8 bindings
commit-queue@webkit.org [Thu, 7 Feb 2013 15:00:13 +0000 (15:00 +0000)]
Web Inspector: support JavaScript variable mutation in protocol and V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=107829

Source/WebCore:

A new command is added to protocol description and the call is passed through
debugger agent through injected script and debugger script down to V8 mirror
API. JSC bindings got a thorw exception stub.

Only declarative JavaScript scopes are supported (local, closure, catch). Other
scopes (global, with) are not supported by V8 and not supported by protocol, because
manual approach (direct property assigment) is available for them in form of evaluate
commands and is more desirable because of a complex nature of operation (it can throw
exception in several cases such as exception in setter function).

Patch by Peter Rybin <prybin@chromium.org> on 2013-02-07
Reviewed by Pavel Feldman.

Test: inspector-protocol/debugger-setVariableValue.html

* bindings/js/JSInjectedScriptHostCustom.cpp:
(WebCore::JSInjectedScriptHost::setFunctionVariableValue):
(WebCore):
* bindings/js/JSJavaScriptCallFrameCustom.cpp:
(WebCore::JSJavaScriptCallFrame::setVariableValue):
(WebCore):
* bindings/v8/DebuggerScript.js:
(.):
* bindings/v8/JavaScriptCallFrame.cpp:
(WebCore::JavaScriptCallFrame::setVariableValue):
(WebCore):
* bindings/v8/JavaScriptCallFrame.h:
(JavaScriptCallFrame):
* bindings/v8/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::setFunctionVariableValue):
(WebCore):
* bindings/v8/ScriptDebugServer.h:
(ScriptDebugServer):
* bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
(WebCore::V8InjectedScriptHost::setFunctionVariableValueCallback):
(WebCore):
* bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp:
(WebCore::V8JavaScriptCallFrame::setVariableValueCallback):
(WebCore):
* inspector/InjectedScript.cpp:
(WebCore::InjectedScript::setVariableValue):
(WebCore):
* inspector/InjectedScript.h:
(InjectedScript):
* inspector/InjectedScriptHost.idl:
* inspector/InjectedScriptSource.js:
(.):
* inspector/Inspector.json:
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::getFunctionDetails):
(WebCore::InspectorDebuggerAgent::setVariableValue):
(WebCore):
* inspector/InspectorDebuggerAgent.h:
(InspectorDebuggerAgent):
* inspector/JavaScriptCallFrame.idl:

LayoutTests:

Patch by Peter Rybin <prybin@chromium.org> on 2013-02-07
Reviewed by Pavel Feldman.

* inspector-protocol/debugger-setVariableValue-expected.txt: Added.
* inspector-protocol/debugger-setVariableValue.html: Added.
* inspector/console/command-line-api-expected.txt:
* platform/chromium/inspector-protocol/debugger-setVariableValue-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142114 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: reduce number of native memory instrumentation categories
yurys@chromium.org [Thu, 7 Feb 2013 14:56:30 +0000 (14:56 +0000)]
Web Inspector: reduce number of native memory instrumentation categories
https://bugs.webkit.org/show_bug.cgi?id=109146

Reviewed by Pavel Feldman.

Fix layout tests that started failing after r142081.

* inspector/profiler/memory-instrumentation-cached-images-expected.txt:
* inspector/profiler/memory-instrumentation-cached-images.html:
* inspector/profiler/memory-instrumentation-canvas-expected.txt:
* inspector/profiler/memory-instrumentation-canvas.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142113 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
caio.oliveira@openbossa.org [Thu, 7 Feb 2013 14:47:50 +0000 (14:47 +0000)]
[CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
https://bugs.webkit.org/show_bug.cgi?id=108990

.:

Reviewed by Noam Rosenthal.

Add a new test that allow us to remove the fixed positioning of a layer but still keeping
it compositing. Coordinated Graphics had a bug where the CoordinatedSceneGraph would still
count this layer as fixed position.

* ManualTests/remove-fixed-position-but-keep-compositing.html: Added.

Source/WebCore:

Reviewed by Noam Rosenthal.

WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
don't need to traverse the tree every frame to get this information.

The function ScrollingCoordinator::setLayerIsFixedToContainerLayer() is called when
RenderLayerBacking is updating its graphics layers.

The new code also works in new situations where the previous was broken: if a layer changed
from being fixed to not fixed (but still kept as a layer for other reasons), the layer will
be correctly updated. Previous implementation only had logic to mark layers as fixed, but
not the other way round. A manual test was added to illustrate the solved problem.

Testing was done with the existing manual tests that make use of "position:fixed". Automatic
tests are mostly not affected by this because usage of this information affects only the
UseFixedLayout mode, not used by default in WebKitTestRunner. Work to improve this situation
will be tracked in bug https://bugs.webkit.org/show_bug.cgi?id=109175.

* CMakeLists.txt:
* Target.pri:
* WebCore.pri:
* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::ScrollingCoordinator::create): create specific version of ScrollingCoordinator.
* page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp: Added.
(WebCore):
(WebCore::ScrollingCoordinatorCoordinatedGraphics::ScrollingCoordinatorCoordinatedGraphics):
(WebCore::ScrollingCoordinatorCoordinatedGraphics::setLayerIsFixedToContainerLayer):
update layer information using existing hook in ScrollingCoordinator.
* page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h: Added.
(WebCore):
(ScrollingCoordinatorCoordinatedGraphics):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setFixedToViewport): now that setting viewport is not
embedded in the synchronization work, we need to mark the layer so it is updated in the
next frame.
(WebCore):
(WebCore::CoordinatedGraphicsLayer::flushCompositingState): remove call to syncFixedLayers().
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
(CoordinatedGraphicsLayerClient): remove now unused syncFixedLayers() from client.
(CoordinatedGraphicsLayer):

Source/WebKit2:

Reviewed by Noam Rosenthal.
Signed off for WebKit2 by Simon Fraser.

WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
don't need to traverse the tree every frame to get this information.

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
and are not needed anymore.
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
Coordinated Graphics.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142112 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoSource/WebCore: REGRESSION (r140778): Calendar Picker doesn't open when the element...
keishi@webkit.org [Thu, 7 Feb 2013 14:42:20 +0000 (14:42 +0000)]
Source/WebCore: REGRESSION (r140778): Calendar Picker doesn't open when the element has the required attribute
https://bugs.webkit.org/show_bug.cgi?id=109136

Reviewed by Kent Tamura.

Calendar picker was using the "Clear" button to calculate the window width.
Since it doesn't exist when the input element has a required attribute,
it was throwing an error. This patch fixes the width calculating logic.

Tests: platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-ar.html
       platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required.html

* Resources/pagepopups/calendarPicker.css:
(.today-clear-area):
* Resources/pagepopups/calendarPicker.js:
(CalendarPicker.prototype.fixWindowSize): Fixing the logic to calculate
the width. We don't want to use clear button because it doesn't exist
when a value is required.

LayoutTests: REGRESSION (r140778): Calendar Picker doesn't open when the element has the required attribute
https://bugs.webkit.org/show_bug.cgi?id=108055

Reviewed by Kent Tamura.

* platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-ar-expected.png: Added.
* platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-expected.png: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-ar-expected.txt: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-ar.html: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-expected.txt: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required.html: Added.
* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142111 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt] Unreviewed gardening. Skip failing test.
kadam@inf.u-szeged.hu [Thu, 7 Feb 2013 14:32:30 +0000 (14:32 +0000)]
[Qt] Unreviewed gardening. Skip failing test.

* platform/qt/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142110 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed, rolling out r142090.
gavinp@chromium.org [Thu, 7 Feb 2013 14:20:04 +0000 (14:20 +0000)]
Unreviewed, rolling out r142090.
http://trac.webkit.org/changeset/142090
https://bugs.webkit.org/show_bug.cgi?id=108466

lots of selection expectations failures

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/public/WebTask.h:
(WebTaskList):
* DumpRenderTree/chromium/TestRunner/public/WebTestCommon.h: Removed.
* DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h:
(WebTestInterfaces):
* DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:
(WebTestProxyBase):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
(WebTestRunner::AccessibilityUIElement::AccessibilityUIElement):
(WebTestRunner::AccessibilityUIElementList::getOrCreate):
(WebTestRunner::AccessibilityUIElementList::createRoot):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h:
(AccessibilityUIElementList):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.cpp:
(WebTestRunner::CppBoundClass::~CppBoundClass):
(WebTestRunner::CppBoundClass::invoke):
(WebTestRunner::CppBoundClass::getProperty):
(WebTestRunner::CppBoundClass::setProperty):
(WebTestRunner::CppBoundClass::bindCallback):
(WebTestRunner::CppBoundClass::bindGetterCallback):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::getAsCppVariant):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.h:
(WebTestRunner):
(CppBoundClass):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::bindFallbackCallback):
(WebTestRunner::CppBoundClass::bindFallbackMethod):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.cpp:
(WebTestRunner::CppVariant::toString):
(WebTestRunner::CppVariant::toInt32):
(WebTestRunner::CppVariant::toDouble):
(WebTestRunner::CppVariant::toBoolean):
(WebTestRunner::CppVariant::toStringVector):
(WebTestRunner::CppVariant::invoke):
(WebTestRunner::CppVariant::invokeDefault):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.h:
(CppVariant):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::reset):
(WebTestRunner::EventSender::mouseDown):
(WebTestRunner::EventSender::mouseUp):
(WebTestRunner::EventSender::mouseMoveTo):
(WebTestRunner::EventSender::keyDown):
(WebTestRunner::EventSender::dispatchMessage):
(WebTestRunner::EventSender::leapForward):
(WebTestRunner::EventSender::replaySavedEvents):
(WebTestRunner::makeMenuItemStringsFor):
(WebTestRunner::EventSender::contextClick):
(WebTestRunner::EventSender::beginDragWithFiles):
(WebTestRunner::EventSender::addTouchPoint):
(WebTestRunner::EventSender::releaseTouchPoint):
(WebTestRunner::EventSender::updateTouchPoint):
(WebTestRunner::EventSender::cancelTouchPoint):
(WebTestRunner::EventSender::sendCurrentTouchEvent):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/KeyCodeMapping.cpp:
(WebTestRunner::NativeKeyCodeForWindowsKeyCode):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.cpp:
(MockGrammarCheck::checkGrammarOfString):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.h:
(MockGrammarCheck):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp:
(append):
(isNotASCIIAlpha):
(MockSpellCheck::spellCheckWord):
(MockSpellCheck::initializeIfNeeded):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.h:
(MockSpellCheck):
* DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp:
(WebTestRunner::SpellCheckClient::checkTextOfParagraph):
(WebTestRunner::SpellCheckClient::finishLastTextCheck):
* DumpRenderTree/chromium/TestRunner/src/TestCommon.h: Removed.
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(WebTestRunner::TestInterfaces::TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.h:
(TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
(WebTestRunner::TestPlugin::TestPlugin):
(WebTestRunner::TestPlugin::initialize):
(WebTestRunner::TestPlugin::destroy):
(WebTestRunner::TestPlugin::parsePrimitive):
(WebTestRunner::TestPlugin::parseColor):
(WebTestRunner::TestPlugin::initProgram):
(WebTestRunner::TestPlugin::initPrimitive):
(WebTestRunner::TestPlugin::drawPrimitive):
(WebTestRunner::TestPlugin::loadShader):
(WebTestRunner::TestPlugin::loadProgram):
(WebTestRunner::TestPlugin::handleDragStatusUpdate):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.h:
(TestPlugin):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::WorkQueue::processWorkSoon):
(WebTestRunner::TestRunner::WorkQueue::processWork):
(WebTestRunner::TestRunner::WorkQueue::reset):
(WebTestRunner::TestRunner::WorkQueue::addWork):
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::reset):
(WebTestRunner::TestRunner::policyDelegateDone):
(WebTestRunner::TestRunner::findString):
(WebTestRunner::TestRunner::setTextSubpixelPositioning):
(WebTestRunner::TestRunner::overridePreference):
(WebTestRunner):
(WebTestRunner::TestRunner::setBackingScaleFactor):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(WebTestRunner::TestRunner::WorkQueue::isEmpty):
(TestRunner):
* DumpRenderTree/chromium/TestRunner/src/TextInputController.cpp:
(WebTestRunner::TextInputController::markedRange):
(WebTestRunner::TextInputController::selectedRange):
(WebTestRunner::TextInputController::firstRectForCharacterRange):
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
* DumpRenderTree/chromium/TestRunner/src/WebTask.cpp:
(WebTestRunner):
(WebTestRunner::WebTaskList::WebTaskList):
(WebTestRunner::WebTaskList::~WebTaskList):
(WebTestRunner::WebTaskList::registerTask):
(WebTestRunner::WebTaskList::unregisterTask):
(WebTestRunner::WebTaskList::revokeAll):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestRunner::WebTestInterfaces::WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::~WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::testInterfaces):
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
(WebTestRunner::WebTestProxyBase::~WebTestProxyBase):
(WebTestRunner::WebTestProxyBase::spellCheckClient):
(WebTestRunner::WebTestProxyBase::registerIntentService):
(WebTestRunner::WebTestProxyBase::dispatchIntent):
(WebTestRunner::WebTestProxyBase::assignIdentifierToRequest):
* DumpRenderTree/chromium/TestRunner/src/config.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142109 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed build fix. libWebCore.la needs to be relinked when
kov@webkit.org [Thu, 7 Feb 2013 14:14:29 +0000 (14:14 +0000)]
Unreviewed build fix. libWebCore.la needs to be relinked when
symbols.filter changes.

* GNUmakefile.am: add symbols.filter as a dependency for the
libWebCore.la library.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142108 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: Closure compilation fixes
vsevik@chromium.org [Thu, 7 Feb 2013 13:56:05 +0000 (13:56 +0000)]
Web Inspector: Closure compilation fixes
https://bugs.webkit.org/show_bug.cgi?id=109131

Reviewed by Yury Semikhatsky.

* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel):
* inspector/front-end/FileSystemMapping.js:
(WebInspector.FileSystemMappingImpl.prototype.uriPrefixForPathPrefix):
* inspector/front-end/IsolatedFileSystemModel.js:
(WebInspector.IsolatedFileSystemModel.prototype._fileSystemRemoved):
* inspector/front-end/SidebarPane.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142107 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt] Unreviwed gardening. Rebaselining and skipping new failures.
kadam@inf.u-szeged.hu [Thu, 7 Feb 2013 13:51:17 +0000 (13:51 +0000)]
[Qt] Unreviwed gardening. Rebaselining and skipping new failures.

Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2013-02-07

* platform/qt/TestExpectations:
* platform/qt/fast/dynamic/002-expected.txt:
* platform/qt/fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Added.
* platform/qt/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142106 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed build fix after r141196 for 32 bits autotools.
kov@webkit.org [Thu, 7 Feb 2013 13:48:46 +0000 (13:48 +0000)]
Unreviewed build fix after r141196 for 32 bits autotools.

* Source/autotools/symbols.filter: restore 32 bits version of the
WebCore::TextIterator::getLocationAndLengthFromRange(WebCore::Node*,
WebCore::Range const*, unsigned int&, unsigned int&) symbol.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142105 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests state, renderbuffers, and reading folders.
gman@chromium.org [Thu, 7 Feb 2013 13:47:21 +0000 (13:47 +0000)]
Add WebGL Conformance Tests state, renderbuffers, and reading folders.
https://bugs.webkit.org/show_bug.cgi?id=109121

Reviewed by Kenneth Russell.

* webgl/conformance/reading/read-pixels-pack-alignment-expected.txt: Added.
* webgl/conformance/reading/read-pixels-pack-alignment.html: Added.
* webgl/conformance/renderbuffers/framebuffer-state-restoration-expected.txt: Added.
* webgl/conformance/renderbuffers/framebuffer-state-restoration.html: Added.
* webgl/conformance/renderbuffers/framebuffer-test-expected.txt: Added.
* webgl/conformance/renderbuffers/framebuffer-test.html: Added.
* webgl/conformance/renderbuffers/renderbuffer-initialization-expected.txt: Added.
* webgl/conformance/renderbuffers/renderbuffer-initialization.html: Added.
* webgl/conformance/state/gl-enable-enum-test-expected.txt: Added.
* webgl/conformance/state/gl-enable-enum-test.html: Added.
* webgl/conformance/state/gl-enum-tests-expected.txt: Added.
* webgl/conformance/state/gl-enum-tests.html: Added.
* webgl/conformance/state/gl-get-calls-expected.txt: Added.
* webgl/conformance/state/gl-get-calls.html: Added.
* webgl/conformance/state/gl-geterror-expected.txt: Added.
* webgl/conformance/state/gl-geterror.html: Added.
* webgl/conformance/state/gl-getstring-expected.txt: Added.
* webgl/conformance/state/gl-getstring.html: Added.
* webgl/resources/webgl_test_files/conformance/reading/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/reading/read-pixels-pack-alignment.html: Added.
* webgl/resources/webgl_test_files/conformance/renderbuffers/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/renderbuffers/framebuffer-state-restoration.html: Added.
* webgl/resources/webgl_test_files/conformance/renderbuffers/framebuffer-test.html: Added.
* webgl/resources/webgl_test_files/conformance/renderbuffers/renderbuffer-initialization.html: Added.
* webgl/resources/webgl_test_files/conformance/state/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-enable-enum-test.html: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-enum-tests.html: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-get-calls.html: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-geterror.html: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-getstring.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142104 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed, rolling out r142077.
haraken@chromium.org [Thu, 7 Feb 2013 13:37:24 +0000 (13:37 +0000)]
Unreviewed, rolling out r142077.
http://trac.webkit.org/changeset/142077
https://bugs.webkit.org/show_bug.cgi?id=108579

fast/filesystem/workers/file-writer-empty-blob.html is broken

* bindings/v8/DOMDataStore.h:
(WebCore::DOMDataStore::setWrapperInObject):
* bindings/v8/DOMWrapperWorld.h:
(DOMWrapperWorld):
(WebCore::DOMWrapperWorld::isolated):
* bindings/v8/V8Binding.h:
(WebCore):
(WebCore::worldForEnteredContextIfIsolated):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::initializeIfNeeded):
* bindings/v8/V8GCController.cpp:
(WebCore::WrapperVisitor::WrapperVisitor):
(WebCore):
(WebCore::gcTree):
(WebCore::V8GCController::didCreateWrapperForNode):
(WebCore::V8GCController::gcPrologue):
(WebCore::V8GCController::minorGCPrologue):
(WebCore::V8GCController::majorGCPrologue):
* bindings/v8/V8GCController.h:
(V8GCController):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142103 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests rendering folder.
gman@chromium.org [Thu, 7 Feb 2013 13:36:25 +0000 (13:36 +0000)]
Add WebGL Conformance Tests rendering folder.
https://bugs.webkit.org/show_bug.cgi?id=109122

Reviewed by Kenneth Russell.

* webgl/conformance/rendering/culling-expected.txt: Added.
* webgl/conformance/rendering/culling.html: Added.
* webgl/conformance/rendering/draw-arrays-out-of-bounds-expected.txt: Added.
* webgl/conformance/rendering/draw-arrays-out-of-bounds.html: Added.
* webgl/conformance/rendering/draw-elements-out-of-bounds-expected.txt: Added.
* webgl/conformance/rendering/draw-elements-out-of-bounds.html: Added.
* webgl/conformance/rendering/gl-clear-expected.txt: Added.
* webgl/conformance/rendering/gl-clear.html: Added.
* webgl/conformance/rendering/gl-drawelements-expected.txt: Added.
* webgl/conformance/rendering/gl-drawelements.html: Added.
* webgl/conformance/rendering/gl-scissor-fbo-test-expected.txt: Added.
* webgl/conformance/rendering/gl-scissor-fbo-test.html: Added.
* webgl/conformance/rendering/line-loop-tri-fan-expected.txt: Added.
* webgl/conformance/rendering/line-loop-tri-fan.html: Added.
* webgl/conformance/rendering/simple-expected.txt: Added.
* webgl/conformance/rendering/simple.html: Added.
* webgl/conformance/rendering/triangle-expected.txt: Added.
* webgl/conformance/rendering/triangle.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/rendering/culling.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/draw-arrays-out-of-bounds.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/draw-elements-out-of-bounds.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/gl-clear.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/gl-drawelements.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/gl-scissor-fbo-test.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/line-loop-tri-fan.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/simple.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/triangle.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/vertex-texture-fetch.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142102 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed. Rolled DEPS.
senorblanco@chromium.org [Thu, 7 Feb 2013 13:20:27 +0000 (13:20 +0000)]
Unreviewed.  Rolled DEPS.

* DEPS:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142101 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests programs folder.
gman@chromium.org [Thu, 7 Feb 2013 13:05:32 +0000 (13:05 +0000)]
Add WebGL Conformance Tests programs folder.
https://bugs.webkit.org/show_bug.cgi?id=109120

Reviewed by Kenneth Russell.

* webgl/conformance/programs/get-active-test-expected.txt: Added.
* webgl/conformance/programs/get-active-test.html: Added.
* webgl/conformance/programs/gl-bind-attrib-location-test-expected.txt: Added.
* webgl/conformance/programs/gl-bind-attrib-location-test.html: Added.
* webgl/conformance/programs/gl-get-active-attribute-expected.txt: Added.
* webgl/conformance/programs/gl-get-active-attribute.html: Added.
* webgl/conformance/programs/gl-get-active-uniform-expected.txt: Added.
* webgl/conformance/programs/gl-get-active-uniform.html: Added.
* webgl/conformance/programs/gl-getshadersource-expected.txt: Added.
* webgl/conformance/programs/gl-getshadersource.html: Added.
* webgl/conformance/programs/gl-shader-test-expected.txt: Added.
* webgl/conformance/programs/gl-shader-test.html: Added.
* webgl/conformance/programs/invalid-UTF-16-expected.txt: Added.
* webgl/conformance/programs/invalid-UTF-16.html: Added.
* webgl/conformance/programs/use-program-crash-with-discard-in-fragment-shader-expected.txt: Added.
* webgl/conformance/programs/use-program-crash-with-discard-in-fragment-shader.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/programs/get-active-test.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-bind-attrib-location-test.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-get-active-attribute.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-get-active-uniform.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-getshadersource.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-shader-test.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/invalid-UTF-16.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/use-program-crash-with-discard-in-fragment-shader.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142100 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoCall XSSAuditor.filterToken() from threaded HTML parser
tonyg@chromium.org [Thu, 7 Feb 2013 13:01:02 +0000 (13:01 +0000)]
Call XSSAuditor.filterToken() from threaded HTML parser
https://bugs.webkit.org/show_bug.cgi?id=107603

Reviewed by Adam Barth.

With this patch we now pass 180 of 182 tests in http/tests/security/xssAuditor.

We do this by creating aan XSSAuditor on the main thread and passing ownership of them to the BackgroundHTMLParser upon its creation.

Then the background thread calls filterToken() and stores the resulting XSSInfo (if any) on the CompactHTMLToken for the main thread to handle.

This involved trimming the XSSAuditor to only depend on the TextEncoding instead of the whole TextResourceDecoder.

No new tests because covered by existing tests.

* html/parser/BackgroundHTMLParser.cpp:
(WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
(WebCore::BackgroundHTMLParser::pumpTokenizer):
(WebCore::BackgroundHTMLParser::createPartial):
* html/parser/BackgroundHTMLParser.h:
(WebCore):
(WebCore::BackgroundHTMLParser::create):
(BackgroundHTMLParser):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::pumpTokenizer):
(WebCore::HTMLDocumentParser::startBackgroundParser):
* html/parser/HTMLSourceTracker.cpp:
(WebCore::HTMLSourceTracker::start):
(WebCore::HTMLSourceTracker::end):
* html/parser/HTMLSourceTracker.h: Change the HTMLInputStream args to SegmentedString because the background thread only has a BackgroundHTMLInputStream.
(HTMLSourceTracker):
* html/parser/HTMLViewSourceParser.cpp:
(WebCore::HTMLViewSourceParser::pumpTokenizer):
* html/parser/XSSAuditor.cpp:
(WebCore::fullyDecodeString):
(WebCore::XSSAuditor::XSSAuditor):
(WebCore::XSSAuditor::init): Copies necessary to make isSafeToSendToAnotherThread() happy.
(WebCore::XSSAuditor::decodedSnippetForName):
(WebCore::XSSAuditor::decodedSnippetForAttribute):
(WebCore::XSSAuditor::decodedSnippetForJavaScript):
(WebCore::XSSAuditor::isSafeToSendToAnotherThread): Check that all String and KURL members are safe to send to another thread.
(WebCore):
* html/parser/XSSAuditor.h:
(WebCore):
(WebCore::FilterTokenRequest::FilterTokenRequest):
(FilterTokenRequest):
(XSSAuditor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142099 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests context folder.
gman@chromium.org [Thu, 7 Feb 2013 12:57:12 +0000 (12:57 +0000)]
Add WebGL Conformance Tests context folder.
https://bugs.webkit.org/show_bug.cgi?id=109114

Reviewed by Kenneth Russell.

* webgl/conformance/context/constants-expected.txt: Added.
* webgl/conformance/context/constants.html: Added.
* webgl/conformance/context/context-attributes-alpha-depth-stencil-antialias-expected.txt: Added.
* webgl/conformance/context/context-attributes-alpha-depth-stencil-antialias.html: Added.
* webgl/conformance/context/context-lost-expected.txt: Added.
* webgl/conformance/context/context-lost-restored-expected.txt: Added.
* webgl/conformance/context/context-lost-restored.html: Added.
* webgl/conformance/context/context-lost.html: Added.
* webgl/conformance/context/context-release-upon-reload-expected.txt: Added.
* webgl/conformance/context/context-release-upon-reload.html: Added.
* webgl/conformance/context/context-release-with-workers-expected.txt: Added.
* webgl/conformance/context/context-release-with-workers.html: Added.
* webgl/conformance/context/context-type-test-expected.txt: Added.
* webgl/conformance/context/context-type-test.html: Added.
* webgl/conformance/context/incorrect-context-object-behaviour-expected.txt: Added.
* webgl/conformance/context/incorrect-context-object-behaviour.html: Added.
* webgl/conformance/context/methods-expected.txt: Added.
* webgl/conformance/context/methods.html: Added.
* webgl/conformance/context/premultiplyalpha-test-expected.txt: Added.
* webgl/conformance/context/premultiplyalpha-test.html: Added.
* webgl/conformance/context/resource-sharing-test-expected.txt: Added.
* webgl/conformance/context/resource-sharing-test.html: Added.
* webgl/resources/webgl_test_files/conformance/context/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/context/constants.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-attributes-alpha-depth-stencil-antialias.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-lost-restored.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-lost.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-release-upon-reload.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-release-with-workers.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-type-test.html: Added.
* webgl/resources/webgl_test_files/conformance/context/incorrect-context-object-behaviour.html: Added.
* webgl/resources/webgl_test_files/conformance/context/methods.html: Added.
* webgl/resources/webgl_test_files/conformance/context/premultiplyalpha-test.html: Added.
* webgl/resources/webgl_test_files/conformance/context/resource-sharing-test.html: Added.
* webgl/resources/webgl_test_files/conformance/context/resources/context-release-child-with-worker.html: Added.
* webgl/resources/webgl_test_files/conformance/context/resources/context-release-upon-reload-child.html: Added.
* webgl/resources/webgl_test_files/conformance/context/resources/context-release-worker.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142098 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests uniforms folder.
gman@chromium.org [Thu, 7 Feb 2013 12:43:21 +0000 (12:43 +0000)]
Add WebGL Conformance Tests uniforms folder.
https://bugs.webkit.org/show_bug.cgi?id=109112

Reviewed by Kenneth Russell.

* webgl/conformance/uniforms/gl-uniform-bool-expected.txt: Added.
* webgl/conformance/uniforms/gl-uniform-bool.html: Added.
* webgl/conformance/uniforms/gl-uniformmatrix4fv-expected.txt: Added.
* webgl/conformance/uniforms/gl-uniformmatrix4fv.html: Added.
* webgl/conformance/uniforms/gl-unknown-uniform-expected.txt: Added.
* webgl/conformance/uniforms/gl-unknown-uniform.html: Added.
* webgl/conformance/uniforms/null-uniform-location-expected.txt: Added.
* webgl/conformance/uniforms/null-uniform-location.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-bool.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-packing-restrictions.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-struct-unused.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-unused-array-elements-get-truncated.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniformmatrix4fv.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-unknown-uniform.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/null-uniform-location.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/out-of-bounds-uniform-array-access.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142097 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests canvas folder.
gman@chromium.org [Thu, 7 Feb 2013 12:39:03 +0000 (12:39 +0000)]
Add WebGL Conformance Tests canvas folder.
https://bugs.webkit.org/show_bug.cgi?id=109113

Reviewed by Kenneth Russell.

* webgl/conformance/canvas/canvas-test-expected.txt: Added.
* webgl/conformance/canvas/canvas-test.html: Added.
* webgl/conformance/canvas/canvas-zero-size-expected.txt: Added.
* webgl/conformance/canvas/canvas-zero-size.html: Added.
* webgl/conformance/canvas/drawingbuffer-hd-dpi-test-expected.txt: Added.
* webgl/conformance/canvas/drawingbuffer-hd-dpi-test.html: Added.
* webgl/conformance/canvas/drawingbuffer-static-canvas-test-expected.txt: Added.
* webgl/conformance/canvas/drawingbuffer-static-canvas-test.html: Added.
* webgl/conformance/canvas/framebuffer-bindings-unaffected-on-resize-expected.txt: Added.
* webgl/conformance/canvas/framebuffer-bindings-unaffected-on-resize.html: Added.
* webgl/conformance/canvas/texture-bindings-unaffected-on-resize-expected.txt: Added.
* webgl/conformance/canvas/texture-bindings-unaffected-on-resize.html: Added.
* webgl/conformance/canvas/viewport-unchanged-upon-resize-expected.txt: Added.
* webgl/conformance/canvas/viewport-unchanged-upon-resize.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/canvas/canvas-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/canvas-zero-size.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/drawingbuffer-hd-dpi-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/drawingbuffer-static-canvas-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/framebuffer-bindings-unaffected-on-resize.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/texture-bindings-unaffected-on-resize.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/viewport-unchanged-upon-resize.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
michael.bruning@digia.com [Thu, 7 Feb 2013 12:34:08 +0000 (12:34 +0000)]
[Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
https://bugs.webkit.org/show_bug.cgi?id=108473

Reviewed by Simon Hausmann.
Signed off for WebKit2 by Benjamin Poulain.

This patch removes the QtWebPageLoadClient and moves the functionality into the
QQuickWebViewPrivate as most callback methods are calling the private webview
indirectly anyway.

The patch also moves as much of the functionality to the C API as is possible with
the current C API.

* Target.pri:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::initialize):
(QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
(QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
(QQuickWebViewPrivate::didFailLoad):
(QQuickWebViewPrivate::didCommitLoadForFrame):
(QQuickWebViewPrivate::didFinishLoadForFrame):
(QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
(QQuickWebViewPrivate::didReceiveTitleForFrame):
(QQuickWebViewPrivate::didStartProgress):
(QQuickWebViewPrivate::didChangeProgress):
(QQuickWebViewPrivate::didFinishProgress):
(QQuickWebViewPrivate::didChangeBackForwardList):
(QQuickWebViewPrivate::setTransparentBackground):
(QQuickWebViewPrivate::transparentBackground):
(QQuickWebViewPrivate::loadProgressDidChange):
* UIProcess/API/qt/qquickwebview_p.h:
(WebKit):
* UIProcess/API/qt/qquickwebview_p_p.h:
(WebKit):
(QQuickWebViewPrivate):
* UIProcess/qt/QtWebError.cpp:
(WebKit::QtWebError::url):
* UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
* UIProcess/qt/QtWebPageLoadClient.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142095 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[GTK][AC] Implement opacity animation with clutter ac backend
commit-queue@webkit.org [Thu, 7 Feb 2013 12:21:43 +0000 (12:21 +0000)]
[GTK][AC] Implement opacity animation with clutter ac backend
https://bugs.webkit.org/show_bug.cgi?id=108961

Patch by ChangSeok Oh <shivamidow@gmail.com> on 2013-02-07
Reviewed by Gustavo Noronha Silva.

Source/WebCore:

Implement opacity animation with clutter ac backend.
Almost all implementations of GraphicsLayerClutter are based on mac port's one.
PlatformClutterAnimation interfaces are also similar with mac port, but they are implemented
with native clutter APIs.
This patch includes only opacity animation related changes, so many APIs might be empty.
Remained animations like rotation and translate will be dealt in another patches.

Covered by existing animation tests.

* GNUmakefile.list.am:
* platform/graphics/clutter/GraphicsLayerActor.cpp:
(graphicsLayerActorGetAnimationForKey):
* platform/graphics/clutter/GraphicsLayerActor.h:
* platform/graphics/clutter/GraphicsLayerClutter.cpp:
(WebCore):
(WebCore::propertyIdToString):
(WebCore::animationIdentifier):
(WebCore::animationHasStepsTimingFunction):
(WebCore::GraphicsLayerClutter::setOpacity):
(WebCore::GraphicsLayerClutter::updateAnimations):
(WebCore::GraphicsLayerClutter::commitLayerChangesBeforeSublayers):
(WebCore::GraphicsLayerClutter::setupAnimation):
(WebCore::GraphicsLayerClutter::timingFunctionForAnimationValue):
(WebCore::GraphicsLayerClutter::createBasicAnimation):
(WebCore::GraphicsLayerClutter::createKeyframeAnimation):
(WebCore::GraphicsLayerClutter::setTransformAnimationKeyframes):
(WebCore::GraphicsLayerClutter::setTransformAnimationEndpoints):
(WebCore::GraphicsLayerClutter::createTransformAnimationsFromKeyframes):
(WebCore::GraphicsLayerClutter::createAnimationFromKeyframes):
(WebCore::GraphicsLayerClutter::addAnimation):
(WebCore::GraphicsLayerClutter::removeClutterAnimationFromLayer):
(WebCore::GraphicsLayerClutter::pauseClutterAnimationOnLayer):
(WebCore::GraphicsLayerClutter::setAnimationOnLayer):
(WebCore::GraphicsLayerClutter::setAnimationEndpoints):
(WebCore::GraphicsLayerClutter::setAnimationKeyframes):
(WebCore::GraphicsLayerClutter::animatedLayer):
* platform/graphics/clutter/GraphicsLayerClutter.h:
(GraphicsLayerClutter):
(WebCore::GraphicsLayerClutter::LayerPropertyAnimation::LayerPropertyAnimation):
(LayerPropertyAnimation):
(WebCore::GraphicsLayerClutter::AnimationProcessingAction::AnimationProcessingAction):
(AnimationProcessingAction):
* platform/graphics/clutter/PlatformClutterAnimation.cpp: Added.
(WebCore):
(WebCore::timelineStartedCallback):
(WebCore::toClutterAnimationMode):
(WebCore::PlatformClutterAnimation::stringToAnimatedPropertyType):
(WebCore::PlatformClutterAnimation::create):
(WebCore::PlatformClutterAnimation::PlatformClutterAnimation):
(WebCore::PlatformClutterAnimation::~PlatformClutterAnimation):
(WebCore::PlatformClutterAnimation::supportsValueFunction):
(WebCore::PlatformClutterAnimation::beginTime):
(WebCore::PlatformClutterAnimation::setBeginTime):
(WebCore::PlatformClutterAnimation::duration):
(WebCore::PlatformClutterAnimation::setDuration):
(WebCore::PlatformClutterAnimation::speed):
(WebCore::PlatformClutterAnimation::setSpeed):
(WebCore::PlatformClutterAnimation::timeOffset):
(WebCore::PlatformClutterAnimation::setTimeOffset):
(WebCore::PlatformClutterAnimation::repeatCount):
(WebCore::PlatformClutterAnimation::setRepeatCount):
(WebCore::PlatformClutterAnimation::autoreverses):
(WebCore::PlatformClutterAnimation::setAutoreverses):
(WebCore::PlatformClutterAnimation::fillMode):
(WebCore::PlatformClutterAnimation::setFillMode):
(WebCore::PlatformClutterAnimation::setTimingFunction):
(WebCore::PlatformClutterAnimation::copyTimingFunctionFrom):
(WebCore::PlatformClutterAnimation::isRemovedOnCompletion):
(WebCore::PlatformClutterAnimation::setRemovedOnCompletion):
(WebCore::PlatformClutterAnimation::isAdditive):
(WebCore::PlatformClutterAnimation::setAdditive):
(WebCore::PlatformClutterAnimation::valueFunction):
(WebCore::PlatformClutterAnimation::setValueFunction):
(WebCore::PlatformClutterAnimation::setFromValue):
(WebCore::PlatformClutterAnimation::copyFromValueFrom):
(WebCore::PlatformClutterAnimation::setToValue):
(WebCore::PlatformClutterAnimation::copyToValueFrom):
(WebCore::PlatformClutterAnimation::setValues):
(WebCore::PlatformClutterAnimation::copyValuesFrom):
(WebCore::PlatformClutterAnimation::setKeyTimes):
(WebCore::PlatformClutterAnimation::copyKeyTimesFrom):
(WebCore::PlatformClutterAnimation::setTimingFunctions):
(WebCore::PlatformClutterAnimation::copyTimingFunctionsFrom):
(WebCore::PlatformClutterAnimation::animationDidStart):
(WebCore::PlatformClutterAnimation::timeline):
(WebCore::PlatformClutterAnimation::addOpacityTransition):
(WebCore::PlatformClutterAnimation::addAnimationForKey):
(WebCore::PlatformClutterAnimation::removeAnimationForKey):
* platform/graphics/clutter/PlatformClutterAnimation.h: Added.
(WebCore):
(PlatformClutterAnimation):
(WebCore::PlatformClutterAnimation::animationType):

Source/WebKit/gtk:

Add AnimationTrigger for ac compositing.

* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::ChromeClient::allowedCompositingTriggers):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142094 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd null check to editable in moveCaretSelectionTowardsWindowPoint
commit-queue@webkit.org [Thu, 7 Feb 2013 12:18:12 +0000 (12:18 +0000)]
Add null check to editable in moveCaretSelectionTowardsWindowPoint
https://bugs.webkit.org/show_bug.cgi?id=108962

Patch by David Trainor <dtrainor@chromium.org> on 2013-02-07
Reviewed by Eric Seidel.

* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::moveCaretSelectionTowardsWindowPoint):
* tests/WebFrameTest.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142093 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd WebGL Conformance Tests texture folder.
gman@chromium.org [Thu, 7 Feb 2013 11:57:41 +0000 (11:57 +0000)]
Add WebGL Conformance Tests texture folder.
https://bugs.webkit.org/show_bug.cgi?id=109111

Reviewed by Kenneth Russell.

* webgl/conformance/textures/compressed-tex-image-expected.txt: Added.
* webgl/conformance/textures/compressed-tex-image.html: Added.
* webgl/conformance/textures/copy-tex-image-and-sub-image-2d-expected.txt: Added.
* webgl/conformance/textures/copy-tex-image-and-sub-image-2d.html: Added.
* webgl/conformance/textures/gl-get-tex-parameter-expected.txt: Added.
* webgl/conformance/textures/gl-get-tex-parameter.html: Added.
* webgl/conformance/textures/gl-teximage-expected.txt: Added.
* webgl/conformance/textures/gl-teximage.html: Added.
* webgl/conformance/textures/mipmap-fbo-expected.txt: Added.
* webgl/conformance/textures/mipmap-fbo.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-array-buffer-view-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-array-buffer-view.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgb565-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgb565.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba4444-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba4444.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba5551-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba5551.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-data.html: Added.
* webgl/conformance/textures/tex-image-and-uniform-binding-bugs-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-uniform-binding-bugs.html: Added.
* webgl/conformance/textures/tex-image-webgl-expected.txt: Added.
* webgl/conformance/textures/tex-image-webgl.html: Added.
* webgl/conformance/textures/tex-image-with-format-and-type-expected.txt: Added.
* webgl/conformance/textures/tex-image-with-format-and-type.html: Added.
* webgl/conformance/textures/tex-image-with-invalid-data-expected.txt: Added.
* webgl/conformance/textures/tex-image-with-invalid-data.html: Added.
* webgl/conformance/textures/tex-input-validation-expected.txt: Added.
* webgl/conformance/textures/tex-input-validation.html: Added.
* webgl/conformance/textures/tex-sub-image-2d-bad-args-expected.txt: Added.
* webgl/conformance/textures/tex-sub-image-2d-bad-args.html: Added.
* webgl/conformance/textures/tex-sub-image-2d-expected.txt: Added.
* webgl/conformance/textures/tex-sub-image-2d.html: Added.
* webgl/conformance/textures/texparameter-test-expected.txt: Added.
* webgl/conformance/textures/texparameter-test.html: Added.
* webgl/conformance/textures/texture-attachment-formats-expected.txt: Added.
* webgl/conformance/textures/texture-attachment-formats.html: Added.
* webgl/conformance/textures/texture-clear-expected.txt: Added.
* webgl/conformance/textures/texture-clear.html: Added.
* webgl/conformance/textures/texture-complete-expected.txt: Added.
* webgl/conformance/textures/texture-complete.html: Added.
* webgl/conformance/textures/texture-formats-test-expected.txt: Added.
* webgl/conformance/textures/texture-formats-test.html: Added.
* webgl/conformance/textures/texture-hd-dpi-expected.txt: Added.
* webgl/conformance/textures/texture-hd-dpi.html: Added.
* webgl/conformance/textures/texture-npot-expected.txt: Added.
* webgl/conformance/textures/texture-npot.html: Added.
* webgl/conformance/textures/texture-size-cube-maps-expected.txt: Added.
* webgl/conformance/textures/texture-size-cube-maps.html: Added.
* webgl/conformance/textures/texture-sub-image-cube-maps-expected.txt: Added.
* webgl/conformance/textures/texture-sub-image-cube-maps.html: Added.
* webgl/conformance/textures/texture-transparent-pixels-initialized-expected.txt: Added.
* webgl/conformance/textures/texture-transparent-pixels-initialized.html: Added.
* webgl/conformance/textures/texture-upload-cube-maps-expected.txt: Added.
* webgl/conformance/textures/texture-upload-cube-maps.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/textures/compressed-tex-image.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/copy-tex-image-and-sub-image-2d.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/gl-get-tex-parameter.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/gl-teximage.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/mipmap-fbo.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-array-buffer-view.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgb565.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba4444.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-data-rgba5551.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-data.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-uniform-binding-bugs.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-webgl.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-with-format-and-type.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-with-invalid-data.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-input-validation.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-sub-image-2d-bad-args.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-sub-image-2d.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texparameter-test.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-attachment-formats.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-clear.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-complete.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-formats-test.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-hd-dpi.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-npot.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-size-cube-maps.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-sub-image-cube-maps.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-transparent-pixels-initialized.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-upload-cube-maps.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142092 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: highlight matching braces in DTE.
commit-queue@webkit.org [Thu, 7 Feb 2013 11:51:08 +0000 (11:51 +0000)]
Web Inspector: highlight matching braces in DTE.
https://bugs.webkit.org/show_bug.cgi?id=108697

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-02-07
Reviewed by Pavel Feldman.

Source/WebCore:

Implement BraceMatcher class which for given position in textModel
will respond with enclosing brace pair for that position.
Make use of this class in DefaultTextEditor by handling
selectionChange event. Make use of this class in "_closingBlockOffset"
method of TextEditorMainPanel as this method implements similar
functionality.

New test: inspector/editor/brace-matcher.html

* inspector/front-end/DefaultTextEditor.js:
(WebInspector.TextEditorMainPanel):
(WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
(WebInspector.TextEditorMainPanel.prototype._closingBlockOffset):
(WebInspector.TextEditorMainPanel.prototype._handleSelectionChange):
(WebInspector.TextEditorMainPanel.BraceHighlightController):
(WebInspector.TextEditorMainPanel.BraceHighlightController.prototype.handleSelectionChange):
* inspector/front-end/TextEditorHighlighter.js:
(WebInspector.TextEditorHighlighter.prototype._highlightLines):
* inspector/front-end/TextEditorModel.js:
(WebInspector.TextEditorModel.endsWithBracketRegex):
(WebInspector.TextEditorModel.endsWithBracketRegex.):
* inspector/front-end/textEditor.css:
(.text-editor-brace-match):

LayoutTests:

New layout test to verify brace matching functionality. Fix some
layout test expectations as the patch removes braces from highlight
ranges.

* inspector/editor/brace-matcher-expected.txt: Added.
* inspector/editor/brace-matcher.html: Added.
* inspector/editor/highlighter-basics-expected.txt:
* inspector/editor/text-editor-long-line-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142091 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[chromium] turn TestRunner library into a component build
jochen@chromium.org [Thu, 7 Feb 2013 11:46:12 +0000 (11:46 +0000)]
[chromium] turn TestRunner library into a component build
https://bugs.webkit.org/show_bug.cgi?id=108466

Reviewed by Adam Barth.

To achieve this, we need to drop all dependencies on WTF.

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/public/WebTask.h:
* DumpRenderTree/chromium/TestRunner/public/WebTestCommon.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.
* DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h:
* DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
(WebTestRunner::AccessibilityUIElement::AccessibilityUIElement):
(WebTestRunner::AccessibilityUIElementList::getOrCreate):
(WebTestRunner::AccessibilityUIElementList::createRoot):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h:
(AccessibilityUIElementList):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.cpp:
(WebTestRunner::CppBoundClass::~CppBoundClass):
(WebTestRunner::CppBoundClass::invoke):
(WebTestRunner::CppBoundClass::getProperty):
(WebTestRunner::CppBoundClass::setProperty):
(WebTestRunner::CppBoundClass::bindCallback):
(WebTestRunner::CppBoundClass::bindGetterCallback):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::getAsCppVariant):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.h:
(WebTestRunner):
(CppBoundClass):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::bindFallbackCallback):
(WebTestRunner::CppBoundClass::bindFallbackMethod):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.cpp:
(WebTestRunner::CppVariant::toString):
(WebTestRunner::CppVariant::toInt32):
(WebTestRunner::CppVariant::toDouble):
(WebTestRunner::CppVariant::toBoolean):
(WebTestRunner::CppVariant::toStringVector):
(WebTestRunner::CppVariant::invoke):
(WebTestRunner::CppVariant::invokeDefault):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.h:
(CppVariant):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::reset):
(WebTestRunner::EventSender::mouseDown):
(WebTestRunner::EventSender::mouseUp):
(WebTestRunner::EventSender::mouseMoveTo):
(WebTestRunner::EventSender::keyDown):
(WebTestRunner::EventSender::dispatchMessage):
(WebTestRunner::EventSender::leapForward):
(WebTestRunner::EventSender::replaySavedEvents):
(WebTestRunner::makeMenuItemStringsFor):
(WebTestRunner::EventSender::contextClick):
(WebTestRunner::EventSender::beginDragWithFiles):
(WebTestRunner::EventSender::addTouchPoint):
(WebTestRunner::EventSender::releaseTouchPoint):
(WebTestRunner::EventSender::updateTouchPoint):
(WebTestRunner::EventSender::cancelTouchPoint):
(WebTestRunner::EventSender::sendCurrentTouchEvent):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/KeyCodeMapping.cpp:
(WebTestRunner::NativeKeyCodeForWindowsKeyCode):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.cpp:
(WebTestRunner::MockGrammarCheck::checkGrammarOfString):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.h:
(WebTestRunner):
(MockGrammarCheck):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp:
(WebTestRunner::MockSpellCheck::spellCheckWord):
(WebTestRunner::MockSpellCheck::initializeIfNeeded):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.h:
(MockSpellCheck):
* DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp:
(WebTestRunner::SpellCheckClient::checkTextOfParagraph):
(WebTestRunner::SpellCheckClient::finishLastTextCheck):
* DumpRenderTree/chromium/TestRunner/src/TestCommon.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.
(isASCIIAlpha):
(isNotASCIIAlpha):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(WebTestRunner::TestInterfaces::TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.h:
(TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
(WebTestRunner::TestPlugin::TestPlugin):
(WebTestRunner::TestPlugin::initialize):
(WebTestRunner::TestPlugin::destroy):
(WebTestRunner::TestPlugin::parsePrimitive):
(WebTestRunner::TestPlugin::parseColor):
(WebTestRunner::TestPlugin::initProgram):
(WebTestRunner::TestPlugin::initPrimitive):
(WebTestRunner::TestPlugin::drawPrimitive):
(WebTestRunner::TestPlugin::loadShader):
(WebTestRunner::TestPlugin::loadProgram):
(WebTestRunner::TestPlugin::handleDragStatusUpdate):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.h:
(TestPlugin):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::WorkQueue::processWorkSoon):
(WebTestRunner::TestRunner::WorkQueue::processWork):
(WebTestRunner::TestRunner::WorkQueue::reset):
(WebTestRunner::TestRunner::WorkQueue::addWork):
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::reset):
(WebTestRunner::TestRunner::policyDelegateDone):
(WebTestRunner::TestRunner::findString):
(WebTestRunner::TestRunner::setTextSubpixelPositioning):
(WebTestRunner::TestRunner::overridePreference):
(WebTestRunner::TestRunner::deliverWebIntent):
(WebTestRunner::TestRunner::setBackingScaleFactor):
(WebTestRunner::TestRunner::simulateLegacyWebNotificationClick):
(WebTestRunner::TestRunner::setMockSpeechInputDumpRect):
(WebTestRunner::TestRunner::wasMockSpeechRecognitionAborted):
(WebTestRunner::TestRunner::setPointerLockWillFailSynchronously):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(WebTestRunner::TestRunner::WorkQueue::isEmpty):
(TestRunner):
* DumpRenderTree/chromium/TestRunner/src/TextInputController.cpp:
(WebTestRunner::TextInputController::markedRange):
(WebTestRunner::TextInputController::selectedRange):
(WebTestRunner::TextInputController::firstRectForCharacterRange):
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
* DumpRenderTree/chromium/TestRunner/src/WebTask.cpp:
(WebTestRunner::WebTaskList::~WebTaskList):
(WebTestRunner::WebTaskList::registerTask):
(WebTestRunner::WebTaskList::unregisterTask):
(WebTestRunner::WebTaskList::revokeAll):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestRunner::WebTestInterfaces::WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::~WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::testInterfaces):
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
(WebTestRunner::WebTestProxyBase::~WebTestProxyBase):
(WebTestRunner::WebTestProxyBase::spellCheckClient):
(WebTestRunner::WebTestProxyBase::registerIntentService):
(WebTestRunner::WebTestProxyBase::dispatchIntent):
(WebTestRunner::WebTestProxyBase::assignIdentifierToRequest):
* DumpRenderTree/chromium/TestRunner/src/config.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142090 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed. Rolled Chromium DEPS to r180752. Requested by
commit-queue@webkit.org [Thu, 7 Feb 2013 11:21:31 +0000 (11:21 +0000)]
Unreviewed.  Rolled Chromium DEPS to r180752.  Requested by
thakis_ via sheriffbot.

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-07

* DEPS:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142089 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt] Use GNU ar's thin archive format for intermediate static libs
abecsi@webkit.org [Thu, 7 Feb 2013 11:02:10 +0000 (11:02 +0000)]
[Qt] Use GNU ar's thin archive format for intermediate static libs
https://bugs.webkit.org/show_bug.cgi?id=109052

Reviewed by Jocelyn Turcotte.

Source/JavaScriptCore:

Adjust project files that used activeBuildConfig()
to use targetSubDir().

* JavaScriptCore.pri:
* LLIntOffsetsExtractor.pro:
* Target.pri:

Tools:

With debug builds we exceed the 4GiB limit of GNU ar when creating the WebCore
intermediate static library which results in build failure even with a x86_64
toolchain (http://sourceware.org/bugzilla/show_bug.cgi?id=14625).

When using a GNU toolchain we can use the thin archive format for these static
libraries which also has the benefit of not copying the object files, thus
drastically reducing disk usage and overall compile time.

Currently qmake does not support GNU ar's thin archive format so for
now we need to do the magic in the build system as a stopgap solution.

* qmake/mkspecs/features/configure.prf:
* qmake/mkspecs/features/default_post.prf:
* qmake/mkspecs/features/functions.prf:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142088 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
rakuco@webkit.org [Thu, 7 Feb 2013 11:01:31 +0000 (11:01 +0000)]
[EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
https://bugs.webkit.org/show_bug.cgi?id=97173

Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.

Source/WebCore:

Remove codes to initialize and shutdown the EFL libraries from
RunLoopEfl.cpp. Initialization and shutdown will be done in the
ewk_main.cpp for ui process and WebProcessMainEfl.cpp for web
process.

No new tests. This patch doesn't change behavior.

* platform/efl/RunLoopEfl.cpp:
(WebCore::RunLoop::RunLoop):
(WebCore::RunLoop::~RunLoop):

Source/WebKit2:

Initialize and shutdown the EFL libraries in the ewk_main.cpp for
UIProcess and WebProcessMainEfl.cpp for WebProcess.

This allows us to shut down the libraries in a proper way, since
RunLoop persist until the process exits.

* UIProcess/API/efl/ewk_main.cpp:
(ewk_init):
(ewk_shutdown):
* WebProcess/efl/WebProcessMainEfl.cpp:
(WebKit::WebProcessMainEfl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142087 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed fix for inspector tests in debug.
loislo@chromium.org [Thu, 7 Feb 2013 10:05:43 +0000 (10:05 +0000)]
Unreviewed fix for inspector tests in debug.
m_frontend should be initialized in constructor.

* inspector/InspectorMemoryAgent.cpp:
(WebCore::InspectorMemoryAgent::InspectorMemoryAgent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142086 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoRollout r142058 various crashes and timeouts on AppleMac and Chromium
falken@chromium.org [Thu, 7 Feb 2013 09:24:51 +0000 (09:24 +0000)]
Rollout r142058 various crashes and timeouts on AppleMac and Chromium
https://bugs.webkit.org/show_bug.cgi?id=109152

Reviewed by Pavel Feldman.

Unreviewed gardening. r142058 added failing tests and marked many as
Skip or Failure but there are also Timeouts and Crashes causing
redness.

* platform/chromium/TestExpectations:
* platform/mac/TestExpectations:
* platform/win/TestExpectations:
* webgl/conformance/canvas/buffer-offscreen-test-expected.txt: Removed.
* webgl/conformance/canvas/buffer-offscreen-test.html: Removed.
* webgl/conformance/canvas/buffer-preserve-test-expected.txt: Removed.
* webgl/conformance/canvas/buffer-preserve-test.html: Removed.
* webgl/conformance/canvas/drawingbuffer-test-expected.txt: Removed.
* webgl/conformance/canvas/drawingbuffer-test.html: Removed.
* webgl/conformance/canvas/to-data-url-test-expected.txt: Removed.
* webgl/conformance/canvas/to-data-url-test.html: Removed.
* webgl/conformance/context/context-attribute-preserve-drawing-buffer-expected.txt: Removed.
* webgl/conformance/context/context-attribute-preserve-drawing-buffer.html: Removed.
* webgl/conformance/context/context-creation-and-destruction-expected.txt: Removed.
* webgl/conformance/context/context-creation-and-destruction.html: Removed.
* webgl/conformance/glsl/functions/glsl-function-smoothstep-gentype-expected.txt: Removed.
* webgl/conformance/glsl/functions/glsl-function-smoothstep-gentype.html: Removed.
* webgl/conformance/glsl/literals/float_literal.vert-expected.txt: Removed.
* webgl/conformance/glsl/literals/float_literal.vert.html: Removed.
* webgl/conformance/glsl/misc/shader-uniform-packing-restrictions-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-uniform-packing-restrictions.html: Removed.
* webgl/conformance/glsl/misc/shader-varying-packing-restrictions-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-varying-packing-restrictions.html: Removed.
* webgl/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays.html: Removed.
* webgl/conformance/glsl/misc/shader-with-global-variable-precision-mismatch-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-with-global-variable-precision-mismatch.html: Removed.
* webgl/conformance/glsl/misc/shader-with-non-reserved-words-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-with-non-reserved-words.html: Removed.
* webgl/conformance/glsl/misc/shader-with-short-circuiting-operators-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-with-short-circuiting-operators.html: Removed.
* webgl/conformance/glsl/misc/shader-with-similar-uniform-array-names-expected.txt: Removed.
* webgl/conformance/glsl/misc/shader-with-similar-uniform-array-names.html: Removed.
* webgl/conformance/glsl/misc/shaders-with-varyings-expected.txt: Removed.
* webgl/conformance/glsl/misc/shaders-with-varyings.html: Removed.
* webgl/conformance/glsl/variables/gl-pointcoord-expected.txt: Removed.
* webgl/conformance/glsl/variables/gl-pointcoord.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-A-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-A.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B1-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B1.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B2-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B2.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B3-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B3.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B4-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-B4.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-C-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-C.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-D_G-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-D_G.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-G_I-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-G_I.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-L_S-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-L_S.html: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-S_V-expected.txt: Removed.
* webgl/conformance/more/conformance/quickCheckAPI-S_V.html: Removed.
* webgl/conformance/more/functions/bufferDataBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/bufferDataBadArgs.html: Removed.
* webgl/conformance/more/functions/copyTexImage2D-expected.txt: Removed.
* webgl/conformance/more/functions/copyTexImage2D.html: Removed.
* webgl/conformance/more/functions/copyTexImage2DBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/copyTexImage2DBadArgs.html: Removed.
* webgl/conformance/more/functions/copyTexSubImage2D-expected.txt: Removed.
* webgl/conformance/more/functions/copyTexSubImage2D.html: Removed.
* webgl/conformance/more/functions/copyTexSubImage2DBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/copyTexSubImage2DBadArgs.html: Removed.
* webgl/conformance/more/functions/deleteBufferBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/deleteBufferBadArgs.html: Removed.
* webgl/conformance/more/functions/drawArrays-expected.txt: Removed.
* webgl/conformance/more/functions/drawArrays.html: Removed.
* webgl/conformance/more/functions/drawArraysOutOfBounds-expected.txt: Removed.
* webgl/conformance/more/functions/drawArraysOutOfBounds.html: Removed.
* webgl/conformance/more/functions/drawElements-expected.txt: Removed.
* webgl/conformance/more/functions/drawElements.html: Removed.
* webgl/conformance/more/functions/drawElementsBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/drawElementsBadArgs.html: Removed.
* webgl/conformance/more/functions/readPixelsBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/readPixelsBadArgs.html: Removed.
* webgl/conformance/more/functions/texImage2DBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/texImage2DBadArgs.html: Removed.
* webgl/conformance/more/functions/texImage2DHTML-expected.txt: Removed.
* webgl/conformance/more/functions/texImage2DHTML.html: Removed.
* webgl/conformance/more/functions/texSubImage2DBadArgs-expected.txt: Removed.
* webgl/conformance/more/functions/texSubImage2DBadArgs.html: Removed.
* webgl/conformance/more/functions/texSubImage2DHTML-expected.txt: Removed.
* webgl/conformance/more/functions/texSubImage2DHTML.html: Removed.
* webgl/conformance/ogles/GL/acos/acos_001_to_006-expected.txt: Removed.
* webgl/conformance/ogles/GL/acos/acos_001_to_006.html: Removed.
* webgl/conformance/ogles/GL/asin/asin_001_to_006-expected.txt: Removed.
* webgl/conformance/ogles/GL/asin/asin_001_to_006.html: Removed.
* webgl/conformance/ogles/GL/atan/atan_001_to_008-expected.txt: Removed.
* webgl/conformance/ogles/GL/atan/atan_001_to_008.html: Removed.
* webgl/conformance/ogles/GL/control_flow/control_flow_001_to_008-expected.txt: Removed.
* webgl/conformance/ogles/GL/control_flow/control_flow_001_to_008.html: Removed.
* webgl/conformance/ogles/GL/log/log_001_to_008-expected.txt: Removed.
* webgl/conformance/ogles/GL/log/log_001_to_008.html: Removed.
* webgl/conformance/ogles/GL/log2/log2_001_to_008-expected.txt: Removed.
* webgl/conformance/ogles/GL/log2/log2_001_to_008.html: Removed.
* webgl/conformance/ogles/GL/smoothstep/smoothstep_001_to_006-expected.txt: Removed.
* webgl/conformance/ogles/GL/smoothstep/smoothstep_001_to_006.html: Removed.
* webgl/conformance/programs/gl-bind-attrib-location-long-names-test-expected.txt: Removed.
* webgl/conformance/programs/gl-bind-attrib-location-long-names-test.html: Removed.
* webgl/conformance/programs/program-test-expected.txt: Removed.
* webgl/conformance/programs/program-test.html: Removed.
* webgl/conformance/reading/read-pixels-test-expected.txt: Removed.
* webgl/conformance/reading/read-pixels-test.html: Removed.
* webgl/conformance/renderbuffers/framebuffer-object-attachment-expected.txt: Removed.
* webgl/conformance/renderbuffers/framebuffer-object-attachment.html: Removed.
* webgl/conformance/rendering/gl-scissor-test-expected.txt: Removed.
* webgl/conformance/rendering/gl-scissor-test.html: Removed.
* webgl/conformance/rendering/more-than-65536-indices-expected.txt: Removed.
* webgl/conformance/rendering/more-than-65536-indices.html: Removed.
* webgl/conformance/rendering/multisample-corruption-expected.txt: Removed.
* webgl/conformance/rendering/multisample-corruption.html: Removed.
* webgl/conformance/rendering/point-size-expected.txt: Removed.
* webgl/conformance/rendering/point-size.html: Removed.
* webgl/conformance/state/gl-object-get-calls-expected.txt: Removed.
* webgl/conformance/state/gl-object-get-calls.html: Removed.
* webgl/conformance/textures/copy-tex-image-2d-formats-expected.txt: Removed.
* webgl/conformance/textures/copy-tex-image-2d-formats.html: Removed.
* webgl/conformance/textures/gl-pixelstorei-expected.txt: Removed.
* webgl/conformance/textures/gl-pixelstorei.html: Removed.
* webgl/conformance/textures/origin-clean-conformance-expected.txt: Removed.
* webgl/conformance/textures/origin-clean-conformance.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551-expected.txt: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html: Removed.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video.html: Removed.
* webgl/conformance/textures/texture-active-bind-2-expected.txt: Removed.
* webgl/conformance/textures/texture-active-bind-2.html: Removed.
* webgl/conformance/textures/texture-active-bind-expected.txt: Removed.
* webgl/conformance/textures/texture-active-bind.html: Removed.
* webgl/conformance/textures/texture-mips-expected.txt: Removed.
* webgl/conformance/textures/texture-mips.html: Removed.
* webgl/conformance/textures/texture-npot-video-expected.txt: Removed.
* webgl/conformance/textures/texture-npot-video.html: Removed.
* webgl/conformance/textures/texture-size-expected.txt: Removed.
* webgl/conformance/textures/texture-size-limit-expected.txt: Removed.
* webgl/conformance/textures/texture-size-limit.html: Removed.
* webgl/conformance/textures/texture-size.html: Removed.
* webgl/conformance/uniforms/gl-uniform-arrays-expected.txt: Removed.
* webgl/conformance/uniforms/gl-uniform-arrays.html: Removed.
* webgl/conformance/uniforms/uniform-default-values-expected.txt: Removed.
* webgl/conformance/uniforms/uniform-default-values.html: Removed.
* webgl/conformance/uniforms/uniform-location-expected.txt: Removed.
* webgl/conformance/uniforms/uniform-location.html: Removed.
* webgl/conformance/uniforms/uniform-samplers-test-expected.txt: Removed.
* webgl/conformance/uniforms/uniform-samplers-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/canvas/buffer-offscreen-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/canvas/buffer-preserve-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/canvas/drawingbuffer-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/canvas/to-data-url-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/context/context-attribute-preserve-drawing-buffer.html: Removed.
* webgl/resources/webgl_test_files/conformance/context/context-creation-and-destruction.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/functions/glsl-function-smoothstep-gentype.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/literals/float_literal.vert.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-uniform-packing-restrictions.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-varying-packing-restrictions.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-global-variable-precision-mismatch.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-non-reserved-words.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-short-circuiting-operators.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-similar-uniform-array-names.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shaders-with-varyings.html: Removed.
* webgl/resources/webgl_test_files/conformance/glsl/variables/gl-pointcoord.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-A.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B1.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B2.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B3.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B4.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-C.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-D_G.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-G_I.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-L_S.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-S_V.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/bufferDataBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexImage2D.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexImage2DBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexSubImage2D.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexSubImage2DBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/deleteBufferBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/drawArrays.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/drawArraysOutOfBounds.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/drawElements.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/drawElementsBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/readPixelsBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/texImage2DBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/texImage2DHTML.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/texSubImage2DBadArgs.html: Removed.
* webgl/resources/webgl_test_files/conformance/more/functions/texSubImage2DHTML.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/acos/acos_001_to_006.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/asin/asin_001_to_006.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/atan/atan_001_to_008.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/control_flow/control_flow_001_to_008.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/log/log_001_to_008.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/log2/log2_001_to_008.html: Removed.
* webgl/resources/webgl_test_files/conformance/ogles/GL/smoothstep/smoothstep_001_to_006.html: Removed.
* webgl/resources/webgl_test_files/conformance/programs/gl-bind-attrib-location-long-names-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/programs/program-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/reading/read-pixels-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/renderbuffers/framebuffer-object-attachment.html: Removed.
* webgl/resources/webgl_test_files/conformance/rendering/gl-scissor-test.html: Removed.
* webgl/resources/webgl_test_files/conformance/rendering/more-than-65536-indices.html: Removed.
* webgl/resources/webgl_test_files/conformance/rendering/multisample-corruption.html: Removed.
* webgl/resources/webgl_test_files/conformance/rendering/point-size.html: Removed.
* webgl/resources/webgl_test_files/conformance/state/gl-object-get-calls.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/copy-tex-image-2d-formats.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/gl-pixelstorei.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/origin-clean-conformance.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-active-bind-2.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-active-bind.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-mips.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-npot-video.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-size-limit.html: Removed.
* webgl/resources/webgl_test_files/conformance/textures/texture-size.html: Removed.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-arrays.html: Removed.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-default-values.html: Removed.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-location.html: Removed.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-samplers-test.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142084 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt] Unreviewed gardening. Skip failing WebGL tests.
kadam@inf.u-szeged.hu [Thu, 7 Feb 2013 09:11:38 +0000 (09:11 +0000)]
[Qt] Unreviewed gardening. Skip failing WebGL tests.

* platform/qt/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142083 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed build fix.
gyuyoung.kim@samsung.com [Thu, 7 Feb 2013 09:10:55 +0000 (09:10 +0000)]
Unreviewed build fix.

* UIProcess/Downloads/DownloadProxyMap.cpp:
(WebKit::DownloadProxyMap::processDidClose):
m_process can't be initialized nullptr yet. Use 0 instead of nullptr.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142082 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: reduce number of native memory instrumentation categories
yurys@chromium.org [Thu, 7 Feb 2013 09:09:22 +0000 (09:09 +0000)]
Web Inspector: reduce number of native memory instrumentation categories
https://bugs.webkit.org/show_bug.cgi?id=109146

Reviewed by Pavel Feldman.

Merged some of memory instrumentation categories.

* dom/WebCoreMemoryInstrumentation.cpp:
(WebCore):
* inspector/front-end/NativeMemorySnapshotView.js:
(WebInspector.MemoryBlockViewProperties._initialize):
* platform/PlatformMemoryInstrumentation.cpp:
(WebCore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142081 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed, rolling out r142067.
falken@chromium.org [Thu, 7 Feb 2013 09:01:49 +0000 (09:01 +0000)]
Unreviewed, rolling out r142067.
http://trac.webkit.org/changeset/142067
https://bugs.webkit.org/show_bug.cgi?id=109147

adding Slow modifier did not help completely (Requested by
falken on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-07

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142079 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Thu, 7 Feb 2013 08:59:50 +0000 (08:59 +0000)]
Unreviewed GTK gardening.

Expanding failure expectation for fast/dom/Window/slow-unload-handler.html.
Adding failure expectation for the new fast/css/negative-text-indent-in-inline-block.html
layout tests.

* platform/gtk/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142078 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[V8] Remove V8GCController::m_edenNodes and make minor DOM GC more precise
haraken@chromium.org [Thu, 7 Feb 2013 08:42:13 +0000 (08:42 +0000)]
[V8] Remove V8GCController::m_edenNodes and make minor DOM GC more precise
https://bugs.webkit.org/show_bug.cgi?id=108579

Reviewed by Adam Barth.

Currently V8GCController::m_edenNodes stores a list of nodes whose
wrappers have been created since the latest GC. The reason why we
needed m_edenNodes is that there was no way to know a list of wrappers
in the new space of V8. By using m_edenNodes, we had been approximating
'wrappers in the new space' by 'wrappers that have been created since
the latest GC'.

Now V8 provides VisitHandlesForPartialDependence(), with which WebKit
can know a list of wrappers in the new space. By using the API, we can
remove V8GCController::m_edenNodes. The benefit is that (1) we no longer
need to keep m_edenNodes and that (2) it enables more precise minor
DOM GC (Remember that m_edenNodes was just an approximation).

Performance benchmark: https://bugs.webkit.org/attachment.cgi?id=185940
The benchmark runs 300 iterations, each of which creates 100000 elements.
The benchmark measures average, min, median, max and stdev of execution times
of the 300 iterations. This will tell us the worst-case overhead of this change.

Before:
  mean=59.91ms, min=39ms, median=42ms, max=258ms, stdev=47.48ms

After:
  mean=58.75ms, min=35ms, median=41ms, max=250ms, stdev=47.32ms

As shown above, I couldn't observe any performance regression.

No tests. No change in behavior.

* bindings/v8/DOMDataStore.h:
(WebCore::DOMDataStore::setWrapperInObject):
* bindings/v8/DOMWrapperWorld.h:
(DOMWrapperWorld):
(WebCore::DOMWrapperWorld::getWorldWithoutContextCheck):
* bindings/v8/V8Binding.h:
(WebCore):
(WebCore::worldForEnteredContextIfIsolated):
(WebCore::worldForEnteredContextWithoutContextCheck):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::initializeIfNeeded):
* bindings/v8/V8GCController.cpp:
(WebCore::gcTree):
(WebCore):
(MinorGCWrapperVisitor):
(WebCore::MinorGCWrapperVisitor::MinorGCWrapperVisitor):
(WebCore::MinorGCWrapperVisitor::notifyFinished):
(WebCore::MajorGCWrapperVisitor::MajorGCWrapperVisitor):
(WebCore::V8GCController::gcPrologue):
(WebCore::V8GCController::minorGCPrologue):
(WebCore::V8GCController::majorGCPrologue):
* bindings/v8/V8GCController.h:
(V8GCController):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142077 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoREGRESSION(r141195): INPUT_MULTIPLE_FIELDS_UI: Space in a placeholder string is removed
tkent@chromium.org [Thu, 7 Feb 2013 08:40:17 +0000 (08:40 +0000)]
REGRESSION(r141195): INPUT_MULTIPLE_FIELDS_UI: Space in a placeholder string is removed
https://bugs.webkit.org/show_bug.cgi?id=109132

Reviewed by Hajime Morita.

<input  type=date> should be shown in Japanese UI as:
[ 年 /月/日]
But it is shown wrongly since r141195:
[年 /月/日]

We should use white-space:pre.

No new tests. This change is not testable in WebKit because this
requires a Japanese-localized UI string of Chromium.

* css/html.css:
(input::-webkit-datetime-edit-fields-wrapper):
Use white-space:pre instead of nowrap.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142076 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoRemove DOMWindow::parseModalDialogFeatures()
haraken@chromium.org [Thu, 7 Feb 2013 08:38:55 +0000 (08:38 +0000)]
Remove DOMWindow::parseModalDialogFeatures()
https://bugs.webkit.org/show_bug.cgi?id=109139

Reviewed by Kent Tamura.

No one uses the method. FIXME is saying:

  // FIXME: We can remove this function once V8 showModalDialog is changed to use DOMWindow.

Given that V8's showModalDialog() is now using DOMWindow, we can remove it.

No tests. No change in behavior.

* page/DOMWindow.cpp:
* page/DOMWindow.h:
(DOMWindow):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142075 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWeb Inspector: Native Memory Instrumentation: reduce native heap snapshot runtime...
loislo@chromium.org [Thu, 7 Feb 2013 08:38:04 +0000 (08:38 +0000)]
Web Inspector: Native Memory Instrumentation: reduce native heap snapshot runtime memory footprint
https://bugs.webkit.org/show_bug.cgi?id=108824

Reviewed by Yury Semikhatsky.

New event was added into Memory domain addNativeSnapshotChunk.
The content of HeapGraphSerializer is completely rewritten according to new API.
Now it collects strings, nodes, edges and id2id map and pushes when the collected items count exceed a limit.
On the frontend side I added new method for the new event and fixed the postprocessing step.
MemoryInstrumentation was slightly changed. Now it reports base to real address map only after reporting the node with real address.

* inspector/HeapGraphSerializer.cpp:
(WebCore::HeapGraphSerializer::HeapGraphSerializer):
(WebCore::HeapGraphSerializer::pushUpdateIfNeed):
(WebCore):
(WebCore::HeapGraphSerializer::pushUpdate):
(WebCore::HeapGraphSerializer::reportNode):
(WebCore::HeapGraphSerializer::reportNodeImpl):
(WebCore::HeapGraphSerializer::reportEdge):
(WebCore::HeapGraphSerializer::reportEdgeImpl):
(WebCore::HeapGraphSerializer::reportLeaf):
(WebCore::HeapGraphSerializer::reportBaseAddress):
(WebCore::HeapGraphSerializer::finish):
(WebCore::HeapGraphSerializer::reportMemoryUsage):
(WebCore::HeapGraphSerializer::addString):
(WebCore::HeapGraphSerializer::toNodeId):
(WebCore::HeapGraphSerializer::addRootNode):
* inspector/HeapGraphSerializer.h:
(HeapGraphSerializer):
* inspector/Inspector.json:
* inspector/InspectorController.cpp:
(WebCore::InspectorController::processMemoryDistribution):
* inspector/InspectorMemoryAgent.cpp:
(WebCore::InspectorMemoryAgent::getProcessMemoryDistributionMap):
(WebCore):
(WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
(WebCore::InspectorMemoryAgent::getProcessMemoryDistributionImpl):
(WebCore::InspectorMemoryAgent::setFrontend):
(WebCore::InspectorMemoryAgent::clearFrontend):
* inspector/InspectorMemoryAgent.h:
(InspectorMemoryAgent):
* inspector/front-end/NativeHeapSnapshot.js:
(WebInspector.NativeHeapSnapshot):
(WebInspector.NativeHeapSnapshotNode.prototype.classIndex):
(WebInspector.NativeHeapSnapshotNode.prototype.id):
(WebInspector.NativeHeapSnapshotNode.prototype.name):
(WebInspector.NativeHeapSnapshotNode.prototype.serialize):
* inspector/front-end/NativeMemorySnapshotView.js:
(WebInspector.NativeSnapshotProfileType.prototype.buttonClicked.didReceiveMemorySnapshot):
(WebInspector.NativeSnapshotProfileType.prototype.buttonClicked):
(WebInspector.NativeSnapshotProfileHeader):
(WebInspector.NativeSnapshotProfileHeader.prototype.startSnapshotTransfer):
(WebInspector.NativeSnapshotProfileHeader.prototype.addNativeSnapshotChunk):
(WebInspector.NativeMemoryProfileType.prototype.buttonClicked.didReceiveMemorySnapshot):
(WebInspector.NativeMemoryProfileType.prototype.buttonClicked):
(WebInspector.NativeMemoryBarChart.prototype._updateStats):
* inspector/front-end/ProfilesPanel.js:
(WebInspector.ProfilesPanel):
(WebInspector.MemoryDispatcher):
(WebInspector.MemoryDispatcher.prototype.addNativeSnapshotChunk):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142074 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
hausmann@webkit.org [Thu, 7 Feb 2013 08:34:11 +0000 (08:34 +0000)]
[Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
https://bugs.webkit.org/show_bug.cgi?id=108920

Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.

Employ the pattern suggested by Jocelyn to simply implement the C
callbacks directly using static functions.

* Target.pri:
* UIProcess/API/qt/qquickwebview.cpp:
(toQQuickWebViewPrivate):
(QQuickWebViewPrivate::initialize):
(QQuickWebViewPrivate::didFindString):
(QQuickWebViewPrivate::didFailToFindString):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate):
* UIProcess/qt/QtWebPageFindClient.cpp: Removed.
* UIProcess/qt/QtWebPageFindClient.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142073 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoWebKit's focus events are UIEvents (instead of FocusEvent) and thus don't expose...
haraken@chromium.org [Thu, 7 Feb 2013 08:30:00 +0000 (08:30 +0000)]
WebKit's focus events are UIEvents (instead of FocusEvent) and thus don't expose .relatedTarget
https://bugs.webkit.org/show_bug.cgi?id=76216

Reviewed by Eric Seidel.

Spec: http://www.w3.org/TR/DOM-Level-3-Events/#events-FocusEvent

This patch creates a new FocusEvent class with a relatedTarget attribute.
Now when focusin or focusout events are dispatched, a FocusEvent is created with
the relatedTarget attribute set accordingly.

Source/WebCore:

Test: fast/events/related-target-focusevent.html

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMAllInOne.cpp:
* dom/Event.cpp:
(WebCore::Event::isFocusEvent):
(WebCore):
* dom/Event.h:
(Event):
* dom/EventContext.cpp:
(WebCore::EventContext::handleLocalEvents):
* dom/EventNames.in:
* dom/FocusEvent.h: Added.
(WebCore):
(FocusEvent):
(WebCore::FocusEvent::create):
(WebCore::FocusEvent::relatedTarget):
(WebCore::FocusEvent::setRelatedTarget):
(WebCore::toFocusEvent):
* dom/FocusEvent.idl: Added.
* dom/Node.cpp:
(WebCore::Node::dispatchFocusInEvent):
(WebCore::Node::dispatchFocusOutEvent):

LayoutTests:

* fast/dom/shadow/shadow-boundary-events-expected.txt:
* fast/dom/shadow/shadow-boundary-events.html:
* fast/events/related-target-focusevent-expected.txt: Added.
* fast/events/related-target-focusevent.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142072 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoFix style of RenderTheme.cpp and RenderThemeChromiumWin.h
tkent@chromium.org [Thu, 7 Feb 2013 08:25:26 +0000 (08:25 +0000)]
Fix style of RenderTheme.cpp and RenderThemeChromiumWin.h
https://bugs.webkit.org/show_bug.cgi?id=109137

Reviewed by Kentaro Hara.

No new tests. Just style fix.

* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::adjustStyle):
(WebCore::RenderTheme::paint):
(WebCore::RenderTheme::paintBorderOnly):
(WebCore::RenderTheme::paintDecorations):
(WebCore::RenderTheme::isControlStyled):
(WebCore::RenderTheme::adjustButtonStyle):
(WebCore::RenderTheme::systemColor):
* rendering/RenderThemeChromiumWin.h:
(WebCore::ThemeData::ThemeData):
(ThemeData):
(RenderThemeChromiumWin):
(WebCore::RenderThemeChromiumWin::RenderThemeChromiumWin):
(WebCore::RenderThemeChromiumWin::~RenderThemeChromiumWin):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142071 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Qt] Compile WTF tests of TestWebKitAPI
hausmann@webkit.org [Thu, 7 Feb 2013 08:25:14 +0000 (08:25 +0000)]
[Qt] Compile WTF tests of TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=108935

Reviewed by Kenneth Rohde Christiansen.

.:

Build gtest on Linux.

* WebKit.pro:

Source/ThirdParty:

Add qmake build system .pro file for building gtest as static library.

* gtest/gtest.pro: Added.

Tools:

Add initial stubs and files for building at least the WTF tests.
The WK2 tests need more platform code, in particular PlatformWebView
and injected bundle support.

* TestWebKitAPI/TestWebKitAPI.pri: Added.
* TestWebKitAPI/TestWebKitAPI.pro: Added.
* TestWebKitAPI/Tests/WTF/WTF.pro: Added.
* TestWebKitAPI/qt/InjectedBundleControllerQt.cpp: Added.
(TestWebKitAPI):
(TestWebKitAPI::InjectedBundleController::platformInitialize):
* TestWebKitAPI/qt/PlatformUtilitiesQt.cpp: Added.
(Util):
(TestWebKitAPI::Util::run):
(TestWebKitAPI::Util::sleep):
(TestWebKitAPI::Util::createInjectedBundlePath):
(TestWebKitAPI::Util::createURLForResource):
(TestWebKitAPI::Util::URLForNonExistentResource):
* TestWebKitAPI/qt/main.cpp: Added.
(main):
* Tools.pro:
* qmake/mkspecs/features/default_post.prf:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142070 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoFix style of Chrome.h and Page.h
tkent@chromium.org [Thu, 7 Feb 2013 08:23:16 +0000 (08:23 +0000)]
Fix style of Chrome.h and Page.h
https://bugs.webkit.org/show_bug.cgi?id=109138

Reviewed by Ryosuke Niwa.

No new tests. Just style fixes.

* page/Chrome.h:
(WebCore):
(Chrome):
(WebCore::Chrome::client):
* page/Page.h:
(JSC):
(WebCore):
(WebCore::ArenaSize::ArenaSize):
(ArenaSize):
(Page):
(PageClients):
(WebCore::Page::theme):
(WebCore::Page::canStartMedia):
(WebCore::Page::editorClient):
(WebCore::Page::plugInClient):
(WebCore::Page::mainFrame):
(WebCore::Page::groupPtr):
(WebCore::Page::incrementSubframeCount):
(WebCore::Page::decrementSubframeCount):
(WebCore::Page::subframeCount):
(WebCore::Page::chrome):
(WebCore::Page::dragCaretController):
(WebCore::Page::dragController):
(WebCore::Page::focusController):
(WebCore::Page::contextMenuController):
(WebCore::Page::inspectorController):
(WebCore::Page::pointerLockController):
(WebCore::Page::validationMessageClient):
(WebCore::Page::settings):
(WebCore::Page::progress):
(WebCore::Page::backForward):
(WebCore::Page::featureObserver):
(WebCore::Page::viewMode):
(WebCore::Page::setTabKeyCyclesThroughElements):
(WebCore::Page::tabKeyCyclesThroughElements):
(WebCore::Page::scheduledRunLoopPairs):
(WebCore::Page::defersLoading):
(WebCore::Page::mediaVolume):
(WebCore::Page::pageScaleFactor):
(WebCore::Page::deviceScaleFactor):
(WebCore::Page::shouldSuppressScrollbarAnimations):
(WebCore::Page::pagination):
(WebCore::Page::isOnscreen):
(WebCore::Page::scriptedAnimationsSuspended):
(WebCore::Page::debugger):
(WebCore::Page::hasCustomHTMLTokenizerTimeDelay):
(WebCore::Page::customHTMLTokenizerTimeDelay):
(WebCore::Page::hasCustomHTMLTokenizerChunkSize):
(WebCore::Page::customHTMLTokenizerChunkSize):
(WebCore::Page::areMemoryCacheClientCallsEnabled):
(WebCore::Page::setEditable):
(WebCore::Page::isEditable):
(WebCore::Page::displayID):
(WebCore::Page::layoutMilestones):
(WebCore::Page::setIsPainting):
(WebCore::Page::isPainting):
(WebCore::Page::alternativeTextClient):
(WebCore::Page::checkSubframeCountConsistency):
(WebCore::Page::group):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142069 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoEntity-header extension headers honored on 304 responses.
mkwst@chromium.org [Thu, 7 Feb 2013 07:41:18 +0000 (07:41 +0000)]
Entity-header extension headers honored on 304 responses.
https://bugs.webkit.org/show_bug.cgi?id=72414

Reviewed by Alexey Proskuryakov.

Source/WebCore:

This patch ports Chromium's network stack logic governing header
updates after resource revalidation. Generally, headers sent with 304
responses ought to update the original cached resource's headers.
Certain headers should never be sent with 304 responses, and we should
ignore them if a misconfigured server sends them anyway.

Currently, WebCore ignores all headers prefixed with 'content-'. This
patch adds 'x-content-' and 'x-webkit-' to the list, as well as specific
headers like 'upgrade', 'trailer', and others that the Chromium network
stack currently ignores.

The tests verify that those headers with visible effect are correctly
handled: 'x-frame-options', 'content-security-policy', and
'x-xss-protection'.

Tests: http/tests/security/XFrameOptions/x-frame-options-cached.html
       http/tests/security/contentSecurityPolicy/cached-frame-csp.html
       http/tests/security/xssAuditor/cached-frame.html

* loader/cache/CachedResource.cpp:
(WebCore):
(WebCore::CachedResource::updateResponseAfterRevalidation):
    This patch adds two arrays containing the specific headers to
    ignore and the prefixes to ignore. These lists are processed in
    shouldUpdateHeaderAfterRevalidation.
    CachedResource::updateResponseAfterRevalidation relies on this new
    method when processing revalidated resources.

* loader/cache/CachedResource.cpp:
(WebCore):
(WebCore::shouldUpdateHeaderAfterRevalidation):
(WebCore::CachedResource::updateResponseAfterRevalidation):

LayoutTests:

* http/tests/security/XFrameOptions/resources/nph-cached-xfo.pl: Added.
* http/tests/security/XFrameOptions/x-frame-options-cached-expected.txt: Added.
* http/tests/security/XFrameOptions/x-frame-options-cached.html: Added.
* http/tests/security/contentSecurityPolicy/cached-frame-csp-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/cached-frame-csp.html: Added.
* http/tests/security/contentSecurityPolicy/resources/nph-cached-csp.pl: Added.
* http/tests/security/xssAuditor/cached-frame-expected.txt: Added.
* http/tests/security/xssAuditor/cached-frame.html: Added.
* http/tests/security/xssAuditor/resources/nph-cached.pl: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142068 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed gardening. Marking all webgl/conformance tests as slow.
falken@chromium.org [Thu, 7 Feb 2013 05:20:22 +0000 (05:20 +0000)]
Unreviewed gardening. Marking all webgl/conformance tests as slow.

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoVersioning.
lforschler@apple.com [Thu, 7 Feb 2013 05:19:59 +0000 (05:19 +0000)]
Versioning.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142066 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoMake CustomProtocolManagerProxy a MessageReceiver
weinig@apple.com [Thu, 7 Feb 2013 04:40:29 +0000 (04:40 +0000)]
Make CustomProtocolManagerProxy a MessageReceiver
https://bugs.webkit.org/show_bug.cgi?id=108787

Reviewed by Anders Carlsson.

* Shared/ChildProcessProxy.cpp:
(WebKit::ChildProcessProxy::addMessageReceiver):
(WebKit::ChildProcessProxy::removeMessageReceiver):
(WebKit::ChildProcessProxy::dispatchMessage):
(WebKit::ChildProcessProxy::dispatchSyncMessage):
* Shared/ChildProcessProxy.h:
Sink the MessageReceiverMap down into the ChildProcessProxy.

* UIProcess/Downloads/DownloadProxyMap.cpp:
(WebKit::DownloadProxyMap::DownloadProxyMap):
(WebKit::DownloadProxyMap::createDownloadProxy):
(WebKit::DownloadProxyMap::downloadFinished):
(WebKit::DownloadProxyMap::processDidClose):
* UIProcess/Downloads/DownloadProxyMap.h:
Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.

* UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
* UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
* UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
(WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
Convert to a MessageReceiver.

* UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::createDownloadProxy):
(WebKit::NetworkProcessProxy::didReceiveMessage):
(WebKit::NetworkProcessProxy::didReceiveSyncMessage):
* UIProcess/Network/NetworkProcessProxy.h:
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didReceiveMessage):
(WebKit::WebProcessProxy::didReceiveSyncMessage):
(WebKit::WebProcessProxy::createDownloadProxy):
* UIProcess/WebProcessProxy.h:
(WebProcessProxy):
Remove direct chaining to CustomProtocolManagerProxy.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142064 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agodocument.referrer leakage with XSS Auditor page block
tsepez@chromium.org [Thu, 7 Feb 2013 03:14:15 +0000 (03:14 +0000)]
document.referrer leakage with XSS Auditor page block
https://bugs.webkit.org/show_bug.cgi?id=109089

Reviewed by Adam Barth.

Source/WebCore:

Pass "about:blank" as referrer instead of "" so that the actual page
is not leaked when empty referrers are replaced later on in the
request.

* html/parser/XSSAuditorDelegate.cpp:
(WebCore::XSSAuditorDelegate::didBlockScript):

LayoutTests:

Test prints the referrer to show it isn't leaked.

* http/tests/security/xssAuditor/full-block-script-tag-expected.txt:
* http/tests/security/xssAuditor/full-block-script-tag.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142063 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed gardening. Marking gl-vertexattribpointer.html as slow.
falken@chromium.org [Thu, 7 Feb 2013 02:50:52 +0000 (02:50 +0000)]
Unreviewed gardening. Marking gl-vertexattribpointer.html as slow.

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142062 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[V8] Make an Isolate parameter mandatory in GetTemplate() and GetRawTemplate()
haraken@chromium.org [Thu, 7 Feb 2013 02:43:55 +0000 (02:43 +0000)]
[V8] Make an Isolate parameter mandatory in GetTemplate() and GetRawTemplate()
https://bugs.webkit.org/show_bug.cgi?id=109026

Reviewed by Adam Barth.

Now it's time to kill an optional Isolate parameter.

No tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateHeader):
(GenerateNamedConstructorCallback):
(GenerateImplementation):
* bindings/scripts/test/V8/V8Float64Array.cpp:
(WebCore::V8Float64Array::GetRawTemplate):
(WebCore::V8Float64Array::GetTemplate):
* bindings/scripts/test/V8/V8Float64Array.h:
(V8Float64Array):
(WebCore::V8Float64Array::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
(WebCore::V8TestActiveDOMObject::GetRawTemplate):
(WebCore::V8TestActiveDOMObject::GetTemplate):
* bindings/scripts/test/V8/V8TestActiveDOMObject.h:
(V8TestActiveDOMObject):
(WebCore::V8TestActiveDOMObject::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
(WebCore::V8TestCustomNamedGetter::GetRawTemplate):
(WebCore::V8TestCustomNamedGetter::GetTemplate):
* bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
(V8TestCustomNamedGetter):
(WebCore::V8TestCustomNamedGetter::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestEventConstructor.cpp:
(WebCore::V8TestEventConstructor::GetRawTemplate):
(WebCore::V8TestEventConstructor::GetTemplate):
* bindings/scripts/test/V8/V8TestEventConstructor.h:
(V8TestEventConstructor):
(WebCore::V8TestEventConstructor::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestEventTarget.cpp:
(WebCore::V8TestEventTarget::GetRawTemplate):
(WebCore::V8TestEventTarget::GetTemplate):
* bindings/scripts/test/V8/V8TestEventTarget.h:
(V8TestEventTarget):
(WebCore::V8TestEventTarget::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestException.cpp:
(WebCore::V8TestException::GetRawTemplate):
(WebCore::V8TestException::GetTemplate):
* bindings/scripts/test/V8/V8TestException.h:
(V8TestException):
(WebCore::V8TestException::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestInterface.cpp:
(WebCore::V8TestInterface::GetRawTemplate):
(WebCore::V8TestInterface::GetTemplate):
* bindings/scripts/test/V8/V8TestInterface.h:
(V8TestInterface):
(WebCore::V8TestInterface::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
(WebCore::V8TestMediaQueryListListener::GetRawTemplate):
(WebCore::V8TestMediaQueryListListener::GetTemplate):
* bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
(V8TestMediaQueryListListener):
(WebCore::V8TestMediaQueryListListener::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
(WebCore::V8TestNamedConstructorConstructor::GetTemplate):
(WebCore::V8TestNamedConstructor::GetRawTemplate):
(WebCore::V8TestNamedConstructor::GetTemplate):
* bindings/scripts/test/V8/V8TestNamedConstructor.h:
(V8TestNamedConstructor):
(WebCore::V8TestNamedConstructor::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestNode.cpp:
(WebCore::V8TestNode::GetRawTemplate):
(WebCore::V8TestNode::GetTemplate):
* bindings/scripts/test/V8/V8TestNode.h:
(V8TestNode):
(WebCore::V8TestNode::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::V8TestObj::GetRawTemplate):
(WebCore::V8TestObj::GetTemplate):
(WebCore::V8TestObj::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestObj.h:
(V8TestObj):
* bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
(WebCore::V8TestOverloadedConstructors::GetRawTemplate):
(WebCore::V8TestOverloadedConstructors::GetTemplate):
* bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
(V8TestOverloadedConstructors):
(WebCore::V8TestOverloadedConstructors::installPerContextPrototypeProperties):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
(WebCore::V8TestSerializedScriptValueInterface::GetRawTemplate):
(WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
(V8TestSerializedScriptValueInterface):
(WebCore::V8TestSerializedScriptValueInterface::installPerContextPrototypeProperties):
* bindings/v8/V8PerContextData.cpp:
(WebCore::V8PerContextData::constructorForTypeSlowCase):
* bindings/v8/WrapperTypeInfo.h:
(WebCore):
(WebCore::WrapperTypeInfo::installPerContextPrototypeProperties):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142061 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed. Touchups to VS2010 WebKit solution.
roger_fong@apple.com [Thu, 7 Feb 2013 02:00:12 +0000 (02:00 +0000)]
Unreviewed. Touchups to VS2010 WebKit solution.
Fix an export generator script, modify some property sheets, add resouce file.
Add WinLauncher projects to solution.

* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExportGeneratorDebug.props:
* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExportGeneratorPostBuild.cmd:
* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExportGeneratorRelease.props:
* JavaScriptCore.vcxproj/resource.h: Added.
* WebKit.vcxproj/WebKit.sln:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142060 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoVS2010 WinLauncher project, property sheets and resources.
roger_fong@apple.com [Thu, 7 Feb 2013 01:52:35 +0000 (01:52 +0000)]
VS2010 WinLauncher project, property sheets and resources.
https://bugs.webkit.org/show_bug.cgi?id=107037.

Reviewed by Brent Fulgham.

* WinLauncher/WinLauncher.vcxproj: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncher.ico: Copied from WinLauncher/WinLauncher.ico.
* WinLauncher/WinLauncher.vcxproj/WinLauncher.rc: Copied from WinLauncher/WinLauncherLauncher.rc.
* WinLauncher/WinLauncher.vcxproj/WinLauncher.vcxproj: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncher.vcxproj.filters: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncher.vcxproj.user: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherCommon.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherDebug.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLib.rc: Copied from WinLauncher/WinLauncher.rc.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj.filters: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLib.vcxproj.user: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibCommon.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibDebug.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibPostBuild.cmd: Copied from WinLauncher/WinLauncherPostBuild.cmd.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibPreBuild.cmd: Copied from WinLauncher/WinLauncherPreBuild.cmd.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibRelease.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherLibResource.h: Copied from WinLauncher/resource.h.
* WinLauncher/WinLauncher.vcxproj/WinLauncherPostBuild.cmd: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherPreBuild.cmd: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherRelease.props: Added.
* WinLauncher/WinLauncher.vcxproj/WinLauncherResource.h: Copied from WinLauncher/WinLauncherLauncherResource.h.
* WinLauncher/WinLauncher.vcxproj/small.ico: Copied from WinLauncher/small.ico.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142059 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdds failing WebGL Conformance Tests.
gman@chromium.org [Thu, 7 Feb 2013 01:35:18 +0000 (01:35 +0000)]
Adds failing WebGL Conformance Tests.
https://bugs.webkit.org/show_bug.cgi?id=109075

Reviewed by Kenneth Russell.

* platform/chromium/TestExpectations:
* platform/mac/TestExpectations:
* platform/win/TestExpectations:
* webgl/conformance/canvas/buffer-offscreen-test-expected.txt: Added.
* webgl/conformance/canvas/buffer-offscreen-test.html: Added.
* webgl/conformance/canvas/buffer-preserve-test-expected.txt: Added.
* webgl/conformance/canvas/buffer-preserve-test.html: Added.
* webgl/conformance/canvas/drawingbuffer-test-expected.txt: Added.
* webgl/conformance/canvas/drawingbuffer-test.html: Added.
* webgl/conformance/canvas/to-data-url-test-expected.txt: Added.
* webgl/conformance/canvas/to-data-url-test.html: Added.
* webgl/conformance/context/context-attribute-preserve-drawing-buffer-expected.txt: Added.
* webgl/conformance/context/context-attribute-preserve-drawing-buffer.html: Added.
* webgl/conformance/context/context-creation-and-destruction-expected.txt: Added.
* webgl/conformance/context/context-creation-and-destruction.html: Added.
* webgl/conformance/glsl/functions/glsl-function-smoothstep-gentype-expected.txt: Added.
* webgl/conformance/glsl/functions/glsl-function-smoothstep-gentype.html: Added.
* webgl/conformance/glsl/literals/float_literal.vert-expected.txt: Added.
* webgl/conformance/glsl/literals/float_literal.vert.html: Added.
* webgl/conformance/glsl/misc/shader-uniform-packing-restrictions-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-uniform-packing-restrictions.html: Added.
* webgl/conformance/glsl/misc/shader-varying-packing-restrictions-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-varying-packing-restrictions.html: Added.
* webgl/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays.html: Added.
* webgl/conformance/glsl/misc/shader-with-global-variable-precision-mismatch-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-with-global-variable-precision-mismatch.html: Added.
* webgl/conformance/glsl/misc/shader-with-non-reserved-words-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-with-non-reserved-words.html: Added.
* webgl/conformance/glsl/misc/shader-with-short-circuiting-operators-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-with-short-circuiting-operators.html: Added.
* webgl/conformance/glsl/misc/shader-with-similar-uniform-array-names-expected.txt: Added.
* webgl/conformance/glsl/misc/shader-with-similar-uniform-array-names.html: Added.
* webgl/conformance/glsl/misc/shaders-with-varyings-expected.txt: Added.
* webgl/conformance/glsl/misc/shaders-with-varyings.html: Added.
* webgl/conformance/glsl/variables/gl-pointcoord-expected.txt: Added.
* webgl/conformance/glsl/variables/gl-pointcoord.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-A-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-A.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B1-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B1.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B2-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B2.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B3-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B3.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B4-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-B4.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-C-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-C.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-D_G-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-D_G.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-G_I-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-G_I.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-L_S-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-L_S.html: Added.
* webgl/conformance/more/conformance/quickCheckAPI-S_V-expected.txt: Added.
* webgl/conformance/more/conformance/quickCheckAPI-S_V.html: Added.
* webgl/conformance/more/functions/bufferDataBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/bufferDataBadArgs.html: Added.
* webgl/conformance/more/functions/copyTexImage2D-expected.txt: Added.
* webgl/conformance/more/functions/copyTexImage2D.html: Added.
* webgl/conformance/more/functions/copyTexImage2DBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/copyTexImage2DBadArgs.html: Added.
* webgl/conformance/more/functions/copyTexSubImage2D-expected.txt: Added.
* webgl/conformance/more/functions/copyTexSubImage2D.html: Added.
* webgl/conformance/more/functions/copyTexSubImage2DBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/copyTexSubImage2DBadArgs.html: Added.
* webgl/conformance/more/functions/deleteBufferBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/deleteBufferBadArgs.html: Added.
* webgl/conformance/more/functions/drawArrays-expected.txt: Added.
* webgl/conformance/more/functions/drawArrays.html: Added.
* webgl/conformance/more/functions/drawArraysOutOfBounds-expected.txt: Added.
* webgl/conformance/more/functions/drawArraysOutOfBounds.html: Added.
* webgl/conformance/more/functions/drawElements-expected.txt: Added.
* webgl/conformance/more/functions/drawElements.html: Added.
* webgl/conformance/more/functions/drawElementsBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/drawElementsBadArgs.html: Added.
* webgl/conformance/more/functions/readPixelsBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/readPixelsBadArgs.html: Added.
* webgl/conformance/more/functions/texImage2DBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/texImage2DBadArgs.html: Added.
* webgl/conformance/more/functions/texImage2DHTML-expected.txt: Added.
* webgl/conformance/more/functions/texImage2DHTML.html: Added.
* webgl/conformance/more/functions/texSubImage2DBadArgs-expected.txt: Added.
* webgl/conformance/more/functions/texSubImage2DBadArgs.html: Added.
* webgl/conformance/more/functions/texSubImage2DHTML-expected.txt: Added.
* webgl/conformance/more/functions/texSubImage2DHTML.html: Added.
* webgl/conformance/ogles/GL/acos/acos_001_to_006-expected.txt: Added.
* webgl/conformance/ogles/GL/acos/acos_001_to_006.html: Added.
* webgl/conformance/ogles/GL/asin/asin_001_to_006-expected.txt: Added.
* webgl/conformance/ogles/GL/asin/asin_001_to_006.html: Added.
* webgl/conformance/ogles/GL/atan/atan_001_to_008-expected.txt: Added.
* webgl/conformance/ogles/GL/atan/atan_001_to_008.html: Added.
* webgl/conformance/ogles/GL/control_flow/control_flow_001_to_008-expected.txt: Added.
* webgl/conformance/ogles/GL/control_flow/control_flow_001_to_008.html: Added.
* webgl/conformance/ogles/GL/log/log_001_to_008-expected.txt: Added.
* webgl/conformance/ogles/GL/log/log_001_to_008.html: Added.
* webgl/conformance/ogles/GL/log2/log2_001_to_008-expected.txt: Added.
* webgl/conformance/ogles/GL/log2/log2_001_to_008.html: Added.
* webgl/conformance/ogles/GL/smoothstep/smoothstep_001_to_006-expected.txt: Added.
* webgl/conformance/ogles/GL/smoothstep/smoothstep_001_to_006.html: Added.
* webgl/conformance/programs/gl-bind-attrib-location-long-names-test-expected.txt: Added.
* webgl/conformance/programs/gl-bind-attrib-location-long-names-test.html: Added.
* webgl/conformance/programs/program-test-expected.txt: Added.
* webgl/conformance/programs/program-test.html: Added.
* webgl/conformance/reading/read-pixels-test-expected.txt: Added.
* webgl/conformance/reading/read-pixels-test.html: Added.
* webgl/conformance/renderbuffers/framebuffer-object-attachment-expected.txt: Added.
* webgl/conformance/renderbuffers/framebuffer-object-attachment.html: Added.
* webgl/conformance/rendering/gl-scissor-test-expected.txt: Added.
* webgl/conformance/rendering/gl-scissor-test.html: Added.
* webgl/conformance/rendering/more-than-65536-indices-expected.txt: Added.
* webgl/conformance/rendering/more-than-65536-indices.html: Added.
* webgl/conformance/rendering/multisample-corruption-expected.txt: Added.
* webgl/conformance/rendering/multisample-corruption.html: Added.
* webgl/conformance/rendering/point-size-expected.txt: Added.
* webgl/conformance/rendering/point-size.html: Added.
* webgl/conformance/state/gl-object-get-calls-expected.txt: Added.
* webgl/conformance/state/gl-object-get-calls.html: Added.
* webgl/conformance/textures/copy-tex-image-2d-formats-expected.txt: Added.
* webgl/conformance/textures/copy-tex-image-2d-formats.html: Added.
* webgl/conformance/textures/gl-pixelstorei-expected.txt: Added.
* webgl/conformance/textures/gl-pixelstorei.html: Added.
* webgl/conformance/textures/origin-clean-conformance-expected.txt: Added.
* webgl/conformance/textures/origin-clean-conformance.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-canvas.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-image.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551-expected.txt: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html: Added.
* webgl/conformance/textures/tex-image-and-sub-image-2d-with-video.html: Added.
* webgl/conformance/textures/texture-active-bind-2-expected.txt: Added.
* webgl/conformance/textures/texture-active-bind-2.html: Added.
* webgl/conformance/textures/texture-active-bind-expected.txt: Added.
* webgl/conformance/textures/texture-active-bind.html: Added.
* webgl/conformance/textures/texture-mips-expected.txt: Added.
* webgl/conformance/textures/texture-mips.html: Added.
* webgl/conformance/textures/texture-npot-video-expected.txt: Added.
* webgl/conformance/textures/texture-npot-video.html: Added.
* webgl/conformance/textures/texture-size-expected.txt: Added.
* webgl/conformance/textures/texture-size-limit-expected.txt: Added.
* webgl/conformance/textures/texture-size-limit.html: Added.
* webgl/conformance/textures/texture-size.html: Added.
* webgl/conformance/uniforms/gl-uniform-arrays-expected.txt: Added.
* webgl/conformance/uniforms/gl-uniform-arrays.html: Added.
* webgl/conformance/uniforms/uniform-default-values-expected.txt: Added.
* webgl/conformance/uniforms/uniform-default-values.html: Added.
* webgl/conformance/uniforms/uniform-location-expected.txt: Added.
* webgl/conformance/uniforms/uniform-location.html: Added.
* webgl/conformance/uniforms/uniform-samplers-test-expected.txt: Added.
* webgl/conformance/uniforms/uniform-samplers-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/buffer-offscreen-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/buffer-preserve-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/drawingbuffer-test.html: Added.
* webgl/resources/webgl_test_files/conformance/canvas/to-data-url-test.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-attribute-preserve-drawing-buffer.html: Added.
* webgl/resources/webgl_test_files/conformance/context/context-creation-and-destruction.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/functions/glsl-function-smoothstep-gentype.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/literals/float_literal.vert.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-uniform-packing-restrictions.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-varying-packing-restrictions.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-array-of-structs-containing-arrays.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-global-variable-precision-mismatch.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-non-reserved-words.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-short-circuiting-operators.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shader-with-similar-uniform-array-names.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/misc/shaders-with-varyings.html: Added.
* webgl/resources/webgl_test_files/conformance/glsl/variables/gl-pointcoord.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-A.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B1.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B2.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B3.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-B4.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-C.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-D_G.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-G_I.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-L_S.html: Added.
* webgl/resources/webgl_test_files/conformance/more/conformance/quickCheckAPI-S_V.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/bufferDataBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexImage2D.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexImage2DBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexSubImage2D.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/copyTexSubImage2DBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/deleteBufferBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/drawArrays.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/drawArraysOutOfBounds.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/drawElements.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/drawElementsBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/readPixelsBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/texImage2DBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/texImage2DHTML.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/texSubImage2DBadArgs.html: Added.
* webgl/resources/webgl_test_files/conformance/more/functions/texSubImage2DHTML.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/acos/acos_001_to_006.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/asin/asin_001_to_006.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/atan/atan_001_to_008.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/control_flow/control_flow_001_to_008.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/log/log_001_to_008.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/log2/log2_001_to_008.html: Added.
* webgl/resources/webgl_test_files/conformance/ogles/GL/smoothstep/smoothstep_001_to_006.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/gl-bind-attrib-location-long-names-test.html: Added.
* webgl/resources/webgl_test_files/conformance/programs/program-test.html: Added.
* webgl/resources/webgl_test_files/conformance/reading/read-pixels-test.html: Added.
* webgl/resources/webgl_test_files/conformance/renderbuffers/framebuffer-object-attachment.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/gl-scissor-test.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/more-than-65536-indices.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/multisample-corruption.html: Added.
* webgl/resources/webgl_test_files/conformance/rendering/point-size.html: Added.
* webgl/resources/webgl_test_files/conformance/state/gl-object-get-calls.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/copy-tex-image-2d-formats.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/gl-pixelstorei.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/origin-clean-conformance.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgb565.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba4444.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas-rgba5551.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-canvas.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgb565.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba5551.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-image.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgb565.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba4444.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video-rgba5551.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/tex-image-and-sub-image-2d-with-video.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-active-bind-2.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-active-bind.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-mips.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-npot-video.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-size-limit.html: Added.
* webgl/resources/webgl_test_files/conformance/textures/texture-size.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/gl-uniform-arrays.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-default-values.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-location.html: Added.
* webgl/resources/webgl_test_files/conformance/uniforms/uniform-samplers-test.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142058 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd support for gesture scroll events that do not propagate to enclosing scrollables
tdanderson@chromium.org [Thu, 7 Feb 2013 01:01:32 +0000 (01:01 +0000)]
Add support for gesture scroll events that do not propagate to enclosing scrollables
https://bugs.webkit.org/show_bug.cgi?id=108849

Reviewed by Antonio Gomes.

Source/WebCore:

Tests: fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated.html
       fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html
       fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html

Rename RenderLayer::scrollByRecursively() to RenderLayer::scrollBy() and add a parameter
of type RenderLayer::ScrollPropagation to specify whether or not the scroll should
propagate to its parent by recursing. Implement RenderLayer::scrollByRecursively() as a
call to RenderLayer::scrollBy() with argument RenderLayer::ShouldPropagateScroll so
that all existing calls to the function still produce the correct behavior.

In EventHandler::handleGestureScrollUpdate(), call RenderLayer::scrollBy() with
argument RenderLayer::ShouldPropagateScroll if |gestureEvent| is a GestureScrollUpdate
or instead with argument RenderLayer::DontPropagateScroll if |gestureEvent| is a
GestureScrollUpdateWithoutPropagation.

* dom/GestureEvent.cpp:
(WebCore::GestureEvent::create):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleGestureEvent):
(WebCore::EventHandler::handleGestureScrollUpdate):
* platform/PlatformEvent.h:
* platform/Scrollbar.cpp:
(WebCore::Scrollbar::gestureEvent):
* platform/chromium/PopupContainer.cpp:
(WebCore::PopupContainer::handleGestureEvent):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollByRecursively):
(WebCore):
(WebCore::RenderLayer::scrollBy):
* rendering/RenderLayer.h:

Source/WebKit/chromium:

Define the new event type GestureScrollUpdateWithoutPropagation.

* public/WebInputEvent.h:
(WebKit::WebInputEvent::isGestureEventType):
* src/PageWidgetDelegate.cpp:
(WebKit::PageWidgetDelegate::handleInputEvent):
* src/WebInputEventConversion.cpp:
(WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
* src/WebPluginContainerImpl.cpp:
* src/WebPopupMenuImpl.cpp:
(WebKit::WebPopupMenuImpl::handleInputEvent):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):

Tools:

Modify chromium's DRT EventSender to support the new event type
GestureScrollUpdateWithoutPropagation.

* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::gestureScrollUpdateWithoutPropagation):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/EventSender.h:
(EventSender):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
(WebTestRunner::TestPlugin::handleInputEvent):

LayoutTests:

New tests added to ensure that GestureScrollUpdateWithoutPropagation events will not
propagate to the scrollable parent of their target when the target has no area
left to be scrolled.

Modified two chromium-specific plugin tests to ensure that the plugins receive
GestureScrollUpdate events when GestureScrollUpdateWithoutPropagation events are
dispatched to them.

* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated.html: Added.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html: Added.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Added.
* platform/chromium/plugins/gesture-events-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled.html:
* platform/chromium/plugins/gesture-events.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142057 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] table-section-overflow-clip-crash.html hits an assert
ojan@chromium.org [Thu, 7 Feb 2013 00:55:10 +0000 (00:55 +0000)]
[Chromium] table-section-overflow-clip-crash.html hits an assert
https://bugs.webkit.org/show_bug.cgi?id=108594

Reviewed by Levi Weintraub.

Source/WebCore:

When a counter calls setNeedsLayout, it also marks it's containing blocks
as needing layout, so we need to clear the setNeedsLayoutIsForbidden bit on the
containing blocks as well as the counter itself.

Also, use RAII objects for all the places where we clear this bit and make
the setter/getter for it private to RenderObject.

* rendering/RenderCounter.cpp:
(WebCore::RenderCounter::computePreferredLogicalWidths):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope):
(WebCore::RenderObject::markContainingBlocksForLayout):
* rendering/RenderObject.h:
(SetLayoutNeededForbiddenScope):
(RenderObject):
(WebCore::RenderObject::isSetNeedsLayoutForbidden):
(WebCore::RenderObject::setNeedsLayoutIsForbidden):
* rendering/RenderQuote.cpp:
(WebCore::RenderQuote::computePreferredLogicalWidths):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::calcRowLogicalHeight):
(WebCore::RenderTableSection::layoutRows):
* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::computePreferredLogicalWidths):
* rendering/mathml/RenderMathMLRow.cpp:
(WebCore::RenderMathMLRow::computePreferredLogicalWidths):

LayoutTests:

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142056 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
enrica@apple.com [Thu, 7 Feb 2013 00:47:03 +0000 (00:47 +0000)]
ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
https://bugs.webkit.org/show_bug.cgi?id=109105.

Reviewed by Tim Horton.

In r140769 we changed the way the overlay is destroyed,
therefore the assert is no longer valid and should be removed.

* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::updateFindUIAfterPageScroll):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142055 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agodisplay:none file upload button crashes
ojan@chromium.org [Thu, 7 Feb 2013 00:41:07 +0000 (00:41 +0000)]
display:none file upload button crashes
https://bugs.webkit.org/show_bug.cgi?id=109102

Reviewed by Levi Weintraub.

Source/WebCore:

Test: fast/forms/file/display-none-upload-button.html

* rendering/RenderFileUploadControl.cpp:
(WebCore::nodeWidth):
(WebCore::RenderFileUploadControl::paintObject):
Having an upload button doesn't mean we have a rendered upload button.
Null check the renderer before trying to access it.

LayoutTests:

* fast/forms/file/display-none-upload-button-expected.txt: Added.
* fast/forms/file/display-none-upload-button.html: Added.
Tests that we don't crash. Also exposes a bug that the baseline and height of
the input don't include the height of the filename text.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142054 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] Test expectations update for Skia change.
schenney@chromium.org [Thu, 7 Feb 2013 00:32:46 +0000 (00:32 +0000)]
[Chromium] Test expectations update for Skia change.

Unreviewed expectations update

Files that we were expecting to fail. Now being rebaselined.

* platform/chromium-linux-x86/svg/text/text-viewbox-rescale-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-transformclip-expected.png:
* platform/chromium-linux/svg/batik/text/smallFonts-expected.png:
* platform/chromium-linux/svg/batik/text/textFeatures-expected.png:
* platform/chromium-linux/svg/text/selection-styles-expected.png:
* platform/chromium-linux/svg/text/text-viewbox-rescale-expected.png:
* platform/chromium-mac-lion/svg/text/text-viewbox-rescale-expected.png:
* platform/chromium-mac/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-transformclip-expected.png:
* platform/chromium-mac/svg/text/text-viewbox-rescale-expected.png:
* platform/chromium-win/platform/chromium/virtual/gpu/fast/canvas/canvas-composite-transformclip-expected.png:
* platform/efl/svg/batik/text/smallFonts-expected.png: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142053 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoReset the border property for -webkit-slider-thumb in unknown-pseudo-element-matching...
commit-queue@webkit.org [Thu, 7 Feb 2013 00:31:15 +0000 (00:31 +0000)]
Reset the border property for -webkit-slider-thumb in unknown-pseudo-element-matching test
https://bugs.webkit.org/show_bug.cgi?id=109101

We check that the style matches a pseudo element by setting its height to 1px.
Some user agents, like iOS, have default border styles that affect the minimum height,
so we need to reset those.

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-02-06
Reviewed by Joseph Pecoraro.

* fast/css/unknown-pseudo-element-matching.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142052 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoContext's currentPath should check for passed type
commit-queue@webkit.org [Thu, 7 Feb 2013 00:28:13 +0000 (00:28 +0000)]
Context's currentPath should check for passed type
https://bugs.webkit.org/show_bug.cgi?id=109097

Patch by Dirk Schulze <dschulze@adobe.com> on 2013-02-06
Reviewed by Dean Jackson.

Source/WebCore:

Add check for passed pointer and return earlier.

Test: fast/canvas/canvas-currentPath-crash.html

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::setCurrentPath):

LayoutTests:

Add checks with different data types as value for canvas.currentPath.

* fast/canvas/canvas-currentPath-crash-expected.txt: Added.
* fast/canvas/canvas-currentPath-crash.html: Added.
* fast/canvas/script-tests/canvas-currentPath-crash.js: Added.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142051 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] Test expectations update for Skia change.
schenney@chromium.org [Thu, 7 Feb 2013 00:18:43 +0000 (00:18 +0000)]
[Chromium] Test expectations update for Skia change.

Unreviewed expectations update

Files that we were expecting to fail. Now being rebaselined.

* platform/chromium-linux/fast/repaint/japanese-rl-selection-clear-expected.png:
* platform/chromium-linux/fast/repaint/japanese-rl-selection-repaint-expected.png:
* platform/chromium-linux/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Added.
* platform/chromium-linux/fast/text/justify-ideograph-vertical-expected.png:
* platform/chromium-linux/svg/custom/shapes-supporting-markers-expected.png:
* platform/chromium-linux/svg/custom/text-ctm-expected.png:
* platform/chromium-mac-lion/svg/custom/shapes-supporting-markers-expected.png:
* platform/chromium-mac/svg/custom/shapes-supporting-markers-expected.png:
* platform/chromium-mac/svg/custom/text-ctm-expected.txt:
* platform/chromium-win/svg/custom/shapes-supporting-markers-expected.png:
* platform/chromium-win/svg/custom/text-ctm-expected.png:
* platform/chromium-win/svg/custom/text-ctm-expected.txt: Removed.
* platform/gtk/svg/custom/text-ctm-expected.txt: Removed.
* svg/custom/text-ctm-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142050 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[HTMLTemplateElement] Non </template> end tags should be ignored in "template content...
rafaelw@chromium.org [Thu, 7 Feb 2013 00:15:23 +0000 (00:15 +0000)]
[HTMLTemplateElement] Non </template> end tags should be ignored in "template contents" insertion mode.
https://bugs.webkit.org/show_bug.cgi?id=109090

Reviewed by Adam Barth.

Source/WebCore:

https://dvcs.w3.org/hg/webcomponents/raw-file/38536d37fb82/spec/templates/index.html#template-contents-insertion-mode.

Test added to html5lib suite.

* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processEndTag):

LayoutTests:

* html5lib/resources/template.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142049 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] Test expectations update for Skia change.
schenney@chromium.org [Wed, 6 Feb 2013 23:59:00 +0000 (23:59 +0000)]
[Chromium] Test expectations update for Skia change.

Unreviewed expectations update

Files that we were expecting to fail. Now being rebaslined.

* platform/chromium-linux-x86/fast/writing-mode/japanese-ruby-vertical-lr-expected.png: Removed.
* platform/chromium-linux-x86/fast/writing-mode/japanese-ruby-vertical-lr-expected.txt:
* platform/chromium-linux-x86/fast/writing-mode/japanese-ruby-vertical-rl-expected.png: Removed.
* platform/chromium-linux-x86/fast/writing-mode/japanese-ruby-vertical-rl-expected.txt:
* platform/chromium-linux/fast/writing-mode/border-vertical-lr-expected.png:
* platform/chromium-linux/fast/writing-mode/japanese-lr-selection-expected.png:
* platform/chromium-linux/fast/writing-mode/japanese-lr-text-expected.png:
* platform/chromium-linux/fast/writing-mode/japanese-rl-selection-expected.png:
* platform/chromium-linux/fast/writing-mode/japanese-rl-text-expected.png:
* platform/chromium-win-xp/fast/writing-mode/japanese-ruby-vertical-lr-expected.png:
* platform/chromium-win-xp/fast/writing-mode/japanese-ruby-vertical-lr-expected.txt:
* platform/chromium-win-xp/fast/writing-mode/japanese-ruby-vertical-rl-expected.png:
* platform/chromium-win-xp/fast/writing-mode/japanese-ruby-vertical-rl-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/japanese-ruby-vertical-lr-expected.png:
* platform/chromium-win/fast/writing-mode/japanese-ruby-vertical-lr-expected.txt:
* platform/chromium-win/fast/writing-mode/japanese-ruby-vertical-rl-expected.png:
* platform/chromium-win/fast/writing-mode/japanese-ruby-vertical-rl-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] Test expectations update for Skia change.
schenney@chromium.org [Wed, 6 Feb 2013 23:51:55 +0000 (23:51 +0000)]
[Chromium] Test expectations update for Skia change.

Unreviewed expectations update

And these too. See change below.

* platform/chromium-mac-lion/fast/writing-mode/japanese-rl-selection-expected.txt: Added.
* platform/chromium-mac-lion/fast/writing-mode/japanese-rl-text-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/writing-mode/japanese-rl-selection-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/writing-mode/japanese-rl-text-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142047 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium] Test expectations update for Skia change.
schenney@chromium.org [Wed, 6 Feb 2013 23:50:05 +0000 (23:50 +0000)]
[Chromium] Test expectations update for Skia change.

Unreviewed expectations update

Apparently there are width differences on the mac platforms. These were
clobbered qwhen I updated the 10.8 expectations.

* platform/chromium-mac-lion/fast/writing-mode/japanese-lr-text-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/writing-mode/japanese-lr-text-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142046 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoMake ScrollView::paint() clip by visibleContentRect
aelias@chromium.org [Wed, 6 Feb 2013 23:47:17 +0000 (23:47 +0000)]
Make ScrollView::paint() clip by visibleContentRect
https://bugs.webkit.org/show_bug.cgi?id=108888

Reviewed by Levi Weintraub.

When applyPageScaleFactorInCompositor or fixedVisibleContentRect
are used, frameRect() and visibleContentRect(true).size() are
no longer synonyms, and the latter is the one that should be
used for clipping paints.

New WebFrameTest: pageScaleFactorScalesPaintClip.

Source/WebCore:

* platform/ScrollView.cpp:
(WebCore::ScrollView::paint):

Source/WebKit/chromium:

* tests/WebFrameTest.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142045 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoDispatch storage manager messages to the storage work queue
andersca@apple.com [Wed, 6 Feb 2013 23:44:21 +0000 (23:44 +0000)]
Dispatch storage manager messages to the storage work queue
https://bugs.webkit.org/show_bug.cgi?id=109099

Reviewed by Andreas Kling.

* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
(WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
(WebKit):
* UIProcess/Storage/StorageManager.h:
(StorageManager):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142044 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoStore the language internally instead of using lang attribute for WebVTT nodes
commit-queue@webkit.org [Wed, 6 Feb 2013 23:33:15 +0000 (23:33 +0000)]
Store the language internally instead of using lang attribute for WebVTT nodes
https://bugs.webkit.org/show_bug.cgi?id=108858

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-02-06
Reviewed by Eric Carlson.

Source/WebCore:

Only language webvtt elements should have a lang attribute so we have to store
the language internally in the element. Refactored the code to make
computeInheritedLanguage virtual.

Existing tests were modified to cover this case.

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):
* html/track/WebVTTElement.cpp:
(WebCore::WebVTTElement::WebVTTElement):
(WebCore::WebVTTElement::cloneElementWithoutAttributesAndChildren):
(WebCore::WebVTTElement::createEquivalentHTMLElement): clone the internal language property.
* html/track/WebVTTElement.h:
(WebCore::WebVTTElement::language):
(WebCore::WebVTTElement::setLanguage):
* html/track/WebVTTParser.cpp: only set the lang attribute for language objects.
(WebCore::WebVTTParser::constructTreeFromToken):

LayoutTests:

* media/track/captions-webvtt/styling-lang.vtt:
* media/track/track-css-matching-lang-expected.txt:
* media/track/track-css-matching-lang.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142043 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoNegative text indents can break RenderBlock's inline maximum preferred width calculation
leviw@chromium.org [Wed, 6 Feb 2013 23:08:59 +0000 (23:08 +0000)]
Negative text indents can break RenderBlock's inline maximum preferred width calculation
https://bugs.webkit.org/show_bug.cgi?id=108973

Reviewed by Emil A Eklund.

Source/WebCore:

Change two quirks about to how we calculate a block's inline preferred width with
text-indent.

First, re-use text-indent that's first applied to floats on text that follows it.
This matches Layout, as otherwise we can prematurely wrap text when there's a negative
margin on a block starting with a float. This also matches FireFox.

Second, correct how the max preferred width is calculated in the presence of a negative
text-indent. If the text-indent is more negative than the first text line break, we
update the value to be the remainder. Previously, we added this remaining negative value
to subsequent minimum and maximum preferred width calculations (until the remainder was
gone). This is wrong for the max preferred width, as we're adding the negative value more
than once, and leads to a max preferred width that's smaller than our line.

Test: fast/css/negative-text-indent-in-inline-block.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::computeInlinePreferredLogicalWidths):

LayoutTests:

* fast/css/negative-text-indent-in-inline-block-expected.html: Added.
* fast/css/negative-text-indent-in-inline-block.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142042 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[BlackBerry] Refactor renderContents() for cleaner code.
jpetsovits@rim.com [Wed, 6 Feb 2013 22:46:42 +0000 (22:46 +0000)]
[BlackBerry] Refactor renderContents() for cleaner code.
https://bugs.webkit.org/show_bug.cgi?id=109059
RIM PR 280374

Reviewed by Rob Buis.
Internally reviewed by Arvid Nilsson.

The fact that we've got two renderContents() implementations
in BackingStore.cpp, one of which was tailored to just
being called from drawContents(), is a major annoyance.

With this patch, the regular renderContents() is modified
in a way so that drawContents() can make use of it as well.
This includes an API change for both functions which makes
it more flexible and enables further cleanups and improvements
to accuracy. The second, unloved renderContents() is removed.

The user-visible changes are improved (float) accuracy for
render offsets, clipping to exactly the dstRect that has
been specified, and the changed public drawContents() API.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::renderDirectToWindow):
(BlackBerry::WebKit::BackingStorePrivate::render):
(BlackBerry::WebKit::BackingStorePrivate::renderContents):
(BlackBerry::WebKit::BackingStore::drawContents):
* Api/BackingStore.h:
(Platform):
(Graphics):
* Api/BackingStore_p.h:
(WebCore):
(BackingStorePrivate):
* WebKitSupport/SurfacePool.cpp:
(BlackBerry::WebKit::SurfacePool::SurfacePool):
(BlackBerry::WebKit::SurfacePool::initialize):
(BlackBerry::WebKit::SurfacePool::destroyPlatformGraphicsContext):
* WebKitSupport/SurfacePool.h:
(SurfacePool):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142037 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed, rolling out r142032.
commit-queue@webkit.org [Wed, 6 Feb 2013 22:44:59 +0000 (22:44 +0000)]
Unreviewed, rolling out r142032.
http://trac.webkit.org/changeset/142032
https://bugs.webkit.org/show_bug.cgi?id=109095

component build still broken (Requested by jochen__ on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-06

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/public/WebTask.h:
(WebTaskList):
* DumpRenderTree/chromium/TestRunner/public/WebTestCommon.h: Removed.
* DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h:
(WebTestInterfaces):
* DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:
(WebTestProxyBase):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
(WebTestRunner::AccessibilityUIElement::AccessibilityUIElement):
(WebTestRunner::AccessibilityUIElementList::getOrCreate):
(WebTestRunner::AccessibilityUIElementList::createRoot):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h:
(AccessibilityUIElementList):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.cpp:
(WebTestRunner::CppBoundClass::~CppBoundClass):
(WebTestRunner::CppBoundClass::invoke):
(WebTestRunner::CppBoundClass::getProperty):
(WebTestRunner::CppBoundClass::setProperty):
(WebTestRunner::CppBoundClass::bindCallback):
(WebTestRunner::CppBoundClass::bindGetterCallback):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::getAsCppVariant):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.h:
(WebTestRunner):
(CppBoundClass):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::bindFallbackCallback):
(WebTestRunner::CppBoundClass::bindFallbackMethod):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.cpp:
(WebTestRunner::CppVariant::toString):
(WebTestRunner::CppVariant::toInt32):
(WebTestRunner::CppVariant::toDouble):
(WebTestRunner::CppVariant::toBoolean):
(WebTestRunner::CppVariant::toStringVector):
(WebTestRunner::CppVariant::invoke):
(WebTestRunner::CppVariant::invokeDefault):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.h:
(CppVariant):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::reset):
(WebTestRunner::EventSender::mouseDown):
(WebTestRunner::EventSender::mouseUp):
(WebTestRunner::EventSender::mouseMoveTo):
(WebTestRunner::EventSender::keyDown):
(WebTestRunner::EventSender::dispatchMessage):
(WebTestRunner::EventSender::leapForward):
(WebTestRunner::EventSender::replaySavedEvents):
(WebTestRunner::makeMenuItemStringsFor):
(WebTestRunner::EventSender::contextClick):
(WebTestRunner::EventSender::beginDragWithFiles):
(WebTestRunner::EventSender::addTouchPoint):
(WebTestRunner::EventSender::releaseTouchPoint):
(WebTestRunner::EventSender::updateTouchPoint):
(WebTestRunner::EventSender::cancelTouchPoint):
(WebTestRunner::EventSender::sendCurrentTouchEvent):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/KeyCodeMapping.cpp:
(WebTestRunner::NativeKeyCodeForWindowsKeyCode):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.cpp:
(MockGrammarCheck::checkGrammarOfString):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.h:
(MockGrammarCheck):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp:
(append):
(isNotASCIIAlpha):
(MockSpellCheck::spellCheckWord):
(MockSpellCheck::initializeIfNeeded):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.h:
(MockSpellCheck):
* DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp:
(WebTestRunner::SpellCheckClient::checkTextOfParagraph):
(WebTestRunner::SpellCheckClient::finishLastTextCheck):
* DumpRenderTree/chromium/TestRunner/src/TestCommon.h: Removed.
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(WebTestRunner::TestInterfaces::TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.h:
(TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
(WebTestRunner::TestPlugin::TestPlugin):
(WebTestRunner::TestPlugin::initialize):
(WebTestRunner::TestPlugin::destroy):
(WebTestRunner::TestPlugin::parsePrimitive):
(WebTestRunner::TestPlugin::parseColor):
(WebTestRunner::TestPlugin::initProgram):
(WebTestRunner::TestPlugin::initPrimitive):
(WebTestRunner::TestPlugin::drawPrimitive):
(WebTestRunner::TestPlugin::loadShader):
(WebTestRunner::TestPlugin::loadProgram):
(WebTestRunner::TestPlugin::handleDragStatusUpdate):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.h:
(TestPlugin):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::WorkQueue::processWorkSoon):
(WebTestRunner::TestRunner::WorkQueue::processWork):
(WebTestRunner::TestRunner::WorkQueue::reset):
(WebTestRunner::TestRunner::WorkQueue::addWork):
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::reset):
(WebTestRunner::TestRunner::policyDelegateDone):
(WebTestRunner::TestRunner::findString):
(WebTestRunner::TestRunner::setTextSubpixelPositioning):
(WebTestRunner::TestRunner::overridePreference):
(WebTestRunner):
(WebTestRunner::TestRunner::setBackingScaleFactor):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(WebTestRunner::TestRunner::WorkQueue::isEmpty):
(TestRunner):
* DumpRenderTree/chromium/TestRunner/src/TextInputController.cpp:
(WebTestRunner::TextInputController::markedRange):
(WebTestRunner::TextInputController::selectedRange):
(WebTestRunner::TextInputController::firstRectForCharacterRange):
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
* DumpRenderTree/chromium/TestRunner/src/WebTask.cpp:
(WebTestRunner):
(WebTestRunner::WebTaskList::WebTaskList):
(WebTestRunner::WebTaskList::~WebTaskList):
(WebTestRunner::WebTaskList::registerTask):
(WebTestRunner::WebTaskList::unregisterTask):
(WebTestRunner::WebTaskList::revokeAll):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestRunner::WebTestInterfaces::WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::~WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::testInterfaces):
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
(WebTestRunner::WebTestProxyBase::~WebTestProxyBase):
(WebTestRunner::WebTestProxyBase::spellCheckClient):
(WebTestRunner::WebTestProxyBase::registerIntentService):
(WebTestRunner::WebTestProxyBase::dispatchIntent):
(WebTestRunner::WebTestProxyBase::assignIdentifierToRequest):
* DumpRenderTree/chromium/TestRunner/src/config.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142035 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Wed, 6 Feb 2013 22:33:44 +0000 (22:33 +0000)]
Unreviewed GTK gardening.

Expanding failure expectation for fast/dom/Window/slow-unload-handler-only-frame-is-stopped.html.

* platform/gtk/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142034 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoFix broken release builds, greening the bots.
mark.lam@apple.com [Wed, 6 Feb 2013 22:30:40 +0000 (22:30 +0000)]
Fix broken release builds, greening the bots.
https://bugs.webkit.org/show_bug.cgi?id=107475.

Not reviewed.

No new tests.

* Modules/webdatabase/DatabaseManager.cpp:
(WebCore::logOpenDatabaseError):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142033 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[chromium] turn TestRunner library into a component build
jochen@chromium.org [Wed, 6 Feb 2013 22:14:17 +0000 (22:14 +0000)]
[chromium] turn TestRunner library into a component build
https://bugs.webkit.org/show_bug.cgi?id=108466

Reviewed by Adam Barth.

To achieve this, we need to drop all dependencies on WTF.

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/TestRunner/public/WebPreferences.h:
* DumpRenderTree/chromium/TestRunner/public/WebTask.h:
* DumpRenderTree/chromium/TestRunner/public/WebTestCommon.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.
* DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h:
* DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
(WebTestRunner::AccessibilityUIElement::AccessibilityUIElement):
(WebTestRunner::AccessibilityUIElementList::getOrCreate):
(WebTestRunner::AccessibilityUIElementList::createRoot):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h:
(AccessibilityUIElementList):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.cpp:
(WebTestRunner::CppBoundClass::~CppBoundClass):
(WebTestRunner::CppBoundClass::invoke):
(WebTestRunner::CppBoundClass::getProperty):
(WebTestRunner::CppBoundClass::setProperty):
(WebTestRunner::CppBoundClass::bindCallback):
(WebTestRunner::CppBoundClass::bindGetterCallback):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::getAsCppVariant):
* DumpRenderTree/chromium/TestRunner/src/CppBoundClass.h:
(WebTestRunner):
(CppBoundClass):
(WebTestRunner::CppBoundClass::bindProperty):
(WebTestRunner::CppBoundClass::bindFallbackCallback):
(WebTestRunner::CppBoundClass::bindFallbackMethod):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.cpp:
(WebTestRunner::CppVariant::toString):
(WebTestRunner::CppVariant::toInt32):
(WebTestRunner::CppVariant::toDouble):
(WebTestRunner::CppVariant::toBoolean):
(WebTestRunner::CppVariant::toStringVector):
(WebTestRunner::CppVariant::invoke):
(WebTestRunner::CppVariant::invokeDefault):
* DumpRenderTree/chromium/TestRunner/src/CppVariant.h:
(CppVariant):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::reset):
(WebTestRunner::EventSender::mouseDown):
(WebTestRunner::EventSender::mouseUp):
(WebTestRunner::EventSender::mouseMoveTo):
(WebTestRunner::EventSender::keyDown):
(WebTestRunner::EventSender::dispatchMessage):
(WebTestRunner::EventSender::leapForward):
(WebTestRunner::EventSender::replaySavedEvents):
(WebTestRunner::makeMenuItemStringsFor):
(WebTestRunner::EventSender::contextClick):
(WebTestRunner::EventSender::beginDragWithFiles):
(WebTestRunner::EventSender::addTouchPoint):
(WebTestRunner::EventSender::releaseTouchPoint):
(WebTestRunner::EventSender::updateTouchPoint):
(WebTestRunner::EventSender::cancelTouchPoint):
(WebTestRunner::EventSender::sendCurrentTouchEvent):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/KeyCodeMapping.cpp:
(WebTestRunner::NativeKeyCodeForWindowsKeyCode):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.cpp:
(WebTestRunner::MockGrammarCheck::checkGrammarOfString):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/MockGrammarCheck.h:
(WebTestRunner):
(MockGrammarCheck):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp:
(WebTestRunner::MockSpellCheck::spellCheckWord):
(WebTestRunner::MockSpellCheck::initializeIfNeeded):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.h:
(MockSpellCheck):
* DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp:
(WebTestRunner::SpellCheckClient::checkTextOfParagraph):
(WebTestRunner::SpellCheckClient::finishLastTextCheck):
* DumpRenderTree/chromium/TestRunner/src/TestCommon.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.
(isASCIIAlpha):
(isNotASCIIAlpha):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(WebTestRunner::TestInterfaces::TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.h:
(TestInterfaces):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.cpp:
(WebTestRunner::TestPlugin::TestPlugin):
(WebTestRunner::TestPlugin::initialize):
(WebTestRunner::TestPlugin::destroy):
(WebTestRunner::TestPlugin::parsePrimitive):
(WebTestRunner::TestPlugin::parseColor):
(WebTestRunner::TestPlugin::initProgram):
(WebTestRunner::TestPlugin::initPrimitive):
(WebTestRunner::TestPlugin::drawPrimitive):
(WebTestRunner::TestPlugin::loadShader):
(WebTestRunner::TestPlugin::loadProgram):
(WebTestRunner::TestPlugin::handleDragStatusUpdate):
* DumpRenderTree/chromium/TestRunner/src/TestPlugin.h:
(TestPlugin):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::WorkQueue::processWorkSoon):
(WebTestRunner::TestRunner::WorkQueue::processWork):
(WebTestRunner::TestRunner::WorkQueue::reset):
(WebTestRunner::TestRunner::WorkQueue::addWork):
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::reset):
(WebTestRunner::TestRunner::policyDelegateDone):
(WebTestRunner::TestRunner::findString):
(WebTestRunner::TestRunner::setTextSubpixelPositioning):
(WebTestRunner::TestRunner::overridePreference):
(WebTestRunner::TestRunner::deliverWebIntent):
(WebTestRunner::TestRunner::setBackingScaleFactor):
(WebTestRunner::TestRunner::simulateLegacyWebNotificationClick):
(WebTestRunner::TestRunner::setMockSpeechInputDumpRect):
(WebTestRunner::TestRunner::wasMockSpeechRecognitionAborted):
(WebTestRunner::TestRunner::setPointerLockWillFailSynchronously):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(WebTestRunner::TestRunner::WorkQueue::isEmpty):
(TestRunner):
* DumpRenderTree/chromium/TestRunner/src/TextInputController.cpp:
(WebTestRunner::TextInputController::markedRange):
(WebTestRunner::TextInputController::selectedRange):
(WebTestRunner::TextInputController::firstRectForCharacterRange):
* DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp:
(WebTestRunner::WebPreferences::reset):
* DumpRenderTree/chromium/TestRunner/src/WebTask.cpp:
(WebTestRunner::WebTaskList::~WebTaskList):
(WebTestRunner::WebTaskList::registerTask):
(WebTestRunner::WebTaskList::unregisterTask):
(WebTestRunner::WebTaskList::revokeAll):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestRunner::WebTestInterfaces::WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::~WebTestInterfaces):
(WebTestRunner::WebTestInterfaces::testInterfaces):
* DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:
(WebTestRunner::WebTestProxyBase::~WebTestProxyBase):
(WebTestRunner::WebTestProxyBase::spellCheckClient):
(WebTestRunner::WebTestProxyBase::registerIntentService):
(WebTestRunner::WebTestProxyBase::dispatchIntent):
(WebTestRunner::WebTestProxyBase::assignIdentifierToRequest):
* DumpRenderTree/chromium/TestRunner/src/config.h: Copied from Tools/DumpRenderTree/chromium/TestRunner/public/WebTestInterfaces.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142032 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed, rolling out r142025.
commit-queue@webkit.org [Wed, 6 Feb 2013 21:57:01 +0000 (21:57 +0000)]
Unreviewed, rolling out r142025.
http://trac.webkit.org/changeset/142025
https://bugs.webkit.org/show_bug.cgi?id=109091

broke the build (Requested by tdanderson on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-06

Source/WebCore:

* dom/GestureEvent.cpp:
(WebCore::GestureEvent::create):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleGestureEvent):
(WebCore::EventHandler::handleGestureScrollUpdate):
* platform/PlatformEvent.h:
* platform/Scrollbar.cpp:
(WebCore::Scrollbar::gestureEvent):
* platform/chromium/PopupContainer.cpp:
(WebCore::PopupContainer::handleGestureEvent):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollByRecursively):
* rendering/RenderLayer.h:

Source/WebKit/chromium:

* public/WebInputEvent.h:
(WebKit::WebInputEvent::isGestureEventType):
* src/PageWidgetDelegate.cpp:
(WebKit::PageWidgetDelegate::handleInputEvent):
* src/WebInputEventConversion.cpp:
(WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
* src/WebPluginContainerImpl.cpp:
* src/WebPopupMenuImpl.cpp:
(WebKit::WebPopupMenuImpl::handleInputEvent):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):

Tools:

* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/EventSender.h:
(EventSender):

LayoutTests:

* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Removed.
* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated.html: Removed.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Removed.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html: Removed.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Removed.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html: Removed.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Removed.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Removed.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Removed.
* platform/chromium/plugins/gesture-events-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled.html:
* platform/chromium/plugins/gesture-events.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142031 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoSplit openDatabase() between front and back end work.
mark.lam@apple.com [Wed, 6 Feb 2013 21:51:58 +0000 (21:51 +0000)]
Split openDatabase() between front and back end work.
https://bugs.webkit.org/show_bug.cgi?id=107475.

Reviewed by Anders Carlsson.

The main work of splitting DatabaseManager::openDatabase() is in
refactoring how DatabaseTracker::canEstablishDatabase() works. It used
to check for adequate space quota, and if the check fails, it would call
back into the client from inside canEstablishDatabase(). The call back
allows the client to update the quota (if appropriate). Thereafter,
canEstablishDatabase() will retry its quota check.

In a webkit2 world, we'll want to minimize the traffic between the
client (script side) and the server (sqlite db side), and ideally, we
don't want the server to call back to the client. Note: the
DatabaseTracker belongs on the server side.

To achieve this, we split canEstablishDatabase() into 2 parts: the
checks before the call back to the client, and the checks after.
The first part will retain the name canEstablishDatabase(), and the
second part will be named retryCanEstablishDatabase().
We also added a DatabaseServer::openDatabase() function that can be
called with a retry flag.

The client side DatabaseManager::openDatabase() will call
DatabaseServer::openDatabase(), which then calls canEstablishDatabase()
to do its quota check. If there is enough quota,
DatabaseServer::openDatabase() will proceed to open the backend database
without return to the client first. The opened database will be returned
to the client.

If DatabaseServer::openDatabase() finds inadequate quota the first time,
it will return with a DatabaseSizeExceededQuota error. The DatabaseManager
(on the client side) will check for this error and call back to its client
for an opportunity to increase the quota. Thereafter, the DatabaseManager
will call DatabaseServer::openDatabase() again. This time,
DatabaseServer::openDatabase() will call retryCanEstablishDatabase() to
check the quota, and then open the backend database if there is enough
quota.

No new tests.

* Modules/webdatabase/AbstractDatabaseServer.h:
* Modules/webdatabase/DOMWindowWebDatabase.cpp:
(WebCore::DOMWindowWebDatabase::openDatabase):
* Modules/webdatabase/Database.cpp:
(WebCore::Database::create):
* Modules/webdatabase/Database.h:
(Database):
* Modules/webdatabase/DatabaseBackend.cpp:
(WebCore::DatabaseBackend::performOpenAndVerify):
* Modules/webdatabase/DatabaseBackend.h:
(DatabaseBackend):
* Modules/webdatabase/DatabaseBackendAsync.cpp:
(WebCore::DatabaseBackendAsync::openAndVerifyVersion):
(WebCore::DatabaseBackendAsync::performOpenAndVerify):
* Modules/webdatabase/DatabaseBackendAsync.h:
(DatabaseBackendAsync):
* Modules/webdatabase/DatabaseBackendSync.cpp:
(WebCore::DatabaseBackendSync::openAndVerifyVersion):
* Modules/webdatabase/DatabaseBackendSync.h:
(DatabaseBackendSync):
* Modules/webdatabase/DatabaseError.h:
(WebCore::ENUM_CLASS):
* Modules/webdatabase/DatabaseManager.cpp:
(WebCore::DatabaseManager::exceptionCodeForDatabaseError):
(WebCore::DatabaseManager::openDatabaseBackend):
(WebCore::DatabaseManager::openDatabase):
(WebCore::DatabaseManager::openDatabaseSync):
* Modules/webdatabase/DatabaseManager.h:
(DatabaseManager):
* Modules/webdatabase/DatabaseServer.cpp:
(WebCore::DatabaseServer::openDatabase):
(WebCore::DatabaseServer::createDatabase):
* Modules/webdatabase/DatabaseServer.h:
* Modules/webdatabase/DatabaseSync.cpp:
(WebCore::DatabaseSync::create):
* Modules/webdatabase/DatabaseSync.h:
(DatabaseSync):
* Modules/webdatabase/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::hasAdequateQuotaForOrigin):
(WebCore::DatabaseTracker::canEstablishDatabase):
(WebCore::DatabaseTracker::retryCanEstablishDatabase):
* Modules/webdatabase/DatabaseTracker.h:
(DatabaseTracker):
* Modules/webdatabase/WorkerContextWebDatabase.cpp:
(WebCore::WorkerContextWebDatabase::openDatabase):
(WebCore::WorkerContextWebDatabase::openDatabaseSync):
* Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
(WebCore::DatabaseTracker::canEstablishDatabase):
(WebCore::DatabaseTracker::retryCanEstablishDatabase):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142030 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoFix CompactHTMLToken's copy ctor to copy all fields
tonyg@chromium.org [Wed, 6 Feb 2013 21:49:48 +0000 (21:49 +0000)]
Fix CompactHTMLToken's copy ctor to copy all fields
https://bugs.webkit.org/show_bug.cgi?id=109076

Reviewed by Adam Barth.

This was introduced by me in r142004. Without this patch we fail all tests when using the background parser.

Also don't use getters in copy ctor.

No new tests because no new functionality.

* html/parser/CompactHTMLToken.cpp:
(WebCore::CompactHTMLToken::CompactHTMLToken):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142029 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[Chromium/Skia] Remove use of deprecated Skia names
commit-queue@webkit.org [Wed, 6 Feb 2013 21:42:20 +0000 (21:42 +0000)]
[Chromium/Skia] Remove use of deprecated Skia names
https://bugs.webkit.org/show_bug.cgi?id=109085

Patch by Brian Salomon <bsalomon@google.com> on 2013-02-06
Reviewed by Stephen White.

Tested by every existing canvas2d test.

* platform/chromium/support/GraphicsContext3DPrivate.cpp:
(WebCore::GraphicsContext3DPrivate::grContext):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142028 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[chromium] Remove "config.h" header from WebUnitTests.cpp
dcheng@chromium.org [Wed, 6 Feb 2013 21:35:55 +0000 (21:35 +0000)]
[chromium] Remove "config.h" header from WebUnitTests.cpp
https://bugs.webkit.org/show_bug.cgi?id=108966

Reviewed by Tony Chang.

This file includes headers from base/ in Chromium, and config.h
conflicts with base/logging.h. Rather than teaching certain files in
base/ not to #include base/logging.h, remove the config.h include
here. The ASSERT isn't really necessary, as attempting to run a null
test suite won't go very far anyway.

* tests/WebUnitTests.cpp:
(WebKit::RunAllUnitTests):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142027 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Wed, 6 Feb 2013 21:30:10 +0000 (21:30 +0000)]
Unreviewed GTK gardening.

Rebaselining and adding a few failure expectations after r142015.

* platform/gtk/TestExpectations:
* platform/gtk/fast/dynamic/002-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142026 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoAdd support for gesture scroll events that do not propagate to enclosing scrollables
tdanderson@chromium.org [Wed, 6 Feb 2013 21:26:19 +0000 (21:26 +0000)]
Add support for gesture scroll events that do not propagate to enclosing scrollables
https://bugs.webkit.org/show_bug.cgi?id=108849

Reviewed by Antonio Gomes.

Source/WebCore:

Tests: fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated.html
       fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html
       fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html

Rename RenderLayer::scrollByRecursively() to RenderLayer::scrollBy() and add a parameter
of type RenderLayer::ScrollPropagation to specify whether or not the scroll should
propagate to its parent by recursing. Implement RenderLayer::scrollByRecursively() as a
call to RenderLayer::scrollBy() with argument RenderLayer::ShouldPropagateScroll so
that all existing calls to the function still produce the correct behavior.

In EventHandler::handleGestureScrollUpdate(), call RenderLayer::scrollBy() with
argument RenderLayer::ShouldPropagateScroll if |gestureEvent| is a GestureScrollUpdate
or instead with argument RenderLayer::DontPropagateScroll if |gestureEvent| is a
GestureScrollUpdateWithoutPropagation.

* dom/GestureEvent.cpp:
(WebCore::GestureEvent::create):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleGestureEvent):
(WebCore::EventHandler::handleGestureScrollUpdate):
* platform/PlatformEvent.h:
* platform/Scrollbar.cpp:
(WebCore::Scrollbar::gestureEvent):
* platform/chromium/PopupContainer.cpp:
(WebCore::PopupContainer::handleGestureEvent):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollByRecursively):
(WebCore):
(WebCore::RenderLayer::scrollBy):
* rendering/RenderLayer.h:

Source/WebKit/chromium:

Define the new event type GestureScrollUpdateWithoutPropagation.

* public/WebInputEvent.h:
(WebKit::WebInputEvent::isGestureEventType):
* src/PageWidgetDelegate.cpp:
(WebKit::PageWidgetDelegate::handleInputEvent):
* src/WebInputEventConversion.cpp:
(WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
* src/WebPluginContainerImpl.cpp:
* src/WebPopupMenuImpl.cpp:
(WebKit::WebPopupMenuImpl::handleInputEvent):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):

Tools:

Modify chromium's DRT EventSender to support the new event type
GestureScrollUpdateWithoutPropagation.

* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::gestureScrollUpdateWithoutPropagation):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/EventSender.h:
(EventSender):

LayoutTests:

New tests added to ensure that GestureScrollUpdateNotPropagated events will not
propagate to the scrollable parent of their target when the target has no area
left to be scrolled.

Modified two chromium-specific plugin tests to ensure that the plugins receive
GestureScrollUpdate events when GestureScrollUpdateNotPropagated events are
dispatched to them.

* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated.html: Added.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html: Added.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Added.
* fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated.html: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-div-not-propagated-expected.txt: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated-expected.txt: Added.
* platform/chromium/fast/events/touch/gesture/touch-gesture-scroll-page-not-propagated-expected.txt: Added.
* platform/chromium/plugins/gesture-events-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled-expected.txt:
* platform/chromium/plugins/gesture-events-scrolled.html:
* platform/chromium/plugins/gesture-events.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142025 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoREGRESSION(r141136): Apple's internal PLT test suite doesn't finish
rniwa@webkit.org [Wed, 6 Feb 2013 21:11:35 +0000 (21:11 +0000)]
REGRESSION(r141136): Apple's internal PLT test suite doesn't finish
https://bugs.webkit.org/show_bug.cgi?id=108380

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Re-enable the main resource cache since the regression had been fixed in r141615.

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestResource):

LayoutTests:

Re-enable tests that have been temporarily disabled.

* platform/mac/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142024 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[TestResultServer] Adjust the name of the GTK 64-bit debug builder
zandobersek@gmail.com [Wed, 6 Feb 2013 21:01:24 +0000 (21:01 +0000)]
[TestResultServer] Adjust the name of the GTK 64-bit debug builder
https://bugs.webkit.org/show_bug.cgi?id=109016

Reviewed by Ojan Vafai.

* TestResultServer/static-dashboards/builders.jsonp: The GTK 64-bit debug
builder was adjusted to build WebKit1 only, with the name changed accordingly.
Reflect that change here as well.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142023 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago[WTFURL] Fix erroneous header inclusions in WTFURL code
zandobersek@gmail.com [Wed, 6 Feb 2013 21:00:16 +0000 (21:00 +0000)]
[WTFURL] Fix erroneous header inclusions in WTFURL code
https://bugs.webkit.org/show_bug.cgi?id=109040

Reviewed by Benjamin Poulain.

Include WTFURL API headers from files in Source/WTF/wtf/url/src
by specifying their relative path to Source/WTF.

* GNUmakefile.am: The changes make it possible to compile the WTF library
without specifying both Source/WTF/wtf/url/api and Source/WTF/wtf/url/src
as inclusion directories in CPPFLAGS, so remove these two entries.
* wtf/url/src/RawURLBuffer.h:
* wtf/url/src/URLCanon.h: Include the URLParse.h header by specifying
only the base name as it's located in the same directory.
* wtf/url/src/URLCanonQuery.cpp:
* wtf/url/src/URLUtil.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142022 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoImplement 'vmax' from CSS3 values and units
commit-queue@webkit.org [Wed, 6 Feb 2013 20:58:04 +0000 (20:58 +0000)]
Implement 'vmax' from CSS3 values and units
https://bugs.webkit.org/show_bug.cgi?id=91440

Patch by Uday Kiran <udaykiran@motorola.com> on 2013-02-06
Reviewed by Antti Koivisto.

vmax is implemented as primitive length unit.
New length type ViewportPercentageMax is added and included support for fetching the value
of this viewport percentage unit based on current viewport size.

The specification related to this implementation is
http://dev.w3.org/csswg/css3-values/#viewport-relative-lengths.

Source/WebCore:

Tests: css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax-absolute.html
       css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax.html

* css/CSSGrammar.y.in: Added vmax support.
* css/CSSParser.cpp: Parsing of vmax unit.
(WebCore::CSSParser::validUnit): Added vmax to valid units.
(WebCore::CSSParser::createPrimitiveNumericValue): Added vmax to primitive untis.
(WebCore::CSSParser::parseValidPrimitive): Creation of CSSPrimitive for vmax.
(WebCore::CSSParser::detectNumberToken): Parsing of vmax token.
* css/CSSParserValues.cpp:
(WebCore::CSSParserValue::createCSSValue): Added support for vmax.
* css/CSSPrimitiveValue.cpp:
(WebCore::isValidCSSUnitTypeForDoubleConversion): Added support for vmax.
(WebCore::unitCategory): Ditto.
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Ditto.
(WebCore::CSSPrimitiveValue::cleanup):
(WebCore::CSSPrimitiveValue::customCssText): Added support for vmax.
(WebCore::CSSPrimitiveValue::viewportPercentageLength): Function to create the Length structure for the viewport-percentage unit types.
(WebCore::CSSPrimitiveValue::cloneForCSSOM):
* css/CSSPrimitiveValue.h:
(WebCore::CSSPrimitiveValue::isViewportPercentageLength): Checks whether the primitive value is ViewportPercentage Length.
* css/CSSPrimitiveValue.idl: Added support for vmax.
* css/LengthFunctions.cpp: Calcuation of length value based on the current viewport size.
(WebCore::minimumValueForLength):
(WebCore::valueForLength):
(WebCore::floatValueForLength):
* platform/Length.h:
(WebCore::Length::isViewportPercentage): To check the Length is of type ViewportPercentage.
* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalWidthUsing):
(WebCore::RenderBox::computeReplacedLogicalHeightUsing):

LayoutTests:

* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle-expected.txt:
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-getStyle.html:
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax-absolute-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax-absolute.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax-expected.html: Added.
* css3/viewport-percentage-lengths/css3-viewport-percentage-lengths-vmax.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142021 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Wed, 6 Feb 2013 20:56:00 +0000 (20:56 +0000)]
Unreviewed GTK gardening.

Walked through the WontFix test expectations, expanding them with the expected failure.
This forces the test to run but not complain as long as the failure is the same as expected.

* platform/gtk/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142020 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years ago2013-02-06 Nima Ghanavatian <nghanavatian@rim.com>
nghanavatian@rim.com [Wed, 6 Feb 2013 20:43:03 +0000 (20:43 +0000)]
2013-02-06  Nima Ghanavatian  <nghanavatian@rim.com>

        [BlackBerry] Check range before use in parseBlockForSpellChecking
        https://bugs.webkit.org/show_bug.cgi?id=109080

        Reviewed by Yong Li.

        PR291394
        This was missed during patch webkit/5aea04f6ea625827. Since getRangeForSpellCheckWithFineGranularity
        now returns null values, we need a check here before using the range object here as well.

        Internally reviewed by Mike Fenton.

        * WebKitSupport/SpellingHandler.cpp:
        (BlackBerry::WebKit::SpellingHandler::parseBlockForSpellChecking):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142019 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoSuppress failures for minor pixel diffs which will be caused when https://codereview...
senorblanco@chromium.org [Wed, 6 Feb 2013 20:41:07 +0000 (20:41 +0000)]
Suppress failures for minor pixel diffs which will be caused when https://codereview.chromium.org/12217047/ lands.  Unreviewed.
https://bugs.webkit.org/show_bug.cgi?id=104289

* platform/chromium/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142018 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoPass the document source URL to the pluginLoadPolicy callback
andersca@apple.com [Wed, 6 Feb 2013 20:40:20 +0000 (20:40 +0000)]
Pass the document source URL to the pluginLoadPolicy callback
https://bugs.webkit.org/show_bug.cgi?id=109084
<rdar://problem/13154516>

Reviewed by Andreas Kling.

* UIProcess/API/C/WKPage.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::getPluginPath):
* UIProcess/WebPageProxy.h:
(WebPageProxy):
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebUIClient.cpp:
(WebKit::WebUIClient::pluginLoadPolicy):
* UIProcess/WebUIClient.h:
(WebUIClient):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::createPlugin):
(WebKit::WebPage::canPluginHandleResponse):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142017 268f45cc-cd09-0410-ab3c-d52691b4dbfc

6 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Wed, 6 Feb 2013 20:25:47 +0000 (20:25 +0000)]
Unreviewed GTK gardening.

Marking required tests as slow so the test runs are not interrupted when timeouts
occur in tests that would actually pass if given enough time.

* platform/gtk/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142016 268f45cc-cd09-0410-ab3c-d52691b4dbfc