Insert errors in the flakiness dashboard before the body element.

This ensures that dashboards that set document.body.innerHTML
don't clobber the error or have the error go below the content.

TBR=jparent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151956 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 151955 "Avoid DEFINE_STATIC_LOCAL for Strings."

Broke android build:
http://build.chromium.org/p/chromium.webkit/builders/Android%20Builder%20%28dbg%29/builds/12850

FAILED: /b/build/goma/gomacc
/mnt/data/b/build/slave/Android_Builder__dbg_/build/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
-MMD -MF
obj/third_party/WebKit/Source/core/accessibility/webcore_remaining.AccessibilityListBox.o.d
-D_FILE_OFFSET_BITS=64 -DUSE_LINUX_BREAKPAD -DNO_TCMALLOC -DDISABLE_NACL
-DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1
-DUSE_PROPRIETARY_CODECS -DENABLE_GPU=1 -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1
-DENABLE_AUTOFILL_DIALOG=1 -DENABLE_LANGUAGE_DETECTION=1
'-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' -DWEBKIT_IMPLEMENTATION=1
-DENABLE_3D_PLUGIN=1 -DENABLE_BATTERY_STATUS=0 -DENABLE_CANVAS_USES_MAILBOX=0
-DENABLE_CSS3_TEXT=0 -DENABLE_CSS_DEVICE_ADAPTATION=0 -DENABLE_CSS_EXCLUSIONS=1
-DENABLE_CSS_REGIONS=1 -DENABLE_CUSTOM_SCHEME_HANDLER=0
-DENABLE_ENCRYPTED_MEDIA_V2=1 -DENABLE_GRAPHICS_CONTEXT_ANNOTATIONS=0
-DENABLE_SVG_FONTS=1 -DENABLE_TOUCH_ICON_LOADING=1 -DENABLE_XHR_TIMEOUT=0
-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DENABLE_CALENDAR_PICKER=0
-DENABLE_FAST_MOBILE_SCROLLING=1 -DENABLE_INPUT_SPEECH=0
-DENABLE_LEGACY_NOTIFICATIONS=0 -DENABLE_MEDIA_CAPTURE=1
-DENABLE_NOTIFICATIONS=0 -DENABLE_ORIENTATION_EVENTS=1 -DENABLE_PRINTING=0
-DENABLE_NAVIGATOR_CONTENT_UTILS=0 -DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1
-DENABLE_8BIT_TEXTRUN=1 -DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1
-DENABLE_WEB_AUDIO=1 -DENABLE_OPENTYPE_VERTICAL=1 -DWTF_USE_HARFBUZZ=1
-DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DSK_BUILD_NO_IMAGE_ENCODE
-DSK_DEFERRED_CANVAS_USES_GPIPE=1
'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"'
-DGR_AGGRESSIVE_SHADER_OPTS=1 -DSK_ENABLE_INST_COUNT=0 -DSK_USE_POSIX_THREADS
-DSK_BUILD_FOR_ANDROID -DHAVE_ENDIAN_H -DCHROME_PNG_WRITE_SUPPORT
-DPNG_USER_CONFIG -DLIBXML_STATIC -DLIBXSLT_STATIC -DANDROID -D__GNU_SOURCE=1
-DUSE_STLPORT=1 -D_STLP_USE_PTR_SPECIALIZATIONS=1 '-DCHROME_BUILD_ID=""'
-DHAVE_SYS_UIO_H -DDYNAMIC_ANNOTATIONS_ENABLED=1
-DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -I../../third_party/icu/public/common
-I../../third_party/icu/public/i18n -I../../third_party/khronos -I../../gpu
-I../.. -I../../third_party -I../../third_party/WebKit
-I../../third_party/WebKit/Source -Igen/webkit -Igen/webkit/bindings
-I../../third_party/openmax_dl -I../../third_party/angle/include/GLSLANG
-I../../skia/config -I../../third_party/skia/src/core
-I../../third_party/skia/include/config -I../../third_party/skia/include/core
-I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf
-I../../third_party/skia/include/gpu -I../../third_party/skia/include/gpu/gl
-I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe
-I../../third_party/skia/include/ports -I../../third_party/skia/include/utils
-I../../skia/ext -I../../third_party/iccjpeg
-I../../third_party/leveldatabase/src/include
-I../../third_party/leveldatabase/src -I../../third_party/leveldatabase
-I../../third_party/libwebp -I../../third_party/libpng
-I../../third_party/libxml/linux/include -I../../third_party/libxml/src/include
-I../../third_party/libxslt -I../../third_party/npapi
-I../../third_party/npapi/bindings -I../../third_party/ots/include
-I../../third_party/qcms/src -I../../third_party/sqlite
-I../../third_party/zlib -I../../v8/include -I../../third_party/libjpeg_turbo
-fstack-protector --param=ssp-buffer-size=4 -fno-exceptions
-fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers
-fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -Wno-format -march=armv7-a
-mtune=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -fno-tree-sra
-fuse-ld=gold -Wno-psabi -mthumb-interwork -ffunction-sections -funwind-tables
-g -fstack-protector -fno-short-enums -finline-limit=64 -Wa,--noexecstack
--sysroot=/mnt/data/b/build/slave/Android_Builder__dbg_/build/src/third_party/android_tools/ndk//platforms/android-14/arch-arm
-I/mnt/data/b/build/slave/Android_Builder__dbg_/build/src/third_party/android_tools/ndk//sources/cxx-stl/stlport/stlport
-Os -g -fomit-frame-pointer -fdata-sections -ffunction-sections -g1 -fno-rtti
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-c++0x-compat
-Wno-deprecated -Wno-abi  -c
../../third_party/WebKit/Source/core/accessibility/AccessibilityListBox.cpp -o
obj/third_party/WebKit/Source/core/accessibility/webcore_remaining.AccessibilityListBox.o
In file included from
../../third_party/WebKit/Source/core/accessibility/AccessibilityNodeObject.h:32:0,
                   from
                   ../../third_party/WebKit/Source/core/accessibility/AccessibilityRenderObject.h:32,
                                    from
                                    ../../third_party/WebKit/Source/core/accessibility/AccessibilityListBox.h:32,
                                                     from
                                                     ../../third_party/WebKit/Source/core/accessibility/AccessibilityListBox.cpp:30:
                                                     ../../third_party/WebKit/Source/core/accessibility/AccessibilityObject.h:663:22:error:
                                                     prototype for 'const
                                                     WTF::String&
                                                     WebCore::AccessibilityObject::actionVerb()
  const' does not match any in class 'WebCore::AccessibilityObject'
  ../../third_party/WebKit/Source/core/accessibility/AccessibilityObject.h:438:20:error:
  candidate is: virtual WTF::String WebCore::AccessibilityObject::actionVerb()
  const


  etc
