location.reload() after POST should re-POST

Currently, location.reload() always triggers a get. Change it to go through
the FrameLoaer::reload() path, like a user-initiated reload.

This aligns our behavior with firefox and IE.

BUG=6429
TEST=http/tests/navigation/location-reload-after-post.php

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179176 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have BidiRunList destructor delete runs

Have the BidiRunList destructor delete all runs and change all
BidiRunList call sites, except RenderBlockLineLayout, to rely on the
destructor instead of explicit calls to deleteRuns.

In RenderBlockFlow::layoutRunsAndFloatsInRange deleteRuns is called
early, and explicitly, in two places. Removing these calls would likely
involve splitting the run list of changing the life time of it.

BUG=396963
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179177 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move FrameDestructionObserver into LocalFrame.

Prepratory cleanup for making recursive frame detach work for all
frames. FrameDestructionObserver can only observe a LocalFrame.
Similarly willDetachFrameHost() and detachFromFrameHost() can only be
called on LocalFrames, since these methods are only called by
FrameLoader.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179178 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Remove console last result $_ on console clear.

BUG=398336
R=loislo, yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179179 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use tighter typing in editing: InsertParagraphSeparatorCommand / InsertTextCommand

Use tighter typing in editing/ to increase code readability. This CL focuses on
InsertParagraphSeparatorCommand / InsertTextCommand.

R=leviw@chromium.org, yosin@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the old text autosizer

This patch removes the old text autosizer. Long live the fast text
autosizer!*


*which we should rename to TextAutosizer in a followup patch.

BUG=385380

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179181 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Bump up allowed maxAllowedError in webaudio tests.

This allows the test to pass on linux32 after the clang switch.
The test passed on 32bit mac already with the same compiler – this turned
out to be because clang is allowed to treat sqrtf() as a builtin on mac, but not
on linux (due to glibc's math routines setting errno). See the bug for details.

BUG=392764

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179182 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove WheelEvent.initWebKitWheelEvent()

Intent to Deprecate and Remove:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/h_GoezQ4MQ4/Q5abFkhA76sJ

BUG=398422

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179183 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Build fix after r179181

m_autoTextsizer is gone in r179181. This CL removes the leftover.

TBR=pdr@chromium.org

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

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

Remove the WTF_USE_HARFBUZZ define and the remaining use of it as it is
it only used in files compiled on platforms where it is guaranteed to be
true.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179185 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Remove prefixed Pointer Lock API. (https://codereview.chromium.org/424093006/)

Reason for revert:
The change broke several Chromium OS interactive_ui_tests:

ExtensionPointerLockAccessFail
ExtensionPointerLockAccessPass
EscapingMouseLock
MouseLockSilentAfterTargetUnlock
TestTabDoesntExitMouseLockOnSubFrameNavigation
TestTabExitsMouseLockOnGoBack
TestTabExitsMouseLockOnNavigation
PointerLock_PointerLockLostWithFocus

that were using the prefixed API (""Uncaught TypeError: undefined is not a function").

See
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tests%20%282%29/builds/735/steps/interactive_ui_tests/logs/stdio

Original issue's description:
> Remove prefixed Pointer Lock API.
> 
> The Pointer Lock API http://www.w3.org/TR/pointerlock has already been
> implemented without prefix, this change removes the 'webkit' prefixed
> API endpoints.
> 
> Intent to Deprecate and Remove:
> https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/tN8fWRtG0MI
> 
> BUG=398457
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179172

TBR=abarth@chromium.org,scheib@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=398457

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179186 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the old text autosizer (2)

This is a followup to [1] which dropped the actual removal of
TextAutosizer{.h,.cpp}.

[1] https://src.chromium.org/viewvc/blink?view=rev&revision=179181

TBR=skobes
BUG=385380

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179188 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update the size expectation of sizeof(CSSValue)

This is a follow-up CL for r179158.
Applied tkent-san's comment in https://codereview.chromium.org/427803003/#msg4.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179189 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL: DOM impl class code generation for IDL dictionaries

After this CL, CodeGeneratorV8 generates not only V8 bindings, but also
DOM implementation classes for IDL dictionaries.

- For an IDL file which defines a dictionary, the code generator
  generates bindings code (V8Foo.{cpp,h}) and DOM impl code
  (Foo.{cpp,h}).

- Added Jinja templates for DOM impl generation. The context for these
  templates is created by v8_dictionary.dictionary_impl_context().

- v8_types.cpp_types() takes a new argument called
  |used_as_return_type|. This flags is used by member_impl_context().
  Also, |used_in_cpp_sequence| argument is renamed to |used_as_member|.

IDL dictionaries are still not be able to use in core/modules. We need
to generate impl classes in the right place.
(e.g. core/dom/Foo.idl -> gen/blink/core/dom/Foo.{cpp,h})

Also, following types are not supported yet as dictionary members:
- union types.
- enumeration types.
- composite types (arrays, sequences and dictionaries) of which element
  type is an interface.

BUG=321462

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179190 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a usecounter for SMIL elements in the document

The current SVGAnimation usecounter [1] is skewed by Modernizr [2] and
doesn't count the other animation types such as <animateMotion>. This
patch adds a new usecounter for SMIL animation elements that are in
the document. I manually confirmed this does not fire on the
Modernizr test page [3] whereas the old SVGAnimation counter does.

[1] http://www.chromestatus.com/metrics/feature/timeline/popularity/90
[2] https://github.com/Modernizr/Modernizr/blob/v2.8.3/modernizr.js#L832-L835
[3] http://modernizr.github.io/Modernizr/test/

BUG=258298

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179191 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add comment about CaretBase::updateCaretRect.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179193 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Show non-webkit test failures in the failure stream

-Remove ct-failing-builders and instead show all failures in the stream the
same way we do for webkit tests.
-Sort the failures in a group by step name then by test name.
-Do the dumb object --> model classes transition in small pieces to avoid blocking
getting a minimally viable product ready too much on completely doing this
refactoring.

The UI is not awesome, but I wanted to get the functionality in place first.

NOTRY=true
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179194 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use tighter typing in editing: IndentOutdentCommand / InsertListCommand

Use tighter typing in editing to increase code readability and avoid unnecessary
type checks. This CL focuses on IndentOutdentCommand and InsertListCommand.

R=leviw@chromium.org, yosin@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179195 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap.

We have a lot of remaining raw pointer members to RenderObject. Follow-up
patches will resolve them.

BUG=398342

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Expose the chromium waterfall in sheriff-o-matic.

-Store every waterfall's failures in ct-failure-analyzer
-Pick the list of failures based off the tree and link to the
right flakiness dashboard groups based off the tree.

NOTRY=true
R=eseidel@chromium.org

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

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