Add InspectorInstrumentation calls in NewWebSocketChannelImpl.

BUG=275458
R=tyoshino

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160310 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make indent command to work with positional CSS selector, e.g. :first-child, with visibility

This patch changes to compute range of contents in list item before inserting list element in IndentOutdentCommand::tryIndentingAsListItem() to avoid visibility change resulted by inserting list element.

The crash, assertion isn't Element, is caused by CompositeEditCommand::cloneParagraphUnderNewElement(start, end, outerNode, blockElement) tries to move nodes in ancestries until Document rather than limited to outerNode. This wrong |start| is passed as node before list element in VisiblePosition of start of list item contents. When list item is visibile, |start| is list item. Although, in this case, the list item is hidden, because the list item is second child element.

Here is sample HTML before calling CompositeEditCommand::moveParagraphWithClones(), which calls cloneParagraphUnderNewElement() in IndentOutdentCommand::tryIndentingAsListItem()

abcd<ul><UL></UL><li>xyz</li></ul>
- <UL></UL> is inserted list
- <li>xyz</li> is the list item to move

BUG=309010
TEST=LayoutTests/editing/execCommand/indent-with-first-child-crash.html
R=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160311 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix style error in core/editing/TextIterator.cpp

This patch fixes style error in core/editing/TextIterator.cpp for introducing PlainTextRange. PlainTextRange.cpp will be copied from TextIterator.cpp for moving getLocationAndLengthFromRange() and rangeFromLocationAndLength() to PlainTextRange class.

BUG=n/a
TEST=n/a; no behavior changes
R=tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160312 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move members from HTMLPlugInImageElement to HTMLPlugInElement, part 3.

 - didMoveToNewDocument()
 - renderEmbeddedObject()
 - m_imageLoader
 - attach()
 - updateWidgetCallback
 - updateWidgetIfNecessary()

Also, this CL merges HTMLPlugInImageElement::detach() into
HTMLPlugInElement::detach().

This is a part of a task to merge HTMLPlugInImageELement into HTMLPlugInElement.
Only HTMLPlugInImageElement inherits from HTMLPlugInElement.

BUG=309978

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160313 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disable WebFrameCSSCallbackTest.MultiSelector for being flaky.

BUG=310440
TBR=jsbell

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160314 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix one reaming style error in core/editing/TextIterator.cpp

This patch fixes one reaming from r160312 style error in  core/editing/TextIterator.cpp.

BUG=n/a
TEST=n/a; no behavior chagnes
R=morrita@chromium.org

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

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