Use the Selector Code Generator for resolving style
https://bugs.webkit.org/show_bug.cgi?id=126199

Reviewed by Ryosuke Niwa.

* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::ruleMatches):
* css/RuleSet.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Exclude shims and PluginProcess.app from the WebKit2 build
https://bugs.webkit.org/show_bug.cgi?id=126936

Reviewed by Daniel Bates.

* Configurations/All.xcconfig: Added. Excluded PluginProcess.app from
being copied into WebKit2.framework on iOS.
* Configurations/NetworkProcess.xcconfig: Excluded SecItemShim.dylib
from being copied into NetworkProcess.app on iOS.
* Configurations/PluginProcess.xcconfig: Excluded
PluginProcessShim.dylib from being copied into PluginProcess.app and
set SKIP_INSTALL to YES on iOS.
* Configurations/PluginProcessShim.xcconfig: Added. Linked the shim
against necessary frameworks on Mac.
* Configurations/SecItemShim.xcconfig: Ditto.
* Configurations/WebProcessShim.xcconfig: Ditto.
* Configurations/WebContentProcess.xcconfig: Excluded
WebProcessShim.dylib from being copied into WebProcess.app on iOS.
* PluginProcess/mac/PluginProcessShim.mm: Added #if !PLATFORM(IOS) guards.
* Shared/mac/CookieStorageShimLibrary.cpp: Ditto.
* WebProcess/mac/SecItemShimLibrary.mm: Ditto.
* WebKit2.xcodeproj/project.pbxproj: Removed Mac-only frameworks from
the shims' 'Link Binary with Libraries' build phases. Added new xcconfigs.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][CMake] Circular dependency in generation of WebKitEnumTypes.h
https://bugs.webkit.org/show_bug.cgi?id=126912

Reviewed by Daniel Bates.

* PlatformGTK.cmake: Remove the circular dependency by generating WebKitEnumTypes.h with
all installed headers except for WebKitEnumTypes.h itself.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
https://bugs.webkit.org/show_bug.cgi?id=126911

Reviewed by Daniel Bates.

* PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK][CMake] Add a 'check' target
https://bugs.webkit.org/show_bug.cgi?id=126770

Reviewed by Daniel Bates.

* Source/PlatformGTK.cmake: Add a 'check' target that calls run-gtk-tests.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Mark all dependency include paths and libraries as advanced variables
https://bugs.webkit.org/show_bug.cgi?id=126504

Reviewed by Daniel Bates.

.:

* Source/cmake/FindATK.cmake: Mark result variable as advanced.
* Source/cmake/FindCairo.cmake: Ditto.
* Source/cmake/FindEGL.cmake: Ditto.
* Source/cmake/FindEnchant.cmake: Ditto.
* Source/cmake/FindGLIB.cmake: Ditto.
* Source/cmake/FindGStreamer.cmake: Ditto.
* Source/cmake/FindHarfBuzz.cmake: Ditto.
* Source/cmake/FindLibSoup.cmake: Ditto.

Source/WebKit2:

* CMakeLists.txt: Mark the LIBRT_LIBRARIES variable as advanced.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening. Rebaseline after r161696.

* platform/efl/css1/text_properties/word_spacing-expected.png:
* platform/efl/css1/text_properties/word_spacing-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WebGL] Crash due to forceLostContext
https://bugs.webkit.org/show_bug.cgi?id=126947

Reviewed by Dean Jackson.

