Text Autosizer: consistently autosize phpBB forum posts.

Traditionally Text Autosizer has issues with forum comments.
This patch addresses the issue on fora powered by phpBB forum
generator software. The solution is similar to vBulletin
(https://codereview.chromium.org/23020026/).

In this approach we define two funtions:
1. one for detecting the content type, e.g. phpBB,
2. one for detecting the blocks containing the posts by the users.

The idea is based on the fact that forum pages have certain
signatures. This method has the advantage that the overhead
for the non-forum websites is minimal.

BUG=312880

Review URL: https://codereview.chromium.org/47493003

git-svn-id: svn://svn.chromium.org/blink/trunk@161357 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change FontHarfBuzz to rotate canvas instead of using drawTextOnPath

Change Font::drawGlyphs in FontHarfBuzz to use the regular text drawing
API provides by Skia and rotating the canvas rather than using the
drawTextOnPath API as the latter is more expensive and does not support
the same functionality as the drawPosText API.

This changes the rendering of a number of text tests, in each case the
new results better match the current Windows expectations and look more
correct to me, especially the selection results where the glyphs are
fully contained by the selection rect now.

BUG=313423
R=bungeman@chromium.org,dglazkov@chromium.org

Review URL: https://codereview.chromium.org/47873011

git-svn-id: svn://svn.chromium.org/blink/trunk@161358 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move MediaPlayer, IntSizeHash to platform/

BUG=297477

Review URL: https://codereview.chromium.org/48273013

git-svn-id: svn://svn.chromium.org/blink/trunk@161359 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Break dependency of platform/graphics on html/ImageData.h

BUG=297477

Review URL: https://codereview.chromium.org/54653004

git-svn-id: svn://svn.chromium.org/blink/trunk@161360 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove 'alphabetic' value from text-underline-position

According to latest version of CSS3 Text Decoration W3C standard (W3C
Candidate Recommendation 1 August 2013), the text-underline-position
property does not include 'alphabetic' as valid property value, thus the
need to remove it from implementation.

David Baron's feedback on why removing this:
http://lists.w3.org/Archives/Public/www-style/2013Mar/0529.html

Specification link:
http://dev.w3.org/csswg/css-text-decor-3/#text-underline-position

BUG=311335

Review URL: https://codereview.chromium.org/57493002

git-svn-id: svn://svn.chromium.org/blink/trunk@161361 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove dead code, AXObject::page

I was looking for Page usages to remove
in preparation for more OOPI work, but this
code seems completely dead.

BUG=305811

Review URL: https://codereview.chromium.org/59403002

git-svn-id: svn://svn.chromium.org/blink/trunk@161362 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Improve verbosity of test results

Recent refactorings in the grid layout testing code have worsen the verbosity
of our results. This cl brings back the use of the element ID for the test
expectations.

Review URL: https://codereview.chromium.org/59473002

git-svn-id: svn://svn.chromium.org/blink/trunk@161363 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid checking adjacent rules when doing a Force recalc or if no children changed

Iterating the children is a waste if we're already going to recalc
everyone like in a Force situation or if we know that no children
needStyleRecalc(). We should skip all the checking in these cases.

I also refactored the loop into checkForChildrenAdjacentRuleChanges()
since recalcChildStyle was getting too long.

Review URL: https://codereview.chromium.org/59553002

git-svn-id: svn://svn.chromium.org/blink/trunk@161364 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark tests as needing manual rebaseline.

These will change expectations once the Chromium side
of the patch lands: https://codereview.chromium.org/53493003.

TBR=jochen
BUG=309760

Review URL: https://codereview.chromium.org/53203004

git-svn-id: svn://svn.chromium.org/blink/trunk@161365 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix webkit_unit_tests win static library compile.

Same thing as in https://code.google.com/p/chromium/issues/detail?id=310636


BUG=

Review URL: https://codereview.chromium.org/58833005

git-svn-id: svn://svn.chromium.org/blink/trunk@161366 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add Frame::isMainFrame and deploy it

I originally started this to remove Page.h includes
but found that it just made the code simpler to read in most cases.

In an out of process iframes enabled Blink it will not be
possible to access the Page object from core/, so Frame will
have to know itself if it is (or thinks it is) the main frame.

There are quite a few uses of Page::mainFrame() in core/inspector/
code but it's not obvious that the frame being compared always has
the same page as the page its being compared with, so I didn't
change those for now.

BUG=305811

Review URL: https://codereview.chromium.org/59573002

git-svn-id: svn://svn.chromium.org/blink/trunk@161367 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add benchmarks for querySelectorAll on attributes.

Compared to querySelectAll on classes, this is currently rather slow.

BUG=315087
R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/59633003

git-svn-id: svn://svn.chromium.org/blink/trunk@161368 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move LightSource to platform/

BUG=297477

Review URL: https://codereview.chromium.org/59673004

git-svn-id: svn://svn.chromium.org/blink/trunk@161369 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add SK_DISABLE_BLUR_DIVISION_OPTIMIZATION to Blink's skia build, so we can remove the flag in Chrome and rebaseline in Blink.

R=jochen@chromium.org
BUG=

Review URL: https://codereview.chromium.org/59843003

git-svn-id: svn://svn.chromium.org/blink/trunk@161370 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: add title to computed fonts section

This patch adds a title to computed fonts section. Note that it also
removes computed css font value from it. See bug for screenshot
related to this UI change.

BUG=315118

Review URL: https://codereview.chromium.org/59993003

git-svn-id: svn://svn.chromium.org/blink/trunk@161371 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move FontRenderStyle to platform/

BUG=297477

Review URL: https://codereview.chromium.org/60083004

git-svn-id: svn://svn.chromium.org/blink/trunk@161372 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix WATCHLISTS syntax after r161328

TBR=jochen@chromium.org

Review URL: https://codereview.chromium.org/59943003

git-svn-id: svn://svn.chromium.org/blink/trunk@161373 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move OpenTypeTypes to platform/

BUG=297477

Review URL: https://codereview.chromium.org/60233003

git-svn-id: svn://svn.chromium.org/blink/trunk@161374 bbb929c8-8fbe-4397-9dbb-9b2b20218538
remove irrelevant js string concat tests

These tests were added, pre-fork, in r35454 as part of a fix to JSC which appears related to missing an overflow condition.

Yang is trying to land https://code.google.com/p/v8/source/detail?r=17490 in v8 which furthers the goal of V8 stability by handlfying runtime paths. The V8 patch changes the behavior in the case of OOM for string concat. Whereas before V8 would unwind the stack and report an OOM to chromium, it will now crash (as with many other OOM conditions).

IOW, this test happened to preventing regression for something entirely different in JSC than in V8 -- which was that this code path unwinds the stack rather than crashing with a V8_FATAL_OOM -- thus, just remove the irrelevant test.

Review URL: https://codereview.chromium.org/60273003

git-svn-id: svn://svn.chromium.org/blink/trunk@161375 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move MediaConstraints to platform/

BUG=297477

Review URL: https://codereview.chromium.org/60303002

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