Oilpan: Move more code of RenderObject destructors to destroy().

Like [1] and [2]. We should do it in general.


This CL relands Blink r180046 [3] with some modifications.

- Move ImageQualityController::remove(this) from ~RenderBoxModelObject() to
  willBeDestroyed(), not to destroy() because RenderWidget doesn't call
  destroy() of its parent classes (RenderReplaced -> RenderBox ->
  RenderBoxModelObject). willBeDestroyed() of parent classes are correctly
  called.

- Add a test for the above issue as RenderPartTest.cpp
 It's not RenderWidgetTest.cpp because the RenderWidget constructor is private.
 Also, update ImageQualityController for ease of testing


[1] http://src.chromium.org/viewvc/blink?view=revision&revision=180023
[2] http://src.chromium.org/viewvc/blink?view=revision&revision=180029
[3] http://src.chromium.org/viewvc/blink?view=revision&revision=180046

BUG=398342

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180616 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL: Add test cases for union type return values

This is a follow up CL to r180360. Added cases are:
- GarbageCollected and WillBeGarbageCollected interfaces
- IDL Dictionary
- sequence<T> and T[]
- union type which has more than two members

Adding test cases found two bugs:
- IDL dictionaries should not be wrapped in Nullable
- IdlUnionType.includes_for_type should not use
  includes_for_type() as a function. includes_for_type
  is supposed to be used as a property.
This CL fixes the bugs.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180617 bbb929c8-8fbe-4397-9dbb-9b2b20218538
XMLHttpRequest should parse as it receives chunks.

Before this patch, XMLHttpRequest delayed parsing the received data until
responseXML getter was invoked.

This patch changes XHR to parse as it receives new data.
By invoking |DocumentParser::appendBytes()| from |didReceiveData|,
|m_responseDocument| DOM is created asynchronously.

BUG=402261

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

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