DevTools: Restore accidentely deleted CSS selector.

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179610 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let HTMLTextFormElement.setSelectionRange with same values avoid layout.

HTMLTextFormElement.setSelectionRange creates VisiblePosition from |start| and 
|end| and calls FrameSelection::setSelection to set Selection.
VisiblePosition causes synchronous layout.
However we implement text field as a shadow element including only div and text 
nodes. 
This means we can set Selection without VisiblePosition.

Source/core/editing/FrameSelection.cpp/h:
- Add localCaretRectWithoutUpdateForTesting(), which returns base's same 
function. 
This looks strange but FrameSelection inherits privately CaretBase.

Source/core/html/HTMLTextFormControlElement.cpp:
- Introduce positionForIndex and indexForPosition functions converting Position
from/to index.
- Change setSelectionRange to use them.
- Limit |max| to text length. This is an update from the reverted one.

Source/core/html/HTMLTextFormControlElementTest.cpp:
- Add the SetSameSelectionRangeDoesNotCauseLayout test.


This cl includes the porting from rniwa@apple.com's changes on WebKit: 
https://bugs.webkit.org/show_bug.cgi?id=128478 
https://bugs.webkit.org/show_bug.cgi?id=128806 

This cl is a retry of the reverted one:
https://codereview.chromium.org/434473005/
This cl updates HTMLTextFormConrolElement::setSelectionRange.

BUG=382809, 397303
TEST=HTMLTextFormControlElementTest.cpp, LayoutTests/fast/forms/input-tab-shows-
caret.html, textarea-select.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179611 bbb929c8-8fbe-4397-9dbb-9b2b20218538
The generated archived_results.json must have relative link to the results.html in the same folder not absolute link.

It is because the folder name is changed when layout-test-results folder is archived.
It leads to incorrect links.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179612 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Consume handled shortcuts in JavaScriptSourceFrame

BUG=400355
TBR=lushnikov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179613 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add missing null checks in FrameView::setScrollPosition

FrameView::setScrollPosition can get called when there is no
documentElement or when the documentElement has no renderer,
but http://crrev.com/384973003 neglected to add null checks
for these situations. This CL adds the missing null checks.

BUG=399018

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused TimelineModel.loadFromURL method

BUG=398784
R=eustas@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix framework blackboxing for exceptions thrown inside V8 internal scripts.

BUG=267592
R=yurys

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

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