[BlackBerry] Web Inspector: Remove the useless preferences items in "inspectorBB.js"
https://bugs.webkit.org/show_bug.cgi?id=99404

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-10-15
Reviewed by George Staikos.

In "inspectorBB.js", remove the useless preferences items to catch up the new code of frontend.

* WebCoreSupport/inspectorBB.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r131365): WidthIterator::advance() is needlessly passed a GlyphBuffer in many cases
https://bugs.webkit.org/show_bug.cgi?id=99413

Reviewed by Adele Peterson.

r131365 made Font::width() always pass a GlyphBuffer pointer to floatWidthForSimpleText and
from there down to WidthIterator::advance(). However, when measuring the width of a run, a
GlyphBuffer is only needed if font transforms (kerning and ligatures) need to be applied.

No new test, because there is no change in behavior.

* platform/graphics/Font.cpp:
(WebCore::Font::width): Removed the local GlyphBuffer that was passed down to
floatWidthForSimpleText().
* platform/graphics/Font.h: Removed the GlyphBuffer* parameter to floatWidthForSimpleText.
All but the above caller were passing 0.
* platform/graphics/FontFastPath.cpp:
(WebCore::Font::floatWidthForSimpleText): Removed the GlyphBuffer* parameter and added a
local GlyphBuffer, which is passed by reference to WidthIterator::advance() only if
typesetting features require it.
(WebCore::Font::offsetForPositionForSimpleText): Updated for change to
floatWidthForSimpleText.
* platform/graphics/pango/FontPango.cpp:
(WebCore::Font::floatWidthForComplexText): Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ResourceLoader::sendResourceLoadCallbacks() is backwards
https://bugs.webkit.org/show_bug.cgi?id=99366

Reviewed by Daniel Bates.

No new tests, this function is uncalled but will be used
in a later patch.

* loader/ResourceLoader.h:
(WebCore::ResourceLoader::sendResourceLoadCallbacks):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r131349.
http://trac.webkit.org/changeset/131349
https://bugs.webkit.org/show_bug.cgi?id=97173

Revert r131349 because API test is broken by this commit.

Source/WebCore:

* platform/efl/RunLoopEfl.cpp:
(WebCore::RunLoop::RunLoop):
(WebCore::RunLoop::~RunLoop):

Source/WebKit2:

* UIProcess/API/efl/ewk_main.cpp:
(ewk_init):
(ewk_shutdown):
* WebProcess/efl/WebProcessMainEfl.cpp:
(WebKit::WebProcessMainEfl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Warn when CSP headers don't separate directives with ';'.
https://bugs.webkit.org/show_bug.cgi?id=99274

Reviewed by Adam Barth.

Source/WebCore:

A recent bug report exhibited confusion as to what role, exactly,
semicolons play in Content Security Policy definitions. This patch
adjusts the parser to warn web authors if a directive name is
encountered while parsing a source list, which would almost certainly
point to a missing semicolon. For example, something like:

    script-src 'self' object-src 'self' style-src *

would throw two warnings, noting that 'object-src' and 'style-src' are
probably meant as directives, and not as source expressions in the
'script-src' source list.

Test: http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon.html

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPSourceList::parse):
    Throw the new warning onto the console if the hostname of a source
    expression matches a CSP directive name.
(WebCore::CSPDirectiveList::addDirective):
    Use the exciting new static variables so that the names of various
    directives are available outside of CSPDirectiveList::addDirective.
    These were previously defined as local static ASCIILiterals. Now
    they're static const char[] in an anonymous namespace.
(WebCore::ContentSecurityPolicy::isDirectiveName):
    Static method that compares a string to all the known directive
    names, returning true if there's a (case-insensitive) match.
(WebCore):
(WebCore::ContentSecurityPolicy::reportDirectiveAsSourceExpression):
    A new warning message which should be printed when a directive name
    is encountered as a source expression. Matching the directive name
    is done via a new 'isDirectiveName' function which lives in an
    anonymous namespace along with the other CSP helper functions.
* page/ContentSecurityPolicy.h:
    Added 'reportDirectiveAsSourceExpression' signature.

LayoutTests:

* http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/source-list-parsing-no-semicolon.html: Added.


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