2010-11-29  Gavin Peters  <gavinp@chromium.org>

        Reviewed by Adam Barth.

        Web page can prevent WebKit from loading subresources on other
        pages (cache poisoning)
        https://bugs.webkit.org/show_bug.cgi?id=35404

        * http/tests/misc/unloadable-script-expected.txt: Renamed from LayoutTests/fast/loader/unloadable-script-expected.txt.
        * http/tests/misc/unloadable-script.html: Renamed from LayoutTests/fast/loader/unloadable-script.html.
        * loader/reload-subresource-when-type-changes-expected.txt: Added.
        * loader/reload-subresource-when-type-changes.html: Added.
        * loader/resources/image1.png: Added.
        * loader/resources/image2.png: Added.
        * loader/resources/reload-subresource-when-type-changes.js: Added.
2010-11-29  Gavin Peters  <gavinp@chromium.org>

        Reviewed by Adam Barth.

        Web page can prevent WebKit from loading subresources on other
        pages (cache poisoning)
        https://bugs.webkit.org/show_bug.cgi?id=35404

        Tests: http/tests/misc/unloadable-script.html
               loader/reload-subresource-when-type-changes.html

        * loader/cache/MemoryCache.cpp:
        (WebCore::MemoryCache::requestResource):

git-svn-id: svn://svn.chromium.org/blink/trunk@72817 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        Unreviewed. Build fix.

        New test expectations and test_expectations update due to http://trac.webkit.org/changeset/72813/.

        * platform/chromium-mac/fast/js/regexp-overflow-expected.txt:
        * platform/chromium-win/fast/js/regexp-overflow-expected.txt:
        * platform/chromium/test_expectations.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@72818 bbb929c8-8fbe-4397-9dbb-9b2b20218538
        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=50165
        CSS style rules don't GC protect parents

        Tests: fast/dom/StyleSheet/gc-parent-rule.html
               fast/dom/StyleSheet/gc-parent-stylesheet.html

        * bindings/js/JSCSSRuleCustom.cpp: (WebCore::JSCSSRule::markChildren): Mark parents. The code
        is super naive compared to what we have for nodes - but CSSOM has shallow hierarchies, so
        it should be OK.

        * css/CSSRule.idl: Added CustomMarkFunction.



git-svn-id: svn://svn.chromium.org/blink/trunk@72819 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        Unreviewed build fix.

        Mark tests as failing after http://trac.webkit.org/changeset/72817/
        to green chromium tree.

        * platform/chromium/test_expectations.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@72820 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update react-to-vsprops-changes.py after r72555

.vsprops files are no longer accessed relative to $WebKitLibrariesDir.

Fixes <http://webkit.org/b/50166> REGRESSION (r72555):
react-to-vsprops-changes.py no longer works for people with a
non-default $WebKitLibrariesDir

Reviewed by John Sullivan.

* JavaScriptCore.vcproj/JavaScriptCore/react-to-vsprops-changes.py:
(main): Always look in WebKitLibraries/win for .vsprops files, not in
$WebKitLibrariesDir.

git-svn-id: svn://svn.chromium.org/blink/trunk@72821 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Touch wtf/Platform.h whenever any .vsprops file changes

This will cause all files to be recompiled, which will make changes to
preprocessor macros (e.g., ENABLE_*) actually take effect.

Fixes <http://webkit.org/b/50167> Windows build fails when ENABLE_*
macros are changed (because not enough files are rebuilt)

Reviewed by John Sullivan.

* JavaScriptCore.vcproj/JavaScriptCore/react-to-vsprops-changes.py:
(main): Touch wtf/Platform.h if it's older than any .vsprops file. Also
added some comments and logging to make it clearer what the script is
doing and why.

git-svn-id: svn://svn.chromium.org/blink/trunk@72822 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Robustify react-to-vsprops-changes.py against changes to its location or the location of the .vsprops files

Suggested by John Sullivan.

* JavaScriptCore.vcproj/JavaScriptCore/react-to-vsprops-changes.py:
Removed file_modification_times.
(main): Use glob.glob to find the .vsprops files and assert that we found some.

