2010-02-11  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Updates Android V8 Makefile to generate XPath header required by V8Proxy.cpp
        https://bugs.webkit.org/show_bug.cgi?id=34814

        No new tests, build fix only.

        * Android.derived.v8bindings.mk:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Updates Android V8 Makefile to generate Notifications and WebSockets headers required by V8DOMWrapper.cpp
        https://bugs.webkit.org/show_bug.cgi?id=34815

        No new tests, build fix only.

        * Android.derived.v8bindings.mk:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make it possible to toggle accelerated compositing from the menu
at run-time.

Reviewed by Tor Arne Vestbø.

* QtLauncher/main.cpp:
(LauncherWindow::toggleAcceleratedCompositing):
(LauncherWindow::setupUI):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Guard cmath using declarations in MathExtras.h on Android
https://bugs.webkit.org/show_bug.cgi?id=34840


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] ENABLE_RUBY flag was restored by r54649, but default value wasn't added for Qt port.
https://bugs.webkit.org/show_bug.cgi?id=34698

Reviewed by Tor Arne Vestbø.

* WebCore.pri: Add ENABLE_RUBY=1 as default setting.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: split source code into chunks in order to improve text
        viewer performance on large files.

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

        This change brings back SourceFrame's canvas+style magic, restores line
        wrapping and makes things a lot like they used to be.
        It removes TextEditor for now and renames NativeTextViewer into TextViewer.
        TextViewer is no longer derived from TextEditor.
        This TextViewer is still based on TextEditorModel, no iframes are involved.

        Instead of creating div per line, TextViewer splits source code into 50 line
        chunks. Upon scroll event, visible chunks are sharded into lines and individual
        lines are highlighted. Whenever highlighted region gets outside of the visible
        area, highlight spans are thrown away and region is replaced with the original
        plain text chunk.

        Complex stuff:
        - Whenever there is a need to manipulate individual lines (add message bubble /
        set breakpoint / reveal / etc.), individual chunks for such lines are created.
        - There is also an implicit machinery that is maintaining selection when it
        goes beyond the visible area.
        - Search occurrences are implemented as artificial spans interweaving
        highlighting markup.

        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/front-end/NativeTextViewer.js: Removed.
        * inspector/front-end/ScriptView.js:
        (WebInspector.ScriptView):
        * inspector/front-end/Settings.js:
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame):
        (WebInspector.SourceFrame.prototype.set visible):
        (WebInspector.SourceFrame.prototype.set executionLine):
        (WebInspector.SourceFrame.prototype.revealLine):
        (WebInspector.SourceFrame.prototype.addBreakpoint):
        (WebInspector.SourceFrame.prototype.removeBreakpoint):
        (WebInspector.SourceFrame.prototype.addMessage):
        (WebInspector.SourceFrame.prototype.clearMessages):
        (WebInspector.SourceFrame.prototype.sizeToFitContentHeight):
        (WebInspector.SourceFrame.prototype.setContent):
        (WebInspector.SourceFrame.prototype.highlightLine):
        (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
        (WebInspector.SourceFrame.prototype.markAndRevealRange):
        (WebInspector.SourceFrame.prototype.clearMarkedRange):
        (WebInspector.SourceFrame.prototype._breakpointChanged):
        (WebInspector.SourceFrame.prototype._updateExecutionLine):
        (WebInspector.SourceFrame.prototype._addMessageToSource):
        (WebInspector.SourceFrame.prototype._addExistingBreakpointsToSource):
        (WebInspector.SourceFrame.prototype._addBreakpointToSource):
        (WebInspector.SourceFrame.prototype._removeBreakpointFromSource):
        (WebInspector.SourceFrame.prototype._mouseDown):
        (WebInspector.SourceFrame.prototype._editBreakpointCondition.committed):
        (WebInspector.SourceFrame.prototype._editBreakpointCondition.dismissed):
        (WebInspector.SourceFrame.prototype._editBreakpointCondition):
        (WebInspector.SourceFrame.prototype._showBreakpointConditionPopup):
        (WebInspector.SourceFrame.prototype._createConditionElement):
        (WebInspector.SourceFrame.prototype._keyDown):
        (WebInspector.SourceFrame.prototype.resize):
        (WebInspector.SourceFrame.prototype._drawProgramCounterInContext):
        (WebInspector.SourceFrame.prototype._drawProgramCounterImageIfNeeded):
        (WebInspector.SourceFrame.prototype._drawBreakpointImagesIfNeeded.drawBreakpoint):
        (WebInspector.SourceFrame.prototype._drawBreakpointImagesIfNeeded):
        * inspector/front-end/SourceView.js:
        (WebInspector.SourceView):
        (WebInspector.SourceView.prototype._removeBreakpoint):
        (WebInspector.SourceView.prototype.searchCanceled):
        (WebInspector.SourceView.prototype._jumpToSearchResult):
        * inspector/front-end/TextEditor.js: Removed.
        * inspector/front-end/TextViewer.js: Added.
        (WebInspector.TextViewer):
        (WebInspector.TextViewer.prototype.set mimeType):
        (WebInspector.TextViewer.prototype.get textModel):
        (WebInspector.TextViewer.prototype.revealLine):
        (WebInspector.TextViewer.prototype.addDecoration):
        (WebInspector.TextViewer.prototype.removeDecoration):
        (WebInspector.TextViewer.prototype.markAndRevealRange):
        (WebInspector.TextViewer.prototype.highlightLine):
        (WebInspector.TextViewer.prototype._textChanged):
        (WebInspector.TextViewer.prototype._createChunkRow):
        (WebInspector.TextViewer.prototype._makeLineAChunk):
        (WebInspector.TextViewer.prototype._indexChunks):
        (WebInspector.TextViewer.prototype._highlightChanged):
        (WebInspector.TextViewer.prototype._scroll):
        (WebInspector.TextViewer.prototype.setCoalescingUpdate):
        (WebInspector.TextViewer.prototype._repaintAll):
        (WebInspector.TextViewer.prototype._chunkForOffset):
        (WebInspector.TextViewer.prototype._chunkNumberForLine):
        (WebInspector.TextViewer.prototype._chunkStartLine):
        (WebInspector.TextViewer.prototype._restoreChunks):
        (WebInspector.TextViewer.prototype._repaint):
        (WebInspector.TextViewer.prototype._getSelection):
        (WebInspector.TextViewer.prototype._restoreSelection):
        (WebInspector.TextViewer.prototype._selectionToPosition):
        (WebInspector.TextViewer.prototype._createLineRow):
        (WebInspector.TextViewer.prototype._paintLine):
        (WebInspector.TextViewer.prototype._createSpan):
        (WebInspector.TextViewer.prototype._createLink):
        (WebInspector.TextViewer.prototype._rewriteHref):
        (WebInspector.TextViewer.prototype._markRange):
        (WebInspector.TextViewer.prototype._decimalDigits):
        (WebInspector.TextViewer.prototype.resize):
        * inspector/front-end/WebKit.qrc:
        * inspector/front-end/inspector.css:
        * inspector/front-end/inspector.html:
        * inspector/front-end/textEditor.css: Removed.
        * inspector/front-end/textViewer.css: Added.
        * inspector/front-end/utilities.js:
        (Node.prototype.traverseNextTextNode):
        (Node.prototype.rangeBoundaryForOffset):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixes CodeGeneratorV8.pm to include the header for the indexer type when using setCollectionIndexedGetter()
https://bugs.webkit.org/show_bug.cgi?id=34836

setCollectionIndexedGetter() uses getIndexedPropertyOfCollection(),
which in turn uses toV8() with the indexer type, which is declared in
the header for the indexer type.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Test that Web Inspector can inspect styles of elements in iframe from a domain
        different from main frame domain.

        inspector-tests.js moved to LayoutTests/http/tests/inspector because it can
        be referenced by relative path from LayoutTests/inspector but not vice versa
        (html files served from LayoutTests/http/tests cannot refer it because WebKit
        tests httpd doesn't serve content not under LayoutTests/http). 

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

        * http/tests/inspector/inspect-iframe-from-different-domain-expected.txt: Added.
        * http/tests/inspector/inspect-iframe-from-different-domain.html: Added.
        * http/tests/inspector/inspector-test.js: Renamed from LayoutTests/inspector/inspector-test.js.
        (onload):
        (evaluateInWebInspector):
        (notifyDone):
        (output):
        (didEvaluateForTestInFrontend):
        * http/tests/inspector/resources/iframe-from-different-domain-data.html: Added.
        * inspector/console-clear.html:
        * inspector/console-dir.html:
        * inspector/console-dirxml.html:
        * inspector/console-format-collections-expected.txt:
        * inspector/console-format-collections.html:
        * inspector/console-format.html:
        * inspector/console-log-before-inspector-open.html:
        * inspector/console-tests.html:
        * inspector/cookie-resource-match.html:
        * inspector/elements-img-tooltip.html:
        * inspector/elements-panel-rewrite-href-expected.txt:
        * inspector/elements-panel-rewrite-href.html:
        * inspector/elements-panel-selection-on-refresh.html:
        * inspector/elements-panel-structure.html:
        * inspector/evaluate-in-frontend.html:
        * inspector/inspected-objects-not-overriden.html:
        * inspector/styles-iframe.html:
        * inspector/syntax-highlight-css.html:
        * inspector/syntax-highlight-javascript.html:
        * inspector/timeline-enum-stability.html:
        * inspector/timeline-event-dispatch.html:
        * inspector/timeline-layout.html:
        * inspector/timeline-mark-timeline.html:
        * inspector/timeline-network-resource.html:
        * inspector/timeline-paint.html:
        * inspector/timeline-parse-html.html:
        * inspector/timeline-recalculate-styles.html:
        * inspector/timeline-script-tag-1.html:
        * inspector/timeline-script-tag-2.html:
        * inspector/timeline-trivial.html:
        * platform/qt/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Antonio Gomes <tonikitoo@webkit.org>

    Adjust gstreamer-plugins-base minimum version check (from 0.10 to 0.10.23).

    Reviewed by Xan Lopez.

        * configure.ac:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Touch WebCorePrefix.h to force a rebuild.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Attempt to fix the Windows build

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Revert accidental commit

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a PLATFORM(WIN) check for NO_ERROR, attempted build fix

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=34857
Move InlineIterator and BidiRun into new files so subclasses can access them.

Reviewed by Dan Bernstein.

* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* rendering/BidiRun.cpp: Added.
(WebCore::BidiRun::destroy):
(WebCore::throw):
(WebCore::BidiRun::operator delete):
* rendering/BidiRun.h: Added.
(WebCore::BidiRun::BidiRun):
(WebCore::BidiRun::next):
* rendering/InlineIterator.h: Added.
(WebCore::InlineIterator::InlineIterator):
(WebCore::operator==):
(WebCore::operator!=):
(WebCore::bidiNext):
(WebCore::bidiFirst):
(WebCore::InlineIterator::increment):
(WebCore::InlineIterator::atEnd):
(WebCore::InlineIterator::current):
(WebCore::InlineIterator::direction):
(WebCore::InlineBidiResolver::increment):
(WebCore::InlineBidiResolver::appendRun):
* rendering/RenderBlock.h:
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::appendRunsForObject):
(WebCore::RenderBlock::requiresLineBox):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Xan Lopez  <xlopez@igalia.com>

        Try to fix GTK+ build.

        * configure.ac:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        [Chromium] Ignore subsequent requests of the same profiler log
        chunks. This eliminates emission of several instances for the same
        heap snapshot.

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

        * src/js/ProfilerAgent.js:
        (devtools.ProfilerAgent):
        (devtools.ProfilerAgent.prototype.initializeProfiling):
        (devtools.ProfilerAgent.prototype._getNextLogLines):
        (devtools.ProfilerAgent.prototype.startProfiling):
        (devtools.ProfilerAgent.prototype._didGetActiveProfilerModules):
        (devtools.ProfilerAgent.prototype._didGetLogLines):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Small cleanups in SVG render tree code.
        Centralize calls to inflateShadow(), in SVGRenderSupport::computeRectForRepaint,
        instead of spreading them around the subclasses. All classes should inherit
        protected from SVGRenderBase, made it consistent.
        
        Doesn't affect layout tests.

        * rendering/RenderSVGImage.cpp:
        (WebCore::RenderSVGImage::computeRectForRepaint):
        * rendering/RenderSVGImage.h:
        * rendering/RenderSVGModelObject.cpp:
        (WebCore::RenderSVGModelObject::computeRectForRepaint):
        * rendering/RenderSVGRoot.h:
        * rendering/RenderSVGText.cpp:
        (WebCore::RenderSVGText::computeRectForRepaint):
        (WebCore::RenderSVGText::layout):
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderBase::computeRectForRepaint):
        * rendering/SVGRootInlineBox.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Adam Roben.
        Try to fix build breakage from r54665.
        
        * Scripts/check-for-global-initializers:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for Windows

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Turn off 3D_CANVAS and touch WebCorePrefix.h to force a rebuild.

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