Covered by webgl/conformance/textures/origin-clean-conformance.html.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::isContextLost): Make const.
(WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
a lost context.
* html/canvas/WebGLRenderingContext.h: isContextLost should be const.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Highlighting password field then making a Sticky Note via Safari Services exposes password
https://bugs.webkit.org/show_bug.cgi?id=126946

Reviewed by Enrica Casucci.

Using the Services menu has a slightly different codepath than Editor::copy() does. This
patch duplicates the canCopy() check that Editor::copy() does.

Testing is not possible because the Services menu is not accessible to our tests.

* editing/mac/EditorMac.mm:
(WebCore::Editor::stringSelectionForPasteboard):
(WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
(WebCore::Editor::dataSelectionForPasteboard):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening. Rebaselining after r161669.

* platform/efl/css3/masking/clip-path-circle-border-box-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-border-box-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-bounding-box-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-bounding-box-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-content-box-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-content-box-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-margin-box-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-margin-box-expected.txt: Added.
* platform/efl/css3/masking/clip-path-circle-padding-box-expected.png: Added.
* platform/efl/css3/masking/clip-path-circle-padding-box-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Build Fix: Don't build the 'All-iOS' target on iOS. Just use 'All'.

* Makefile:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed build fix for Win64.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
Corrected 64-bit linker symbols.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More work towards getting iOS WK1 building.

Source/WebCore:

Some more Private headers for iOS.

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit/ios:

* WebCoreSupport/WebFrameIOS.mm:
(-[WebFrame imageForNode:allowDownsampling:drawContentBehindTransparentNodes:]): Stub out this
function, since it should use recently-refactored node snapshotting code. Covered by <rdar://problem/15808709>.

Source/WebKit/mac:

* DOM/WebDOMOperations.mm: Need RenderObject.h.
* DOM/WebDOMOperationsPrivate.h:
* History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
(-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
other code.
* Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
* Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
handle the error case.
* WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
* WebView/WebHTMLView.mm: Ditto.
(-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
different return type of createDragImageForSelection().
* WebView/WebPolicyDelegatePrivate.h:
* WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Do not store reference variables as a pointer in private data structure
https://bugs.webkit.org/show_bug.cgi?id=126945

Reviewed by Gyuyoung Kim.

Remove pageSettings, mainFrame and storageSession variables from Ewk_View_Private_Data.

* ewk/ewk_view.cpp:
(_ewk_view_priv_new):
(_ewk_view_smart_add):
(_ewk_view_smart_repaints_process):
(_ewk_view_smart_calculate):
(ewk_view_fixed_layout_size_set):
(ewk_view_fixed_layout_size_get):
(ewk_view_bg_color_set):
(ewk_view_setting_user_agent_set):
(ewk_view_setting_user_stylesheet_set):
(ewk_view_setting_auto_load_images_set):
(ewk_view_setting_auto_shrink_images_set):
(ewk_view_setting_enable_scripts_set):
(ewk_view_setting_enable_plugins_set):
(ewk_view_setting_enable_frame_flattening_set):
(ewk_view_setting_scripts_can_open_windows_set):
(ewk_view_setting_scripts_can_close_windows_set):
(ewk_view_setting_scripts_can_access_clipboard_set):
(ewk_view_setting_resizable_textareas_set):
(ewk_view_setting_private_browsing_set):
(ewk_view_setting_application_cache_set):
(ewk_view_setting_caret_browsing_set):
(ewk_view_setting_encoding_default_set):
(ewk_view_setting_encoding_detector_set):
(ewk_view_setting_enable_developer_extras_set):
(ewk_view_setting_font_minimum_size_set):
(ewk_view_setting_font_minimum_logical_size_set):
(ewk_view_setting_font_default_size_set):
(ewk_view_setting_font_monospace_size_set):
(ewk_view_font_family_name_set):
(ewk_view_setting_spatial_navigation_set):
(ewk_view_setting_local_storage_set):
(ewk_view_setting_page_cache_set):
(ewk_view_setting_local_storage_database_path_set):
(ewk_view_setting_minimum_timer_interval_set):
(ewk_view_setting_enable_webgl_set):
(ewk_view_setting_enable_hyperlink_auditing_set):
(ewk_view_setting_allow_universal_access_from_file_urls_set):
(ewk_view_setting_allow_file_access_from_file_urls_set):
(ewk_view_layout_if_needed_recursive):
(ewk_view_paint):
(ewk_view_paint_contents):
(ewk_view_js_object_add):
(ewk_view_page_rect_get):
(ewk_view_soup_session_get):
(ewk_view_soup_session_set):
(ewk_view_setting_enable_xss_auditor_set):
(ewk_view_setting_should_display_captions_set):
(ewk_view_setting_should_display_subtitles_set):
(ewk_view_setting_should_display_text_descriptions_set):
(ewk_view_setting_enable_fullscreen_set):
(ewk_view_setting_tiled_backing_store_enabled_set):
(ewk_view_setting_tiled_backing_store_enabled_get):
(ewk_view_tiled_backing_store_invalidate):
(EWKPrivate::storageSession):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r161916.
http://trac.webkit.org/changeset/161916
https://bugs.webkit.org/show_bug.cgi?id=126952

it is a lie - still fails on some configs (Requested by dino
on #webkit).

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Make NetworkStateNotifier.h a private header, needed by iOS.

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit/mac: Fix the remaining compiler errors in iOS WK1.

* WebView/WebFrame.mm:
(vectorForDictationPhrasesArray): Need this function on iOS.
(-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
a huge if PLATFORM(IOS) block.
(-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
* WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
* WebView/WebView.mm: #import cleanup for iOS.
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
here but this needs cleaning up (<rdar://problem/15810991>).
(-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
(-[WebView _didCommitLoadForFrame:]): Ditto.
* WebView/WebViewData.h: Add allowsRemoteInspection.
* WebView/WebViewData.mm: Initialize allowsRemoteInspection
(-[WebViewPrivate init]):
* WebView/WebViewPrivate.h: Fumbled #ifdef.

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