[iOS] Fix up WebKit build phases

Add iOS-specific logic to build phrases "Generate 64-bit Export File" and "Migrate Headers".

* WebKit.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Fix up WebKit build phases

Add iOS-specific logic to build phrases "Generate 64-bit Export File" and "Migrate Headers".

* WebKit.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update Mountain Lion test results for subpixel layout chanegs.

Patch by Zalan Bujtas.

* platform/mac-mountainlion/compositing: Added.
* platform/mac-mountainlion/compositing/contents-opaque: Added.
* platform/mac-mountainlion/compositing/contents-opaque/control-layer-expected.txt: Added.
* platform/mac-mountainlion/css3/selectors3/html/css3-modsel-23-expected.txt:
* platform/mac-mountainlion/css3/selectors3/html/css3-modsel-24-expected.txt:
* platform/mac-mountainlion/css3/selectors3/html/css3-modsel-68-expected.txt:
* platform/mac-mountainlion/css3/selectors3/html/css3-modsel-69-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xhtml/css3-modsel-23-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xhtml/css3-modsel-24-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xhtml/css3-modsel-68-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xhtml/css3-modsel-69-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xml/css3-modsel-23-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xml/css3-modsel-24-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xml/css3-modsel-68-expected.txt:
* platform/mac-mountainlion/css3/selectors3/xml/css3-modsel-69-expected.txt:
* platform/mac-mountainlion/editing/selection/3690703-2-expected.txt:
* platform/mac-mountainlion/editing/selection/3690703-expected.txt:
* platform/mac-mountainlion/editing/selection/3690719-expected.txt:
* platform/mac-mountainlion/fast/block/margin-collapse/103-expected.txt:
* platform/mac-mountainlion/fast/css/continuationCrash-expected.txt:
* platform/mac-mountainlion/fast/css/css2-system-fonts-expected.txt:
* platform/mac-mountainlion/fast/css/margin-top-bottom-dynamic-expected.txt: Added.
* platform/mac-mountainlion/fast/css/text-overflow-input-expected.txt:
* platform/mac-mountainlion/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt:
* platform/mac-mountainlion/fast/forms/basic-inputs-expected.txt:
* platform/mac-mountainlion/fast/forms/basic-textareas-expected.txt:
* platform/mac-mountainlion/fast/forms/basic-textareas-quirks-expected.txt:
* platform/mac-mountainlion/fast/forms/box-shadow-override-expected.txt:
* platform/mac-mountainlion/fast/forms/button-cannot-be-nested-expected.txt: Added.
* platform/mac-mountainlion/fast/forms/button-positioned-expected.txt:
* platform/mac-mountainlion/fast/forms/button-sizes-expected.txt:
* platform/mac-mountainlion/fast/forms/button-style-color-expected.txt:
* platform/mac-mountainlion/fast/forms/button-table-styles-expected.txt:
* platform/mac-mountainlion/fast/forms/button-text-transform-expected.txt:
* platform/mac-mountainlion/fast/forms/button-white-space-expected.txt:
* platform/mac-mountainlion/fast/forms/control-restrict-line-height-expected.txt:
* platform/mac-mountainlion/fast/forms/fieldset-align-expected.txt:
* platform/mac-mountainlion/fast/forms/file/input-file-re-render-expected.txt:
* platform/mac-mountainlion/fast/forms/form-element-geometry-expected.txt:
* platform/mac-mountainlion/fast/forms/input-appearance-height-expected.txt:
* platform/mac-mountainlion/fast/forms/input-button-sizes-expected.txt:
* platform/mac-mountainlion/fast/forms/input-disabled-color-expected.txt:
* platform/mac-mountainlion/fast/forms/input-readonly-autoscroll-expected.txt:
* platform/mac-mountainlion/fast/forms/input-readonly-dimmed-expected.txt:
* platform/mac-mountainlion/fast/forms/input-text-scroll-left-on-blur-expected.txt:
* platform/mac-mountainlion/fast/forms/input-value-expected.txt:
* platform/mac-mountainlion/fast/forms/listbox-hit-test-zoomed-expected.txt:
* platform/mac-mountainlion/fast/forms/minWidthPercent-expected.txt:
* platform/mac-mountainlion/fast/forms/search-rtl-expected.txt:
* platform/mac-mountainlion/fast/forms/search-vertical-alignment-expected.txt:
* platform/mac-mountainlion/fast/forms/searchfield-heights-expected.txt:
* platform/mac-mountainlion/fast/forms/select-baseline-expected.txt: Added.
* platform/mac-mountainlion/fast/forms/textAreaLineHeight-expected.txt:
* platform/mac-mountainlion/fast/forms/validation-message-appearance-expected.txt:
* platform/mac-mountainlion/fast/html/details-no-summary4-expected.txt:
* platform/mac-mountainlion/fast/html/details-open-javascript-expected.txt:
* platform/mac-mountainlion/fast/html/details-open2-expected.txt:
* platform/mac-mountainlion/fast/html/details-open4-expected.txt:
* platform/mac-mountainlion/fast/html/details-replace-summary-child-expected.txt:
* platform/mac-mountainlion/fast/html/details-replace-text-expected.txt:
* platform/mac-mountainlion/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt:
* platform/mac-mountainlion/fast/replaced/replaced-breaking-expected.txt:
* platform/mac-mountainlion/fast/text/textIteratorNilRenderer-expected.txt:
* platform/mac-mountainlion/http/tests/navigation/javascriptlink-frames-expected.txt:
* platform/mac-mountainlion/svg/custom/inline-svg-in-xhtml-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug1188-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug138725-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug18359-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug24200-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug2479-2-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug2479-3-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug2479-4-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug26178-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug28928-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug30692-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug33855-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug4527-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug46368-1-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug46368-2-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug51037-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug51727-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug52505-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug59354-expected.txt:
* platform/mac-mountainlion/tables/mozilla/bugs/bug7342-expected.txt:
* platform/mac-mountainlion/tables/mozilla/collapsing_borders/bug41262-4-expected.txt:
* platform/mac-mountainlion/tables/mozilla/core/margins-expected.txt:
* platform/mac-mountainlion/tables/mozilla/dom/tableDom-expected.txt:
* platform/mac-mountainlion/tables/mozilla/other/move_row-expected.txt:
* platform/mac-mountainlion/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
* platform/mac-mountainlion/tables/mozilla_expected_failures/bugs/bug58402-2-expected.txt:
* platform/mac-mountainlion/tables/mozilla_expected_failures/collapsing_borders/bug41262-5-expected.txt:
* platform/mac-mountainlion/tables/mozilla_expected_failures/collapsing_borders/bug41262-6-expected.txt:
* platform/mac-mountainlion/transforms/2d/zoom-menulist-expected.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error

