ServiceWorker: Fix conversion from Request headers to WebServiceWorkerRequest headers

The headers need to be coalesced when converting from one type to another.

A similar CL for WebServiceWorkerResponse headers is here: https://codereview.chromium.org/564773004/

BUG=415157

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182314 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Documentation] Improve documentation rendering

The patch migrates documentation rendering to the look and feel
of the chrome developers documentation. It also adds support for
rendering of tables.

BUG=415492

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182315 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Injected __commandLineAPI property should not be enumerable.

Evaling "keys(window).indexOf('__commandLineAPI')" in console should return -1.

// not directly related
BUG=415578
R=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: details view UI polish

- move record type title to the left of all tabs and make it bold;
- select last tab by default, unless user have made an explicit choice;
- reduce font for paint profiler pie chart to make total duration
    fit one line.

R=pfeldman,loislo

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182317 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix newly uncovered compilation errors

These errors were detected using the new compilation approach
suggested in https://codereview.chromium.org/573453004/.

R=loislo
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182318 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use bit-fields for space saving in HTMLFormElement. Reduces the size by 8 bytes per instance.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182319 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Streamline script streaming: better threading model.

Add a proper producer (main thread) - consumer (streamer thread) model. This
greatly simplifies the threading dance and makes it possible to add features
such as making the main thread wait until the streaming thread has finished (as
a follow-up).

Also, reduce task posting between threads, replace with proper locking.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182320 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix JS compilation.

TBR=apavlov
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182321 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Fetch API] Add tests of 304 handling for fetch().

This is the same as what xmlhttprequest/cache-override.html checks for XMLHttpRequest. 
See: https://github.com/slightlyoff/ServiceWorker/issues/412

BUG=None
TEST=http/tests/serviceworker/fetch-cache-override.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182322 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Show title tooltip of links in sidebar placards.

R=vsevik
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182324 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix shared libary build for content_browsertests.

Move the WebMIDIClientMock destructor implementation from
the header to the cpp. This way we can avoid undefined
vtable errors.

BUG=415162

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182326 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: polish the MQ ruler, move zoom controls to the top.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182327 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Get rid of frontend_modules.json

Instead, the compilation process will rely on module.json files that
all modules now have. Additionally, devtools.json lists all modules
that comprise the application.

R=pfeldman
BUG=391566

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182328 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Documentation] Add constants documentation

Now documentation for JavaScript constants is also available.

BUG=415480

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182329 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: unify scheduled action in a worker and a page, so we do not set a wrong url to a script

BUG=415058

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182330 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL: Conversion to Dictionary is trivial (can't fail)

Conversion from v8::Value to blink::Dictionary simply stores a reference
to the v8::Value in the blink::Dictionary object, so can't throw an
exception.  Adjust v8_conversion_is_trivial() accordingly, to avoid
use of TONATIVE_VOID(_INTERNAL) and thus declaration of unnecessary
v8::TryCatch locals.

BUG=413257

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182331 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ensure that hasPendingActivity() is false for stopped media elements

Where stopped means that ActiveDOMObject::stop() has been called.

All the conditions in hasPendingActivity() are now false after stop():

 - m_shouldDelayLoadEvent is set to false by userCancelledLoad() ->
   setShouldDelayLoadEvent(false).

 - m_networkState is either NETWORK_EMPTY or NETWORK_IDLE after
   userCancelledLoad().

 - couldPlayEnoughData() returns false because m_paused is now set to
   true by stop().

 - m_seeking is now set to false by stop().

 - m_mediaSource is set to null by userCancelledLoad() ->
   closeMediaSource().

 - m_asyncEventQueue->hasPendingEvents() is false because stop() calls
   m_asyncEventQueue->close().

TEST=LayoutTests/media/gc-pending-event-inactive-document.html

This test reliably hits the assert that revealed this problem:
https://codereview.chromium.org/584633004

BUG=400659

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182332 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove HTMLMediaElement::isPlaying()

It's unused as of r182247:
https://codereview.chromium.org/552303006

BUG=400659

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182333 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unnecessary codes (associated with save image feature)

This CL removes the unnecessary codes which is related to the |save image for
canvas| feature. We no longer need the codes because we have already introduced
the saveImageFromData() method to the following CL.
  https://crrev.com/518043003

BUG=401888

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182334 bbb929c8-8fbe-4397-9dbb-9b2b20218538
When we change our compositing state, reflection follows

Previously we were calling reflectionLayer->setCompositingReasons(reflectionLayer->compositingReasons() |reflectionCompositingReason). This meant if CompositingReasonReflectionOfCompositedParent was already set it would remain set because we are simply or-ing. This updates the code to mask off that single bit and set/unset it.

BUG=411855

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

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