Fix MSVC build

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[css-shapes] shape-outside does not properly handle the container and the float having different writing modes
https://bugs.webkit.org/show_bug.cgi?id=122243

Reviewed by Alexandru Chiculita.

Source/WebCore:

The margin box offset needs to be computed based on the writing mode
of the container, not the writihg mode of the float itself. This
patch makes that happen.

Test: fast/shapes/shape-outside-floats/shape-outside-floats-different-writing-modes.html

* rendering/shapes/ShapeOutsideInfo.cpp:
(WebCore::ShapeOutsideInfo::updateDeltasForContainingBlockLine):

LayoutTests:

Test that the margins and width are properly computed in the case of
different writing modes.

* fast/shapes/shape-outside-floats/shape-outside-floats-different-writing-modes-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-different-writing-modes.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Regions] Helper functions for selection layout tests
https://bugs.webkit.org/show_bug.cgi?id=122128

Reviewed by Alexandru Chiculita.

Create new common JavaScript methods for CSS Regions layout tests
related to selection. Refactored tests in order to use them.

* fast/regions/resources/helper.js: Added new functions.
(selectContentByRange): Select from start to end position.
(selectContentByIds): Select from the beginning of the first element to the end
of the second one.
(selectBaseAndExtent): Select from start to end with given offsets using
Selection.setBaseAndExtent() method.
(mouseClick): Clicks in a given position.
* fast/regions/selection/selecting-text-in-empty-region.html: Refactored
test in order to use the new functions.
* fast/regions/selection/selecting-text-through-different-region-flows-2-expected.html:
Ditto.
* fast/regions/selection/selecting-text-through-different-region-flows-2.html:
Ditto.
* fast/regions/selection/selecting-text-through-different-region-flows.html:
Ditto.
* fast/regions/selection/selection-direction-expected.html: Ditto.
* fast/regions/selection/selection-direction.html: Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IDL parser should remove a leading "_" from identifier names
https://bugs.webkit.org/show_bug.cgi?id=122239

Reviewed by Jer Noble.

No new tests, updated bindings tests and results.

* bindings/scripts/IDLParser.pm:
(identifierRemoveNullablePrefix): Remove leading "_".
(parseInterface): Call identifierRemoveNullablePrefix.
(parseException): Ditto.
(parseEnum): Ditto.
(parseConst): Ditto.
(parseAttributeRest): Ditto.
(parseOperationRest): Ditto.
(parseOptionalOrRequiredArgument): Ditto.
(parseExceptionField): Ditto.
(parseNonAnyType): Ditto.

Update tests and results.
* bindings/scripts/test/CPP/WebDOMTestObj.cpp:
* bindings/scripts/test/CPP/WebDOMTestObj.h:
* bindings/scripts/test/CPP/WebDOMattribute.cpp: Added.
* bindings/scripts/test/CPP/WebDOMattribute.h: Added.
* bindings/scripts/test/CPP/WebDOMreadonly.cpp: Added.
* bindings/scripts/test/CPP/WebDOMreadonly.h: Added.
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.symbols:
* bindings/scripts/test/GObject/WebKitDOMattribute.cpp: Added.
* bindings/scripts/test/GObject/WebKitDOMattribute.h: Added.
* bindings/scripts/test/GObject/WebKitDOMattribute.symbols: Added.
* bindings/scripts/test/GObject/WebKitDOMattributePrivate.h: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.cpp: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.h: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.symbols: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonlyPrivate.h: Added.
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/JS/JSTestObj.h:
* bindings/scripts/test/JS/JSattribute.cpp: Added.
* bindings/scripts/test/JS/JSattribute.h: Added.
* bindings/scripts/test/JS/JSreadonly.cpp: Added.
* bindings/scripts/test/JS/JSreadonly.h: Added.
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
* bindings/scripts/test/ObjC/DOMattribute.h: Added.
* bindings/scripts/test/ObjC/DOMattribute.mm: Added.
* bindings/scripts/test/ObjC/DOMattributeInternal.h: Added.
* bindings/scripts/test/ObjC/DOMreadonly.h: Added.
* bindings/scripts/test/ObjC/DOMreadonly.mm: Added.
* bindings/scripts/test/ObjC/DOMreadonlyInternal.h: Added.
* bindings/scripts/test/TestException.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestObj.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: save and restore source positions in back/forward history
https://bugs.webkit.org/show_bug.cgi?id=122062

Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-10-02
Reviewed by Timothy Hatcher.

Previously, the back/forward entries comprised of only the content
views, but not their positions if navigated via hyperlink (i.e.,
handling script.js:42).  When multiple instances of the same
content view appeared in the back/forward list, the most recent
navigation was displayed rather than the linked position.

We now store context necessary to re-navigate such hyperlinks by
storing view- specific data inside a cookie object, and invoke a
supplied callback to take any position initialization actions,
such as calling TextEditor.revealPosition.  This state is
encapsulated into BackForwardEntry instances.

Functions that save and restore scroll positions inside content
views have been changed to store state in BackForwardEntry
instances, so multiple scroll positions can be saved for a content
view appearing in the navigation history more than once.

