Extend ScalarValueString handling to include constructors.

ScalarValueString conversion may raise an exception; take that into
account when generating the constructor's code.

Also, common up various string-like and exception-raising tests
internally, making them properties over the underlying IDL types.

R=jsbell@chromium.org,haraken@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176732 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Load resource content from imported document resource fetcher when needed.

BUG=354447

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176733 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove category getter from TimelineModel.Record

Also moved recordStyle method to WebInspector.TimelineUIUtilsImpl as it is supposed to work with records build on Timeline agent messages and doesn't support trace events.

BUG=361045
R=loislo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176734 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't try to move non visible contents in "Indent" command

This patch makes "Indent" command not to try move non visible contents into
block quote.

The root cause of issue 343958 is "Indent" command calls
|moveParagraphWithClones()| with null |VisiblePosition| for start and end of
contents to move. This patch checks them before calling
|moveParagraphWithClones()|.

BUG=343958
TEST=LayoutTests/editing/execCommand/indent-no-visible-contents-crash.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move {leading,trailing}WhitespacePosition to editing/ from dom/

This patch move {leading,trailing}WhitespacePosition to editing/htmlediting.cpp
from Position.cpp to reduce editing/ dependency from dom/

BUG=n/a
TEST=n/a; no behavior change

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176736 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix naming in binding code generator (contents => context, no generate_)

This fixes a long-standing typo/misnaming in the CG:
The dict of variables Jinja uses to "render" a template is called the
"context", per API reference:
http://jinja.pocoo.org/docs/api/#jinja2.Template.render

However, we initially called this "contents".

Also, "generate" should only be used for "producing text",
which is how we use it in other build scripts,
not "compute values";
this is analogous to avoiding "get_" prefixes.

This fixes the names, making it rather more consistent and readable.
Compare for instance:
'methods': [generate_method(operation)
            for operation in callback_interface.operations],
with corrected:
'methods': [method_context(operation)
            for operation in callback_interface.operations],

Also fixes one old type in callback_interface
(missing "is_" on boolean).

R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176737 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Media Inspector] fix sorting of locations in Media Inspector

Media queries are not sorted inside sections related to their UI
location, which breaks precontract of method
MediaQueryInspector._squashAdjacentEqual.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176738 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Remove clang method export hack that is not longer needed.

The hack breaks the build on clang/windows and is apparently no longer
needed on clang/linux.

R=erik.corry@gmail.com, hans@chromium.org, oilpan-reviews@chromium.org, zerny@chromium.org

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

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