Delete perf tests that are WontFixed.

We skip all the perf tests on debug builds, so these [ Release ]
lines in StaleTestExpectations meant we were skipping these tests
everywhere. No point in keeping them in the tree.

TBR=nbarth@chromium.org
BUG=308779

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160878 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix memory error during selector matching due to getMatchedCSSRules.

The issue is that getMatchedCSSRules wasn't correctly pointing at its
parent stylesheet, which meant that it didn't mark the style resolver
as changed when it's selectorText was updated. This in turn meant that
we had two RuleDatas for a rule that now only had one selector (i.e. it
should only have one RuleData) and we'd try to access the selector at
and index that didn't exist.

Instead, when creating the CSSOM wrappers for getMatchedCSSRules,
find the stylesheet corresponding to each rule and register the wrapper
appropriately with it. We still need to leave in the codepath for
lacking a sheet because we won't file a stylesheet for rules that are
not CSSStyleRules (e.g. @import).

We also leave in the lacking a sheet codepath for the inspector and editing.
I'm not convinced the inspector code is correct, but this patch at
least fixes the error that is accessible from JS. The editing code really
shouldn't be creating CSSOM wrappers.

BUG=297976

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move Font related classes to Source/platform/fonts

BUG=297477

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160880 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Regions][CSS Shapes] Update updateShapeAndSegmentsForCurrentLineInFlowThread to deal better with multiple regions

I simplified the determination of the next region part of updateShapeAndSegmentsForCurrentLineInFlowThread's implementation
in order to make the code more straightforward. I also tried to avoid using regionAtBlockOffset(...) function where it's possible,
since it's not always that reliable, what I'll will report in a separate bug.

Merged WebKit revision: http://trac.webkit.org/changeset/158016

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160881 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make the partition page size dynamic.

For a given bucket, the bucket's page size can now be less than the standard
partition page size. This enables us to pick a per-bucket page size that
minimizes "waste" due to poor tesselation.

To minimize disturbance, this first iteration considers only two possibilities
for each bucket:
- Normal partition page size (currently 16kB)
- One sub page less (12kB)

A future CL will increase the range of possibilities by making the normal
partition page size much bigger. This CL is more about adding the framework.

To give a concrete example, the 640-byte bucket currently has 25 slots. This
leads to a 384 byte, or 2.34% waste at the end of the bucket. With this change,
we calculate that 3 sub pages is better than a full partition page, leading to
19 slots and a 128 byte, or 1.04% waste.

To put this in context, tcmalloc tolerates up to a 12.5% waste in a given size
class, although its average is obviously better. Once we have this CL and we
bump up the partition page size, we'll be much more efficient with waste than
tcmalloc, at the cost of a little unused but reserved address space.

R=tsepez@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160882 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HTMLPlugInElement should not use confusingAndOftenMisusedAttached()

This if statement didn't make any sense. If you have a renderer then
you're certainly attached so checking confusingAndOftenMisusedAttached()
and renderer() was silly. Simplify the check and remove the confusing
comment since that doesn't seem to be true anymore.

I also added a FIXME since all this code related to widget updates looks
wrong.

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

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