Revert "Revert "RuleSet causes 600 kB of memory fragmentation""

This reverts commit 529ebfa98888db54f490c7779716d4d07c8ec2b3,
effectively re-landing https://chromiumcodereview.appspot.com/17314010.

I've removed the offending ASSERT. It's not valid on Mac because we use a fancy
fastMalloc implementation that knows how to pick a "good size" to allocate.

R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152862 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline Mac 10.7 results after SK_IGNORE_MAC_TEXT_BOUNDS_FIX removal.

BUG=252414
TBR=steveblock@chromium.org

git-svn-id: svn://svn.chromium.org/blink/trunk@152863 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of dependency from DocumentParser to DocumentWriter

This change removes dependency from DocumentParser to DocumentWriter.
DocumentWriter is called only from a subclas DecodedDataDocumentParser,
where the parser requests a decoder object to the writer.
This change let DocumentWriter prepare the decoder object for the parser
so that the parser can retrieve the decoder from Document when it is needed.

This change also introduces TextResourceDecoderBuilder for clarifying
the decoder setup proces.

TEST=none
BUG=none
R=abarth@chromium.org,eseidel@chromium.org,tkent@chromium.org

Review URL: https://chromiumcodereview.appspot.com/17073005

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