LayoutTests: [WebGL] Invalid range checking in WebGLRenderContext::validateTexFunctionLevel
https://bugs.webkit.org/show_bug.cgi?id=126925

Reviewed by Dean Jackson.

* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils): Add missing 'waitForComposite' implementatino.
* fast/canvas/webgl/webgl-compressed-texture-size-limit-expected.txt: Added.
* fast/canvas/webgl/webgl-compressed-texture-size-limit.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] More build fixes for WebKit

Source/WebKit:

Add iOS-specific logic to build phases: "Symlink WebKitPluginHost in to place" and "Migrate Headers".

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
* Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
nature of each of these files. We may be able to reduce this list upon further investigation.
* WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
* WebView/WebFrameView.h: Ditto.
* WebView/WebUIDelegate.h: Ditto.
* WebView/WebView.h: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Map RootInlineBox to containing region via bit+hashmap.
<https://webkit.org/b/126917>

The vas majority of RootInlineBox objects don't have a containing
RenderRegion, so let's store that in a bit+hashmap configuration
instead of having a dedicated pointer member for it.

148 kB progression on Membuster3.

Reviewed by Antti Koivisto.

* rendering/InlineFlowBox.h:
(WebCore::InlineFlowBox::InlineFlowBox):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::RootInlineBox):

    Added m_hasContainingRegion bit.

