Merge 176755 "[DevTools] Fix enabling/disabling emulation."

> [DevTools] Fix enabling/disabling emulation.
> 
> Changed PageResizer so it passes available size to
> OverridesSupport itself, and has more control of when to do this.
> 
> BUG=327641
> 
> Review URL: https://codereview.chromium.org/349133003

TBR=dgozman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177296 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176688 "Use BisonCSSParser::parseColor to parses brand-col..."

> Use BisonCSSParser::parseColor to parses brand-color as we want to support all CSS color value.
> 
> Also, add test case to verify first brand-color meta tag takes effect.
> and the brand-color can be changed by script.
> 
> BUG=383941
> 
> Review URL: https://codereview.chromium.org/341273008

TBR=michaelbai@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177338 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 169180 "Place inner frame scrollbars on the left side, if..."

Patch cause layout problems as described in
http://code.google.com/p/chromium/issues/detail?id=353111

> Place inner frame scrollbars on the left side, if indicated by the frame-level
> text direction.
> 
> CL overrides ScrollView::shouldPlaceVerticalScrollbarOnLeft() from FrameView in
> order to determine if a Frame level scrollbar should be placed on the left.
> Logic is simple: it obeys what ever is set to the body node, as it determines
> the page text direction.
> 
> For now, it only covers inner frames, as main frame level scrollbar placement
> logic should be dictated by the application/system (see crbug.com/249860).
> 
> Patch does not introduce new tests, but marks the existing affected tests as
> NeedsManualRebaseline in order to get
> results for all platforms from the bots, and perform rebaselines accordingly.
> Once this is done, idea is to re-mark them as flaky.
> 
> Bug=250514
> 
> Review URL: https://codereview.chromium.org/150733002

TBR=a1.gomes@sisa.samsung.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177601 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176791 "Scroll position does not reliably restore on back/..."

> Scroll position does not reliably restore on back/forward in-page navigations.
> 
> There's a sequence of repeated back-forward navigations that causes us to
> overwrite scroll position for a HistoryItem. It is:
> 
> * Scroll a bit to an in-page link.
> * Click link, then go back, then go forward, then go back again.
> * Click another in-page link, then go back, then go forward.
> 
> On this last forward navigation, we will scroll to the top of the page instead
> of to the anchor.
> 
> This is because we decide whether to save scroll position based on FrameLoader's
> m_loadType parameter. This state is set for different document navigations and
> for same document history navigations, but NOT for same document non-history
> navigations. So ensure we always set m_loadType for same  document navigations.
> 
> BUG=339822
> TEST=WebViewTest.BackForwardRestoreScroll
> 
> Review URL: https://codereview.chromium.org/350713003

TBR=japhet@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177603 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176829 "Tracing fix: don't try to retrieve file name from ..."

