Merge 158300 "Stop processing bytes after a DocumentParser is st..."

> Stop processing bytes after a DocumentParser is stopped or detached
> 
> It's possible to detach a Document from its DocumentParser before all
> bytes for the resource are received if the page calls document.open() or
> document.write() without a defined insertion point. If that happens, the
> original document is blown away and further bytes from the original
> resource should just be thrown away.
> 
> This is a regression from somewhere around r152864
> 
> BUG=297359
> 
> Review URL: https://chromiumcodereview.appspot.com/24433002

TBR=jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158256 "DevTools: fix ui glitch issue observed in "Sources..."

> DevTools: fix ui glitch issue observed in "Sources" section on pause.
> 
BUG=295575
> 
> Review URL: https://chromiumcodereview.appspot.com/23498047

TBR=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158440 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158260 "DevTools: Breakpoints should be blurred when break..."

> DevTools: Breakpoints should be blurred when breakpoints are deactivated.
> 
> BUG=296771
> R=lushnikov, pfeldman
> 
> Review URL: https://chromiumcodereview.appspot.com/24197004

TBR=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158442 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158373 "DevTools: [Elements] Pseudo-elements not displayed..."

> DevTools: [Elements] Pseudo-elements not displayed for empty elements.
> 
> R=pfeldman, vsevik
> BUG=298212
> 
> Review URL: https://chromiumcodereview.appspot.com/24735003

TBR=apavlov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158448 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158205 "Fix regression in find-in-page behavior with tall ..."

> Fix regression in find-in-page behavior with tall blocks.
> 
> The refactoring http://crrev.com/19281007/ stopped making use of the
> original target point, but this was actually needed to make sure we
> don't snap to the top of the block for very tall ones.  This
> particularly comes up in the context of find-in-page with tall blocks of
> text, which appears not to work at all because of this.
> 
> New test coverage WebFrameTest.DivAutoZoomVeryTallTest.
> 
> NOTRY=true
> BUG=286269,276832
> 
> Review URL: https://chromiumcodereview.appspot.com/24364004

TBR=aelias@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158469 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158408 "Revert 157959 "Introduce a new reference graph to ..."

> Revert 157959 "Introduce a new reference graph to SVG*TearOffs."
> Revert 158014 "Hold onto contextElement() from SVGAnimated* wrap..."
> 
> TBR=pdr@chromium.org,haraken@chromium.org
> BUG=270000
> BUG=294464
> 
> Review URL: https://chromiumcodereview.appspot.com/24863002

TBR=kouhei@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158537 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158359 "Fix a logic mistake calculating video compositing ..."

> Fix a logic mistake calculating video compositing requirement
> 
> With overlay fullscreen video enabled, video must be composited when
> fullscreen. However the opposite does not apply.
> 
> R=esprehn
> BUG=262945
> 
> Review URL: https://chromiumcodereview.appspot.com/24647004

TBR=trchen@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158546 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158488 "Added missing @viewport to the simple UA stylesheet."

> Added missing @viewport to the simple UA stylesheet.
> 
> @viewport UA rule also required when the simple UA styles should otherwise
> suffice to style the document.
> 
> BUG=298477
> 
> Review URL: https://chromiumcodereview.appspot.com/25092003

TBR=rune@opera.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158569 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 157989 "implement TouchController and move touch-specific..."

> implement TouchController and move touch-specific methods out of DOMWindow and Document
> 
> BUG=
> 
> Review URL: https://chromiumcodereview.appspot.com/23691037

TBR=pilgrim@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158573 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158441 "Revert 158116 "DevTools: Speedup sourceURL matching""

> Revert 158116 "DevTools: Speedup sourceURL matching"
> 
> Limiting SourceMappingURL to 1000 last characters is too conservative.
> 
> > DevTools: Speedup sourceURL matching
> > 
> > Do not use RegularExpression for sourceURL matching as creation of
> > a regular expression takes time.
> > 
> > BUG=289714
> > 
> > Review URL: https://chromiumcodereview.appspot.com/24198005
> 
> TBR=pfeldman@chromium.org
> 
> Review URL: https://codereview.chromium.org/25051002

TBR=alph@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158343 "Update image content rect on src changes even if i..."

> Update image content rect on src changes even if intrinsic size matches
> 
> This patch changes RenderImage::imageDimensionsChanged to update the
> image content rect even if the image's intrinsic size is equal. This
> fixes a bug where changing an SVG image to another image of the same
> size would not correctly update the image content rect.
> 
> This patch also cleans up a confusing variable name in
> RenderImage::updateInnerContentRect, changing paint rect to container
> rect to better match what it is.
> 
> BUG=269946
> 
> Review URL: https://chromiumcodereview.appspot.com/23890043

TBR=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158649 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158233 "Expose ImageDecoder::decodedSize for DeferredImage..."

> Expose ImageDecoder::decodedSize for DeferredImageDecoder
> 
> Added ImageDecoder::decodedSize to return the decoded size which is
> normally the actuall image size but may be smaller because of
> maxDecodedSize. DeferredImageDecoder uses it as a part of key
> (scaledSize) in the decoding store to store and find a specific
> decoder.
> 
> BUG=276666
> TEST=DeferredImageDecoder.decodedSize and updated JPEGImageDecoderTest.*.
> 
> Review URL: https://chromiumcodereview.appspot.com/23551014

TBR=wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158731 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158282 "Change maxDecodedSize to maxDecodedBytes"

> Change maxDecodedSize to maxDecodedBytes
> 
> Based on discussion we decided to use size_t instead of IntSize to
> specify the maximum decoded size.
> 
> Updated the downsampling algorithm in JPEGImageDecoder.
> 
> Added Platform::maxImageDecodedSize() to allow the client to specify
> the parameter.
> 
> BUG=276666
> TEST=JPEGImageDecoderTest.*
> 
> Review URL: https://chromiumcodereview.appspot.com/23637015

TBR=wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158732 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 158615 "Fix 1-pixel decodedSize mismatch of downsampled JPEG"

> Fix 1-pixel decodedSize mismatch of downsampled JPEG
> 
> decodedSize() needs to exactly match the output_width/output_height of
> the JPEG decoder. The original code may result a 1-pixel mismatch of
> the decoded size if the original width/height is not multiple of 8,
> causing data corruption when the image buffer is used to create a
> sub-image, and crashes when the sub-image is used.
> 
> BUG=276666,301973
> TEST=JPEGImageDecoderTest.downsampleImageSizeMultipleOf8, JPEGImageDecoderTest.downsampleImageSizeNotMultipleOf8
> 
> Review URL: https://codereview.chromium.org/25382002

TBR=wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/1650@158733 bbb929c8-8fbe-4397-9dbb-9b2b20218538