Fix command line option checking in preprocess_idls.pl

Fix optparse usage: check if required option is passed by checking
options.option_name is None, rather than hasattr(), as always hasattr.

(Switch back to optparse from argparse was last-minute, and mandatory
 options are discouraged in optparse, hence mistake.)

Follow-up to:
Issue 15423003: Support --write-file-only-if-changed option in run-bindings-tests
https://codereview.chromium.org/15423003/

BUG=241016

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150731 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove a bunch of unused features from base.py.

R=dpranke@chromium.org, eseidel@chromium.org

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

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

Safari uses a hybrid scrolling approach. For contents that require
compositing, they will create compositing layers and will use layer-based
scrolling. For non-composited contents, they will be painted to a native
window and will be scrolled with a OS-provided backing.

Chromium doesn't use this native window based scrolling. Instead,
NonCompositedContentHost was introduced to provide a replacement for
the OS-provided backing.

Now we no longer need to maintain compatibility with the native window
approach. This patch removes RenderLayerBacking::paintsIntoWindow().
Main frame contents will be painted onto its RenderView layer (which was
always created but only used as container for child layer), and
NonCompositedContentHost becomes redundant which gets removed too.

R=jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150733 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Start collecting two new WebSocket histograms.

- WebCore.WebSocket.HandshakeResult: to know how many WebSockets are
  successfully established.
- WebCore.WebSocket.PerMessageDeflateMode: to know the servers' adoption rate
  of the permessage-deflate extension including no_context_takeover option
  usage.

BUG=128156

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150734 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 150719 "Revert "Implement TimedItem and timing calculations""

Test was not disabled correctly.

> Revert "Implement TimedItem and timing calculations"
>
> This reverts commit 91cd67b2e68da65b029223f6a6a4d18c314c2fa5.
>
> One of the tests has been failing on the Android bots probably since
> the change landed:
>
> UNKNOWN (1 tests): [DISABLED_TimedItem.ZeroDurationInfiniteIteration]
>
> TBR=dstockwell
> BUG=240653
>
> Review URL: https://codereview.chromium.org/15511002

TBR=jchaffraix@chromium.org
BUG=240653

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

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