> Tracing fix: don't try to retrieve file name from empty scripts.
> 
> After this, we don't get trace events for running empty scripts (e.g., scripts
> where compilation has failed) but that's most probably okay, since those trace
> events would be meaningless anyway (it's an early return).
> 
> R=jochen@chromium.org
> BUG=387948
> 
> Review URL: https://codereview.chromium.org/334933004

TBR=marja@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177681 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176749 "DevTools: [regression] screencast won't render ele..."

> DevTools: [regression] screencast won't render element boxes in Inspect element mode
> 
BUG=387552
> 
> Review URL: https://codereview.chromium.org/345463004

TBR=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177846 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable optimization of repaint on viewport resize in M37

The optimization exposed some old bugs of incremental invalidation.
Will try to fix the bugs in M38, but for now disable the optimization
in M37.

BUG=390378,258219
R=amineer@chromium.org, esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177852 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177361 "Fix computation of the transformAncestor property ..."

> Fix computation of the transformAncestor property in CompositingInputsUpdater.
> 
> The condition for being a transformAncestor should be transform(), not hasTransform().
> 
> BUG=390411
> 
> Review URL: https://codereview.chromium.org/368783002

TBR=chrishtr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177860 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176953 "Mark the layer for which updateLayerPosition retur..."

> Mark the layer for which updateLayerPosition returned true for paint invalidation
> 
> Previously, we were just doing that for child layers. This meant that sometimes a layer would move after layout, but we would not invalidate its old and new paint positions.
> 
> In particular, this happened with the added test, in which a leaf RenderLayer (backing a div element) moved to the left after its sibling with inline-block layout was removed. The RenderLayer that moved did not participate in layout (since it itself did not get laid out, but was moved by updateLayerPosition since its position changed as a result of external forces.
> 
> BUG=384945
> 
> Review URL: https://codereview.chromium.org/352193002

TBR=chrishtr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177861 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable unreachable code caused by r177852

TBR=govind,animeer,matthewyuan

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177862 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176880 "Properly repaint RenderLayer's descendants when it..."

> Properly repaint RenderLayer's descendants when it moves
> 
> When a RenderLayer moves, it can cause non-composited descendants of itself
> that are placed relatively to it to need to be repainted. These descandants
> may not have needed layout themselves, nor have they moved as far as the
> RenderLayer itself is concerned. This patch forces all descendant RenderLayers
> of a moved ancestor to at a minimum be checked by invalidateTreeAfterLayout
> to see if they need to be repainted.
> 
> Ideally we'd bail in markDescendantLayersMayNeedPaintInvalidation when
> we hit a composited layer, but because updateLayerPositions occurs before
> compositing update, this would be a chicken and egg problem.
> 
> BUG=385103
> 
> Review URL: https://codereview.chromium.org/354613003

TBR=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177867 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177076 "[DevTools] Fix UI extreme cases: very small window..."

> [DevTools] Fix UI extreme cases: very small window and very large zoom.
> 
> BUG=388185
> 
> Review URL: https://codereview.chromium.org/342683008

TBR=dgozman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177915 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177033 "DevTools: Fix breakpoints in source mapped files a..."

> DevTools: Fix breakpoints in source mapped files after reload.
> 
> Note: Test expectations change for the testBreakpointInCollectedReload test
> are not caused by the change, but by the change in test harness.
> These changes reveal an error in BreakpointManager implementation that will be fixed in the following patch.
> 
> BUG=388131
> R=sergeyv
> 
> Review URL: https://codereview.chromium.org/350403004

TBR=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177925 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 176987 "DevTools: Make sure debug listener is added before..."

> DevTools: Make sure debug listener is added before any other calls into debugger.
> 
> This is needed to make sure we do not load v8 debugger multiple times.
> 
> BUG=386969
> R=pfeldman@chromium.org, yurys@chromium.org, pfeldman, yurys
> 
> Review URL: https://codereview.chromium.org/343653008

TBR=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@177993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177256 "Revert of node.cloneNode() should clone the value ..."

> Revert of node.cloneNode() should clone the value of file upload elements (https://codereview.chromium.org/267713006/)
> 
> Reason for revert:
> Caused a serious regression, crbug.com/388795.
> 
> 
> Original issue's description:
> > node.cloneNode() should clone the value of file selected
> > 
> > when input element of type file with a selected file is cloned, the cloned node should
> > also have the same file as selected.
> > HTML specification states:
> > http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html
> > "The cloning steps for input elements must propagate the value, dirty value
> > flag, checkedness, and dirty checkedness flag from the node being cloned to the
> > copy."
> > 
> > The value for the input element of type fileupload is the filename.
> > 
> > Behaviours in major Browser:
> > Firefox- clones filename
> > Safari, IE & Opera- do not Clone filename 
> > 
> > BUG=71536
> > TEST=fast/forms/file/input-file-element-clone.html
> > 
> > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173626
> 
> BUG=71536,388795
> TBR=gnanasekar.s@samsung.com
> NOTRY=true
> 
> Review URL: https://codereview.chromium.org/364503002

TBR=tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@178017 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177071 "Web Animations: Don't eagerly assign start times f..."

> Web Animations: Don't eagerly assign start times for element.animate
> 
> This ensure that animations started by element.animate function the same way
> as regular CSS Animations -- they will wait for notification of a start
> time from the compositor.
> 
> BUG=389396
> 
> Review URL: https://codereview.chromium.org/354123002

TBR=dstockwell@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@178018 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177480 "Remove getMediaDevices interface."

> Remove getMediaDevices interface.
> 
> getMediaDevices was landed for M37 but the spec changed just at the M37 cut without a heads-up. So we are removing getMediaDevices and replacing it with MediaDevices.enumerateDevices for M38.
> 
> This CL depends on reverting/disabling test code: https://codereview.chromium.org/341123005/
> 
> BUG=388648
> 
> Review URL: https://codereview.chromium.org/357303002

TBR=grunell@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@178032 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177118 "DevTools: [Console] fix search to reveal matched m..."

> DevTools: [Console] fix search to reveal matched messages
> 
> During console migration on viewport revealing search results was
> forgotten.
> This patch fixes this.
> 
> BUG=388718
> R=pfeldman
> 
> Review URL: https://codereview.chromium.org/354013002

TBR=lushnikov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@178048 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177308 "DevTools: [Console] add forgotten monospace class ..."

> DevTools: [Console] add forgotten monospace class to messagesElement
> 
> This patch adds missed monospace class to the console view messages
> element. This fixes the misaligned anchor links for console messages.
> 
> BUG=390483
> 
> Review URL: https://codereview.chromium.org/360293002

TBR=lushnikov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2062@178049 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 177514 "DevTools: reveal console in drawer on "evaluate in..."

> DevTools: reveal console in drawer on "evaluate in console" command
> 
> Reveal console view in drawer on "evaluate in console" command from
> JavaScriptSourceFrame.
> 
> BUG=389501
> 
> Review URL: https://codereview.chromium.org/368243003

TBR=lushnikov@chromium.org

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

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