Improve how ContentSearchUtilities::lineEndings works by supporting the three common line endings.

https://bugs.webkit.org/show_bug.cgi?id=129458

Reviewed by Joseph Pecoraro.

Source/JavaScriptCore:

* inspector/ContentSearchUtilities.cpp:
(Inspector::ContentSearchUtilities::textPositionFromOffset): Remove assumption about line ending length.
(Inspector::ContentSearchUtilities::getRegularExpressionMatchesByLines): Remove assumption about
line ending type and don't try to strip the line ending. Use size_t
(Inspector::ContentSearchUtilities::lineEndings): Use findNextLineStart to find the lines.
This will include the line ending in the lines, but that is okay.
(Inspector::ContentSearchUtilities::buildObjectForSearchMatch): Use size_t.
(Inspector::ContentSearchUtilities::searchInTextByLines): Modernize.

LayoutTests:

* inspector-protocol/debugger/resources/mac-linebreaks.js: Added.
* inspector-protocol/debugger/resources/mixed-linebreaks.js: Added.
* inspector-protocol/debugger/resources/unix-linebreaks.js: Added.
* inspector-protocol/debugger/resources/windows-linebreaks.js: Added.
* inspector-protocol/debugger/searchInContent-linebreaks-expected.txt: Added.
* inspector-protocol/debugger/searchInContent-linebreaks.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use a RegExp when when using CodeMirror's SearchCursor.

This avoids doing toLowerCase() on every line of the TextEditor.

https://bugs.webkit.org/show_bug.cgi?id=129463

Reviewed by Joseph Pecoraro.

* UserInterface/Views/TextEditor.js:
(TextEditor.prototype.performSearch): Use a RegExp for query. Pass false for the caseFold
argument, but it is ignored for RegExp searches anyway.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Stop using some deprecated functions in WKView.mm
https://bugs.webkit.org/show_bug.cgi?id=129455

Reviewed by Anders Carlsson.

* UIProcess/API/mac/WKView.mm:
(-[WKView firstRectForCharacterRange:actualRange:]): Use convertRectToScreen,
which is a replacement for convertBaseToScreen. Don't check for window being null,
because isn't that crazy talk?
(-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]): Use event's location
in window instead of current mouse location. Using location that is not synced to
event stream rarely makes sense, and it doesn't look like this is one of those cases.
(-[WKView performDictionaryLookupAtCurrentMouseLocation]): Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Enable support of X-Content-Type-Options: nosniff header for EFL
https://bugs.webkit.org/show_bug.cgi?id=128673

Reviewed by Gyuyoung Kim.

.:

* Source/cmake/OptionsEfl.cmake:
Enabled NOSNIFF feature flag for EFL.

LayoutTests:

* http/tests/security/contentTypeOptions/nosniff-script-blocked-expected.txt:
* http/tests/security/contentTypeOptions/nosniff-script-without-content-type-blocked-expected.txt:
Updated expectations as console output now includes line numbers.
* platform/efl/TestExpectations:
Unskipped http/tests/security/contentTypeOptions tests.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build break when disabled CSS_GRID_LAYOUT
https://bugs.webkit.org/show_bug.cgi?id=129459

Reviewed by Gyuyoung Kim.

* css/CSSValue.h: Added guards of CSS_GRID_LAYOUT for GridTemplateAreasClass.

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