Renaming didNavigate to continueProgram

There was a TODO to rename didNavigate() to continueProgram upstream. 
As the changes were on both chrome and blink side hence uploading separate patches for the same. 

This patch deals with blink side change.

Link to chromium patch : https://codereview.chromium.org/330663002/

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176727 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Revert 170343 "Send AXLayoutComplete even when document hasn't f...""

Un-reverting this change that was temporarily reverted for a branch merge.

BUG=353067
NOTRY=true
TBR=dmazzoni

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176728 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 176723 "Revert 172948 "Don't send accessibility notificat..."

Un-reverting this change that was temporarily reverted for a branch merge.

> Revert 172948 "Don't send accessibility notifications for a doc ..."
> 
> Temporarily reverting so that we can merge the revert to M36. Will un-revert
> on trunk.
> 
> > Don't send accessibility notifications for a doc with an empty/blank url.
> > 
> > This is a refinement to the change that started sending
> > accessibility notifications early. This also addresses
> > the test for this change that was flaky.
> > 
> > BUG=353067,363235
> > NOTRY=true
> > 
> > Review URL: https://codereview.chromium.org/242103012
> 
> TBR=dmazzoni@chromium.org
> 
> Review URL: https://codereview.chromium.org/353443002

TBR=dmazzoni@google.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176729 bbb929c8-8fbe-4397-9dbb-9b2b20218538
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
Fix typo ExeuctionContext -> ExecutionContext

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176740 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: move MediaKeyError to the heap.

R=haraken@chromium.org
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176742 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move invodeCallback from V8Callback to V8Binding

Because of removing "V8GeolocationCustom.cpp", "invokeCallback"
functions are only left in "V8Callback".
They could be moved to "V8Binding" becuase they are related to
binding. In addition, "V8Callback.h/cpp" could be removed.

BUG=387640

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused functions in PositionOptions

setEnableHighAccuracy, setTimeout and setMaximumAge are only used in
"V8GeolocationCustom.cpp", but that file has been removed on the r176719.
Therefore those functinos have to be removed also.

BUG=385426

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176744 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL parser: fix rebuilding of (stale) cached parser tables

The yacc parser's tables are cached to improve build performance, and are
rebuilt by running blink_idl_parser.py directly, which simply initializes
the IDL parser and expects PLY (yacc.py) to write the cached tables as a
side-effect.

However, if the file containing the cached tables exists, then PLY will
instead try to load the stale cache. If that succeeds, it will disable
the rewriting, since there's no point in writing to the cache what was
just read from it.

Fix by always deleting the cache file whenever blink_idl_parser.py is
executed directly, before initializing the parser. This way, PLY will not
use cached tables, and will instead write the cache file.

BUG=387631

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Throw TypeError when addEventListener or removeEventListener are called without enough arguments

** Changes web-facing behavior **

This removes legacy behavior, per request of Tab:
it fixes some current compatibility problems which *are* causing pain,
but potentially breaks some old content.

Current behavior (not throwing a TypeError) was for compatibility in 2012,
though unspecified cause:
WebKit bug specifically special-casing this in JavaScriptCore bindings is:
[JSC] Regression: addEventListener() and removeEventListener() raise an exception on missing args
https://bugs.webkit.org/show_bug.cgi?id=85928

WebKit/Safari also has legacy behavior (matches current Blink/Chrome):
"For compatibility with legacy content, the EventListener calls are generated without GenerateArgumentsCountCheck."
http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm#L2823

However, IE and Firefox *do* throw (correctly), and this discrepancy is causing
compatibility problems:
removeEventListener with only one passed parameter...
http://lists.w3.org/Archives/Public/public-script-coord/2014AprJun/0166.html

Thus this CL aligns with spec, updating tests and removing legacy tests.

R=haraken
BUG=353484
TEST=fast/dom/event-target-arguments.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176746 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Do not show save/save as context menu items for file system files and snippets.

BUG=384363
R=lushnikov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176747 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove excessive include of ActiveAnimations.h

CSSAnimations.h, having being changed 23 times in the last 90 days,
had prior to this patch roughly 507 targets depending on it. After
this patch, the number has shrunk to 17.

This patch removes unnecessary ActiveAnimation.h includes, from which
CSSAnimations.h is included.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176748 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [regression] screencast won't render element boxes in Inspect element mode

BUG=387552

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

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