> Avoid DEFINE_STATIC_LOCAL for Strings.
> 
> This pattern saved memory allocation at the expense of bloating
> code size. Prefer small code size when these aren't bottlenecks.
> 
> Saves 72 bytes per string, for a total of 2448 bytes
> for this change.
> 
> BUG=247082
> 
> Review URL: https://chromiumcodereview.appspot.com/16457004

TBR=dmazzoni@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Prevent crash with no renderer in RenderSVGResourceFilter

This is a specualtive fix for the many crashes in this area. Most
uses of renderer() are guarded by a null check and that check
wasn't present here.

BUG=246016

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[TestRunner] add a method for explictely setting the widget of a proxy

This is in preparation of associating a proxy with a widget instead of
always using the main web view. Just adding the API so content_shell
can use it

R=marja@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151959 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactor code so DOMWindow has the owning reference for Document.

In http://src.chromium.org/viewvc/blink?revision=125592&view=revision,
abarth cleaned up WebCore so that Document and DOMWindow didn't have to
reach through Frame. Document was changed to own its associated
DOMWindow.

For site isolation, it'd make more sense to reverse the owner
relationship. The HTML specification allows some DOMWindow attributes
to be accessible cross-origin, such as location and parent, while
no cross-origin access is allowed to Document.

BUG=238443
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web MIDI: implement MIDISuccessCallback and MIDIOptions

This change implements MIDISuccessCallback and MIDIOptions.
Since the IDL generator can not handle Dictionary as an arugment of
handleEvent in callback interface, MIDIOptions is not used for now.

BUG=163795
TEST=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add localToWindowPoint to WebPluginContainer[Impl]

This method projects a WebPoint from a plugin container's
coordinate space to its window's coordinate space. It will be needed to resolve the associated Chromium issue.

BUG=235170
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixed compile_frontend.py warnings.

BUG=168776

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove 'context' parameters from callInternalFunction() and compileAndRunInternalScript()

- It's inconsistent that some methods in V8ScriptRunner assume that
caller sites hold context scopes but other methods don't.

- In almost all cases, caller sites of callInternalFunction() and
compileAndRunInternalScript() already have context scopes. So the
'context' parameters are unnecessary.

- In this CL, it's safe to remove 'v8::Context::GetCurrent()' from 
the parameter because it means that we are already in the context scope.

- In this CL, it's safe to remove 'xxx' from the parameter
if 'v8::Context::Scope scope(xxx)' is already written in caller sites.

- After this CL, the rule is simple: caller sites have to
hold HandleScopes and ContextScopes when calling V8ScriptRunner methods.

R=abarth,adamk

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: temporary skip tests that very slow on Win Debug bot

BUG=247466
TEST=layout_tests
TBR=jamesr@chromium.org, alph@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Adding color space conversion code

This adds the missing color space conversion to the GPU path. Basically, whenever a color conversion is required, an SkColorFilter object is created and inserted into the filter tree to perform that color space conversion.

The luts used in ImageBuffer were changed to unsigned 8 bit luts (the extra bits were unused anyway) and made publicly available in that class so that they can be used as is by SkTableColorFilter.

R=senorblanco@chromium.org
BUG=229689

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Speed up filesystem-iframe-from-remote.html by using postMessage instead of setTimeout

BUG=240673

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151967 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update GraphicsLayerTest.applyScrollToScrollableArea

WebLayer::setScrollOffset no longer calls GraphicsLayer::didScroll().
See https://chromiumcodereview.appspot.com/15984005

TBR=jamesr@chromium.org
BUG=247279

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove always-on ENABLE_3D_PLUGIN feature define

R=abarth@chromium.org

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

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