git-svn-id: svn://svn.chromium.org/blink/trunk@72823 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Tony Chang  <tony@chromium.org>

        Reviewed by James Robinson.

        [chromium] try to enable WebCore compiler warnings on linux
        https://bugs.webkit.org/show_bug.cgi?id=50168

        * WebCore.gyp/WebCore.gyp:
        * platform/graphics/chromium/FontLinux.cpp:
        (WebCore::TextRunWalker::setPadding):
        (WebCore::TextRunWalker::setGlyphXPositions):
        (WebCore::glyphIndexForXPositionInScriptRun):

git-svn-id: svn://svn.chromium.org/blink/trunk@72824 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Darin Adler.

        Converge means of querying a parent node into one way, which is Node::parentNode.
        https://bugs.webkit.org/show_bug.cgi?id=49686

        A follow-up to r72259, which explicitly forbids further use of Node::parent by
        making it private.

        No change in behavior, so no new tests.

        * dom/Document.cpp:
        (WebCore::Document::styleForElementIgnoringPendingStylesheets): Changed to use parentNode.
        (WebCore::Document::hoveredNodeDetached): Ditto.
        (WebCore::Document::activeChainNodeDetached): Ditto.
        * dom/Node.h: Made Node::parent private.
        * page/SpatialNavigation.cpp:
        (WebCore::canBeScrolledIntoView): Changed to use parentNode.
        * xml/XSLTProcessorQt.cpp:
        (WebCore::XSLTProcessor::transformToString): Ditto.

git-svn-id: svn://svn.chromium.org/blink/trunk@72825 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Cosmin Truta  <ctruta@chromium.org>

        Reviewed by Nikolas Zimmermann.

        getBoundingClientRect: Do not truncate the coordinates to integers
        https://bugs.webkit.org/show_bug.cgi?id=48110

        Enhanced some of the tests for getBoundingClientRect, and added zooming tests.

        * css3/zoom-coords-expected.txt: Updated.
        * css3/zoom-coords.xhtml: Wrapped the <svg> elements in a <div>,
        to avoid re-layout on zooming or resizing.
        Added a test for getBoundingClientRect on unzoomed elements.
        * fast/dom/Element/getBoundingClientRect-expected.txt: Updated.
        * fast/dom/Element/getBoundingClientRect.html: Accounted for non-integer coordinates;
        used the Ahem font for uniform results; removed the hard-coded dependencies on font metrics.
        * fast/dom/Range/getBoundingClientRect-expected.txt: Updated.
        * fast/dom/Range/getBoundingClientRect.html: Accounted for non-integer coordinates;
        used the Ahem font for uniform results; removed the hard-coded dependencies on font metrics.
        * platform/chromium-win/fast/dom/Element/getBoundingClientRect-expected.txt: Deleted.
        * platform/chromium-win/fast/dom/Range/getBoundingClientRect-expected.txt: Deleted.
        * svg/custom/getBBox-js.svg: Fixed indentation.
        * svg/custom/getBoundingClientRect.xhtml: Wrapped the <svg> elements in a <div>,
        to avoid re-layout on zooming or resizing.
        * svg/zoom/page/zoom-getBoundingClientRect-expected.txt: Added.
        * svg/zoom/page/zoom-getBoundingClientRect.xhtml: Added.
        * svg/zoom/page/zoom-zoom-coords-expected.txt: Added.
        * svg/zoom/page/zoom-zoom-coords.xhtml: Added.
        * svg/zoom/resources/testPageZoom.js: Added call to completeDynamicTest on post-zoom.
        (completeDynamicTest): Added.
2010-11-29  Cosmin Truta  <ctruta@chromium.org>

        Reviewed by Nikolas Zimmermann.

        getBoundingClientRect: Do not truncate the coordinates to integers
        https://bugs.webkit.org/show_bug.cgi?id=48110

        Remove the float-to-int coordinate conversions inside getBoundingClientRect,
        to comply with the CSSOM View Module API.

        Tests: fast/dom/Element/getBoundingClientRect.html
               fast/dom/Range/getBoundingClientRect.html
               svg/zoom/page/zoom-getBoundingClientRect.xhtml
               svg/zoom/page/zoom-zoom-coords.xhtml

        * dom/ClientRect.cpp:
        (WebCore::ClientRect::ClientRect): Added overload to allow a FloatRect argument.
        * dom/ClientRect.h:
        (WebCore::ClientRect::create): Ditto.
        * dom/Element.cpp:
        (Element::getBoundingClientRect): Removed conversion from FloatRect to IntRect.
        * dom/Range.cpp:
        (WebCore::Range::getBoundingClientRect): Ditto.
        * rendering/RenderObject.h:
        (adjustIntRectForAbsoluteZoom): Removed.
        (adjustFloatRectForAbsoluteZoom): Added.
        * rendering/style/RenderStyle.h:
        (adjustFloatForAbsoluteZoom): Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@72826 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>

        Remove Build directory that was erroneously added in r72103.

        * Build: Removed.