(WebCore::containingRegionMap):

    Global map between RootInlineBox and RenderRegion.

(WebCore::RootInlineBox::~RootInlineBox):

    Remove self from aforementioned global map if needed.

(WebCore::RootInlineBox::paint):

    Tweak a condition to avoid double hash lookup.

* rendering/RootInlineBox.h:
(WebCore::RootInlineBox::containingRegion):
(WebCore::RootInlineBox::clearContainingRegion):
(WebCore::RootInlineBox::setContainingRegion):

    Store the containing region in a bit+hashmap.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Various iOS WebKit1 build fixes.

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
headers to be Private.

Source/WebKit/mac:

* Configurations/WebKit.xcconfig: Add more Mac-only files
to the excluded files list for iOS.
* DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
on iOS
* History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
* Misc/WebDownload.h: Need WAKAppKitStubs.h
* Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
* Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
in including it for all platforms.
* WebCoreSupport/WebEditorClient.h: Remove useless comment.
* WebCoreSupport/WebEditorClient.mm:
(nsStringWithoutCopying): Moved
(WebEditorClient::checkTextOfParagraph): Modernized.
* WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
* WebView/WebDataSource.mm: Need WebFrameViewInternal.h
* WebView/WebDocument.h: Needs WAKView.h.
* WebView/WebFrameView.h: Ditto.
* WebView/WebHTMLView.h: Ditto.
* WebView/WebPDFDocumentExtras.mm:
(allScriptsInPDFDocument): No PDFDocument on iOS.
* WebView/WebPolicyDelegate.h:
* WebView/WebView.h: Fix incorrect #if.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update the SelectorQuery code using compiled selector after r161196
https://bugs.webkit.org/show_bug.cgi?id=126860

Reviewed by Andreas Kling.

Update tree traversal code to the current traversal functions.

* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
(WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Remove duplicate inclusions of header WAKView.h
following <http://trac.webkit.org/changeset/161910>

* WebView/WebFrameView.h:
* WebView/WebHTMLView.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Performance regression on dromaeo due to generational marking
https://bugs.webkit.org/show_bug.cgi?id=126901

Reviewed by Oliver Hunt.

We were seeing some performance regression with ENABLE_GGC == 0, so this patch
ifdefs out more things to get rid of the additional overhead.

* heap/Heap.cpp:
(JSC::Heap::markRoots):
(JSC::Heap::writeBarrier):
* heap/MarkedBlock.cpp:
(JSC::MarkedBlock::clearMarks):
(JSC::MarkedBlock::clearMarksWithCollectionType):
* heap/MarkedSpace.cpp:
(JSC::MarkedSpace::resetAllocators):
* heap/MarkedSpace.h:
(JSC::MarkedSpace::didAllocateInBlock):
* heap/SlotVisitorInlines.h:
(JSC::SlotVisitor::internalAppend):
(JSC::SlotVisitor::reportExtraMemoryUsage):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][WK2] Replace usage of DEFINE_STATIC_LOCAL with NeverDestroyed
https://bugs.webkit.org/show_bug.cgi?id=126882

Reviewed by Gyuyoung Kim.

* Shared/efl/ProcessExecutablePathEfl.cpp:
(WebKit::executablePathOfWebProcess):
(WebKit::executablePathOfPluginProcess):
(WebKit::executablePathOfNetworkProcess):
* UIProcess/API/efl/EwkView.cpp:
(wkPageToEvasObjectMap):
* UIProcess/API/efl/ewk_context.cpp:
(contextMap):
* UIProcess/API/efl/ewk_page_group.cpp:
(pageGroupMap):
* UIProcess/efl/TextCheckerClientEfl.cpp:
(TextCheckerClientEfl::instance):
* UIProcess/efl/TextCheckerClientEfl.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening. Unskipping WebGL 1.0.2/conformance/ogles/GL/build/build_009_to_016.html
It now passes.

* platform/mac/TestExpectations:

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