Improve tests, related to zooming ImageDocuments.

Previously, these tests relied on resize events, which is not necessary,
since zooms are synchronous. I compacted the two tests into one and
made them a bit more value-resilient -- instead of just printing values,
they actually tests for size equality.

BUG=307570
R=eseidel@chromium.org, tony

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159954 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 159954 "Improve tests, related to zooming ImageDocuments."

> Improve tests, related to zooming ImageDocuments.
> 
> Previously, these tests relied on resize events, which is not necessary,
> since zooms are synchronous. I compacted the two tests into one and
> made them a bit more value-resilient -- instead of just printing values,
> they actually tests for size equality.
> 
> BUG=307570
> R=eseidel@chromium.org, tony
> 
> Review URL: https://codereview.chromium.org/29543002

TBR=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159955 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make Document::renderer() private

Callers should use renderView() instead. It means in many cases virtual
calls to the RenderView will be devirtualized and it's also more clear
in the code what the caller is attempting to do.

I also took this as an opportunity to switch some callers to isActive()
that didn't really need to look at the renderView() and also clean up
some callers getting the renderView() in very round about ways.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid always style recalc when removing stylesheets.

Replaced FullStyleUpdate with AnalyzedStyleUpdate when:
- CSSStyleSheet::didMutate() is invoked from clearOwnerNode().
- StyleElement::removedFromDocument is invoked.

Modified StyleSheetCollection::analyzeStyleSheetChange when stylesheet contents are just removed:
- use Reset for StyleResolverUpdateType.
- use StyleInvalidationAnalysis for style recalc.


BUG=305885
TEST=All existing tests should pass after applying this patch.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r159790

http://src.chromium.org/viewvc/blink?view=revision&revision=159790

BUG=306193
TBR=eae@chromium.org

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

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