git-svn-id: svn://svn.chromium.org/blink/trunk@72827 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Tony Chang  <tony@chromium.org>

        Unreviewed, disable warnings again on chromium linux

        * WebCore.gyp/WebCore.gyp:

git-svn-id: svn://svn.chromium.org/blink/trunk@72828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebKitSystemInterface.h piece of r72438.

Patch by Anders Carlsson <andersca@apple.com> on 2010-11-29
Reviewed by Sam Weinig and Simon Fraser.

* WebKitSystemInterface.h:



git-svn-id: svn://svn.chromium.org/blink/trunk@72829 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Gavin Peters  <gavinp@chromium.org>

        Reviewed by Ojan Vafai.

        unloadable-script not testing both cases
        https://bugs.webkit.org/show_bug.cgi?id=50177

        * http/tests/misc/unloadable-script-expected.txt:
        * http/tests/misc/unloadable-script.html:

git-svn-id: svn://svn.chromium.org/blink/trunk@72830 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Darin Adler  <darin@apple.com>

        Reviewed by Andreas Kling.

        Remove a couple unneeded overflow checks
        https://bugs.webkit.org/show_bug.cgi?id=49816

        * wtf/text/CString.cpp:
        (WTF::CString::init): Use an ASSERT instead of
        an overflow check with CRASH.
2010-11-29  Darin Adler  <darin@apple.com>

        Reviewed by Andreas Kling.

        Remove a couple unneeded overflow checks
        https://bugs.webkit.org/show_bug.cgi?id=49816

        * platform/text/TextCodecUTF16.cpp:
        (WebCore::TextCodecUTF16::encode): Use an ASSERT instead of
        an overflow check with CRASH.


git-svn-id: svn://svn.chromium.org/blink/trunk@72831 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: UI fix. In Timeline, Paint events "Location" value is displayed
        in a confusing manner. The format string should be changed from %d x %d
        pattern to (%d, %d).

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

        * English.lproj/localizedStrings.js:
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):




git-svn-id: svn://svn.chromium.org/blink/trunk@72832 bbb929c8-8fbe-4397-9dbb-9b2b20218538
        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=50181
        CSS style declarations don't GC protect parents

        Test: fast/dom/StyleSheet/gc-declaration-parent-rule.html

        * bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::markChildren):
        Protect the parent rule.



git-svn-id: svn://svn.chromium.org/blink/trunk@72833 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        Get distcheck going.

        * GNUmakefile.am:

git-svn-id: svn://svn.chromium.org/blink/trunk@72834 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HTMLFormElement.elements doesn't include fieldsets
https://bugs.webkit.org/show_bug.cgi?id=48193

Reviewed by Darin Adler.

WebCore: 

Add fieldset and keygen to the list of form collection elements, by making them enumeratable.
This patch does not add object element to the list. A separate bug will do that.

Test: fast/forms/form-collection-elements.html

* html/HTMLFieldSetElement.h:
(WebCore::HTMLFieldSetElement::isEnumeratable):
* html/HTMLKeygenElement.h:
(WebCore::HTMLKeygenElement::isEnumeratable):

LayoutTests: 

* fast/forms/form-collection-elements-expected.txt: Added.
* fast/forms/form-collection-elements.html: Added.
* fast/forms/script-tests/form-collection-elements.js: Added.



git-svn-id: svn://svn.chromium.org/blink/trunk@72835 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * configure.ac: bump version for 1.3.7 release.

WebKit/gtk:

2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * NEWS: update for 1.3.7 release.

git-svn-id: svn://svn.chromium.org/blink/trunk@72836 bbb929c8-8fbe-4397-9dbb-9b2b20218538