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: http://svn.webkit.org/repository/webkit/trunk@142091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@142092 268f45cc-cd09-0410-ab3c-d52691b4dbfc