[CSS Exclusions] Multiple segment polygon layout does not get all segments
https://bugs.webkit.org/show_bug.cgi?id=100039

Patch by Hans Muller <hmuller@adobe.com> on 2012-10-30
Reviewed by Dirk Schulze.

Source/WebCore:

Corrected the algorithm for computing included polygon intervals for rectilinear polygons,
and polygons with horizontal edges in general.

Tests: fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-001.html
       fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-002.html

* rendering/ExclusionPolygon.cpp: Removed some internal dead code related to the no-longer-used sortedEdgesMinY Vector.
(WebCore::ExclusionPolygon::ExclusionPolygon): Initialize new ExclusionPolygonEdge edgeIndex field.
(WebCore::getVertexIntersectionVertices): Return the previous, next, and target vertex indices for a vertex intersection.
(WebCore::ExclusionPolygon::computeXIntersections): Refactored the core of this method to improve handling of horizontal edges.
(WebCore::ExclusionPolygon::computeEdgeIntersections): Ignore zero-width edges.
* rendering/ExclusionPolygon.h: Removed the rightVertexY() method, since it's no longer used.
(WebCore::ExclusionPolygon::edgeAt): New method.
(WebCore::ExclusionPolygon::numberOfEdges): New method.
(ExclusionPolygon): Added support for retrieving edges.
(WebCore::ExclusionPolygonEdge::vertex1): Use vertex1Index.
(WebCore::ExclusionPolygonEdge::vertex2): Use vertex2Index.
(ExclusionPolygonEdge): Renamed index1, index2 fields to vertex1Index, vertex2Index.
(WebCore::ExclusionPolygonEdge::previousEdge): New method.
(WebCore::ExclusionPolygonEdge::nextEdge): New method.

LayoutTests:

Added tests for CSS Exclusion shape-inside polygons with horizontal edges.
Corrected the simple-polygon.js code for computing a polygon's included intervals.

* fast/exclusions/resources/simple-polygon.js:
* fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-001-expected.html: Added.
* fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-001.html: Added.
* fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-002-expected.html: Added.
* fast/exclusions/shape-inside/shape-inside-rectilinear-polygon-002.html: Added.
* fast/exclusions/shape-inside/shape-inside-simple-polygon-004-expected.html:
* fast/exclusions/shape-inside/shape-inside-simple-polygon-004.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Coordinated Graphics: Remove unused methods
https://bugs.webkit.org/show_bug.cgi?id=100799

Patch by Jae Hyun Park <jae.park@company100.net> on 2012-10-30
Reviewed by Noam Rosenthal.

Currently, there are several unused methods regarding Coordinated
Graphics. This patch removes those unused methods.

Source/WebCore:

No new tests (No change in behavior).

* platform/graphics/texmap/TextureMapperGL.cpp:

Source/WebKit2:

* UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
(LayerTreeCoordinatorProxy):
* UIProcess/DrawingAreaProxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DOM URL is flaky when workers are used
https://bugs.webkit.org/show_bug.cgi?id=99178

Reviewed by Geoffrey Garen.

Source/WebCore:

Extend JSNoStaticTables to also avoid direct access of static tables in constructor objects.

Test: fast/workers/worker-domurl.html

* bindings/scripts/CodeGeneratorJS.pm:
(constructorHashTableAccessor):
(GenerateConstructorDefinition):

LayoutTests:

Test that the methods of the URL constructor are accesible from both main and worker threads.

* fast/workers/resources/worker-domurl.js: Added.
(log):
(onmessage):
* fast/workers/worker-domurl-expected.txt: Added.
* fast/workers/worker-domurl.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Make WebKit2 Build with NETWORK_PROCESS disabled
https://bugs.webkit.org/show_bug.cgi?id=100798

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2012-10-30
Reviewed by David Kilzer.

Wrap a few remaining NetworkProcess files and related code in
ENABLE(NETWORK_PROCESS) guards to avoid being compiled when disabled.

* NetworkProcess/HostRecord.cpp:
* NetworkProcess/HostRecord.h:
* NetworkProcess/NetworkRequest.cpp:
* NetworkProcess/NetworkRequest.h:
* NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm:
* UIProcess/Network/NetworkProcessManager.cpp:
* UIProcess/Network/NetworkProcessManager.h:
Wrap files in guards.

* UIProcess/Launcher/ProcessLauncher.h:
* UIProcess/Launcher/ProcessLauncher.cpp:
(WebKit::ProcessLauncher::processTypeAsString):
(WebKit::ProcessLauncher::getProcessTypeFromString):
Wrap NetworkProcess enum access in guards.

* WebProcess/WebKitMain.cpp:
(WebKitMain):
Wrap NetworkProcess enum switch case in guards.

* WebKit2Prefix.h:
Remove an extraneous close and reopen of the same guard.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Enable fast/images/exif-orientation-css.html
https://bugs.webkit.org/show_bug.cgi?id=100767

Unreviewed, expectations-only change.


* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] PurgeCredential should also purge the persisted credential store
https://bugs.webkit.org/show_bug.cgi?id=100744

Reviewed by George Staikos.

When challenged by the server, we will check the credential in-memory and from the persistent storage.
So the invalid credentials should also be purged from the persistent credential storage; Otherwise,
it will be sent to the server next time been challenged, instead of prompting the user.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::purgeCredentials):


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