* UserInterface/BackForwardEntry.js: Added.
(WebInspector.BackForwardEntry):
(WebInspector.BackForwardEntry.prototype.get contentView):
(WebInspector.BackForwardEntry.prototype.get cookie):
(WebInspector.BackForwardEntry.prototype.prepareToShow):
(WebInspector.BackForwardEntry.prototype.prepareToHide):
(WebInspector.BackForwardEntry.prototype._restoreFromCookie):
(WebInspector.BackForwardEntry.prototype._restoreScrollPositions):
(WebInspector.BackForwardEntry.prototype._saveScrollPositions):
* UserInterface/ContentBrowser.js:
(WebInspector.ContentBrowser.prototype.showContentView):
(WebInspector.ContentBrowser.prototype._updateContentViewNavigationItems):
(WebInspector.ContentBrowser.prototype._updateFindBanner):
* UserInterface/ContentViewContainer.js:
(WebInspector.ContentViewContainer.prototype.get currentContentView):
(WebInspector.ContentViewContainer.prototype.get currentBackForwardEntry):
(WebInspector.ContentViewContainer.prototype.showContentView):
(WebInspector.ContentViewContainer.prototype.showBackForwardEntryForIndex):
(WebInspector.ContentViewContainer.prototype.replaceContentView):
(WebInspector.ContentViewContainer.prototype.closeAllContentViewsOfPrototype):
(WebInspector.ContentViewContainer.prototype.closeAllContentViews):
(WebInspector.ContentViewContainer.prototype.goBack):
(WebInspector.ContentViewContainer.prototype.goForward):
(WebInspector.ContentViewContainer.prototype.shown):
(WebInspector.ContentViewContainer.prototype.hidden):
(WebInspector.ContentViewContainer.prototype._showEntry):
(WebInspector.ContentViewContainer.prototype._hideEntry):
* UserInterface/Main.html:
* UserInterface/Main.js:
(WebInspector.openURL):
* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel.prototype.restoreCallback):
(WebInspector.ResourceSidebarPanel.prototype.showSourceCode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make Baseline JIT exception handling work like the DFG JIT
https://bugs.webkit.org/show_bug.cgi?id=122244

Reviewed by Filip Pizlo.

Added a jump list (m_exceptionChecks) to JIT as a common place for exception processing within
generated code.  Added exceptionCheck() helpers that check for an exception which add a branch
to the list.

* jit/JIT.cpp:
(JSC::JIT::privateCompile):
(JSC::JIT::privateCompileExceptionHandlers):
* jit/JIT.h:
(JSC::JIT::exceptionCheck):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
The Objective-C API should be available in 10.8 builds
https://bugs.webkit.org/show_bug.cgi?id=122245

Reviewed by Mark Rowe.

Enabled the Objective-C API when building on OS X 10.8 with the modern Objective-C runtime,
but kept the availability attributes in API headers for 10.9 and later as they were.

* API/JSBase.h: When JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080 is defined, made
JSC_OBJC_API_ENABLED true on 10.8 and above.
* API/JSContext.h: When JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080 is defined, marked the class
as available on all OS X versions.
* API/JSManagedValue.h: Ditto.
* API/JSValue.h: Ditto.
* API/JSVirtualMachine.h: Ditto.
* Configurations/Base.xcconfig: Added JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080 to
GCC_PREPROCESSOR_DEFINITIONS.
* JavaScriptCore.xcodeproj/project.pbxproj: Added a script build phase to unifdef the
above header files with JSC_OBJC_API_AVAILABLE_MAC_OS_X_1080 either defined or not based on
the OS X version we are targeting.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove Qt related files from the root directories
https://bugs.webkit.org/show_bug.cgi?id=122249

Reviewed by Andreas Kling.

* Source/QtWebKit.pro: Removed.
* Source/api.pri: Removed.
* Source/qtwebkit.qdocconf: Removed.
* Source/sync.profile: Removed.
* Source/tests.pri: Removed.
* Source/widgetsapi.pri: Removed.
* WebKit.pro: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove Qt-specific code in WebCore/plugins.
<https://webkit.org/b/122247>

Reviewed by Anders Carlsson.

Purge PLATFORM(QT) blocks and Qt-specific files.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Implement the shape-image-threshold property
https://bugs.webkit.org/show_bug.cgi?id=122216

Reviewed by Andreas Kling.

Source/WebCore:

Added support for the CSS shape-image-threshold property. This change
just enables parsing the property, it's not connected to the
Shapes code yet.

The number valued shape-image-threshold property is defined here:
http://dev.w3.org/csswg/css-shapes-1/#shape-image-threshold-property
Its computed value is clamped to the range [0, 1].

Test: fast/shapes/parsing/parsing-shape-image-threshold.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
* css/CSSPropertyNames.in:
* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):
* rendering/style/RenderStyle.h:
* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):
* rendering/style/StyleRareNonInheritedData.h:

LayoutTests:

Check parsing of the non-inherited CSS shape-image-threshold number property.
The property is defined here:
http://dev.w3.org/csswg/css-shapes-1/#shape-image-threshold-property

* fast/shapes/parsing/parsing-shape-image-threshold-expected.txt: Added.
* fast/shapes/parsing/parsing-shape-image-threshold.html: Added.
* fast/shapes/parsing/script-tests/parsing-shape-image-threshold.js: Added.


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