Adding text node to text transformed absolute makes width wrong.

When a new RenderText is created,NodeRenderingContext::
createRendererForTextIfNeeded() sets a style to the RenderText. If the
text will be text-transformed, styleDidChange() calls
transformText(). It sets a preferredLogicalWidthsDirty flag. After that,
createRendererForTextIfNeeded() inserts the RenderText to its parent
renderer. However, RenderObjectChildList::insertChildNode() doesn't set
a preferredLogicalWidthsDirty flag of owner because a
preferredLogicalWidthsDirty flag of the RenderText is already true.

To avoid that,  setText(), which is called by transformText(), set the
preferredLogicalWidthsDirty flag only if the RenderText has a parent.

BUG=329438

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165732 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ScriptPromise should cast the constructor parameter.

Currently, passing a non-Promise ScriptValue to the ScriptPromise constructor leads to crash.
Since we have Promise.cast, casting the value seems reasonable.

BUG=337700
R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165733 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix a bug that <link rel=prerender> is not parsed on mobile.

This bug was introduced in r165160.
https://codereview.chromium.org/132723002/

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

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

V8HiddenPropertyName is used as a thin wrapper for GetHiddenValue(name) and SetHiddenValue(name) in order to prefix the name with "WebCore::HiddenProperty::". This prefix is for avoiding naming conflicts with someone who sets hidden values as well. However, given that V8 binding is the only guy who sets the hidden values on DOM wrappers, there is no need to use the prefix.

- By removing the prefix, we can remove all code about V8HiddenPropertyName.

- By removing the prefix, we can slightly improve performance of GetHiddenValue() and SetHiddenValue() since we no longer need to prefix strings nor look up V8PerIsolateData to get cached, prefixed strings. (I don't know if the performance of GetHiddenValue()/SetHiddenValue() matters though.)

Given the above, this CL removes V8HiddenPropertyName.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve ImageBitmapFactories exception messages.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165736 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve Internals exception messages.

Who tests the testers? No one, I assume. Let's see what the bots say.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165737 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Implement evaluation on async call frames.

We emulate evaluation on an async call frame by doing evaluation on the global object with an extended context derived from the async call frame scope chain.

BUG=272416
R=yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165738 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't propagate Inherit ad infinitum.

In recalcStyle, when the StyleRecalcChange became Inherit it was effectively
a Force causing a full subtree recalc even for the parts of the subtree that
didn't need to propagate inherited properties further. For instance, setting
document.body.style.color would always cause a full document recalc.

This change effectively reverts https://codereview.chromium.org/119693002
which relied on Inherit being a Force for SubtreeStyleChange.

R=esprehn@chromium.org

BUG=336908

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165739 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add UseCounter for case-insensitive attribute value selector matching

More specifically, count the cases where the result would be different
if a currently (automatically) case-insensitive attribute value match
was made case-sensitive instead, as is the current status of the spec.

BUG=327060

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165740 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[import] support document.stylesheets in imported documents.

This change adds document.stylesheets support. Before this change,
these these sheets were just skipped during stylesheet update
traversal. This change lets the traversal recursively update StyleEngine
of imported document. In the update, the stylesheet value is computed.

Note that as activeStyleSheet of the master document have to contains
sheets in the import tree, this change turns DocumentStyleSheetCollector
to a carrier of stylsheet list to be updated: The collector doesn't own
its own list and have a reference to lists, that are provided by StyleEngine
or DocumentStyleSheetCollection.

BUG=334819
TEST=import-style-basic.html
R=esprehn

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

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