DevTools: Address recent changes to Canvas2D API (getContextAttributes).

R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151389 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Layout test animations/cross-fade-list-style-image.html is failing

This test is failing on Win7 and Linux Debug

TBR=vollick@chromium.org
BUG=244895

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151390 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update expectations: invalidate_rect.html does not fail on Mac

Unreviewed gardening.

TBR=vollick@chromium.org
BUG=231859

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151391 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CodeMirror] add comment plugin

Add comment.js plugin and bind it to Ctrl(Cmd)+/ key
combination.

BUG=167284
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151392 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CodeMirror] Do not force selected text color under highlighted ranges

Prelude: CodeMirror's selection is rendered with spans and thus has nothing in common with
native selection color. To make it look as if its a real selection we
preset its foreground selection color and background selection color into
renderer's selection colors.

This patch fixes a specific case with text ranges which are highlighted with TextEditor.highlightRange method
and which are selected at the same time. These ranges are rendred above selection and most
of the time override text's background color. Sadly, most of the time this results in unreadable text as it has
white foreground and light background.

This patch doesn't preset selected text foreground color if the text is a part of a highlighted text range.

BUG=
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151393 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Evaluate selected text on mouse hover

This patch makes a capability to hover on
a selected text during debugging and to see
its evaluated value in popover.

BUG=
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151394 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unnecessary dependencies on StyleResolver

A lot of the code in html and dom uses StyleResolver directly or
includes StyleResolver.h just to get the transitive dependencies.

BUG=244631
TEST=No new tests, no change in functionality
R=eseidel@chromium.org

* core/core.gypi:
  Add PseudoStyleRequest.h

* core/dom/Element.h:
* core/dom/Element.cpp:
  (Element::originalStyleForRenderer):
    Add new method for getting the original RenderStyle for an element,
    ignoring custom style.
  (Element::styleForRenderer):
    Change to call originalStyleForRenderer.

* core/css/resolver/StyleResolver.h:
* core/css/PseudoStyleRequest.h:
  Break out PseudoStyleRequest from StyleResolver into new class.

* core/dom/Node.cpp:
* core/html/HTMLDialogElement.cpp:
* core/html/HTMLInputElement.cpp:
* core/html/HTMLPlugInImageElement.cpp:
* core/inspector/InspectorDOMAgent.cpp:
* core/inspector/InspectorStyleSheet.cpp:
* core/loader/LinkLoader.cpp:
* core/page/animation/CSSPropertyAnimation.cpp:
* core/svg/SVGClipPathElement.cpp:
* core/svg/SVGFontFaceElement.cpp:
* core/svg/SVGGradientElement.cpp:
* core/svg/SVGMaskElement.cpp:
* core/svg/SVGUseElement.cpp:
  Remove unnecessary StyleResolver.h include.

* core/rendering/RenderLayer.cpp:
* core/rendering/RenderLayerBacking.cpp:
* core/rendering/RenderScrollbar.cpp:
  Include the desired headers instead of StyleResolver.h
* core/html/HTMLDialogElement.cpp:
* core/html/HTMLInputElement.cpp:
* core/html/HTMLOptGroupElement.cpp:
* core/html/HTMLOptionElement.cpp:
* core/html/shadow/DateTimeEditElement.cpp:
* core/html/shadow/TextFieldDecorationElement.cpp:
  Use Element::originalStyleForRenderer instead of calling
  styleForElement through document->styleResolver.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151395 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Do not automatically enable Canvas Profiler upon switching to the Profiles tab.

Enabled Canvas Profiler may be intrusive for other profilers, thus we should not automatically enable it.
Instead we will provide a Enable/Disable button which would do the action and reload the debuggee page if necessary.
Also, if Canvas Profiler option is selected but it's not (yet) enabled, we should disable the "Take Snapshot" button.

BUG=236767
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151396 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mac: Fix hang on 10.6 with some BiDi control chars.

This hang has the same cause as the following bug,
which I fixed some time back:

http://crbug.com/167844 

Turns out my fix was incomplete; it only handled
the case were the BiDi control char was at the
start of the string, whereas the same issue can
occur when the control char is in the middle.

This CL handles the other case as well.

More details here:

http://trac.webkit.org/changeset/142206

Adds a new test and adjusts the layout forcing
pattern used in the other test I added, as it
was no longer triggering the hang (perhaps due
to threaded HTML parser?).

BUG=243148
TEST=LayoutTests/fast/text/international/rtl-mark2.html

Review URL: https://chromiumcodereview.appspot.com/16133009

git-svn-id: svn://svn.chromium.org/blink/trunk@151397 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixing a bug in @supports error recovery.

Current grammar considers a space after invalid parentheses block as an error.

BUG=140608

Review URL: https://chromiumcodereview.appspot.com/16072009

git-svn-id: svn://svn.chromium.org/blink/trunk@151399 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: fix autocompletion in multiple tabs

Autocompletion gets broken when multiple tabs are opened in
Sources panel. The reason is that one shared instance of "autocomplete" function gets shared among all of the CodeMirror instances. This patch fixes the glitch.

BUG=

Review URL: https://chromiumcodereview.appspot.com/16136003

git-svn-id: svn://svn.chromium.org/blink/trunk@151400 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use pauseAnimations API for animations/cross-fade-webkit-mask-box-image.html

Should make this test less flaky

R=dstockwell@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16032012

git-svn-id: svn://svn.chromium.org/blink/trunk@151401 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Indent media queries in CSS files for the DevTools.

Note, indented media queries had already existed in some places, so this CL also helps keep things more consistent.

BUG=243813
R=vsevik

Review URL: https://chromiumcodereview.appspot.com/15962010

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