Convert two pixel tests, editing/deleting/smart-delete-00{3,4}.html to JS test.

This patch converts two pixel tests, editing/deleting/smart-delete-00{3,4}.html
to JS test, because these tests are no need to be pixel tests.

This patch is a preparation of fixing issue 358947.

BUG=n/a
TEST=no new test because of no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179382 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify -webkit-line-box-contain parsing

This patch reduces code duplication a little in -webkit-line-box-contain parsing.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179383 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove value packing and custom style building for text-underline-position.

The user of this property (currently only computeUnderlineOffset) is
oblivious to the fact that RenderStyle::textUnderlinePosition may be a
packed value. (It looks like we'll ASSERT_NOT_REACHED if we actually pack
values during style building).

This was probably done in anticipation of the currently missing left|right
values defined by CSS3 Text Decoration.

I suggest that we remove the custom behavior until support for the
properties are added. When/if support for left|right is added, it should
probably go through StyleBuilderConverter anyway.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix search in element panel with workers

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179385 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.

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 
BUG=382809, 397303
TEST=HTMLTextFormControlElementTest.cpp

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

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