[webkit-changes] [135829] trunk

2012-11-26 Thread tkent
Title: [135829] trunk








Revision 135829
Author tk...@chromium.org
Date 2012-11-26 23:53:18 -0800 (Mon, 26 Nov 2012)


Log Message
:read-only selector should match to date/time input types
https://bugs.webkit.org/show_bug.cgi?id=103350

Reviewed by Kentaro Hara.

Source/WebCore:

We supported :read-only and :read-write only for text form controls;
i.e.  and text-field . According to [1], we should
support them for date/time types. So, this patch removes
isTextFormControl check in SelectorChecker, and just relies on
shouldMatchRead{Only,Write}Selector virtual functions.

Tests: Update fast/forms/*/*-appearance-pseudo-classes.html.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOneSelector):
Remove isFormControlElement check and isTextFormControl check.

* html/HTMLFormControlElement.cpp:
Remove shouldMatchRead{Only,Write}Selector functions. We don't need
common implementations any more.
* html/HTMLFormControlElement.h: Ditto.

* html/HTMLTextAreaElement.h:
(HTMLTextAreaElement): Add shouldMatchRead{Only,Write}Selector overrides.
* html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::shouldMatchReadOnlySelector): Added.
(WebCore::HTMLTextAreaElement::shouldMatchReadWriteSelector): Added.

* html/HTMLInputElement.h:
(HTMLInputElement): Add shouldMatchRead{Only,Write}Selector overrides.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::shouldMatchReadOnlySelector):
Added. This checks InputType::supportsReadOnly and readOnly.
(WebCore::HTMLInputElement::shouldMatchReadWriteSelector): Ditto.

* html/InputType.h:
(InputType): Add supportsReadOnly.
* html/InputType.cpp:
(WebCore::InputType::supportsReadOnly): Added. Returns false by default.

* html/BaseDateAndTimeInputType.h:
(BaseDateAndTimeInputType): Add supportsReadOnly.
* html/BaseDateAndTimeInputType.cpp:
(WebCore::BaseDateAndTimeInputType::supportsReadOnly): Added. Returns true.
* html/TextFieldInputType.h:
(TextFieldInputType): Add supportsReadOnly.
* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::supportsReadOnly): Added. Returns true.

LayoutTests:

The text color becomes yellow as specified for :read-only in
*-appearance-pseudo-classes.html

* platform/chromium-mac/fast/forms/date/date-appearance-pseudo-classes-expected.png:
* platform/chromium-mac/fast/forms/month/month-appearance-pseudo-classes-expected.png:
* platform/chromium-mac/fast/forms/time/time-appearance-pseudo-classes-expected.png:
* platform/chromium-mac/fast/forms/week/week-appearance-pseudo-classes-expected.png:
* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations
trunk/LayoutTests/platform/chromium-mac/fast/forms/date/date-appearance-pseudo-classes-expected.png
trunk/LayoutTests/platform/chromium-mac/fast/forms/month/month-appearance-pseudo-classes-expected.png
trunk/LayoutTests/platform/chromium-mac/fast/forms/time/time-appearance-pseudo-classes-expected.png
trunk/LayoutTests/platform/chromium-mac/fast/forms/week/week-appearance-pseudo-classes-expected.png
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/css/SelectorChecker.cpp
trunk/Source/WebCore/html/BaseDateAndTimeInputType.cpp
trunk/Source/WebCore/html/BaseDateAndTimeInputType.h
trunk/Source/WebCore/html/HTMLFormControlElement.cpp
trunk/Source/WebCore/html/HTMLFormControlElement.h
trunk/Source/WebCore/html/HTMLInputElement.cpp
trunk/Source/WebCore/html/HTMLInputElement.h
trunk/Source/WebCore/html/HTMLTextAreaElement.cpp
trunk/Source/WebCore/html/HTMLTextAreaElement.h
trunk/Source/WebCore/html/InputType.cpp
trunk/Source/WebCore/html/InputType.h
trunk/Source/WebCore/html/TextFieldInputType.cpp
trunk/Source/WebCore/html/TextFieldInputType.h




Diff

Modified: trunk/LayoutTests/ChangeLog (135828 => 135829)

--- trunk/LayoutTests/ChangeLog	2012-11-27 07:34:15 UTC (rev 135828)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 07:53:18 UTC (rev 135829)
@@ -1,3 +1,19 @@
+2012-11-26  Kent Tamura  
+
+:read-only selector should match to date/time input types
+https://bugs.webkit.org/show_bug.cgi?id=103350
+
+Reviewed by Kentaro Hara.
+
+The text color becomes yellow as specified for :read-only in
+*-appearance-pseudo-classes.html
+
+* platform/chromium-mac/fast/forms/date/date-appearance-pseudo-classes-expected.png:
+* platform/chromium-mac/fast/forms/month/month-appearance-pseudo-classes-expected.png:
+* platform/chromium-mac/fast/forms/time/time-appearance-pseudo-classes-expected.png:
+* platform/chromium-mac/fast/forms/week/week-appearance-pseudo-classes-expected.png:
+* platform/chromium/TestExpectations:
+
 2012-11-26  Justin Novosad  
 
 [Qt] new fast/backgrounds/background-opaque-images-over-color.html fails since r135629


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135828 => 135829)

--- trunk

[webkit-changes] [135828] trunk/Source/WTF

2012-11-26 Thread abarth
Title: [135828] trunk/Source/WTF








Revision 135828
Author aba...@webkit.org
Date 2012-11-26 23:34:15 -0800 (Mon, 26 Nov 2012)


Log Message
[Chromium] fastMalloc has an extra branch on Windows
https://bugs.webkit.org/show_bug.cgi?id=103027

Reviewed by Eric Seidel.

There's no need to override the new/delete operators on non-Mac
platform because:

1) We use the system malloc anyway.
2) We've modified the system malloc to crash in out-of-memory conditions.

This patch removes a branch (and a call) from malloc, which will
hopefully improve performance. I haven't measured the performance
characteristics of this patch, but I will look at the graphs closely
when landing.

* wtf/FastAllocBase.h:
* wtf/Platform.h:

Modified Paths

trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/FastAllocBase.h
trunk/Source/WTF/wtf/Platform.h




Diff

Modified: trunk/Source/WTF/ChangeLog (135827 => 135828)

--- trunk/Source/WTF/ChangeLog	2012-11-27 07:24:14 UTC (rev 135827)
+++ trunk/Source/WTF/ChangeLog	2012-11-27 07:34:15 UTC (rev 135828)
@@ -1,3 +1,24 @@
+2012-11-26  Adam Barth  
+
+[Chromium] fastMalloc has an extra branch on Windows
+https://bugs.webkit.org/show_bug.cgi?id=103027
+
+Reviewed by Eric Seidel.
+
+There's no need to override the new/delete operators on non-Mac
+platform because:
+
+1) We use the system malloc anyway.
+2) We've modified the system malloc to crash in out-of-memory conditions.
+
+This patch removes a branch (and a call) from malloc, which will
+hopefully improve performance. I haven't measured the performance
+characteristics of this patch, but I will look at the graphs closely
+when landing.
+
+* wtf/FastAllocBase.h:
+* wtf/Platform.h:
+
 2012-11-26  Filip Pizlo  
 
 DataLog to a file should work if there are multiple processes using WTF


Modified: trunk/Source/WTF/wtf/FastAllocBase.h (135827 => 135828)

--- trunk/Source/WTF/wtf/FastAllocBase.h	2012-11-27 07:24:14 UTC (rev 135827)
+++ trunk/Source/WTF/wtf/FastAllocBase.h	2012-11-27 07:34:15 UTC (rev 135828)
@@ -93,6 +93,8 @@
 #include 
 #include 
 
+#if ENABLE(PER_OBJECT_FASTMALLOC_NEW)
+
 #define WTF_MAKE_FAST_ALLOCATED \
 public: \
 void* operator new(size_t, void* p) { return p; } \
@@ -131,6 +133,14 @@
 private: \
 typedef int __thisIsHereToForceASemicolonAfterThisMacro
 
+#else // !ENABLE(PER_OBJECT_FASTMALLOC_NEW)
+
+#define WTF_MAKE_FAST_ALLOCATED \
+private: \
+typedef int __thisIsHereToForceASemicolonAfterThisMacro
+
+#endif
+
 namespace WTF {
 
 // fastNew / fastDelete


Modified: trunk/Source/WTF/wtf/Platform.h (135827 => 135828)

--- trunk/Source/WTF/wtf/Platform.h	2012-11-27 07:24:14 UTC (rev 135827)
+++ trunk/Source/WTF/wtf/Platform.h	2012-11-27 07:34:15 UTC (rev 135828)
@@ -579,15 +579,16 @@
 #endif
 
 #if PLATFORM(CHROMIUM)
-#if OS(DARWIN)
 /* We can't override the global operator new and delete on OS(DARWIN) because
- * some object are allocated by WebKit and deallocated by the embedder. */
+ * some object are allocated by WebKit and deallocated by the embedder. 
+ *
+ * On non-OS(DARWIN), the "system malloc" is actually TCMalloc anyway, so there's
+ * no need to use WebKit's copy of TCMalloc. */
 #define ENABLE_GLOBAL_FASTMALLOC_NEW 0
-#else /* !OS(DARWIN) */
-/* On non-OS(DARWIN), the "system malloc" is actually TCMalloc anyway, so there's
- * no need to use WebKit's copy of TCMalloc. */
+#if !OS(DARWIN)
+#define ENABLE_PER_OBJECT_FASTMALLOC_NEW 0
 #define USE_SYSTEM_MALLOC 1
-#endif /* OS(DARWIN) */
+#endif /* !OS(DARWIN) */
 #endif /* PLATFORM(CHROMIUM) */
 
 #if PLATFORM(IOS)
@@ -823,6 +824,10 @@
 #define ENABLE_GLOBAL_FASTMALLOC_NEW 1
 #endif
 
+#if !defined(ENABLE_PER_OBJECT_FASTMALLOC_NEW)
+#define ENABLE_PER_OBJECT_FASTMALLOC_NEW 1
+#endif
+
 #if !defined(ENABLE_PARSED_STYLE_SHEET_CACHING)
 #define ENABLE_PARSED_STYLE_SHEET_CACHING 1
 #endif






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135827] branches/safari-536.28-branch/Source/WebCore

2012-11-26 Thread simon . fraser
Title: [135827] branches/safari-536.28-branch/Source/WebCore








Revision 135827
Author simon.fra...@apple.com
Date 2012-11-26 23:24:14 -0800 (Mon, 26 Nov 2012)


Log Message

Merge r135080

2012-11-18  Simon Fraser  

Make convertToLayerCoords iterative, rather than recursive
https://bugs.webkit.org/show_bug.cgi?id=102618

Reviewed by Antti Koivisto.

RenderLayer::convertToLayerCoords() is a hot function on profiles.
Change it to be iterative, rather than recursive, so that the
bulk of the function can be inlined.

Was tested with assertions against the old code during development.

* rendering/RenderLayer.cpp:
(WebCore::accumulateOffsetTowardsAncestor):
(WebCore::RenderLayer::convertToLayerCoords):

Modified Paths

branches/safari-536.28-branch/Source/WebCore/ChangeLog
branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.cpp




Diff

Modified: branches/safari-536.28-branch/Source/WebCore/ChangeLog (135826 => 135827)

--- branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-27 07:22:35 UTC (rev 135826)
+++ branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-27 07:24:14 UTC (rev 135827)
@@ -1,3 +1,25 @@
+2012-11-26  Simon Fraser  
+
+
+Merge r135080
+
+2012-11-18  Simon Fraser  
+
+Make convertToLayerCoords iterative, rather than recursive
+https://bugs.webkit.org/show_bug.cgi?id=102618
+
+Reviewed by Antti Koivisto.
+
+RenderLayer::convertToLayerCoords() is a hot function on profiles.
+Change it to be iterative, rather than recursive, so that the
+bulk of the function can be inlined.
+
+Was tested with assertions against the old code during development.
+
+* rendering/RenderLayer.cpp:
+(WebCore::accumulateOffsetTowardsAncestor):
+(WebCore::RenderLayer::convertToLayerCoords):
+
 2012-11-26  Lucas Forschler  
 
 Merge r134327


Modified: branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.cpp (135826 => 135827)

--- branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.cpp	2012-11-27 07:22:35 UTC (rev 135826)
+++ branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.cpp	2012-11-27 07:24:14 UTC (rev 135827)
@@ -1380,27 +1380,29 @@
 roundedRect = pixelSnappedIntRect(rect);
 }
 
-void RenderLayer::convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint& location) const
+// Returns the layer reached on the walk up towards the ancestor.
+static inline const RenderLayer* accumulateOffsetTowardsAncestor(const RenderLayer* layer, const RenderLayer* ancestorLayer, LayoutPoint& location)
 {
-if (ancestorLayer == this)
-return;
+ASSERT(ancestorLayer != layer);
 
-EPosition position = renderer()->style()->position();
-if (position == FixedPosition && (!ancestorLayer || ancestorLayer == renderer()->view()->layer())) {
+const RenderBoxModelObject* renderer = layer->renderer();
+EPosition position = renderer->style()->position();
+
+if (position == FixedPosition && (!ancestorLayer || ancestorLayer == renderer->view()->layer())) {
 // If the fixed layer's container is the root, just add in the offset of the view. We can obtain this by calling
 // localToAbsolute() on the RenderView.
-FloatPoint absPos = renderer()->localToAbsolute(FloatPoint(), true);
+FloatPoint absPos = renderer->localToAbsolute(FloatPoint(), true);
 location += flooredLayoutSize(absPos);
-return;
+return ancestorLayer;
 }
- 
+
 if (position == FixedPosition) {
 // For a fixed layers, we need to walk up to the root to see if there's a fixed position container
 // (e.g. a transformed layer). It's an error to call convertToLayerCoords() across a layer with a transform,
 // so we should always find the ancestor at or before we find the fixed position container.
 RenderLayer* fixedPositionContainerLayer = 0;
 bool foundAncestor = false;
-for (RenderLayer* currLayer = parent(); currLayer; currLayer = currLayer->parent()) {
+for (RenderLayer* currLayer = layer->parent(); currLayer; currLayer = currLayer->parent()) {
 if (currLayer == ancestorLayer)
 foundAncestor = true;
 
@@ -1415,20 +1417,20 @@
 
 if (fixedPositionContainerLayer != ancestorLayer) {
 LayoutPoint fixedContainerCoords;
-convertToLayerCoords(fixedPositionContainerLayer, fixedContainerCoords);
+layer->convertToLayerCoords(fixedPositionContainerLayer, fixedContainerCoords);
 
 LayoutPoint ancestorCoords;
 ancestorLayer->convertToLayerCoords(fixedPositionContainerLayer, ancestorCoords);
 
 location += (fixedContainerCoords - ancestorCoords);
-return;
+return ancestorLayer;
 }
 }
 
 Rend

[webkit-changes] [135826] trunk/Source

2012-11-26 Thread commit-queue
Title: [135826] trunk/Source








Revision 135826
Author commit-qu...@webkit.org
Date 2012-11-26 23:22:35 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed, rolling out r135822.
http://trac.webkit.org/changeset/135822
https://bugs.webkit.org/show_bug.cgi?id=103369

Undo the revert of r135818, since that change does not affect
code used by Chromium (Requested by apavlov on #webkit).

Patch by Sheriff Bot  on 2012-11-26

Source/WebCore:

* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
(WebCore::GraphicsLayerTextureMapper::setContentsVisible):

Source/WebKit2:

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
(WebCore::CoordinatedGraphicsLayer::setMaskLayer):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135825 => 135826)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 07:20:00 UTC (rev 135825)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 07:22:35 UTC (rev 135826)
@@ -1,3 +1,16 @@
+2012-11-26  Sheriff Bot  
+
+Unreviewed, rolling out r135822.
+http://trac.webkit.org/changeset/135822
+https://bugs.webkit.org/show_bug.cgi?id=103369
+
+Undo the revert of r135818, since that change does not affect
+code used by Chromium (Requested by apavlov on #webkit).
+
+* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
+(WebCore::GraphicsLayerTextureMapper::setContentsVisible):
+
 2012-11-26  Michael Pruett  
 
 [GTK] Fix build error on GTK due to r135749


Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (135825 => 135826)

--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 07:20:00 UTC (rev 135825)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 07:22:35 UTC (rev 135826)
@@ -195,6 +195,7 @@
 if (!value)
 return;
 value->setSize(size());
+value->setContentsVisible(contentsAreVisible());
 }
 
 
@@ -300,6 +301,8 @@
 return;
 notifyChange(TextureMapperLayer::ContentsVisibleChange);
 GraphicsLayer::setContentsVisible(value);
+if (maskLayer())
+maskLayer()->setContentsVisible(value);
 }
 
 /* \reimp (GraphicsLayer.h)


Modified: trunk/Source/WebKit2/ChangeLog (135825 => 135826)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 07:20:00 UTC (rev 135825)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 07:22:35 UTC (rev 135826)
@@ -1,5 +1,18 @@
 2012-11-26  Sheriff Bot  
 
+Unreviewed, rolling out r135822.
+http://trac.webkit.org/changeset/135822
+https://bugs.webkit.org/show_bug.cgi?id=103369
+
+Undo the revert of r135818, since that change does not affect
+code used by Chromium (Requested by apavlov on #webkit).
+
+* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
+(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
+(WebCore::CoordinatedGraphicsLayer::setMaskLayer):
+
+2012-11-26  Sheriff Bot  
+
 Unreviewed, rolling out r135818.
 http://trac.webkit.org/changeset/135818
 https://bugs.webkit.org/show_bug.cgi?id=103368


Modified: trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp (135825 => 135826)

--- trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-27 07:20:00 UTC (rev 135825)
+++ trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-27 07:22:35 UTC (rev 135826)
@@ -269,6 +269,8 @@
 if (contentsAreVisible() == b)
 return;
 GraphicsLayer::setContentsVisible(b);
+if (maskLayer())
+maskLayer()->setContentsVisible(b);
 
 didChangeLayerState();
 }
@@ -390,6 +392,7 @@
 return;
 
 layer->setSize(size());
+layer->setContentsVisible(contentsAreVisible());
 CoordinatedGraphicsLayer* CoordinatedGraphicsLayer = toCoordinatedGraphicsLayer(layer);
 CoordinatedGraphicsLayer->setMaskTarget(this);
 CoordinatedGraphicsLayer->didChangeLayerState();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135825] trunk/LayoutTests

2012-11-26 Thread junov
Title: [135825] trunk/LayoutTests








Revision 135825
Author ju...@google.com
Date 2012-11-26 23:20:00 -0800 (Mon, 26 Nov 2012)


Log Message
[Qt] new fast/backgrounds/background-opaque-images-over-color.html fails since r135629
https://bugs.webkit.org/show_bug.cgi?id=103227

Reviewed by Simon Hausmann.

Unskipping test now that baseline has been fixed.

* platform/qt/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/qt/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135824 => 135825)

--- trunk/LayoutTests/ChangeLog	2012-11-27 07:09:22 UTC (rev 135824)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 07:20:00 UTC (rev 135825)
@@ -1,3 +1,14 @@
+2012-11-26  Justin Novosad  
+
+[Qt] new fast/backgrounds/background-opaque-images-over-color.html fails since r135629
+https://bugs.webkit.org/show_bug.cgi?id=103227
+
+Reviewed by Simon Hausmann.
+
+Unskipping test now that baseline has been fixed.
+
+* platform/qt/TestExpectations:
+
 2012-11-26  Noel Gordon  
 
 [chromium mac] Layout Test touchadjustment/touch-links-longpress.html is failing


Modified: trunk/LayoutTests/platform/qt/TestExpectations (135824 => 135825)

--- trunk/LayoutTests/platform/qt/TestExpectations	2012-11-27 07:09:22 UTC (rev 135824)
+++ trunk/LayoutTests/platform/qt/TestExpectations	2012-11-27 07:20:00 UTC (rev 135825)
@@ -1747,10 +1747,6 @@
 # https://bugs.webkit.org/show_bug.cgi?id=98751
 fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html
 
-# [Qt] new fast/backgrounds/background-opaque-images-over-color.html fails since r135629
-# https://bugs.webkit.org/show_bug.cgi?id=103227
-fast/backgrounds/background-opaque-images-over-color.html
-
 # = #
 # failing security tests
 # = #






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135824] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135824] trunk/Source/WebCore








Revision 135824
Author commit-qu...@webkit.org
Date 2012-11-26 23:09:22 -0800 (Mon, 26 Nov 2012)


Log Message
[GTK] Fix build error on GTK due to r135749
https://bugs.webkit.org/show_bug.cgi?id=103365

Patch by Michael Pruett  on 2012-11-26
Reviewed by Dean Jackson.

In r135749, many files which were already included
in webcore_built_sources were erroneously added to
webcore_svg_built_sources in GNUmakefile.list.am.

* GNUmakefile.list.am:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/GNUmakefile.list.am




Diff

Modified: trunk/Source/WebCore/ChangeLog (135823 => 135824)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 07:02:51 UTC (rev 135823)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 07:09:22 UTC (rev 135824)
@@ -1,3 +1,16 @@
+2012-11-26  Michael Pruett  
+
+[GTK] Fix build error on GTK due to r135749
+https://bugs.webkit.org/show_bug.cgi?id=103365
+
+Reviewed by Dean Jackson.
+
+In r135749, many files which were already included
+in webcore_built_sources were erroneously added to
+webcore_svg_built_sources in GNUmakefile.list.am.
+
+* GNUmakefile.list.am:
+
 2012-11-26  Sheriff Bot  
 
 Unreviewed, rolling out r135818.


Modified: trunk/Source/WebCore/GNUmakefile.list.am (135823 => 135824)

--- trunk/Source/WebCore/GNUmakefile.list.am	2012-11-27 07:02:51 UTC (rev 135823)
+++ trunk/Source/WebCore/GNUmakefile.list.am	2012-11-27 07:09:22 UTC (rev 135824)
@@ -805,6 +805,8 @@
 	DerivedSources/WebCore/JSWebKitCSSKeyframesRule.h \
 	DerivedSources/WebCore/JSWebKitCSSMatrix.cpp \
 	DerivedSources/WebCore/JSWebKitCSSMatrix.h \
+	DerivedSources/WebCore/JSWebKitCSSMixFunctionValue.cpp \
+	DerivedSources/WebCore/JSWebKitCSSMixFunctionValue.h \
 	DerivedSources/WebCore/JSWebKitCSSRegionRule.cpp \
 	DerivedSources/WebCore/JSWebKitCSSRegionRule.h \
 	DerivedSources/WebCore/JSWebKitCSSTransformValue.cpp \
@@ -1173,164 +1175,7 @@
 	DerivedSources/WebCore/JSSVGZoomAndPan.cpp \
 	DerivedSources/WebCore/JSSVGZoomAndPan.h \
 	DerivedSources/WebCore/JSSVGZoomEvent.cpp \
-	DerivedSources/WebCore/JSSVGZoomEvent.h \
-	DerivedSources/WebCore/JSText.cpp \
-	DerivedSources/WebCore/JSTextEvent.cpp \
-	DerivedSources/WebCore/JSTextEvent.h \
-	DerivedSources/WebCore/JSText.h \
-	DerivedSources/WebCore/JSTextMetrics.cpp \
-	DerivedSources/WebCore/JSTextMetrics.h \
-	DerivedSources/WebCore/JSTextTrack.cpp \
-	DerivedSources/WebCore/JSTextTrack.h \
-	DerivedSources/WebCore/JSTextTrackCue.cpp \
-	DerivedSources/WebCore/JSTextTrackCue.h \
-	DerivedSources/WebCore/JSTextTrackCueList.cpp \
-	DerivedSources/WebCore/JSTextTrackCueList.h \
-	DerivedSources/WebCore/JSTextTrackList.cpp \
-	DerivedSources/WebCore/JSTextTrackList.h \
-	DerivedSources/WebCore/JSTimeRanges.cpp \
-	DerivedSources/WebCore/JSTimeRanges.h \
-	DerivedSources/WebCore/JSTouch.cpp \
-	DerivedSources/WebCore/JSTouchEvent.cpp \
-	DerivedSources/WebCore/JSTouchEvent.h \
-	DerivedSources/WebCore/JSTouch.h \
-	DerivedSources/WebCore/JSTouchList.cpp \
-	DerivedSources/WebCore/JSTouchList.h \
-	DerivedSources/WebCore/JSTrackEvent.cpp \
-	DerivedSources/WebCore/JSTrackEvent.h \
-	DerivedSources/WebCore/JSTreeWalker.cpp \
-	DerivedSources/WebCore/JSTreeWalker.h \
-	DerivedSources/WebCore/JSUIEvent.cpp \
-	DerivedSources/WebCore/JSUIEvent.h \
-	DerivedSources/WebCore/JSUint16Array.cpp \
-	DerivedSources/WebCore/JSUint16Array.h \
-	DerivedSources/WebCore/JSUint32Array.cpp \
-	DerivedSources/WebCore/JSUint32Array.h \
-	DerivedSources/WebCore/JSUint8Array.cpp \
-	DerivedSources/WebCore/JSUint8Array.h \
-	DerivedSources/WebCore/JSUint8ClampedArray.cpp \
-	DerivedSources/WebCore/JSUint8ClampedArray.h \
-	DerivedSources/WebCore/JSValidityState.cpp \
-	DerivedSources/WebCore/JSValidityState.h \
-	DerivedSources/WebCore/JSVoidCallback.cpp \
-	DerivedSources/WebCore/JSVoidCallback.h \
-	DerivedSources/WebCore/JSWaveShaperNode.cpp \
-	DerivedSources/WebCore/JSWaveShaperNode.h \
-	DerivedSources/WebCore/JSWaveTable.cpp \
-	DerivedSources/WebCore/JSWaveTable.h \
-	DerivedSources/WebCore/JSWebGLActiveInfo.cpp \
-	DerivedSources/WebCore/JSWebGLActiveInfo.h \
-	DerivedSources/WebCore/JSWebGLBuffer.cpp \
-	DerivedSources/WebCore/JSWebGLBuffer.h \
-	DerivedSources/WebCore/JSWebGLCompressedTextureS3TC.cpp \
-	DerivedSources/WebCore/JSWebGLCompressedTextureS3TC.h \
-	DerivedSources/WebCore/JSWebGLContextAttributes.cpp \
-	DerivedSources/WebCore/JSWebGLContextAttributes.h \
-	DerivedSources/WebCore/JSWebGLContextEvent.cpp \
-	DerivedSources/WebCore/JSWebGLContextEvent.h \
-	DerivedSources/WebCore/JSWebGLDepthTexture.cpp \
-	DerivedSources/WebCore/JSWebGLDepthTexture.h \
-	DerivedSources/WebCore/JSWebGLFramebuffer.cpp \
-	DerivedSources/WebCore/JSWebGLFramebuffer.h \
-	DerivedSources/WebCore/JSWebGLLoseContext.cpp \
-	DerivedSources/WebCore/JSWebGLLoseContext.h \
-	DerivedSources/WebCore/JSWebGLProgram.cpp \
-	DerivedSources/WebCore/JSWebGLProgram.h \
-	DerivedSources/W

[webkit-changes] [135823] trunk/Tools

2012-11-26 Thread commit-queue
Title: [135823] trunk/Tools








Revision 135823
Author commit-qu...@webkit.org
Date 2012-11-26 23:02:51 -0800 (Mon, 26 Nov 2012)


Log Message
[EFL][jhbuild] Disable unnecessary options of elementary module
https://bugs.webkit.org/show_bug.cgi?id=103360

Patch by Ryuan Choi  on 2012-11-26
Reviewed by Gyuyoung Kim.

When jhbuild configures elementary, unnecessary options may be enabled by
user installed modules and it causes build break.

* efl/jhbuild.modules:
Added --disable-emap --disable-ethumb --disable-eweather to elementary.

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/efl/jhbuild.modules




Diff

Modified: trunk/Tools/ChangeLog (135822 => 135823)

--- trunk/Tools/ChangeLog	2012-11-27 06:58:16 UTC (rev 135822)
+++ trunk/Tools/ChangeLog	2012-11-27 07:02:51 UTC (rev 135823)
@@ -1,3 +1,16 @@
+2012-11-26  Ryuan Choi  
+
+[EFL][jhbuild] Disable unnecessary options of elementary module
+https://bugs.webkit.org/show_bug.cgi?id=103360
+
+Reviewed by Gyuyoung Kim.
+
+When jhbuild configures elementary, unnecessary options may be enabled by
+user installed modules and it causes build break.
+
+* efl/jhbuild.modules:
+Added --disable-emap --disable-ethumb --disable-eweather to elementary.
+
 2012-11-26  Varun Jain  
 
 LongPress and LongTap gestures should start drag/drop and open context menu respectively.


Modified: trunk/Tools/efl/jhbuild.modules (135822 => 135823)

--- trunk/Tools/efl/jhbuild.modules	2012-11-27 06:58:16 UTC (rev 135822)
+++ trunk/Tools/efl/jhbuild.modules	2012-11-27 07:02:51 UTC (rev 135823)
@@ -274,7 +274,7 @@
   
 
   - autogenargs="--disable-web">
+ autogenargs="--disable-emap --disable-ethumb --disable-eweather --disable-web">
  checkoutdir="elementary-1.7.1"
 repo="download.enlightenment.org"






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135822] trunk/Source

2012-11-26 Thread commit-queue
Title: [135822] trunk/Source








Revision 135822
Author commit-qu...@webkit.org
Date 2012-11-26 22:58:16 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed, rolling out r135818.
http://trac.webkit.org/changeset/135818
https://bugs.webkit.org/show_bug.cgi?id=103368

platform/chromium/virtual/threaded/compositing/visibility
/visibility-simple-webgl-layer.html crash on Mountain Lion
(Requested by apavlov on #webkit).

Patch by Sheriff Bot  on 2012-11-26

Source/WebCore:

* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
(WebCore::GraphicsLayerTextureMapper::setContentsVisible):

Source/WebKit2:

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
(WebCore::CoordinatedGraphicsLayer::setMaskLayer):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135821 => 135822)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 06:45:48 UTC (rev 135821)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 06:58:16 UTC (rev 135822)
@@ -1,3 +1,17 @@
+2012-11-26  Sheriff Bot  
+
+Unreviewed, rolling out r135818.
+http://trac.webkit.org/changeset/135818
+https://bugs.webkit.org/show_bug.cgi?id=103368
+
+platform/chromium/virtual/threaded/compositing/visibility
+/visibility-simple-webgl-layer.html crash on Mountain Lion
+(Requested by apavlov on #webkit).
+
+* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
+(WebCore::GraphicsLayerTextureMapper::setContentsVisible):
+
 2012-11-26  Huang Dongsung  
 
 Coordinated Graphics: Set visibility to a mask layer in GraphicsLayer::setContentsVisible().


Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (135821 => 135822)

--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 06:45:48 UTC (rev 135821)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 06:58:16 UTC (rev 135822)
@@ -195,7 +195,6 @@
 if (!value)
 return;
 value->setSize(size());
-value->setContentsVisible(contentsAreVisible());
 }
 
 
@@ -301,8 +300,6 @@
 return;
 notifyChange(TextureMapperLayer::ContentsVisibleChange);
 GraphicsLayer::setContentsVisible(value);
-if (maskLayer())
-maskLayer()->setContentsVisible(value);
 }
 
 /* \reimp (GraphicsLayer.h)


Modified: trunk/Source/WebKit2/ChangeLog (135821 => 135822)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 06:45:48 UTC (rev 135821)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 06:58:16 UTC (rev 135822)
@@ -1,3 +1,17 @@
+2012-11-26  Sheriff Bot  
+
+Unreviewed, rolling out r135818.
+http://trac.webkit.org/changeset/135818
+https://bugs.webkit.org/show_bug.cgi?id=103368
+
+platform/chromium/virtual/threaded/compositing/visibility
+/visibility-simple-webgl-layer.html crash on Mountain Lion
+(Requested by apavlov on #webkit).
+
+* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
+(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
+(WebCore::CoordinatedGraphicsLayer::setMaskLayer):
+
 2012-11-26  Dan Bernstein  
 
  Entering Tab View after a bunch of YouTube pages were opened in background tabs makes all of them start playing simultaneously


Modified: trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp (135821 => 135822)

--- trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-27 06:45:48 UTC (rev 135821)
+++ trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-27 06:58:16 UTC (rev 135822)
@@ -269,8 +269,6 @@
 if (contentsAreVisible() == b)
 return;
 GraphicsLayer::setContentsVisible(b);
-if (maskLayer())
-maskLayer()->setContentsVisible(b);
 
 didChangeLayerState();
 }
@@ -392,7 +390,6 @@
 return;
 
 layer->setSize(size());
-layer->setContentsVisible(contentsAreVisible());
 CoordinatedGraphicsLayer* CoordinatedGraphicsLayer = toCoordinatedGraphicsLayer(layer);
 CoordinatedGraphicsLayer->setMaskTarget(this);
 CoordinatedGraphicsLayer->didChangeLayerState();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135820] branches/chromium/1312/Source/WebCore/inspector

2012-11-26 Thread apavlov
Title: [135820] branches/chromium/1312/Source/WebCore/inspector








Revision 135820
Author apav...@chromium.org
Date 2012-11-26 22:34:56 -0800 (Mon, 26 Nov 2012)


Log Message
Merge 135571 - Web Inspector: inspector overlay is always updated when inspector is open
https://bugs.webkit.org/show_bug.cgi?id=103106

Reviewed by Pavel Feldman.

Provide empty size into the InspectorOverlay if the metrics emulation is disabled,
so that it will not get painted in all cases.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::webViewResized): Call InspectorPageAgent::webViewResized() rather than InspectorOverlay::resize().
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::webViewResized): Provide empty size into InspectorOverlay::resize() if device metrics are not emulated.
* inspector/InspectorPageAgent.h:

TBR=apav...@chromium.org
Review URL: https://codereview.chromium.org/11415147

Modified Paths

branches/chromium/1312/Source/WebCore/inspector/InspectorController.cpp
branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.cpp
branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.h




Diff

Modified: branches/chromium/1312/Source/WebCore/inspector/InspectorController.cpp (135819 => 135820)

--- branches/chromium/1312/Source/WebCore/inspector/InspectorController.cpp	2012-11-27 06:34:35 UTC (rev 135819)
+++ branches/chromium/1312/Source/WebCore/inspector/InspectorController.cpp	2012-11-27 06:34:56 UTC (rev 135820)
@@ -293,7 +293,7 @@
 
 void InspectorController::webViewResized(const IntSize& size)
 {
-m_overlay->resize(size);
+m_pageAgent->webViewResized(size);
 }
 
 void InspectorController::evaluateForTestInFrontend(long callId, const String& script)


Modified: branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.cpp (135819 => 135820)

--- branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.cpp	2012-11-27 06:34:35 UTC (rev 135819)
+++ branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.cpp	2012-11-27 06:34:56 UTC (rev 135820)
@@ -370,6 +370,12 @@
 }
 }
 
+void InspectorPageAgent::webViewResized(const IntSize& size)
+{
+int currentWidth = static_cast(m_state->getLong(PageAgentState::pageAgentScreenWidthOverride));
+m_overlay->resize(currentWidth ? size : IntSize());
+}
+
 void InspectorPageAgent::enable(ErrorString*)
 {
 m_enabled = true;


Modified: branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.h (135819 => 135820)

--- branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.h	2012-11-27 06:34:35 UTC (rev 135819)
+++ branches/chromium/1312/Source/WebCore/inspector/InspectorPageAgent.h	2012-11-27 06:34:56 UTC (rev 135820)
@@ -146,6 +146,8 @@
 virtual void clearFrontend();
 virtual void restore();
 
+void webViewResized(const IntSize&);
+
 // Cross-agents API
 Frame* mainFrame();
 String createIdentifier();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135819] trunk/Source/WebKit2

2012-11-26 Thread mitz
Title: [135819] trunk/Source/WebKit2








Revision 135819
Author m...@apple.com
Date 2012-11-26 22:34:35 -0800 (Mon, 26 Nov 2012)


Log Message
 Entering Tab View after a bunch of YouTube pages were opened in background tabs makes all of them start playing simultaneously
https://bugs.webkit.org/show_bug.cgi?id=103358

Reviewed by Adele Peterson.

To fix this, this patch adds WKPageSetMayStartMediaWhenInWindow(), which allows the client to
prevent media from starting automatically when the view is put in a window.

* Shared/WebPageCreationParameters.cpp:
(WebKit::WebPageCreationParameters::encode): Encode mayStartMediaWhenInWindow.
(WebKit::WebPageCreationParameters::decode): Decode mayStartMediaWhenInWindow.
* Shared/WebPageCreationParameters.h:
(WebPageCreationParameters): Added boolean member mayStartMediaWhenInWindow.
* UIProcess/API/C/WKPage.cpp:
(WKPageSetMayStartMediaWhenInWindow): Added. Calls through to WebPageProxy.
* UIProcess/API/C/WKPagePrivate.h: Declared WKPageSetMayStartMediaWhenInWindow.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy): Added initializiation of m_mayStartMediaWhenInWindow
to true, the value matching the current behavior.
(WebKit::WebPageProxy::setMayStartMediaWhenInWindow): Added. Updates
m_mayStartMediaWhenInWindow and sends a message to the Web process to do the same.
(WebKit::WebPageProxy::creationParameters): Changed to set mayStartMediaWhenInWindow in the
process creation parameters.
* UIProcess/WebPageProxy.h:
(WebPageProxy): Declared setMayStartMediaWhenInWindow() and added member variable
m_mayStartMediaWhenInWindow.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage): Initialized m_mayStartMediaWhenInWindow from the creation
parameters.
(WebKit::WebPage::setIsInWindow): Made starting of media upon being added to a window
conditional on m_mayStartMediaWhenInWindow.
(WebKit::WebPage::setMayStartMediaWhenInWindow): Added. Sets m_mayStartMediaWhenInWindow. If
already in a window when changing from false to true, starts m_setCanStartMediaTimer.
* WebProcess/WebPage/WebPage.h:
(WebPage): Declared setMayStartMediaWhenInWindow() and added member variable m_mayStartMediaWhenInWindow.
* WebProcess/WebPage/WebPage.messages.in: Added SetMayStartMediaWhenInWindow.

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/Shared/WebPageCreationParameters.cpp
trunk/Source/WebKit2/Shared/WebPageCreationParameters.h
trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp
trunk/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135818 => 135819)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 06:15:45 UTC (rev 135818)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 06:34:35 UTC (rev 135819)
@@ -1,3 +1,42 @@
+2012-11-26  Dan Bernstein  
+
+ Entering Tab View after a bunch of YouTube pages were opened in background tabs makes all of them start playing simultaneously
+https://bugs.webkit.org/show_bug.cgi?id=103358
+
+Reviewed by Adele Peterson.
+
+To fix this, this patch adds WKPageSetMayStartMediaWhenInWindow(), which allows the client to
+prevent media from starting automatically when the view is put in a window.
+
+* Shared/WebPageCreationParameters.cpp:
+(WebKit::WebPageCreationParameters::encode): Encode mayStartMediaWhenInWindow.
+(WebKit::WebPageCreationParameters::decode): Decode mayStartMediaWhenInWindow.
+* Shared/WebPageCreationParameters.h:
+(WebPageCreationParameters): Added boolean member mayStartMediaWhenInWindow.
+* UIProcess/API/C/WKPage.cpp:
+(WKPageSetMayStartMediaWhenInWindow): Added. Calls through to WebPageProxy.
+* UIProcess/API/C/WKPagePrivate.h: Declared WKPageSetMayStartMediaWhenInWindow.
+* UIProcess/WebPageProxy.cpp:
+(WebKit::WebPageProxy::WebPageProxy): Added initializiation of m_mayStartMediaWhenInWindow
+to true, the value matching the current behavior.
+(WebKit::WebPageProxy::setMayStartMediaWhenInWindow): Added. Updates
+m_mayStartMediaWhenInWindow and sends a message to the Web process to do the same.
+(WebKit::WebPageProxy::creationParameters): Changed to set mayStartMediaWhenInWindow in the
+process creation parameters.
+* UIProcess/WebPageProxy.h:
+(WebPageProxy): Declared setMayStartMediaWhenInWindow() and added member variable
+m_mayStartMediaWhenInWindow.
+* WebProcess/WebPage/WebPage.cpp:
+(WebKit::WebPage::WebPage): Initialized m_mayStartMediaWhenInWindow from the creation
+parameters.
+(WebKit::WebPage::setIsInWindow): Made starting of media upon being added to a window
+conditional on m_mayStar

[webkit-changes] [135818] trunk/Source

2012-11-26 Thread commit-queue
Title: [135818] trunk/Source








Revision 135818
Author commit-qu...@webkit.org
Date 2012-11-26 22:15:45 -0800 (Mon, 26 Nov 2012)


Log Message
Coordinated Graphics: Set visibility to a mask layer in GraphicsLayer::setContentsVisible().
https://bugs.webkit.org/show_bug.cgi?id=103297

Patch by Huang Dongsung  on 2012-11-26
Reviewed by Noam Rosenthal.

GraphicsLayerTextureMapper and CoordinatedGraphicsLayer set the visibility of a
mask layer in setContentsVisible() and setMaskLayer() like setting a size.
This patch is needed because RenderLayerBacking does not set the visibility to a
mask layer like the size.

This patch does not change user experience because an invisible layer is not
rendered although the mask layer is rendered. In that sense, it is an
optimization patch.

Source/WebCore:

No new tests. It is an optimization patch.

* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
(WebCore::GraphicsLayerTextureMapper::setContentsVisible):

Source/WebKit2:

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
(WebCore::CoordinatedGraphicsLayer::setMaskLayer):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135817 => 135818)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 05:33:05 UTC (rev 135817)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 06:15:45 UTC (rev 135818)
@@ -1,3 +1,25 @@
+2012-11-26  Huang Dongsung  
+
+Coordinated Graphics: Set visibility to a mask layer in GraphicsLayer::setContentsVisible().
+https://bugs.webkit.org/show_bug.cgi?id=103297
+
+Reviewed by Noam Rosenthal.
+
+GraphicsLayerTextureMapper and CoordinatedGraphicsLayer set the visibility of a
+mask layer in setContentsVisible() and setMaskLayer() like setting a size.
+This patch is needed because RenderLayerBacking does not set the visibility to a
+mask layer like the size.
+
+This patch does not change user experience because an invisible layer is not
+rendered although the mask layer is rendered. In that sense, it is an
+optimization patch.
+
+No new tests. It is an optimization patch.
+
+* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
+(WebCore::GraphicsLayerTextureMapper::setContentsVisible):
+
 2012-11-26  Kentaro Hara  
 
 [V8] Rename EXCEPTION_BLOCK() macros


Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (135817 => 135818)

--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 05:33:05 UTC (rev 135817)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 06:15:45 UTC (rev 135818)
@@ -195,6 +195,7 @@
 if (!value)
 return;
 value->setSize(size());
+value->setContentsVisible(contentsAreVisible());
 }
 
 
@@ -300,6 +301,8 @@
 return;
 notifyChange(TextureMapperLayer::ContentsVisibleChange);
 GraphicsLayer::setContentsVisible(value);
+if (maskLayer())
+maskLayer()->setContentsVisible(value);
 }
 
 /* \reimp (GraphicsLayer.h)


Modified: trunk/Source/WebKit2/ChangeLog (135817 => 135818)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 05:33:05 UTC (rev 135817)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 06:15:45 UTC (rev 135818)
@@ -1,3 +1,23 @@
+2012-11-26  Huang Dongsung  
+
+Coordinated Graphics: Set visibility to a mask layer in GraphicsLayer::setContentsVisible().
+https://bugs.webkit.org/show_bug.cgi?id=103297
+
+Reviewed by Noam Rosenthal.
+
+GraphicsLayerTextureMapper and CoordinatedGraphicsLayer set the visibility of a
+mask layer in setContentsVisible() and setMaskLayer() like setting a size.
+This patch is needed because RenderLayerBacking does not set the visibility to a
+mask layer like the size.
+
+This patch does not change user experience because an invisible layer is not
+rendered although the mask layer is rendered. In that sense, it is an
+optimization patch.
+
+* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
+(WebCore::CoordinatedGraphicsLayer::setContentsVisible):
+(WebCore::CoordinatedGraphicsLayer::setMaskLayer):
+
 2012-11-26  Kyungjin Kim  
 
 [WK2] Expose Accelerated2dCanvas flag set and get in WebKit2


Modified: trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp (135817 => 135818)

--- trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-27 05:33:05 UTC (rev 135817

[webkit-changes] [135816] trunk/Source/WebCore

2012-11-26 Thread akling
Title: [135816] trunk/Source/WebCore








Revision 135816
Author akl...@apple.com
Date 2012-11-26 21:13:40 -0800 (Mon, 26 Nov 2012)


Log Message
Node: Move AreSVGAttributesValidFlag to ElementAttributeData.


Reviewed by Anders Carlsson.

Moved AreSVGAttributesValidFlag to ElementAttributeData and change it to use "dirty" semantics.
This frees up a bit on Node, and we will always have ElementAttributeData if the animated
attributes are dirty anyway.

* dom/Element.cpp:
(WebCore::Element::getAttribute):
* dom/Element.h:
(WebCore::Element::updateInvalidAttributes):
* dom/ElementAttributeData.cpp:
(WebCore::ElementAttributeData::ElementAttributeData):
* dom/ElementAttributeData.h:
(WebCore::ElementAttributeData::ElementAttributeData):
(ElementAttributeData):
* dom/Node.h:
(Node):
* svg/SVGElement.cpp:
(WebCore::SVGElement::updateAnimatedSVGAttribute):
* svg/SVGElement.h:
(WebCore::SVGElement::invalidateSVGAttributes):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/Element.cpp
trunk/Source/WebCore/dom/Element.h
trunk/Source/WebCore/dom/ElementAttributeData.cpp
trunk/Source/WebCore/dom/ElementAttributeData.h
trunk/Source/WebCore/dom/Node.h
trunk/Source/WebCore/svg/SVGElement.cpp
trunk/Source/WebCore/svg/SVGElement.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135815 => 135816)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 05:06:53 UTC (rev 135815)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 05:13:40 UTC (rev 135816)
@@ -1,3 +1,30 @@
+2012-11-26  Andreas Kling  
+
+Node: Move AreSVGAttributesValidFlag to ElementAttributeData.
+
+
+Reviewed by Anders Carlsson.
+
+Moved AreSVGAttributesValidFlag to ElementAttributeData and change it to use "dirty" semantics.
+This frees up a bit on Node, and we will always have ElementAttributeData if the animated
+attributes are dirty anyway.
+
+* dom/Element.cpp:
+(WebCore::Element::getAttribute):
+* dom/Element.h:
+(WebCore::Element::updateInvalidAttributes):
+* dom/ElementAttributeData.cpp:
+(WebCore::ElementAttributeData::ElementAttributeData):
+* dom/ElementAttributeData.h:
+(WebCore::ElementAttributeData::ElementAttributeData):
+(ElementAttributeData):
+* dom/Node.h:
+(Node):
+* svg/SVGElement.cpp:
+(WebCore::SVGElement::updateAnimatedSVGAttribute):
+* svg/SVGElement.h:
+(WebCore::SVGElement::invalidateSVGAttributes):
+
 2012-11-26  Sheriff Bot  
 
 Unreviewed, rolling out r135798.


Modified: trunk/Source/WebCore/dom/Element.cpp (135815 => 135816)

--- trunk/Source/WebCore/dom/Element.cpp	2012-11-27 05:06:53 UTC (rev 135815)
+++ trunk/Source/WebCore/dom/Element.cpp	2012-11-27 05:13:40 UTC (rev 135816)
@@ -305,18 +305,19 @@
 
 const AtomicString& Element::getAttribute(const QualifiedName& name) const
 {
-if (UNLIKELY(name == styleAttr) && attributeData() && attributeData()->m_styleAttributeIsDirty)
+if (!attributeData())
+return nullAtom;
+
+if (UNLIKELY(name == styleAttr && attributeData()->m_styleAttributeIsDirty))
 updateStyleAttribute();
 
 #if ENABLE(SVG)
-if (UNLIKELY(!areSVGAttributesValid()))
+if (UNLIKELY(attributeData()->m_animatedSVGAttributesAreDirty))
 updateAnimatedSVGAttribute(name);
 #endif
 
-if (attributeData()) {
-if (const Attribute* attribute = getAttributeItem(name))
-return attribute->value();
-}
+if (const Attribute* attribute = getAttributeItem(name))
+return attribute->value();
 return nullAtom;
 }
 
@@ -660,24 +661,24 @@
 
 const AtomicString& Element::getAttribute(const AtomicString& name) const
 {
+if (!attributeData())
+return nullAtom;
+
 bool ignoreCase = shouldIgnoreAttributeCase(this);
 
 // Update the 'style' attribute if it's invalid and being requested:
-if (attributeData() && attributeData()->m_styleAttributeIsDirty && equalPossiblyIgnoringCase(name, styleAttr.localName(), ignoreCase))
+if (attributeData()->m_styleAttributeIsDirty && equalPossiblyIgnoringCase(name, styleAttr.localName(), ignoreCase))
 updateStyleAttribute();
 
 #if ENABLE(SVG)
-if (!areSVGAttributesValid()) {
+if (attributeData()->m_animatedSVGAttributesAreDirty) {
 // We're not passing a namespace argument on purpose. SVGNames::*Attr are defined w/o namespaces as well.
 updateAnimatedSVGAttribute(QualifiedName(nullAtom, name, nullAtom));
 }
 #endif
 
-if (attributeData()) {
-if (const Attribute* attribute = attributeData()->getAttributeItem(name, ignoreCase))
-return attribute->value();
-}
-
+if (const Attribute* attribute = attributeData()->getAttributeItem(name, ignoreCase))
+return attribute->value();
 return nullAtom;
 }
 


Modified: trunk/Source/WebCore/dom/Element.h (135815 => 135816)

--- trunk/Source/WebCore/dom/Element.h	2012-11-27 05:06:53 UTC (rev 1358

[webkit-changes] [135814] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135814] trunk/Source/WebCore








Revision 135814
Author commit-qu...@webkit.org
Date 2012-11-26 20:41:06 -0800 (Mon, 26 Nov 2012)


Log Message
[TexMap] GraphicsLayerTextureMapper::setSize() sets the size of a mask layer.
https://bugs.webkit.org/show_bug.cgi?id=103297

Patch by Huang Dongsung  on 2012-11-26
Reviewed by Noam Rosenthal.

Currently, CoordinatedGraphicsLayer sets the size of a mask layer in setSize()
and setMaksLayer(). GraphicsLayerTextureMapper follows the behavior. If so we
don't have to check the size of the mask layer in TextureMapperLayer::flushCompositingState().

No new tests. Covered by existing tests.

* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
(WebCore::GraphicsLayerTextureMapper::setSize):
* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::flushCompositingState):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135813 => 135814)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 04:37:01 UTC (rev 135813)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 04:41:06 UTC (rev 135814)
@@ -1,3 +1,22 @@
+2012-11-26  Huang Dongsung  
+
+[TexMap] GraphicsLayerTextureMapper::setSize() sets the size of a mask layer.
+https://bugs.webkit.org/show_bug.cgi?id=103297
+
+Reviewed by Noam Rosenthal.
+
+Currently, CoordinatedGraphicsLayer sets the size of a mask layer in setSize()
+and setMaksLayer(). GraphicsLayerTextureMapper follows the behavior. If so we
+don't have to check the size of the mask layer in TextureMapperLayer::flushCompositingState().
+
+No new tests. Covered by existing tests.
+
+* platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
+(WebCore::GraphicsLayerTextureMapper::setMaskLayer):
+(WebCore::GraphicsLayerTextureMapper::setSize):
+* platform/graphics/texmap/TextureMapperLayer.cpp:
+(WebCore::TextureMapperLayer::flushCompositingState):
+
 2012-11-26  Kentaro Hara  
 
 [V8] Remove V8Parameter::object()


Modified: trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp (135813 => 135814)

--- trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 04:37:01 UTC (rev 135813)
+++ trunk/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp	2012-11-27 04:41:06 UTC (rev 135814)
@@ -191,6 +191,10 @@
 return;
 GraphicsLayer::setMaskLayer(value);
 notifyChange(TextureMapperLayer::MaskLayerChange);
+
+if (!value)
+return;
+value->setSize(size());
 }
 
 
@@ -232,6 +236,8 @@
 return;
 
 GraphicsLayer::setSize(value);
+if (maskLayer())
+maskLayer()->setSize(value);
 notifyChange(TextureMapperLayer::SizeChange);
 }
 


Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp (135813 => 135814)

--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-11-27 04:37:01 UTC (rev 135813)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-11-27 04:41:06 UTC (rev 135814)
@@ -484,14 +484,9 @@
 if (graphicsLayer && !(options & ComputationsOnly))
 flushCompositingStateSelf(graphicsLayer, textureMapper);
 
-if (graphicsLayer && m_state.maskLayer) {
+if (graphicsLayer && m_state.maskLayer)
 m_state.maskLayer->flushCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->maskLayer()), textureMapper);
 
-// A mask layer has its parent's size by default, in case it's not set specifically.
-if (m_state.maskLayer->m_size.isEmpty())
-m_state.maskLayer->m_size = m_size;
-}
-
 if (m_state.replicaLayer)
 m_state.replicaLayer->flushCompositingState(toGraphicsLayerTextureMapper(graphicsLayer->replicaLayer()), textureMapper);
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135813] trunk

2012-11-26 Thread commit-queue
Title: [135813] trunk








Revision 135813
Author commit-qu...@webkit.org
Date 2012-11-26 20:37:01 -0800 (Mon, 26 Nov 2012)


Log Message
[EFL] CMake shows ENABLE_3D_RENDERING and ENABLE_WEBGL is still OFF when AC is enabled
https://bugs.webkit.org/show_bug.cgi?id=100829

Patch by Halton Huo  on 2012-11-26
Reviewed by Gyuyoung Kim.

In WebKitFeatures.cmake, only use ${_name} for condition to print
a option as ON will prevent the overridden ones in OptionsXXX.cmake,
should use ${_WEBKIT_AVAILABLE_OPTIONS_INITALVALUE_${_name}} instead.

* Source/cmake/OptionsEfl.cmake: Turn on ENABLE_3D_RENDERING and
ENABLE_WEBGL
* Source/cmake/WebKitFeatures.cmake: Use
${_WEBKIT_AVAILABLE_OPTIONS_INITALVALUE_${_name}} to as value of
a feature is enabled. Adjust options in lexicographical order.

Modified Paths

trunk/ChangeLog
trunk/Source/cmake/OptionsEfl.cmake
trunk/Source/cmake/WebKitFeatures.cmake




Diff

Modified: trunk/ChangeLog (135812 => 135813)

--- trunk/ChangeLog	2012-11-27 04:30:26 UTC (rev 135812)
+++ trunk/ChangeLog	2012-11-27 04:37:01 UTC (rev 135813)
@@ -1,3 +1,20 @@
+2012-11-26  Halton Huo  
+
+[EFL] CMake shows ENABLE_3D_RENDERING and ENABLE_WEBGL is still OFF when AC is enabled
+https://bugs.webkit.org/show_bug.cgi?id=100829
+
+Reviewed by Gyuyoung Kim.
+
+In WebKitFeatures.cmake, only use ${_name} for condition to print
+a option as ON will prevent the overridden ones in OptionsXXX.cmake,
+should use ${_WEBKIT_AVAILABLE_OPTIONS_INITALVALUE_${_name}} instead.
+
+* Source/cmake/OptionsEfl.cmake: Turn on ENABLE_3D_RENDERING and
+ENABLE_WEBGL
+* Source/cmake/WebKitFeatures.cmake: Use
+${_WEBKIT_AVAILABLE_OPTIONS_INITALVALUE_${_name}} to as value of 
+a feature is enabled. Adjust options in lexicographical order.
+
 2012-11-26  Kalev Lember  
 
 [GTK] Explicitly link against librt


Modified: trunk/Source/cmake/OptionsEfl.cmake (135812 => 135813)

--- trunk/Source/cmake/OptionsEfl.cmake	2012-11-27 04:30:26 UTC (rev 135812)
+++ trunk/Source/cmake/OptionsEfl.cmake	2012-11-27 04:37:01 UTC (rev 135813)
@@ -40,6 +40,7 @@
 SET(VERSION_SCRIPT "-Wl,--version-script,${CMAKE_MODULE_PATH}/eflsymbols.filter")
 
 WEBKIT_OPTION_BEGIN()
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_3D_RENDERING ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ANIMATION_API ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_API_TESTS ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_BATTERY_STATUS ON)
@@ -81,6 +82,7 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_INTENTS ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_INTENTS_TAG ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_TIMING ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WORKERS ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_XHR_TIMEOUT ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(WTF_USE_TILED_BACKING_STORE ON)


Modified: trunk/Source/cmake/WebKitFeatures.cmake (135812 => 135813)

--- trunk/Source/cmake/WebKitFeatures.cmake	2012-11-27 04:30:26 UTC (rev 135812)
+++ trunk/Source/cmake/WebKitFeatures.cmake	2012-11-27 04:37:01 UTC (rev 135813)
@@ -11,10 +11,10 @@
 ENDMACRO ()
 
 MACRO (WEBKIT_OPTION_BEGIN)
-WEBKIT_OPTION_DEFINE(ENABLE_API_TESTS "Enable public API unit tests" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_3D_RENDERING "Toggle 3D rendering support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_ACCELERATED_2D_CANVAS "Toggle accelerated 2D canvas support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_ANIMATION_API "Toggle animation API support" OFF)
+WEBKIT_OPTION_DEFINE(ENABLE_API_TESTS "Enable public API unit tests" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_ASSEMBLER_WX_EXCLUSIVE "Toggel Assembler WX Exclusive support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_BATTERY_STATUS "Toggle battery status API support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_BLOB "Toggle Blob support" OFF)
@@ -115,12 +115,12 @@
 WEBKIT_OPTION_DEFINE(ENABLE_VIBRATION "Toggle Vibration API support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_VIDEO "Toggle Video support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_VIDEO_TRACK "Toggle Track support for HTML5 video" OFF)
-WEBKIT_OPTION_DEFINE(ENABLE_WEBGL "Toggle 3D canvas (WebGL) support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_WEB_AUDIO "Toggle Web Audio support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_WEB_INTENTS "Toggle Web Intents support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_WEB_INTENTS_TAG "Toogle HTMLIntentElement tag support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_WEB_SOCKETS "Toggle Web Sockets support" ON)
 WEBKIT_OPTION_DEFINE(ENABLE_WEB_TIMING "Toggle Web Timing support" OFF)
+WEBKIT_OPTION_DEFINE(ENABLE_WEBGL "Toggle 3D canvas (WebGL) support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_WORKERS "Toggle Web Workers support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_XHR_TIMEOUT "Toggle XHR timeout support" OFF)
 WEBKIT_OPTION_DEFINE(ENABLE_XSLT "Toggle XSLT support" ON)
@@ -166,11 +166,9 @@
 IF (${_name})
 LIST(APPEND FEATURE_DEFI

[webkit-changes] [135812] trunk/Source/WebCore

2012-11-26 Thread haraken
Title: [135812] trunk/Source/WebCore








Revision 135812
Author hara...@chromium.org
Date 2012-11-26 20:30:26 -0800 (Mon, 26 Nov 2012)


Log Message
[V8] Remove V8Parameter::object()
https://bugs.webkit.org/show_bug.cgi?id=103340

Reviewed by Adam Barth.

V8Parameter can use m_v8Object directly.

No tests. No change in behavior.

* bindings/v8/V8StringResource.h:
(WebCoreprepare):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/bindings/v8/V8StringResource.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135811 => 135812)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 04:28:53 UTC (rev 135811)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 04:30:26 UTC (rev 135812)
@@ -1,5 +1,19 @@
 2012-11-26  Kentaro Hara  
 
+[V8] Remove V8Parameter::object()
+https://bugs.webkit.org/show_bug.cgi?id=103340
+
+Reviewed by Adam Barth.
+
+V8Parameter can use m_v8Object directly.
+
+No tests. No change in behavior.
+
+* bindings/v8/V8StringResource.h:
+(WebCoreprepare):
+
+2012-11-26  Kentaro Hara  
+
 [V8] Rename V8Parameter to V8StringResource
 https://bugs.webkit.org/show_bug.cgi?id=103341
 


Modified: trunk/Source/WebCore/bindings/v8/V8StringResource.h (135811 => 135812)

--- trunk/Source/WebCore/bindings/v8/V8StringResource.h	2012-11-27 04:28:53 UTC (rev 135811)
+++ trunk/Source/WebCore/bindings/v8/V8StringResource.h	2012-11-27 04:30:26 UTC (rev 135812)
@@ -191,8 +191,6 @@
 return true;
 }
 
-v8::Local object() { return m_v8Object; }
-
 void setString(const String& string)
 {
 m_string = string;
@@ -220,7 +218,7 @@
 
 template<> inline bool V8StringResource::prepare()
 {
-if (object().IsEmpty() || object()->IsNull()) {
+if (m_v8Object.IsEmpty() || m_v8Object->IsNull()) {
 setString(String());
 return true;
 }
@@ -229,7 +227,7 @@
 
 template<> inline bool V8StringResource::prepare()
 {
-if (object().IsEmpty() || object()->IsNull() || object()->IsUndefined()) {
+if (m_v8Object.IsEmpty() || m_v8Object->IsNull() || m_v8Object->IsUndefined()) {
 setString(String());
 return true;
 }






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135810] trunk/Source/WebCore

2012-11-26 Thread akling
Title: [135810] trunk/Source/WebCore








Revision 135810
Author akl...@apple.com
Date 2012-11-26 20:13:25 -0800 (Mon, 26 Nov 2012)


Log Message
HTMLOptionElement: Remove two unused members.


Reviewed by Kent Tamura.

Remove two unused members from HTMLOptionElement, m_value and m_label.
40kB progression on Membuster3.

* html/HTMLOptionElement.h:
(HTMLOptionElement):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/html/HTMLOptionElement.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135809 => 135810)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 04:09:46 UTC (rev 135809)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 04:13:25 UTC (rev 135810)
@@ -1,3 +1,16 @@
+2012-11-26  Andreas Kling  
+
+HTMLOptionElement: Remove two unused members.
+
+
+Reviewed by Kent Tamura.
+
+Remove two unused members from HTMLOptionElement, m_value and m_label.
+40kB progression on Membuster3.
+
+* html/HTMLOptionElement.h:
+(HTMLOptionElement):
+
 2012-11-26  Stephen White  
 
 [Chromium] Shared graphics context should only pushGroupMarker() once


Modified: trunk/Source/WebCore/html/HTMLOptionElement.h (135809 => 135810)

--- trunk/Source/WebCore/html/HTMLOptionElement.h	2012-11-27 04:09:46 UTC (rev 135809)
+++ trunk/Source/WebCore/html/HTMLOptionElement.h	2012-11-27 04:13:25 UTC (rev 135810)
@@ -92,8 +92,6 @@
 
 String collectOptionInnerText() const;
 
-String m_value;
-String m_label;
 bool m_disabled;
 bool m_isSelected;
 RefPtr m_style;






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135809] trunk/Source/WebCore

2012-11-26 Thread senorblanco
Title: [135809] trunk/Source/WebCore








Revision 135809
Author senorbla...@chromium.org
Date 2012-11-26 20:09:46 -0800 (Mon, 26 Nov 2012)


Log Message
[Chromium] Shared graphics context should only pushGroupMarker() once
https://bugs.webkit.org/show_bug.cgi?id=103082

Reviewed by James Robinson.

GraphicsContext3D's pushGroupMarkerEXT() is being called every time
an ImageBuffer is created, leading to unlimited memory growth, since
they share a common GraphicsContext3D.  It should be called only once,
on context creation.

Tested by manually checking the memory usage in Chrome's TaskManager.
(Sorry, I can't think of a way to test this automatically.)

* platform/graphics/gpu/SharedGraphicsContext3D.cpp:
(WebCore::SharedGraphicsContext3DImpl::getOrCreateContext):
* platform/graphics/skia/ImageBufferSkia.cpp:
(WebCore::createAcceleratedCanvas):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp
trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135808 => 135809)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 04:08:51 UTC (rev 135808)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 04:09:46 UTC (rev 135809)
@@ -1,3 +1,23 @@
+2012-11-26  Stephen White  
+
+[Chromium] Shared graphics context should only pushGroupMarker() once
+https://bugs.webkit.org/show_bug.cgi?id=103082
+
+Reviewed by James Robinson.
+
+GraphicsContext3D's pushGroupMarkerEXT() is being called every time
+an ImageBuffer is created, leading to unlimited memory growth, since
+they share a common GraphicsContext3D.  It should be called only once,
+on context creation.
+
+Tested by manually checking the memory usage in Chrome's TaskManager.
+(Sorry, I can't think of a way to test this automatically.)
+
+* platform/graphics/gpu/SharedGraphicsContext3D.cpp:
+(WebCore::SharedGraphicsContext3DImpl::getOrCreateContext):
+* platform/graphics/skia/ImageBufferSkia.cpp:
+(WebCore::createAcceleratedCanvas):
+
 2012-11-26  Kentaro Hara  
 
 [V8] Remove WorkerContextExecutionProxy.{h,cpp}


Modified: trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp (135808 => 135809)

--- trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp	2012-11-27 04:08:51 UTC (rev 135808)
+++ trunk/Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp	2012-11-27 04:09:46 UTC (rev 135809)
@@ -42,12 +42,19 @@
 if (m_context && (!m_context->makeContextCurrent() || (m_context->getExtensions()->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERROR)))
 m_context.clear();
 
-if (!m_context)
+bool wasCreated = false;
+
+if (!m_context) {
 createContext();
+wasCreated = true;
+}
 
 if (m_context && !m_context->makeContextCurrent())
 m_context.clear();
 
+if (m_context && wasCreated)
+m_context->getExtensions()->pushGroupMarkerEXT("SharedGraphicsContext");
+
 return m_context;
 }
 


Modified: trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp (135808 => 135809)

--- trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp	2012-11-27 04:08:51 UTC (rev 135808)
+++ trunk/Source/WebCore/platform/graphics/skia/ImageBufferSkia.cpp	2012-11-27 04:09:46 UTC (rev 135809)
@@ -79,7 +79,6 @@
 GrContext* gr = context3D->grContext();
 if (!gr)
 return 0;
-context3D->getExtensions()->pushGroupMarkerEXT("AcceleratedCanvasContext");
 gr->resetContext();
 GrTextureDesc desc;
 desc.fFlags = kRenderTarget_GrTextureFlagBit;






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135808] trunk/Source/WebKit/chromium

2012-11-26 Thread aelias
Title: [135808] trunk/Source/WebKit/chromium








Revision 135808
Author ael...@chromium.org
Date 2012-11-26 20:08:51 -0800 (Mon, 26 Nov 2012)


Log Message
[chromium] Touchscreen fling handling
https://bugs.webkit.org/show_bug.cgi?id=103278

Reviewed by James Robinson.

The fling logic for touchpad can fall through to bad
performance in several ways. This patch introduces an alternate
path for touchscreen fling that simplifies it as follows:

- Stop generating wheel events, to prevent unnecessary scrollBegin hit
tests and to avoid falling back to slow path if a wheel handler is
registered.

- Drop the event on ScrollStatusIgnored. There's no real reason to
send the event to the WebKit thread here.

- Don't call transferActiveWheelFlingAnimation. This type of
transition shouldn't be needed with touchscreen flings.

* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
(WebKit::WebCompositorInputHandlerImpl::animate):
(WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling):
(WebKit::WebCompositorInputHandlerImpl::scrollBy):
* src/WebCompositorInputHandlerImpl.h:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp
trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.h
trunk/Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135807 => 135808)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 04:03:53 UTC (rev 135807)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 04:08:51 UTC (rev 135808)
@@ -1,3 +1,31 @@
+2012-11-26  Alexandre Elias  
+
+[chromium] Touchscreen fling handling
+https://bugs.webkit.org/show_bug.cgi?id=103278
+
+Reviewed by James Robinson.
+
+The fling logic for touchpad can fall through to bad
+performance in several ways. This patch introduces an alternate
+path for touchscreen fling that simplifies it as follows:
+
+- Stop generating wheel events, to prevent unnecessary scrollBegin hit
+tests and to avoid falling back to slow path if a wheel handler is
+registered.
+
+- Drop the event on ScrollStatusIgnored. There's no real reason to
+send the event to the WebKit thread here.
+
+- Don't call transferActiveWheelFlingAnimation. This type of
+transition shouldn't be needed with touchscreen flings.
+
+* src/WebCompositorInputHandlerImpl.cpp:
+(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
+(WebKit::WebCompositorInputHandlerImpl::animate):
+(WebKit::WebCompositorInputHandlerImpl::cancelCurrentFling):
+(WebKit::WebCompositorInputHandlerImpl::scrollBy):
+* src/WebCompositorInputHandlerImpl.h:
+
 2012-11-26  Kentaro Hara  
 
 [V8] Remove WorkerContextExecutionProxy.{h,cpp}


Modified: trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp (135807 => 135808)

--- trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp	2012-11-27 04:03:53 UTC (rev 135807)
+++ trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp	2012-11-27 04:08:51 UTC (rev 135808)
@@ -118,7 +118,7 @@
 WebInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(WebPoint(wheelEvent.x, wheelEvent.y), WebInputHandlerClient::ScrollInputTypeWheel);
 switch (scrollStatus) {
 case WebInputHandlerClient::ScrollStatusStarted: {
-TRACE_EVENT_INSTANT2("cc", "WebCompositorInputHandlerImpl::handleInput wheel scroll", "deltaX", -wheelEvent.deltaX, "deltaY", -wheelEvent.deltaY);
+TRACE_EVENT_INSTANT2("webkit", "WebCompositorInputHandlerImpl::handleInput wheel scroll", "deltaX", -wheelEvent.deltaX, "deltaY", -wheelEvent.deltaY);
 bool didScroll = m_inputHandlerClient->scrollByIfPossible(WebPoint(wheelEvent.x, wheelEvent.y), IntSize(-wheelEvent.deltaX, -wheelEvent.deltaY));
 m_inputHandlerClient->scrollEnd();
 return didScroll ? DidHandle : DropEvent;
@@ -205,26 +205,30 @@
 WebInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(WebPoint(gestureEvent.x, gestureEvent.y), WebInputHandlerClient::ScrollInputTypeGesture);
 switch (scrollStatus) {
 case WebInputHandlerClient::ScrollStatusStarted: {
-m_inputHandlerClient->scrollEnd();
-m_wheelFlingCurve = adoptPtr(Platform::current()->createFlingAnimationCurve(gestureEvent.data.flingStart.sourceDevice, WebFloatPoint(gestureEvent.data.flingStart.velocityX, gestureEvent.data.flingStart.velocityY), WebSize()));
-TRACE_EVENT_ASYNC_BEGIN0("cc", "WebCompositorInputHandlerImpl::handleGestureFling::started", this);
-m_wheelFlingParameters.delta = WebFloatPoint(gestureEvent.data.flingStart.velocityX, gestureEvent.data.flingStart.velocityY);
-m_wheelFlingParameters.point = WebPoint(gestureEvent.x, gestureEv

[webkit-changes] [135807] trunk/LayoutTests

2012-11-26 Thread dbates
Title: [135807] trunk/LayoutTests








Revision 135807
Author dba...@webkit.org
Date 2012-11-26 20:03:53 -0800 (Mon, 26 Nov 2012)


Log Message
Update Chromium test expectation for test LayoutTests/fast/js/string-replacement-outofmemory.html
See  for more details.

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135806 => 135807)

--- trunk/LayoutTests/ChangeLog	2012-11-27 03:57:07 UTC (rev 135806)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 04:03:53 UTC (rev 135807)
@@ -1,3 +1,10 @@
+2012-11-26  Daniel Bates  
+
+Update Chromium test expectation for test LayoutTests/fast/js/string-replacement-outofmemory.html
+See  for more details.
+
+* platform/chromium/TestExpectations:
+
 2012-11-26  Istiaque Ahmed  
 
 Check for empty perContextData while creating NP V8 Object.


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135806 => 135807)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-27 03:57:07 UTC (rev 135806)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-27 04:03:53 UTC (rev 135807)
@@ -4250,3 +4250,5 @@
 webkit.org/b/103299 [ Linux Mac Win ] fast/dom/shadow/shadow-dom-event-dispatching.html [ Failure Pass ]
 webkit.org/b/103148 [ Linux Win ] fast/text/atsui-small-caps-punctuation-size.html [ ImageOnlyFailure Failure Pass ]
 webkit.org/b/103308 [ SnowLeopard Lion ] css3/filters/custom/custom-filter-transforms-animation.html [ Pass Timeout ]
+
+webkit.org/b/103348 fast/js/string-replacement-outofmemory.html [ Crash ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135806] trunk/Source

2012-11-26 Thread haraken
Title: [135806] trunk/Source








Revision 135806
Author hara...@chromium.org
Date 2012-11-26 19:57:07 -0800 (Mon, 26 Nov 2012)


Log Message
[V8] Remove WorkerContextExecutionProxy.{h,cpp}
https://bugs.webkit.org/show_bug.cgi?id=103325

Reviewed by Adam Barth.

Now WorkerContextExecutionProxy.{h,cpp} are empty.

No tests. No change in behavior.

Source/WebCore:

* UseV8.cmake:
* WebCore.gypi:
* bindings/v8/ScheduledAction.cpp:
* bindings/v8/V8AbstractEventListener.cpp:
* bindings/v8/V8DOMWrapper.cpp:
* bindings/v8/V8WorkerContextEventListener.h:
(WebCore):
* bindings/v8/WorkerContextExecutionProxy.cpp: Removed.
* bindings/v8/WorkerContextExecutionProxy.h: Removed.
* bindings/v8/WorkerScriptController.cpp:
* bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
* bindings/v8/custom/V8MessageChannelCustom.cpp:
* bindings/v8/custom/V8MessagePortCustom.cpp:
* bindings/v8/custom/V8WorkerCustom.cpp:
* bindings/v8/custom/V8XMLHttpRequestCustom.cpp:

Source/WebKit/chromium:

* src/WebKit.cpp:
* src/WebWorkerClientImpl.cpp:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/UseV8.cmake
trunk/Source/WebCore/WebCore.gypi
trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp
trunk/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp
trunk/Source/WebCore/bindings/v8/V8DOMWrapper.cpp
trunk/Source/WebCore/bindings/v8/V8WorkerContextEventListener.h
trunk/Source/WebCore/bindings/v8/WorkerScriptController.cpp
trunk/Source/WebCore/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp
trunk/Source/WebCore/bindings/v8/custom/V8MessageChannelCustom.cpp
trunk/Source/WebCore/bindings/v8/custom/V8MessagePortCustom.cpp
trunk/Source/WebCore/bindings/v8/custom/V8WorkerCustom.cpp
trunk/Source/WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/src/WebKit.cpp
trunk/Source/WebKit/chromium/src/WebWorkerClientImpl.cpp


Removed Paths

trunk/Source/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp
trunk/Source/WebCore/bindings/v8/WorkerContextExecutionProxy.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135805 => 135806)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 03:51:30 UTC (rev 135805)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 03:57:07 UTC (rev 135806)
@@ -1,3 +1,30 @@
+2012-11-26  Kentaro Hara  
+
+[V8] Remove WorkerContextExecutionProxy.{h,cpp}
+https://bugs.webkit.org/show_bug.cgi?id=103325
+
+Reviewed by Adam Barth.
+
+Now WorkerContextExecutionProxy.{h,cpp} are empty.
+
+No tests. No change in behavior.
+
+* UseV8.cmake:
+* WebCore.gypi:
+* bindings/v8/ScheduledAction.cpp:
+* bindings/v8/V8AbstractEventListener.cpp:
+* bindings/v8/V8DOMWrapper.cpp:
+* bindings/v8/V8WorkerContextEventListener.h:
+(WebCore):
+* bindings/v8/WorkerContextExecutionProxy.cpp: Removed.
+* bindings/v8/WorkerContextExecutionProxy.h: Removed.
+* bindings/v8/WorkerScriptController.cpp:
+* bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
+* bindings/v8/custom/V8MessageChannelCustom.cpp:
+* bindings/v8/custom/V8MessagePortCustom.cpp:
+* bindings/v8/custom/V8WorkerCustom.cpp:
+* bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
+
 2012-11-26  Michael Saboff  
 
 Grapheme cluster functions can be simplified for 8 bit Strings


Modified: trunk/Source/WebCore/UseV8.cmake (135805 => 135806)

--- trunk/Source/WebCore/UseV8.cmake	2012-11-27 03:51:30 UTC (rev 135805)
+++ trunk/Source/WebCore/UseV8.cmake	2012-11-27 03:57:07 UTC (rev 135806)
@@ -68,7 +68,6 @@
 bindings/v8/V8WindowErrorHandler.cpp
 bindings/v8/V8WorkerContextErrorHandler.cpp
 bindings/v8/V8WorkerContextEventListener.cpp
-bindings/v8/WorkerContextExecutionProxy.cpp
 bindings/v8/WorkerScriptController.cpp
 bindings/v8/WorkerScriptDebugServer.cpp
 bindings/v8/WorldContextHandle.cpp


Modified: trunk/Source/WebCore/WebCore.gypi (135805 => 135806)

--- trunk/Source/WebCore/WebCore.gypi	2012-11-27 03:51:30 UTC (rev 135805)
+++ trunk/Source/WebCore/WebCore.gypi	2012-11-27 03:57:07 UTC (rev 135806)
@@ -2332,8 +2332,6 @@
 'bindings/v8/V8WorkerContextErrorHandler.h',
 'bindings/v8/V8WorkerContextEventListener.cpp',
 'bindings/v8/V8WorkerContextEventListener.h',
-'bindings/v8/WorkerContextExecutionProxy.cpp',
-'bindings/v8/WorkerContextExecutionProxy.h',
 'bindings/v8/WorkerScriptController.cpp',
 'bindings/v8/WorkerScriptController.h',
 'bindings/v8/WorkerScriptDebugServer.cpp',


Modified: trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp (135805 => 135806)

--- trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp	2012-11-27 03:51:30 UTC (rev 135805)
+++ trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp	2012-11-27 03:57:07 UTC (rev 135806)
@@ -45,7 +45,6 @@
 #include "V8GCController.h"
 #include "V8RecursionSc

[webkit-changes] [135805] trunk/Source/WebCore

2012-11-26 Thread msaboff
Title: [135805] trunk/Source/WebCore








Revision 135805
Author msab...@apple.com
Date 2012-11-26 19:51:30 -0800 (Mon, 26 Nov 2012)


Log Message
Grapheme cluster functions can be simplified for 8 bit Strings
https://bugs.webkit.org/show_bug.cgi?id=102996

Reviewed by Alexey Proskuryakov.

For 8 bit strings, check for the uncommon CR-LF by looking for any CR.  If there aren't any CR characters,
the number of Extended Grapheme Clusters is equal to the string length.  If we need to handle Tailored
Graheme Clusters, then this will need to change.

No new tests. No change in functionality.

* platform/text/TextBreakIterator.cpp:
(WebCore::numGraphemeClusters):
(WebCore::numCharactersInGraphemeClusters):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/text/TextBreakIterator.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135804 => 135805)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 03:40:59 UTC (rev 135804)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 03:51:30 UTC (rev 135805)
@@ -1,3 +1,20 @@
+2012-11-26  Michael Saboff  
+
+Grapheme cluster functions can be simplified for 8 bit Strings
+https://bugs.webkit.org/show_bug.cgi?id=102996
+
+Reviewed by Alexey Proskuryakov.
+
+For 8 bit strings, check for the uncommon CR-LF by looking for any CR.  If there aren't any CR characters,
+the number of Extended Grapheme Clusters is equal to the string length.  If we need to handle Tailored
+Graheme Clusters, then this will need to change.
+
+No new tests. No change in functionality.
+
+* platform/text/TextBreakIterator.cpp:
+(WebCore::numGraphemeClusters):
+(WebCore::numCharactersInGraphemeClusters):
+
 2012-11-26  Istiaque Ahmed  
 
 Check for empty perContextData while creating NP V8 Object.


Modified: trunk/Source/WebCore/platform/text/TextBreakIterator.cpp (135804 => 135805)

--- trunk/Source/WebCore/platform/text/TextBreakIterator.cpp	2012-11-27 03:40:59 UTC (rev 135804)
+++ trunk/Source/WebCore/platform/text/TextBreakIterator.cpp	2012-11-27 03:51:30 UTC (rev 135805)
@@ -26,9 +26,18 @@
 
 unsigned numGraphemeClusters(const String& s)
 {
-NonSharedCharacterBreakIterator it(s.characters(), s.length());
+unsigned stringLength = s.length();
+
+if (!stringLength)
+return 0;
+
+// The only Latin-1 Extended Grapheme Cluster is CR LF
+if (s.is8Bit() && !s.contains('\r'))
+return stringLength;
+
+NonSharedCharacterBreakIterator it(s.characters(), stringLength);
 if (!it)
-return s.length();
+return stringLength;
 
 unsigned num = 0;
 while (textBreakNext(it) != TextBreakDone)
@@ -38,13 +47,22 @@
 
 unsigned numCharactersInGraphemeClusters(const String& s, unsigned numGraphemeClusters)
 {
-NonSharedCharacterBreakIterator it(s.characters(), s.length());
+unsigned stringLength = s.length();
+
+if (!stringLength)
+return 0;
+
+// The only Latin-1 Extended Grapheme Cluster is CR LF
+if (s.is8Bit() && !s.contains('\r'))
+return std::min(stringLength, numGraphemeClusters);
+
+NonSharedCharacterBreakIterator it(s.characters(), stringLength);
 if (!it)
-return std::min(s.length(), numGraphemeClusters);
+return std::min(stringLength, numGraphemeClusters);
 
 for (unsigned i = 0; i < numGraphemeClusters; ++i) {
 if (textBreakNext(it) == TextBreakDone)
-return s.length();
+return stringLength;
 }
 return textBreakCurrent(it);
 }






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135804] trunk

2012-11-26 Thread commit-queue
Title: [135804] trunk








Revision 135804
Author commit-qu...@webkit.org
Date 2012-11-26 19:40:59 -0800 (Mon, 26 Nov 2012)


Log Message
Check for empty perContextData while creating NP V8 Object.
https://bugs.webkit.org/show_bug.cgi?id=98448

Patch by Istiaque Ahmed  on 2012-11-26
Reviewed by Adam Barth.

Fixes crash in npCreateV8ScriptObject(), if NP Invoke is called from a document
that is no longer displayed in frame (isCurrentlyDisplayedInFrame() ==
false), we have empty perContextData and this results in invalid memory access.

Source/WebCore:

Test: platform/chromium/plugins/empty-per-context-data.html

* bindings/v8/NPV8Object.cpp:
(WebCore::npCreateV8ScriptObject):

LayoutTests:

* platform/chromium/plugins/empty-per-context-data-expected.txt: Added.
* platform/chromium/plugins/empty-per-context-data.html: Added.
* platform/chromium/plugins/resources/script-container.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/bindings/v8/NPV8Object.cpp


Added Paths

trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt
trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data.html
trunk/LayoutTests/platform/chromium/plugins/resources/script-container.html




Diff

Modified: trunk/LayoutTests/ChangeLog (135803 => 135804)

--- trunk/LayoutTests/ChangeLog	2012-11-27 03:04:42 UTC (rev 135803)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 03:40:59 UTC (rev 135804)
@@ -1,3 +1,18 @@
+2012-11-26  Istiaque Ahmed  
+
+Check for empty perContextData while creating NP V8 Object.
+https://bugs.webkit.org/show_bug.cgi?id=98448
+
+Reviewed by Adam Barth.
+
+Fixes crash in npCreateV8ScriptObject(), if NP Invoke is called from a document
+that is no longer displayed in frame (isCurrentlyDisplayedInFrame() ==
+false), we have empty perContextData and this results in invalid memory access.
+
+* platform/chromium/plugins/empty-per-context-data-expected.txt: Added.
+* platform/chromium/plugins/empty-per-context-data.html: Added.
+* platform/chromium/plugins/resources/script-container.html: Added.
+
 2012-11-26  Daniel Bates  
 
 _javascript_ fails to handle String.replace() with large replacement string


Added: trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt (0 => 135804)

--- trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt	(rev 0)
+++ trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data-expected.txt	2012-11-27 03:40:59 UTC (rev 135804)
@@ -0,0 +1,4 @@
+
+
+This tests that invoking a plugin object from a (iframe) document that is no longer visible in a frame doesn't crash the renderer. If this test is successful, the word SUCCESS should be seen below.
+SUCCESS


Added: trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data.html (0 => 135804)

--- trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data.html	(rev 0)
+++ trunk/LayoutTests/platform/chromium/plugins/empty-per-context-data.html	2012-11-27 03:40:59 UTC (rev 135804)
@@ -0,0 +1,29 @@
+
+
+
+if (window.testRunner) {
+testRunner.dumpAsText();
+// So that we can catch crash failure.
+testRunner.waitUntilDone();
+}
+
+function runTest() {
+var p = document.getElementById('plg');
+var iframe = document.getElementById('script-container-frame-id');
+frameScriptFunction = iframe.contentWindow['new-script-object-in-frame'];
+iframe.parentNode.removeChild(iframe);
+p.testScriptObjectInvoke('frameScriptFunction', 'createObject');
+document.getElementById('result').innerHTML = 'SUCCESS';
+if (window.testRunner)
+testRunner.notifyDone();
+}
+
+
+
+
+
+This tests that invoking a plugin object from a (iframe) document that is no longer visible in a frame doesn't crash the renderer. If this test is successful, the word SUCCESS should be seen below.
+FAILED
+
+
+


Added: trunk/LayoutTests/platform/chromium/plugins/resources/script-container.html (0 => 135804)

--- trunk/LayoutTests/platform/chromium/plugins/resources/script-container.html	(rev 0)
+++ trunk/LayoutTests/platform/chromium/plugins/resources/script-container.html	2012-11-27 03:40:59 UTC (rev 135804)
@@ -0,0 +1,24 @@
+
+
+
+
+window['new-script-object-in-frame'] = function() {
+return FactoryFunction();
+};
+// A simple script object with a member function that takes
+// an NPObject as an argument
+FactoryFunction = function() {
+var TestObject = function() {
+};
+TestObject.prototype.createObject = function(plugin) {
+var newObject = plugin.testCloneObject();
+return newObject;
+};
+var instance = new TestObject();
+return instance;
+};
+
+
+
+
+


Modified: trun

[webkit-changes] [135803] trunk/Source/WebKit2

2012-11-26 Thread commit-queue
Title: [135803] trunk/Source/WebKit2








Revision 135803
Author commit-qu...@webkit.org
Date 2012-11-26 19:04:42 -0800 (Mon, 26 Nov 2012)


Log Message
[WK2] Expose Accelerated2dCanvas flag set and get in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=103008

Patch by Kyungjin Kim  on 2012-11-26
Reviewed by Gyuyoung Kim.

Add setting APIs for accelerated 2d canvas in WebKit2.

* Shared/WebPreferencesStore.h:
(WebKit):
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetAccelerated2dCanvasEnabled):
(WKPreferencesGetAccelerated2dCanvasEnabled):
* UIProcess/API/C/WKPreferencesPrivate.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/Shared/WebPreferencesStore.h
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135802 => 135803)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 02:59:59 UTC (rev 135802)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 03:04:42 UTC (rev 135803)
@@ -1,3 +1,21 @@
+2012-11-26  Kyungjin Kim  
+
+[WK2] Expose Accelerated2dCanvas flag set and get in WebKit2
+https://bugs.webkit.org/show_bug.cgi?id=103008
+
+Reviewed by Gyuyoung Kim.
+
+Add setting APIs for accelerated 2d canvas in WebKit2.
+
+* Shared/WebPreferencesStore.h:
+(WebKit):
+* UIProcess/API/C/WKPreferences.cpp:
+(WKPreferencesSetAccelerated2dCanvasEnabled):
+(WKPreferencesGetAccelerated2dCanvasEnabled):
+* UIProcess/API/C/WKPreferencesPrivate.h:
+* WebProcess/WebPage/WebPage.cpp:
+(WebKit::WebPage::updatePreferences):
+
 2012-11-26  Tim Horton  
 
 Ensure that plugins are initialized before using handleEditingCommand/isEditingCommandEnabled/shouldAllowScripting


Modified: trunk/Source/WebKit2/Shared/WebPreferencesStore.h (135802 => 135803)

--- trunk/Source/WebKit2/Shared/WebPreferencesStore.h	2012-11-27 02:59:59 UTC (rev 135802)
+++ trunk/Source/WebKit2/Shared/WebPreferencesStore.h	2012-11-27 03:04:42 UTC (rev 135803)
@@ -87,6 +87,7 @@
 macro(CompositingRepaintCountersVisible, compositingRepaintCountersVisible, Bool, bool, false) \
 macro(CSSCustomFilterEnabled, cssCustomFilterEnabled, Bool, bool, true) \
 macro(WebGLEnabled, webGLEnabled, Bool, bool, false) \
+macro(Accelerated2dCanvasEnabled, accelerated2dCanvasEnabled, Bool, bool, false) \
 macro(CSSRegionsEnabled, cssRegionsEnabled, Bool, bool, true) \
 macro(CSSGridLayoutEnabled, cssGridLayoutEnabled, Bool, bool, false) \
 macro(RegionBasedColumnsEnabled, regionBasedColumnsEnabled, Bool, bool, false) \


Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp (135802 => 135803)

--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp	2012-11-27 02:59:59 UTC (rev 135802)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp	2012-11-27 03:04:42 UTC (rev 135803)
@@ -448,6 +448,16 @@
 return toImpl(preferencesRef)->webGLEnabled();
 }
 
+void WKPreferencesSetAccelerated2dCanvasEnabled(WKPreferencesRef preferencesRef, bool flag)
+{
+toImpl(preferencesRef)->setAccelerated2dCanvasEnabled(flag);
+}
+
+bool WKPreferencesGetAccelerated2dCanvasEnabled(WKPreferencesRef preferencesRef)
+{
+return toImpl(preferencesRef)->accelerated2dCanvasEnabled();
+}
+
 void WKPreferencesSetCSSRegionsEnabled(WKPreferencesRef preferencesRef, bool flag)
 {
 toImpl(preferencesRef)->setCSSRegionsEnabled(flag);


Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h (135802 => 135803)

--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h	2012-11-27 02:59:59 UTC (rev 135802)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h	2012-11-27 03:04:42 UTC (rev 135803)
@@ -91,6 +91,10 @@
 WK_EXPORT void WKPreferencesSetWebGLEnabled(WKPreferencesRef, bool);
 WK_EXPORT bool WKPreferencesGetWebGLEnabled(WKPreferencesRef);
 
+// Defaults to false.
+WK_EXPORT void WKPreferencesSetAccelerated2dCanvasEnabled(WKPreferencesRef, bool);
+WK_EXPORT bool WKPreferencesGetAccelerated2dCanvasEnabled(WKPreferencesRef);
+
 // Defaults to true
 WK_EXPORT void WKPreferencesSetCSSRegionsEnabled(WKPreferencesRef, bool flag);
 WK_EXPORT bool WKPreferencesGetCSSRegionsEnabled(WKPreferencesRef);


Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (135802 => 135803)

--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2012-11-27 02:59:59 UTC (rev 135802)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2012-11-27 03:04:42 UTC (rev 135803)
@@ -2237,6 +2237,7 @@
 settings->setCSSGridLayoutEnabled(store.getBoolValueForKey(WebPreferencesKey::cssGridLayoutEnabledKey()));
 settings->setRegionBasedColumnsEnabled(store.getBoolValueForKey(WebPreferencesKey::regionBasedColumnsEnabledKey()));
 settings->setWebGLEnabled(store.getBoolValueForKey(WebPre

[webkit-changes] [135802] trunk/Source/WebCore

2012-11-26 Thread msaboff
Title: [135802] trunk/Source/WebCore








Revision 135802
Author msab...@apple.com
Date 2012-11-26 18:59:59 -0800 (Mon, 26 Nov 2012)


Log Message
HTML/XML parser helper unconsumeCharacters() can push back 8 bit text as 16 bit text
https://bugs.webkit.org/show_bug.cgi?id=103317

Reviewed by Oliver Hunt.

Changed to use the String directly from the StringBuilder instead of creating our own.
Used toStringPreserveCapacity() in case the caller may want to add to the StringBuilder
even though current callers don't.

No new tests. No change in functionality.

* xml/parser/CharacterReferenceParserInlines.h:
(WebCore::unconsumeCharacters):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/xml/parser/CharacterReferenceParserInlines.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135801 => 135802)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 02:25:46 UTC (rev 135801)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 02:59:59 UTC (rev 135802)
@@ -1,3 +1,19 @@
+2012-11-26  Michael Saboff  
+
+HTML/XML parser helper unconsumeCharacters() can push back 8 bit text as 16 bit text
+https://bugs.webkit.org/show_bug.cgi?id=103317
+
+Reviewed by Oliver Hunt.
+
+Changed to use the String directly from the StringBuilder instead of creating our own.
+Used toStringPreserveCapacity() in case the caller may want to add to the StringBuilder
+even though current callers don't.
+
+No new tests. No change in functionality.
+
+* xml/parser/CharacterReferenceParserInlines.h:
+(WebCore::unconsumeCharacters):
+
 2012-11-26  Noel Gordon  
 
 PNG decode performance: avoid using frame buffer.setRGBA(x,y)


Modified: trunk/Source/WebCore/xml/parser/CharacterReferenceParserInlines.h (135801 => 135802)

--- trunk/Source/WebCore/xml/parser/CharacterReferenceParserInlines.h	2012-11-27 02:25:46 UTC (rev 135801)
+++ trunk/Source/WebCore/xml/parser/CharacterReferenceParserInlines.h	2012-11-27 02:59:59 UTC (rev 135802)
@@ -44,7 +44,7 @@
 source.push(consumedCharacters[0]);
 source.push(consumedCharacters[1]);
 } else
-source.prepend(SegmentedString(String(consumedCharacters.characters(), consumedCharacters.length(;
+source.prepend(SegmentedString(consumedCharacters.toStringPreserveCapacity()));
 }
 
 template 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135801] trunk/Source

2012-11-26 Thread commit-queue
Title: [135801] trunk/Source








Revision 135801
Author commit-qu...@webkit.org
Date 2012-11-26 18:25:46 -0800 (Mon, 26 Nov 2012)


Log Message
[chromium] Remove deprecated and unused WebGraphicsContext3D compositor binding calls
https://bugs.webkit.org/show_bug.cgi?id=103322

Patch by James Robinson  on 2012-11-26
Reviewed by Adam Barth.

Source/Platform:

These have been uncalled for a while.

* chromium/public/WebLayerTreeViewClient.h:
(WebLayerTreeViewClient):

Source/WebKit/chromium:

* src/WebViewImpl.cpp:
* src/WebViewImpl.h:
(WebViewImpl):

Modified Paths

trunk/Source/Platform/ChangeLog
trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h
trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
trunk/Source/WebKit/chromium/src/WebViewImpl.h




Diff

Modified: trunk/Source/Platform/ChangeLog (135800 => 135801)

--- trunk/Source/Platform/ChangeLog	2012-11-27 02:22:53 UTC (rev 135800)
+++ trunk/Source/Platform/ChangeLog	2012-11-27 02:25:46 UTC (rev 135801)
@@ -1,3 +1,15 @@
+2012-11-26  James Robinson  
+
+[chromium] Remove deprecated and unused WebGraphicsContext3D compositor binding calls
+https://bugs.webkit.org/show_bug.cgi?id=103322
+
+Reviewed by Adam Barth.
+
+These have been uncalled for a while.
+
+* chromium/public/WebLayerTreeViewClient.h:
+(WebLayerTreeViewClient):
+
 2012-11-23  Sami Kyostila  
 
 [chromium] Remove WebScreenInfo.{horizontal,vertical}DPI


Modified: trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h (135800 => 135801)

--- trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h	2012-11-27 02:22:53 UTC (rev 135800)
+++ trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h	2012-11-27 02:25:46 UTC (rev 135801)
@@ -28,7 +28,6 @@
 
 namespace WebKit {
 class WebCompositorOutputSurface;
-class WebGraphicsContext3D;
 class WebInputHandler;
 class WebThread;
 struct WebSize;
@@ -57,15 +56,6 @@
 // compositor thread through the WebCompositor interface.
 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFactor) = 0;
 
-// DEPRECATED: Creates a 3D context suitable for the compositing. This may be called
-// more than once if the context gets lost. This will be removed once
-// downstream dependencies have been removed.
-virtual WebGraphicsContext3D* createContext3D() { return 0; }
-
-// DEPRECATED: Signals a successful rebinding of the 3D context (e.g. after a lost
-// context event).
-virtual void didRebindGraphicsContext(bool) { return; }
-
 // Creates the output surface. This may be called more than once
 // if the context gets lost.
 virtual WebCompositorOutputSurface* createOutputSurface() { return 0; }


Modified: trunk/Source/WebKit/chromium/ChangeLog (135800 => 135801)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 02:22:53 UTC (rev 135800)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 02:25:46 UTC (rev 135801)
@@ -1,3 +1,14 @@
+2012-11-26  James Robinson  
+
+[chromium] Remove deprecated and unused WebGraphicsContext3D compositor binding calls
+https://bugs.webkit.org/show_bug.cgi?id=103322
+
+Reviewed by Adam Barth.
+
+* src/WebViewImpl.cpp:
+* src/WebViewImpl.h:
+(WebViewImpl):
+
 2012-11-26  Alpha Lam  
 
 [chromium] Implement full-featured image cache


Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (135800 => 135801)

--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-11-27 02:22:53 UTC (rev 135800)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-11-27 02:25:46 UTC (rev 135801)
@@ -4110,17 +4110,6 @@
 
 } // namespace
 
-WebGraphicsContext3D* WebViewImpl::createContext3D()
-{
-// Temporarily, if the output surface can't be created, create a WebGraphicsContext3D
-// directly. This allows bootstrapping the output surface system while downstream
-// users of the API still use the old approach.
-WebKit::WebGraphicsContext3D::Attributes attributes;
-attributes.antialias = false;
-attributes.shareResources = true;
-return m_client->createGraphicsContext3D(attributes);
-}
-
 WebCompositorOutputSurface* WebViewImpl::createOutputSurface()
 {
 return m_client->createOutputSurface();
@@ -4185,11 +4174,6 @@
 m_client->didCompleteSwapBuffers();
 }
 
-void WebViewImpl::didRebindGraphicsContext(bool success)
-{
-didRecreateOutputSurface(success);
-}
-
 void WebViewImpl::didRecreateOutputSurface(bool success)
 {
 // Switch back to software rendering mode, if necessary


Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.h (135800 => 135801)

--- trunk/Source/WebKit/chromium/src/WebViewImpl.h	2012-11-27 02:22:53 UTC (rev 135800)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.h	2012-11-27 02:25:46 UTC (rev 135801)
@@ -316,8 +316,6 @@
 virtual void didBeginFrame();
 virtual void updateAnimations(double monotonicFrameBeginTime);

[webkit-changes] [135800] trunk/Source/JavaScriptCore

2012-11-26 Thread dbates
Title: [135800] trunk/Source/_javascript_Core








Revision 135800
Author dba...@webkit.org
Date 2012-11-26 18:22:53 -0800 (Mon, 26 Nov 2012)


Log Message
Substitute "allSeparators8Bit" for "allSeperators8Bit" in JSC::jsSpliceSubstringsWithSeparators()


Reviewed by Simon Fraser.

Fix misspelled word, "Seperators" [sic], in a local variable name in JSC::jsSpliceSubstringsWithSeparators().

* runtime/StringPrototype.cpp:
(JSC::jsSpliceSubstringsWithSeparators):

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/runtime/StringPrototype.cpp




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135799 => 135800)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-27 02:10:17 UTC (rev 135799)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-27 02:22:53 UTC (rev 135800)
@@ -1,5 +1,17 @@
 2012-11-26  Daniel Bates  
 
+Substitute "allSeparators8Bit" for "allSeperators8Bit" in JSC::jsSpliceSubstringsWithSeparators()
+
+
+Reviewed by Simon Fraser.
+
+Fix misspelled word, "Seperators" [sic], in a local variable name in JSC::jsSpliceSubstringsWithSeparators().
+
+* runtime/StringPrototype.cpp:
+(JSC::jsSpliceSubstringsWithSeparators):
+
+2012-11-26  Daniel Bates  
+
 _javascript_ fails to handle String.replace() with large replacement string
 https://bugs.webkit.org/show_bug.cgi?id=102956
 


Modified: trunk/Source/_javascript_Core/runtime/StringPrototype.cpp (135799 => 135800)

--- trunk/Source/_javascript_Core/runtime/StringPrototype.cpp	2012-11-27 02:10:17 UTC (rev 135799)
+++ trunk/Source/_javascript_Core/runtime/StringPrototype.cpp	2012-11-27 02:22:53 UTC (rev 135800)
@@ -339,13 +339,13 @@
 }
 
 Checked totalLength = 0;
-bool allSeperators8Bit = true;
+bool allSeparators8Bit = true;
 for (int i = 0; i < rangeCount; i++)
 totalLength += substringRanges[i].length;
 for (int i = 0; i < separatorCount; i++) {
 totalLength += separators[i].length();
 if (separators[i].length() && !separators[i].is8Bit())
-allSeperators8Bit = false;
+allSeparators8Bit = false;
 }
 if (totalLength.hasOverflowed())
 return throwOutOfMemoryError(exec);
@@ -353,7 +353,7 @@
 if (!totalLength)
 return jsEmptyString(exec);
 
-if (source.is8Bit() && allSeperators8Bit) {
+if (source.is8Bit() && allSeparators8Bit) {
 LChar* buffer;
 const LChar* sourceData = source.characters8();
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135797] trunk/Source/WebKit2

2012-11-26 Thread timothy_horton
Title: [135797] trunk/Source/WebKit2








Revision 135797
Author timothy_hor...@apple.com
Date 2012-11-26 18:01:49 -0800 (Mon, 26 Nov 2012)


Log Message
Ensure that plugins are initialized before using handleEditingCommand/isEditingCommandEnabled/shouldAllowScripting
https://bugs.webkit.org/show_bug.cgi?id=103288

Reviewed by Dan Bernstein.

Other PluginView methods that use m_plugin null-check m_plugin and check
that the plugin has finished initializing before using it. These three
should do the same thing.

* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::handleEditingCommand):
(WebKit::PluginView::isEditingCommandEnabled):
(WebKit::PluginView::shouldAllowScripting):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135796 => 135797)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 02:01:06 UTC (rev 135796)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 02:01:49 UTC (rev 135797)
@@ -1,5 +1,21 @@
 2012-11-26  Tim Horton  
 
+Ensure that plugins are initialized before using handleEditingCommand/isEditingCommandEnabled/shouldAllowScripting
+https://bugs.webkit.org/show_bug.cgi?id=103288
+
+Reviewed by Dan Bernstein.
+
+Other PluginView methods that use m_plugin null-check m_plugin and check
+that the plugin has finished initializing before using it. These three
+should do the same thing.
+
+* WebProcess/Plugins/PluginView.cpp:
+(WebKit::PluginView::handleEditingCommand):
+(WebKit::PluginView::isEditingCommandEnabled):
+(WebKit::PluginView::shouldAllowScripting):
+
+2012-11-26  Tim Horton  
+
 PDFPlugin: Subframe PDF context menus are in the wrong place
 https://bugs.webkit.org/show_bug.cgi?id=103284
 


Modified: trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp (135796 => 135797)

--- trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp	2012-11-27 02:01:06 UTC (rev 135796)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp	2012-11-27 02:01:49 UTC (rev 135797)
@@ -831,16 +831,25 @@
 
 bool PluginView::handleEditingCommand(const String& commandName, const String& argument)
 {
+if (!m_isInitialized || !m_plugin)
+return false;
+
 return m_plugin->handleEditingCommand(commandName, argument);
 }
 
 bool PluginView::isEditingCommandEnabled(const String& commandName)
 {
+if (!m_isInitialized || !m_plugin)
+return false;
+
 return m_plugin->isEditingCommandEnabled(commandName);
 }
 
 bool PluginView::shouldAllowScripting()
 {
+if (!m_isInitialized || !m_plugin)
+return false;
+
 return m_plugin->shouldAllowScripting();
 }
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135796] trunk/Source/WebKit2

2012-11-26 Thread timothy_horton
Title: [135796] trunk/Source/WebKit2








Revision 135796
Author timothy_hor...@apple.com
Date 2012-11-26 18:01:06 -0800 (Mon, 26 Nov 2012)


Log Message
PDFPlugin: Subframe PDF context menus are in the wrong place
https://bugs.webkit.org/show_bug.cgi?id=103284


Reviewed by Dan Bernstein.

Event position is in window coordinates, not content coordinates.
Since we have no windowToScreen(), use windowToContents and contentsToScreen
to get to screen coordinate space, which WKPopupContextMenu wants.

* WebProcess/Plugins/PDF/PDFPlugin.mm:
(WebKit::PDFPlugin::handleContextMenuEvent):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135795 => 135796)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 02:00:26 UTC (rev 135795)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 02:01:06 UTC (rev 135796)
@@ -1,5 +1,20 @@
 2012-11-26  Tim Horton  
 
+PDFPlugin: Subframe PDF context menus are in the wrong place
+https://bugs.webkit.org/show_bug.cgi?id=103284
+
+
+Reviewed by Dan Bernstein.
+
+Event position is in window coordinates, not content coordinates.
+Since we have no windowToScreen(), use windowToContents and contentsToScreen
+to get to screen coordinate space, which WKPopupContextMenu wants.
+
+* WebProcess/Plugins/PDF/PDFPlugin.mm:
+(WebKit::PDFPlugin::handleContextMenuEvent):
+
+2012-11-26  Tim Horton  
+
 PDFPlugin: Ctrl-click opens a link in a PDF in addition to context menu
 https://bugs.webkit.org/show_bug.cgi?id=103282
 


Modified: trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm (135795 => 135796)

--- trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2012-11-27 02:00:26 UTC (rev 135795)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2012-11-27 02:01:06 UTC (rev 135796)
@@ -578,7 +578,7 @@
 NSMenu *nsMenu = [m_pdfLayerController.get() menuForEvent:nsEventForWebMouseEvent(event)];
 
 FrameView* frameView = webFrame()->coreFrame()->view();
-IntPoint point = frameView->contentsToScreen(IntRect(event.position(), IntSize())).location();
+IntPoint point = frameView->contentsToScreen(IntRect(frameView->windowToContents(event.position()), IntSize())).location();
 if (nsMenu) {
 WKPopupContextMenu(nsMenu, point);
 return true;






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135795] trunk/Source/WebKit2

2012-11-26 Thread timothy_horton
Title: [135795] trunk/Source/WebKit2








Revision 135795
Author timothy_hor...@apple.com
Date 2012-11-26 18:00:26 -0800 (Mon, 26 Nov 2012)


Log Message
PDFPlugin: Ctrl-click opens a link in a PDF in addition to context menu
https://bugs.webkit.org/show_bug.cgi?id=103282


Reviewed by Dan Bernstein.

Don't send standard mouse events to PDFKit if a click will also show/hide the context menu.

* WebProcess/Plugins/PDF/PDFPlugin.mm:
(WebKit::PDFPlugin::handleMouseEvent):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135794 => 135795)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 02:00:23 UTC (rev 135794)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 02:00:26 UTC (rev 135795)
@@ -1,3 +1,16 @@
+2012-11-26  Tim Horton  
+
+PDFPlugin: Ctrl-click opens a link in a PDF in addition to context menu
+https://bugs.webkit.org/show_bug.cgi?id=103282
+
+
+Reviewed by Dan Bernstein.
+
+Don't send standard mouse events to PDFKit if a click will also show/hide the context menu.
+
+* WebProcess/Plugins/PDF/PDFPlugin.mm:
+(WebKit::PDFPlugin::handleMouseEvent):
+
 2012-11-26  Ryuan Choi  
 
 [EFL] Unreviewed build fix after r135767 without Tiled Backing Store


Modified: trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm (135794 => 135795)

--- trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2012-11-27 02:00:23 UTC (rev 135794)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2012-11-27 02:00:26 UTC (rev 135795)
@@ -523,6 +523,10 @@
 || IntRect(m_scrollCornerLayer.get().frame).contains(mousePosition))
 return false;
 
+// Right-clicks and Control-clicks always call handleContextMenuEvent as well.
+if (event.button() == WebMouseEvent::RightButton || (event.button() == WebMouseEvent::LeftButton && event.controlKey()))
+return true;
+
 NSEvent *nsEvent = nsEventForWebMouseEvent(event);
 
 switch (event.type()) {






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135794] trunk

2012-11-26 Thread dbates
Title: [135794] trunk








Revision 135794
Author dba...@webkit.org
Date 2012-11-26 18:00:23 -0800 (Mon, 26 Nov 2012)


Log Message
_javascript_ fails to handle String.replace() with large replacement string
https://bugs.webkit.org/show_bug.cgi?id=102956


Reviewed by Oliver Hunt.

Source/_javascript_Core: 

Fix an issue where we didn't check for overflow when computing the length
of the result of String.replace() with a large replacement string.

* runtime/StringPrototype.cpp:
(JSC::jsSpliceSubstringsWithSeparators):

LayoutTests: 

Add test to ensure that we handle string replacement with a large replacement string.

* fast/js/script-tests/string-replacement-outofmemory.js: Added.
(createStringWithRepeatedChar):
* fast/js/string-replacement-outofmemory-expected.txt: Added.
* fast/js/string-replacement-outofmemory.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/runtime/StringPrototype.cpp


Added Paths

trunk/LayoutTests/fast/js/script-tests/string-replacement-outofmemory.js
trunk/LayoutTests/fast/js/string-replacement-outofmemory-expected.txt
trunk/LayoutTests/fast/js/string-replacement-outofmemory.html




Diff

Modified: trunk/LayoutTests/ChangeLog (135793 => 135794)

--- trunk/LayoutTests/ChangeLog	2012-11-27 01:52:14 UTC (rev 135793)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 02:00:23 UTC (rev 135794)
@@ -1,3 +1,18 @@
+2012-11-26  Daniel Bates  
+
+_javascript_ fails to handle String.replace() with large replacement string
+https://bugs.webkit.org/show_bug.cgi?id=102956
+
+
+Reviewed by Oliver Hunt.
+
+Add test to ensure that we handle string replacement with a large replacement string.
+
+* fast/js/script-tests/string-replacement-outofmemory.js: Added.
+(createStringWithRepeatedChar):
+* fast/js/string-replacement-outofmemory-expected.txt: Added.
+* fast/js/string-replacement-outofmemory.html: Added.
+
 2012-11-26  Varun Jain  
 
 LongPress and LongTap gestures should start drag/drop and open context menu respectively.


Added: trunk/LayoutTests/fast/js/script-tests/string-replacement-outofmemory.js (0 => 135794)

--- trunk/LayoutTests/fast/js/script-tests/string-replacement-outofmemory.js	(rev 0)
+++ trunk/LayoutTests/fast/js/script-tests/string-replacement-outofmemory.js	2012-11-27 02:00:23 UTC (rev 135794)
@@ -0,0 +1,18 @@
+description(
+'This tests that string replacement with a large replacement string causes an out-of-memory exception. See  for more details.'
+);
+
+function createStringWithRepeatedChar(c, multiplicity) {
+while (c.length < multiplicity)
+c += c;
+c = c.substring(0, multiplicity);
+return c;
+}
+
+var x = "1";
+var y = "2";
+x = createStringWithRepeatedChar(x, 1 << 12);
+y = createStringWithRepeatedChar(y, (1 << 20) + 1);
+
+shouldThrow("x.replace(/\\d/g, y)", '"Error: Out of memory"');
+var successfullyParsed = true;


Added: trunk/LayoutTests/fast/js/string-replacement-outofmemory-expected.txt (0 => 135794)

--- trunk/LayoutTests/fast/js/string-replacement-outofmemory-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/js/string-replacement-outofmemory-expected.txt	2012-11-27 02:00:23 UTC (rev 135794)
@@ -0,0 +1,10 @@
+This tests that string replacement with a large replacement string causes an out-of-memory exception. See bug 102956 for more details.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS x.replace(/\d/g, y) threw exception Error: Out of memory.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+


Added: trunk/LayoutTests/fast/js/string-replacement-outofmemory.html (0 => 135794)

--- trunk/LayoutTests/fast/js/string-replacement-outofmemory.html	(rev 0)
+++ trunk/LayoutTests/fast/js/string-replacement-outofmemory.html	2012-11-27 02:00:23 UTC (rev 135794)
@@ -0,0 +1,10 @@
+
+
+
+

[webkit-changes] [135793] trunk/Source/WebCore

2012-11-26 Thread akling
Title: [135793] trunk/Source/WebCore








Revision 135793
Author akl...@apple.com
Date 2012-11-26 17:52:14 -0800 (Mon, 26 Nov 2012)


Log Message
Node: Remove IsSynchronizingSVGAttributesFlag.


Reviewed by Antti Koivisto.

Animated SVG attributes used to be synchronized by using DOM API which could use unwanted re-entrancy
via callbacks below Element::attributeChanged(). The "is synchronizing SVG attributes" flag was used
to protect against such re-entrancy.

These days, lazy attributes are synchronized using Element::setSynchronizedLazyAttribute() to avoid
issues like this. The flag does nothing, so we can just remove it.

* dom/Node.h:
(WebCore):
* svg/SVGElement.cpp:
(WebCore::SVGElement::attributeChanged):
(WebCore::SVGElement::updateAnimatedSVGAttribute):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/Node.h
trunk/Source/WebCore/svg/SVGElement.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135792 => 135793)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 01:50:21 UTC (rev 135792)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 01:52:14 UTC (rev 135793)
@@ -1,3 +1,23 @@
+2012-11-26  Andreas Kling  
+
+Node: Remove IsSynchronizingSVGAttributesFlag.
+
+
+Reviewed by Antti Koivisto.
+
+Animated SVG attributes used to be synchronized by using DOM API which could use unwanted re-entrancy
+via callbacks below Element::attributeChanged(). The "is synchronizing SVG attributes" flag was used
+to protect against such re-entrancy.
+
+These days, lazy attributes are synchronized using Element::setSynchronizedLazyAttribute() to avoid
+issues like this. The flag does nothing, so we can just remove it.
+
+* dom/Node.h:
+(WebCore):
+* svg/SVGElement.cpp:
+(WebCore::SVGElement::attributeChanged):
+(WebCore::SVGElement::updateAnimatedSVGAttribute):
+
 2012-11-26  Kentaro Hara  
 
 [V8] Refactor WorkerScriptController


Modified: trunk/Source/WebCore/dom/Node.h (135792 => 135793)

--- trunk/Source/WebCore/dom/Node.h	2012-11-27 01:50:21 UTC (rev 135792)
+++ trunk/Source/WebCore/dom/Node.h	2012-11-27 01:52:14 UTC (rev 135793)
@@ -98,7 +98,7 @@
 
 typedef int ExceptionCode;
 
-const int nodeStyleChangeShift = 19;
+const int nodeStyleChangeShift = 18;
 
 // SyntheticStyleChange means that we need to go through the entire style change logic even though
 // no style property has actually changed. It is used to restructure the tree when, for instance,
@@ -706,23 +706,22 @@
 IsParsingChildrenFinishedFlag = 1 << 15, // Element
 #if ENABLE(SVG)
 AreSVGAttributesValidFlag = 1 << 16, // Element
-IsSynchronizingSVGAttributesFlag = 1 << 17, // SVGElement
-HasSVGRareDataFlag = 1 << 18, // SVGElement
+HasSVGRareDataFlag = 1 << 17, // SVGElement
 #endif
 
 StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1),
 
-SelfOrAncestorHasDirAutoFlag = 1 << 21,
+SelfOrAncestorHasDirAutoFlag = 1 << 20,
 
-HasNameOrIsEditingTextFlag = 1 << 22,
+HasNameOrIsEditingTextFlag = 1 << 21,
 
-InNamedFlowFlag = 1 << 23,
-HasSyntheticAttrChildNodesFlag = 1 << 24,
-HasCustomCallbacksFlag = 1 << 25,
-HasScopedHTMLStyleChildFlag = 1 << 26,
-HasEventTargetDataFlag = 1 << 27,
-V8CollectableDuringMinorGCFlag = 1 << 28,
-IsInsertionPointFlag = 1 << 29,
+InNamedFlowFlag = 1 << 22,
+HasSyntheticAttrChildNodesFlag = 1 << 23,
+HasCustomCallbacksFlag = 1 << 24,
+HasScopedHTMLStyleChildFlag = 1 << 25,
+HasEventTargetDataFlag = 1 << 26,
+V8CollectableDuringMinorGCFlag = 1 << 27,
+IsInsertionPointFlag = 1 << 28,
 
 #if ENABLE(SVG)
 DefaultNodeFlags = IsParsingChildrenFinishedFlag | AreSVGAttributesValidFlag,
@@ -731,7 +730,7 @@
 #endif
 };
 
-// 2 bits remaining
+// 3 bits remaining
 
 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); } 
@@ -843,9 +842,6 @@
 bool areSVGAttributesValid() const { return getFlag(AreSVGAttributesValidFlag); }
 void setAreSVGAttributesValid() const { setFlag(AreSVGAttributesValidFlag); }
 void clearAreSVGAttributesValid() { clearFlag(AreSVGAttributesValidFlag); }
-bool isSynchronizingSVGAttributes() const { return getFlag(IsSynchronizingSVGAttributesFlag); }
-void setIsSynchronizingSVGAttributes() const { setFlag(IsSynchronizingSVGAttributesFlag); }
-void clearIsSynchronizingSVGAttributes() const { clearFlag(IsSynchronizingSVGAttributesFlag); }
 bool hasSVGRareData() const { return getFlag(HasSVGRareDataFlag); }
 void setHasSVGRareData() { setFlag(HasSVGRareDataFlag); }
 void clearHasSVGRareData() { clearFlag(HasSVGRareDataFlag); }


Modified: trunk/Source/WebCore/svg/SVGElement.cpp (135792 => 135793)

--

[webkit-changes] [135792] trunk/Source/WebCore

2012-11-26 Thread haraken
Title: [135792] trunk/Source/WebCore








Revision 135792
Author hara...@chromium.org
Date 2012-11-26 17:50:21 -0800 (Mon, 26 Nov 2012)


Log Message
[V8] Refactor WorkerScriptController
https://bugs.webkit.org/show_bug.cgi?id=103330

Reviewed by Adam Barth.

r135703 just moved methods from WorkerContextExecutionProxy
to WorkerScriptController. We should refactor the methods as a follow-up.

No tests. No change in behavior.

* bindings/v8/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::~WorkerScriptController):
(WebCore::WorkerScriptController::disposeContext):
(WebCore::WorkerScriptController::initializeContextIfNeeded):
(WebCore::WorkerScriptController::evaluate):
(WebCore::WorkerScriptController::disableEval):
* bindings/v8/WorkerScriptController.h:
(WorkerScriptController):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/bindings/v8/WorkerScriptController.cpp
trunk/Source/WebCore/bindings/v8/WorkerScriptController.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135791 => 135792)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 01:35:08 UTC (rev 135791)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 01:50:21 UTC (rev 135792)
@@ -1,3 +1,24 @@
+2012-11-26  Kentaro Hara  
+
+[V8] Refactor WorkerScriptController
+https://bugs.webkit.org/show_bug.cgi?id=103330
+
+Reviewed by Adam Barth.
+
+r135703 just moved methods from WorkerContextExecutionProxy
+to WorkerScriptController. We should refactor the methods as a follow-up.
+
+No tests. No change in behavior.
+
+* bindings/v8/WorkerScriptController.cpp:
+(WebCore::WorkerScriptController::~WorkerScriptController):
+(WebCore::WorkerScriptController::disposeContext):
+(WebCore::WorkerScriptController::initializeContextIfNeeded):
+(WebCore::WorkerScriptController::evaluate):
+(WebCore::WorkerScriptController::disableEval):
+* bindings/v8/WorkerScriptController.h:
+(WorkerScriptController):
+
 2012-11-26  Varun Jain  
 
 LongPress and LongTap gestures should start drag/drop and open context menu respectively.


Modified: trunk/Source/WebCore/bindings/v8/WorkerScriptController.cpp (135791 => 135792)

--- trunk/Source/WebCore/bindings/v8/WorkerScriptController.cpp	2012-11-27 01:35:08 UTC (rev 135791)
+++ trunk/Source/WebCore/bindings/v8/WorkerScriptController.cpp	2012-11-27 01:50:21 UTC (rev 135792)
@@ -79,19 +79,19 @@
 // See http://webkit.org/b/83104#c14 for why this is here.
 WebKit::Platform::current()->didStopWorkerRunLoop(WebKit::WebWorkerRunLoop(&m_workerContext->thread()->runLoop()));
 #endif
-dispose();
+disposeContext();
 V8PerIsolateData::dispose(m_isolate);
 m_isolate->Exit();
 m_isolate->Dispose();
 }
 
-void WorkerScriptController::dispose()
+void WorkerScriptController::disposeContext()
 {
 m_perContextData.clear();
 m_context.clear();
 }
 
-bool WorkerScriptController::initializeIfNeeded()
+bool WorkerScriptController::initializeContextIfNeeded()
 {
 if (!m_context.isEmpty())
 return true;
@@ -108,7 +108,7 @@
 
 m_perContextData = V8PerContextData::create(m_context.get());
 if (!m_perContextData->init()) {
-dispose();
+disposeContext();
 return false;
 }
 
@@ -124,7 +124,7 @@
 v8::Handle workerContextConstructor = m_perContextData->constructorForType(contextType);
 v8::Local jsWorkerContext = V8ObjectConstructor::newInstance(workerContextConstructor);
 if (jsWorkerContext.IsEmpty()) {
-dispose();
+disposeContext();
 return false;
 }
 
@@ -143,7 +143,7 @@
 
 v8::HandleScope handleScope;
 
-if (!initializeIfNeeded())
+if (!initializeContextIfNeeded())
 return ScriptValue();
 
 if (!m_disableEvalPending.isEmpty()) {
@@ -186,16 +186,6 @@
 return ScriptValue(result);
 }
 
-void WorkerScriptController::setEvalAllowed(bool enable, const String& errorMessage)
-{
-m_disableEvalPending = enable ? String() : errorMessage;
-}
-
-void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode)
-{
-evaluate(sourceCode, 0);
-}
-
 void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, ScriptValue* exception)
 {
 if (isExecutionForbidden())
@@ -244,7 +234,7 @@
 
 void WorkerScriptController::disableEval(const String& errorMessage)
 {
-setEvalAllowed(false, errorMessage);
+m_disableEvalPending = errorMessage;
 }
 
 void WorkerScriptController::setException(const ScriptValue& exception)


Modified: trunk/Source/WebCore/bindings/v8/WorkerScriptController.h (135791 => 135792)

--- trunk/Source/WebCore/bindings/v8/WorkerScriptController.h	2012-11-27 01:35:08 UTC (rev 135791)
+++ trunk/Source/WebCore/bindings/v8/WorkerScriptController.h	2012-11-27 01:50:21 UTC (rev 135792)
@@ -67,8 +67,7 @@
 
 WorkerContext* workerContext() { return m_workerContext; }
 
-void evaluate(const ScriptSourceCode&);
-v

[webkit-changes] [135791] trunk/Source/WebKit2

2012-11-26 Thread commit-queue
Title: [135791] trunk/Source/WebKit2








Revision 135791
Author commit-qu...@webkit.org
Date 2012-11-26 17:35:08 -0800 (Mon, 26 Nov 2012)


Log Message
[EFL] Unreviewed build fix after r135767 without Tiled Backing Store
https://bugs.webkit.org/show_bug.cgi?id=103320

Unreviewed build fix.

Patch by Ryuan Choi  on 2012-11-26

* WebProcess/Plugins/Plugin.cpp:
* WebProcess/Plugins/Plugin.h:
(WebCore):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135790 => 135791)

--- trunk/Source/WebKit2/ChangeLog	2012-11-27 01:09:31 UTC (rev 135790)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-27 01:35:08 UTC (rev 135791)
@@ -1,3 +1,14 @@
+2012-11-26  Ryuan Choi  
+
+[EFL] Unreviewed build fix after r135767 without Tiled Backing Store
+https://bugs.webkit.org/show_bug.cgi?id=103320
+
+Unreviewed build fix.
+
+* WebProcess/Plugins/Plugin.cpp:
+* WebProcess/Plugins/Plugin.h:
+(WebCore):
+
 2012-11-26  James Simonsen  
 
 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest


Modified: trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp (135790 => 135791)

--- trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp	2012-11-27 01:09:31 UTC (rev 135790)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp	2012-11-27 01:35:08 UTC (rev 135791)
@@ -27,6 +27,7 @@
 #include "Plugin.h"
 
 #include "WebCoreArgumentCoders.h"
+#include 
 
 using namespace WebCore;
 


Modified: trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h (135790 => 135791)

--- trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h	2012-11-27 01:09:31 UTC (rev 135790)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h	2012-11-27 01:35:08 UTC (rev 135791)
@@ -50,6 +50,7 @@
 namespace WebCore {
 class AffineTransform;
 class GraphicsContext;
+class IntPoint;
 class IntRect;
 class IntSize;
 class Scrollbar;






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135790] trunk/Source/WTF

2012-11-26 Thread fpizlo
Title: [135790] trunk/Source/WTF








Revision 135790
Author fpi...@apple.com
Date 2012-11-26 17:09:31 -0800 (Mon, 26 Nov 2012)


Log Message
DataLog to a file should work if there are multiple processes using WTF
https://bugs.webkit.org/show_bug.cgi?id=103323

Reviewed by Mark Hahnenberg.

Whereas before DataLog would open a file with the name you specified, now it'll open a file with the
name plus the PID appended to it. So if you are dealing with multiple processes running with DataLog
to a file enabled, you'll get multiple separate log files.

* wtf/DataLog.cpp:
(WTF::initializeLogFileOnce):

Modified Paths

trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/DataLog.cpp




Diff

Modified: trunk/Source/WTF/ChangeLog (135789 => 135790)

--- trunk/Source/WTF/ChangeLog	2012-11-27 00:56:30 UTC (rev 135789)
+++ trunk/Source/WTF/ChangeLog	2012-11-27 01:09:31 UTC (rev 135790)
@@ -1,3 +1,17 @@
+2012-11-26  Filip Pizlo  
+
+DataLog to a file should work if there are multiple processes using WTF
+https://bugs.webkit.org/show_bug.cgi?id=103323
+
+Reviewed by Mark Hahnenberg.
+
+Whereas before DataLog would open a file with the name you specified, now it'll open a file with the
+name plus the PID appended to it. So if you are dealing with multiple processes running with DataLog
+to a file enabled, you'll get multiple separate log files.
+
+* wtf/DataLog.cpp:
+(WTF::initializeLogFileOnce):
+
 2012-11-26  Zeno Albisser  
 
 [Qt] Fix the LLInt build on Mac


Modified: trunk/Source/WTF/wtf/DataLog.cpp (135789 => 135790)

--- trunk/Source/WTF/wtf/DataLog.cpp	2012-11-27 00:56:30 UTC (rev 135789)
+++ trunk/Source/WTF/wtf/DataLog.cpp	2012-11-27 01:09:31 UTC (rev 135790)
@@ -27,8 +27,13 @@
 #include "DataLog.h"
 #include 
 #include 
+#include 
 #include 
 
+#if OS(UNIX)
+#include 
+#endif
+
 #if OS(WINCE)
 #ifndef _IONBF
 #define _IONBF 0x0004
@@ -37,8 +42,9 @@
 
 #define DATA_LOG_TO_FILE 0
 
-// Uncomment to force logging to the given file regardless of what the environment variable says.
-// #define DATA_LOG_FILENAME "/tmp/WTFLog.txt"
+// Uncomment to force logging to the given file regardless of what the environment variable says. Note that
+// we will append "..txt" where  is the PID.
+#define DATA_LOG_FILENAME "/tmp/WTFLog"
 
 namespace WTF {
 
@@ -56,12 +62,14 @@
 #else
 const char* filename = getenv("WTF_DATA_LOG_FILENAME");
 #endif
+char actualFilename[1024];
+snprintf(actualFilename, sizeof(actualFilename), "%s.%d.txt", filename, getpid());
 if (filename) {
-FILE* rawFile = fopen(filename, "w");
+FILE* rawFile = fopen(actualFilename, "w");
 if (rawFile)
 file = new FilePrintStream(rawFile);
 else
-fprintf(stderr, "Warning: Could not open log file %s for writing.\n", filename);
+fprintf(stderr, "Warning: Could not open log file %s for writing.\n", actualFilename);
 }
 #endif // DATA_LOG_TO_FILE
 if (!file)






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135789] trunk

2012-11-26 Thread commit-queue
Title: [135789] trunk








Revision 135789
Author commit-qu...@webkit.org
Date 2012-11-26 16:56:30 -0800 (Mon, 26 Nov 2012)


Log Message
LongPress and LongTap gestures should start drag/drop and open context menu respectively.
https://bugs.webkit.org/show_bug.cgi?id=101545

Patch by Varun Jain  on 2012-11-26
Reviewed by Antonio Gomes.

For LongPress, we simulate drag by sending a mouse down and mouse drag
events. If a drag is not started (because maybe there is no draggable
element), then we show context menu instead (which is the current
behavior for LongPress). For LongTap, we use the existing functions that
LongPress uses to summon the context menu. LongPress initiated drag and
drop can be enabled/disabled by the platform using the Setting
touchDragDropEnabled which is disabled by default.

Source/WebCore:

Tests: fast/events/touch/gesture/context-menu-on-long-tap.html
   fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html

* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler):
(WebCore::EventHandler::clear):
(WebCore::EventHandler::handleMouseDraggedEvent):
(WebCore::EventHandler::handleGestureEvent):
(WebCore::EventHandler::handleGestureLongPress):
(WebCore::EventHandler::handleGestureLongTap):
(WebCore):
(WebCore::EventHandler::handleGestureForTextSelectionOrContextMenu):
(WebCore::EventHandler::adjustGesturePosition):
(WebCore::EventHandler::handleDrag):
* page/EventHandler.h:
(EventHandler):
* page/Settings.in:

Source/WebKit/chromium:

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setTouchDragDropEnabled):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):

Tools:

* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::EventSender):
(WebTestRunner::EventSender::gestureLongTap):
(WebTestRunner::EventSender::gestureEvent):
* DumpRenderTree/chromium/TestRunner/src/EventSender.h:
(EventSender):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::setTouchDragDropEnabled):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):

LayoutTests:

* fast/events/touch/gesture/context-menu-on-long-tap.html: Added.
* fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html: Added.
* platform/chromium/fast/events/touch/gesture/context-menu-on-long-tap-expected.txt: Added.
* platform/chromium/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag-expected.txt: Added.
* touchadjustment/touch-links-longpress-expected.txt:
* touchadjustment/touch-links-longpress.html:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/touchadjustment/touch-links-longpress-expected.txt
trunk/LayoutTests/touchadjustment/touch-links-longpress.html
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/page/EventHandler.cpp
trunk/Source/WebCore/page/EventHandler.h
trunk/Source/WebCore/page/Settings.in
trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/public/WebSettings.h
trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp
trunk/Source/WebKit/chromium/src/WebSettingsImpl.h
trunk/Tools/ChangeLog
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/EventSender.cpp
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/EventSender.h
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h


Added Paths

trunk/LayoutTests/fast/events/touch/gesture/context-menu-on-long-tap.html
trunk/LayoutTests/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag.html
trunk/LayoutTests/platform/chromium/fast/events/touch/gesture/context-menu-on-long-tap-expected.txt
trunk/LayoutTests/platform/chromium/fast/events/touch/gesture/long-press-on-draggable-element-triggers-drag-expected.txt




Diff

Modified: trunk/LayoutTests/ChangeLog (135788 => 135789)

--- trunk/LayoutTests/ChangeLog	2012-11-27 00:41:39 UTC (rev 135788)
+++ trunk/LayoutTests/ChangeLog	2012-11-27 00:56:30 UTC (rev 135789)
@@ -1,3 +1,25 @@
+2012-11-26  Varun Jain  
+
+LongPress and LongTap gestures should start drag/drop and open context menu respectively.
+https://bugs.webkit.org/show_bug.cgi?id=101545
+
+Reviewed by Antonio Gomes.
+
+For LongPress, we simulate drag by sending a mouse down and mouse drag
+events. If a drag is not started (because maybe there is no draggable
+element), then we show context menu instead (which is the current
+behavior for LongPress). For LongTap, we use the existing functions that
+LongPress uses to summon the context menu. LongPress initiated drag and
+drop can be enabled/disabled by the platform using the Setting
+touchDragDropEnabled which is disabled by default.
+
+* fast/events/touch/gesture/context-menu-on-long-tap.html: Added.
+* fast/events/touch/gesture/long-press-on-draggable-element-t

[webkit-changes] [135788] trunk/Source/WebCore

2012-11-26 Thread akling
Title: [135788] trunk/Source/WebCore








Revision 135788
Author akl...@apple.com
Date 2012-11-26 16:41:39 -0800 (Mon, 26 Nov 2012)


Log Message
RenderStyle: Move 'list-style-image' to rare inherited data.


Reviewed by Antti Koivisto.

list-style-image is not nearly common enough to merit a spot in StyleInheritedData.
Move it to StyleRareInheritedData.

134kB progression on Membuster3.

* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::diff):
(WebCore::RenderStyle::listStyleImage):
(WebCore::RenderStyle::setListStyleImage):
* rendering/style/StyleInheritedData.cpp:
(WebCore::StyleInheritedData::StyleInheritedData):
(WebCore::StyleInheritedData::operator==):
* rendering/style/StyleInheritedData.h:
(StyleInheritedData):
* rendering/style/StyleRareInheritedData.h:
* rendering/style/StyleRareInheritedData.cpp:
(SameSizeAsStyleRareInheritedData):
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
(WebCore::StyleRareInheritedData::operator==):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
trunk/Source/WebCore/rendering/style/StyleInheritedData.cpp
trunk/Source/WebCore/rendering/style/StyleInheritedData.h
trunk/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
trunk/Source/WebCore/rendering/style/StyleRareInheritedData.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135787 => 135788)

--- trunk/Source/WebCore/ChangeLog	2012-11-27 00:39:53 UTC (rev 135787)
+++ trunk/Source/WebCore/ChangeLog	2012-11-27 00:41:39 UTC (rev 135788)
@@ -1,3 +1,30 @@
+2012-11-26  Andreas Kling  
+
+RenderStyle: Move 'list-style-image' to rare inherited data.
+
+
+Reviewed by Antti Koivisto.
+
+list-style-image is not nearly common enough to merit a spot in StyleInheritedData.
+Move it to StyleRareInheritedData.
+
+134kB progression on Membuster3.
+
+* rendering/style/RenderStyle.cpp:
+(WebCore::RenderStyle::diff):
+(WebCore::RenderStyle::listStyleImage):
+(WebCore::RenderStyle::setListStyleImage):
+* rendering/style/StyleInheritedData.cpp:
+(WebCore::StyleInheritedData::StyleInheritedData):
+(WebCore::StyleInheritedData::operator==):
+* rendering/style/StyleInheritedData.h:
+(StyleInheritedData):
+* rendering/style/StyleRareInheritedData.h:
+* rendering/style/StyleRareInheritedData.cpp:
+(SameSizeAsStyleRareInheritedData):
+(WebCore::StyleRareInheritedData::StyleRareInheritedData):
+(WebCore::StyleRareInheritedData::operator==):
+
 2012-11-26  James Simonsen  
 
 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest


Modified: trunk/Source/WebCore/rendering/style/RenderStyle.cpp (135787 => 135788)

--- trunk/Source/WebCore/rendering/style/RenderStyle.cpp	2012-11-27 00:39:53 UTC (rev 135787)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.cpp	2012-11-27 00:41:39 UTC (rev 135788)
@@ -491,7 +491,8 @@
 || rareInheritedData->m_imageResolution != other->rareInheritedData->m_imageResolution
 #endif
 || rareInheritedData->m_lineSnap != other->rareInheritedData->m_lineSnap
-|| rareInheritedData->m_lineAlign != other->rareInheritedData->m_lineAlign)
+|| rareInheritedData->m_lineAlign != other->rareInheritedData->m_lineAlign
+|| rareInheritedData->listStyleImage != other->rareInheritedData->listStyleImage)
 return StyleDifferenceLayout;
 
 if (!rareInheritedData->shadowDataEquivalent(*other->rareInheritedData.get()))
@@ -507,7 +508,6 @@
 #endif
 
 if (inherited->line_height != other->inherited->line_height
-|| inherited->list_style_image != other->inherited->list_style_image
 || inherited->font != other->inherited->font
 || inherited->horizontal_border_spacing != other->inherited->horizontal_border_spacing
 || inherited->vertical_border_spacing != other->inherited->vertical_border_spacing
@@ -966,11 +966,11 @@
 return factor;
 }
 
-StyleImage* RenderStyle::listStyleImage() const { return inherited->list_style_image.get(); }
+StyleImage* RenderStyle::listStyleImage() const { return rareInheritedData->listStyleImage.get(); }
 void RenderStyle::setListStyleImage(PassRefPtr v)
 {
-if (inherited->list_style_image != v)
-inherited.access()->list_style_image = v;
+if (rareInheritedData->listStyleImage != v)
+rareInheritedData.access()->listStyleImage = v;
 }
 
 Color RenderStyle::color() const { return inherited->color; }


Modified: trunk/Source/WebCore/rendering/style/StyleInheritedData.cpp (135787 => 135788)

--- trunk/Source/WebCore/rendering/style/StyleInheritedData.cpp	2012-11-27 00:39:53 UTC (rev 135787)
+++ trunk/Source/WebCore/rendering/style/StyleInheritedData.cpp	2012-11-27 00:41:39 UTC (rev 135788)
@@ -23,7 +23,6 @@
 #include "StyleInheritedData.h"
 
 #include "RenderStyle.h"
-#include "StyleImage.h"
 
 namespace WebCore 

[webkit-changes] [135787] trunk/Source/WebKit/chromium

2012-11-26 Thread commit-queue
Title: [135787] trunk/Source/WebKit/chromium








Revision 135787
Author commit-qu...@webkit.org
Date 2012-11-26 16:39:53 -0800 (Mon, 26 Nov 2012)


Log Message
Add hasTouchEventhandlersAt to WebView API
https://bugs.webkit.org/show_bug.cgi?id=102541

Patch by Yusuf Ozuysal  on 2012-11-26
Reviewed by James Robinson.

Adds hasTouchEventHandlersAt to WebWidget API to check for touch event handlers at a
given point. This will be used to distinguish between events not processed by
touch event handlers and event not hitting any touch event handlers. Both are
returning the same ACK message currently. Default implementation returns true to
continue the same behavior as we currently have.

* public/WebWidget.h:
(WebWidget):
(WebKit::WebWidget::hasTouchEventHandlersAt):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::hasTouchEventHandlersAt):
(WebKit):
* src/WebViewImpl.h:
(WebViewImpl):

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/public/WebWidget.h
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
trunk/Source/WebKit/chromium/src/WebViewImpl.h




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135786 => 135787)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 00:17:49 UTC (rev 135786)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-27 00:39:53 UTC (rev 135787)
@@ -1,3 +1,25 @@
+2012-11-26  Yusuf Ozuysal  
+
+Add hasTouchEventhandlersAt to WebView API
+https://bugs.webkit.org/show_bug.cgi?id=102541
+
+Reviewed by James Robinson.
+
+Adds hasTouchEventHandlersAt to WebWidget API to check for touch event handlers at a
+given point. This will be used to distinguish between events not processed by
+touch event handlers and event not hitting any touch event handlers. Both are
+returning the same ACK message currently. Default implementation returns true to
+continue the same behavior as we currently have.
+
+* public/WebWidget.h:
+(WebWidget):
+(WebKit::WebWidget::hasTouchEventHandlersAt):
+* src/WebViewImpl.cpp:
+(WebKit::WebViewImpl::hasTouchEventHandlersAt):
+(WebKit):
+* src/WebViewImpl.h:
+(WebViewImpl):
+
 2012-11-26  James Simonsen  
 
 Consolidate FrameLoader::load() into one function taking a FrameLoadRequest


Modified: trunk/Source/WebKit/chromium/public/WebWidget.h (135786 => 135787)

--- trunk/Source/WebKit/chromium/public/WebWidget.h	2012-11-27 00:17:49 UTC (rev 135786)
+++ trunk/Source/WebKit/chromium/public/WebWidget.h	2012-11-27 00:39:53 UTC (rev 135787)
@@ -157,6 +157,9 @@
 // the event has been processed, false otherwise.
 virtual bool handleInputEvent(const WebInputEvent&) { return false; }
 
+// Check whether the given point hits any registered touch event handlers.
+virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
+
 // Called to inform the WebWidget that mouse capture was lost.
 virtual void mouseCaptureLost() { }
 


Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (135786 => 135787)

--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-11-27 00:17:49 UTC (rev 135786)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-11-27 00:39:53 UTC (rev 135787)
@@ -1274,6 +1274,11 @@
 m_client->hasTouchEventHandlers(hasTouchHandlers);
 }
 
+bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point)
+{
+return true;
+}
+
 #if !OS(DARWIN)
 // Mac has no way to open a context menu based on a keyboard event.
 bool WebViewImpl::sendContextMenuEvent(const WebKeyboardEvent& event)


Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.h (135786 => 135787)

--- trunk/Source/WebKit/chromium/src/WebViewImpl.h	2012-11-27 00:17:49 UTC (rev 135786)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.h	2012-11-27 00:39:53 UTC (rev 135787)
@@ -152,6 +152,7 @@
 virtual void setNeedsRedraw();
 virtual bool isInputThrottled() const;
 virtual bool handleInputEvent(const WebInputEvent&);
+virtual bool hasTouchEventHandlersAt(const WebPoint&);
 virtual void mouseCaptureLost();
 virtual void setFocus(bool enable);
 virtual bool setComposition(






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135785] branches/safari-536.28-branch/Source

2012-11-26 Thread lforschler
Title: [135785] branches/safari-536.28-branch/Source








Revision 135785
Author lforsch...@apple.com
Date 2012-11-26 15:57:43 -0800 (Mon, 26 Nov 2012)


Log Message
Merged r134327.  

Modified Paths

branches/safari-536.28-branch/Source/WebCore/ChangeLog
branches/safari-536.28-branch/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
branches/safari-536.28-branch/Source/WebKit/win/ChangeLog
branches/safari-536.28-branch/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp




Diff

Modified: branches/safari-536.28-branch/Source/WebCore/ChangeLog (135784 => 135785)

--- branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 23:57:29 UTC (rev 135784)
+++ branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 23:57:43 UTC (rev 135785)
@@ -1,3 +1,23 @@
+2012-11-26  Lucas Forschler  
+
+Merge r134327
+
+2012-11-12  Roger Fong  
+
+Web Inspector: Fix docking behaviour on Windows.
+https://bugs.webkit.org/show_bug.cgi?id=101978
+
+Reviewed by Brian Weinstein.
+
+There are a number of problems with docking behaviour on Windows.
+For starters, it does not ever constrain the inspector's size properly while docked.
+It also does not properly set the whether or not the inspector can be docked/undocked.
+This patch fixes both issues.
+
+* inspector/InspectorFrontendClientLocal.cpp:
+(WebCore::InspectorFrontendClientLocal::frontendLoaded):
+Switch order of calling bringToFront and setDockingUnavailable.
+
 2012-11-26  Simon Fraser  
 
 


Modified: branches/safari-536.28-branch/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (135784 => 135785)

--- branches/safari-536.28-branch/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp	2012-11-26 23:57:29 UTC (rev 135784)
+++ branches/safari-536.28-branch/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp	2012-11-26 23:57:43 UTC (rev 135785)
@@ -140,8 +140,11 @@
 
 void InspectorFrontendClientLocal::frontendLoaded()
 {
+// Call setDockingUnavailable before bringToFront. If we display the inspector window via bringToFront first it causes the call to canAttachWindow to return the wrong result on Windows.
+// Calling bringToFront first causes the visibleHeight of the inspected page to always return 0 immediately after. 
+// Thus if we call canAttachWindow first we can avoid this problem. This change does not cause any regressions on Mac.
+setDockingUnavailable(!canAttachWindow());
 bringToFront();
-setDockingUnavailable(!canAttachWindow());
 m_frontendLoaded = true;
 for (Vector::iterator it = m_evaluateOnLoad.begin(); it != m_evaluateOnLoad.end(); ++it)
 evaluateOnLoad(*it);


Modified: branches/safari-536.28-branch/Source/WebKit/win/ChangeLog (135784 => 135785)

--- branches/safari-536.28-branch/Source/WebKit/win/ChangeLog	2012-11-26 23:57:29 UTC (rev 135784)
+++ branches/safari-536.28-branch/Source/WebKit/win/ChangeLog	2012-11-26 23:57:43 UTC (rev 135785)
@@ -1,3 +1,25 @@
+2012-11-26  Lucas Forschler  
+
+Merge r134327
+
+2012-11-12  Roger Fong  
+
+Web Inspector: Fix docking behaviour on Windows.
+https://bugs.webkit.org/show_bug.cgi?id=101978
+
+Reviewed by Brian Weinstein.
+
+There are a number of problems with docking behaviour on Windows.
+For starters, it does not ever constrain the inspector's size properly while docked.
+It also does not properly set the whether or not the inspector can be docked/undocked.
+This patch fixes both issues.
+
+* WebCoreSupport/WebInspectorClient.cpp:
+(WebInspectorFrontendClient::frontendLoaded): 
+(WebInspectorFrontendClient::attachWindow):
+Call restoreAttachedWindowHeight so that when first loading or reattaching the inspector,
+we resize the inspector window properly.
+
 2012-08-02  Lucas Forschler  
 
 Merge 122676


Modified: branches/safari-536.28-branch/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp (135784 => 135785)

--- branches/safari-536.28-branch/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp	2012-11-26 23:57:29 UTC (rev 135784)
+++ branches/safari-536.28-branch/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp	2012-11-26 23:57:43 UTC (rev 135785)
@@ -253,6 +253,9 @@
 {
 InspectorFrontendClientLocal::frontendLoaded();
 
+if (m_attached)
+restoreAttachedWindowHeight();
+
 setAttachedWindow(m_attached);
 }
 
@@ -289,6 +292,13 @@
 m_inspectorClient->setInspectorStartsAttached(true);
 
 closeWindowWithoutNotifications();
+// We need to set the attached window's height before we actually attach the window.
+// Make sure that m_attached is true so that calling setAttachedWindowHeight from restoreAttachedWindowHeight doesn't return early. 
+m_attached = true;
+// Immediately

[webkit-changes] [135784] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135784] trunk/Source/WebCore








Revision 135784
Author commit-qu...@webkit.org
Date 2012-11-26 15:57:29 -0800 (Mon, 26 Nov 2012)


Log Message
[BlackBerry] Stop sending touch events to plugins.
https://bugs.webkit.org/show_bug.cgi?id=103188

Patch by Genevieve Mak  on 2012-11-24
Reviewed by Rob Buis.

Reviewed internally by Jeff Rogers and Mike Lattanzio.
No tests required.
PR #248605

* plugins/blackberry/PluginViewBlackBerry.cpp:
(WebCore::PluginView::handleTouchEvent):
(WebCore::PluginView::handleMouseEvent):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135783 => 135784)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 23:53:46 UTC (rev 135783)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 23:57:29 UTC (rev 135784)
@@ -1,3 +1,18 @@
+2012-11-24 Genevieve Mak 
+
+[BlackBerry] Stop sending touch events to plugins.
+https://bugs.webkit.org/show_bug.cgi?id=103188
+
+Reviewed by Rob Buis.
+
+Reviewed internally by Jeff Rogers and Mike Lattanzio.
+No tests required.
+PR #248605
+
+* plugins/blackberry/PluginViewBlackBerry.cpp:
+(WebCore::PluginView::handleTouchEvent):
+(WebCore::PluginView::handleMouseEvent):
+
 2012-11-26  Adenilson Cavalcanti  
 
 Removing unnecessary friend classes in RenderObject: LayoutRepainter, RenderSVGContainer


Modified: trunk/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp (135783 => 135784)

--- trunk/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp	2012-11-26 23:53:46 UTC (rev 135783)
+++ trunk/Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp	2012-11-26 23:57:29 UTC (rev 135784)
@@ -490,22 +490,15 @@
 npTouchEvent.type = TOUCH_EVENT_DOUBLETAP;
 else if (event->isTouchHold())
 npTouchEvent.type = TOUCH_EVENT_TOUCHHOLD;
-else if (event->type() == eventNames().touchstartEvent)
-npTouchEvent.type = TOUCH_EVENT_START;
-else if (event->type() == eventNames().touchendEvent)
-npTouchEvent.type = TOUCH_EVENT_END;
-else if (event->type() == eventNames().touchmoveEvent)
-npTouchEvent.type = TOUCH_EVENT_MOVE;
 else if (event->type() == eventNames().touchcancelEvent)
 npTouchEvent.type = TOUCH_EVENT_CANCEL;
-else {
-ASSERT_NOT_REACHED();
+else
 return;
-}
 
 TouchList* touchList;
-// The touches list is empty if in a touch end event. Use changedTouches instead.
-if (npTouchEvent.type == TOUCH_EVENT_DOUBLETAP || npTouchEvent.type == TOUCH_EVENT_END)
+// The touches list is empty if in a touch end event.
+// Since DoubleTap is ususally a TouchEnd Use changedTouches instead.
+if (npTouchEvent.type == TOUCH_EVENT_DOUBLETAP)
 touchList = event->changedTouches();
 else
 touchList = event->touches();
@@ -536,13 +529,6 @@
 
 if (dispatchNPEvent(npEvent))
 event->setDefaultHandled();
-else if (npTouchEvent.type == TOUCH_EVENT_DOUBLETAP) {
-// Send Touch Up if double tap not consumed
-npTouchEvent.type = TOUCH_EVENT_END;
-npEvent.data = ""
-if (dispatchNPEvent(npEvent))
-event->setDefaultHandled();
-}
 }
 
 void PluginView::handleMouseEvent(MouseEvent* event)
@@ -559,19 +545,17 @@
 mouseEvent.x = event->offsetX();
 mouseEvent.y = event->offsetY();
 
-if (event->type() == eventNames().mousedownEvent) {
+if (event->type() == eventNames().mousedownEvent)
 mouseEvent.type = MOUSE_BUTTON_DOWN;
-parentFrame()->eventHandler()->setCapturingMouseEventsNode(node());
-} else if (event->type() == eventNames().mousemoveEvent)
+else if (event->type() == eventNames().mousemoveEvent)
 mouseEvent.type = MOUSE_MOTION;
 else if (event->type() == eventNames().mouseoutEvent)
 mouseEvent.type = MOUSE_OUTBOUND;
 else if (event->type() == eventNames().mouseoverEvent)
 mouseEvent.type = MOUSE_OVER;
-else if (event->type() == eventNames().mouseupEvent) {
+else if (event->type() == eventNames().mouseupEvent)
 mouseEvent.type = MOUSE_BUTTON_UP;
-parentFrame()->eventHandler()->setCapturingMouseEventsNode(0);
-} else
+else
 return;
 
 mouseEvent.button = event->button();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135783] trunk/LayoutTests

2012-11-26 Thread roger_fong
Title: [135783] trunk/LayoutTests








Revision 135783
Author roger_f...@apple.com
Date 2012-11-26 15:53:46 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed. Skipping some compositing/tiling tests on Windows because tiled backing is not supported.
Tests skipped:
compositing/tiling/rotated-tiled-preserve3d-clamped.html
compositing/tiling/rotated-tiled-clamped.html

* platform/win/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/win/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135782 => 135783)

--- trunk/LayoutTests/ChangeLog	2012-11-26 23:49:36 UTC (rev 135782)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 23:53:46 UTC (rev 135783)
@@ -1,3 +1,12 @@
+2012-11-26  Roger Fong  
+
+Unreviewed. Skipping some compositing/tiling tests on Windows because tiled backing is not supported.
+Tests skipped:
+compositing/tiling/rotated-tiled-preserve3d-clamped.html
+compositing/tiling/rotated-tiled-clamped.html
+
+* platform/win/TestExpectations:
+
 2012-11-26  Robert Kroeger  
 
 Unreviewed gardening: css3/filters/custom/custom-filter-transforms-animation.html


Modified: trunk/LayoutTests/platform/win/TestExpectations (135782 => 135783)

--- trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 23:49:36 UTC (rev 135782)
+++ trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 23:53:46 UTC (rev 135783)
@@ -2435,6 +2435,10 @@
 fast/css3-text/css3-text-align-last/getComputedStyle/getComputedStyle-text-align-last.html
 fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-line.html
 
-#ACCELERATED_OVERFLOW_SCROLLING is disabled on Windows
+# ACCELERATED_OVERFLOW_SCROLLING is disabled on Windows
 compositing/overflow/scrolling-without-painting.html
 compositing/overflow/updating-scrolling-content.html
+
+# Skip some compositing/tiling tests after r133056
+compositing/tiling/rotated-tiled-preserve3d-clamped.html
+compositing/tiling/rotated-tiled-clamped.html






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135781] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135781] trunk/LayoutTests








Revision 135781
Author rjkro...@chromium.org
Date 2012-11-26 15:45:36 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed gardening: css3/filters/custom/custom-filter-transforms-animation.html
times out intermittently.
https://bugs.webkit.org/show_bug.cgi?id=103308

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135780 => 135781)

--- trunk/LayoutTests/ChangeLog	2012-11-26 23:38:43 UTC (rev 135780)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 23:45:36 UTC (rev 135781)
@@ -1,5 +1,13 @@
 2012-11-26  Robert Kroeger  
 
+Unreviewed gardening: css3/filters/custom/custom-filter-transforms-animation.html
+times out intermittently.
+https://bugs.webkit.org/show_bug.cgi?id=103308
+
+* platform/chromium/TestExpectations:
+
+2012-11-26  Robert Kroeger  
+
 Unreviewed gardening: failure in fast/text/atsui-small-caps-punctuation-size.html
 https://bugs.webkit.org/show_bug.cgi?id=103148
 


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135780 => 135781)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:38:43 UTC (rev 135780)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:45:36 UTC (rev 135781)
@@ -4249,3 +4249,4 @@
 webkit.org/b/103093 [ Lion SnowLeopard ] media/remove-from-document.html [ Crash Pass ]
 webkit.org/b/103299 [ Linux Mac Win ] fast/dom/shadow/shadow-dom-event-dispatching.html [ Failure Pass ]
 webkit.org/b/103148 [ Linux Win ] fast/text/atsui-small-caps-punctuation-size.html [ ImageOnlyFailure Failure Pass ]
+webkit.org/b/103308 [ SnowLeopard Lion ] css3/filters/custom/custom-filter-transforms-animation.html [ Pass Timeout ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135780] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135780] trunk/LayoutTests








Revision 135780
Author rjkro...@chromium.org
Date 2012-11-26 15:38:43 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed gardening: failure in fast/text/atsui-small-caps-punctuation-size.html
https://bugs.webkit.org/show_bug.cgi?id=103148

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135779 => 135780)

--- trunk/LayoutTests/ChangeLog	2012-11-26 23:27:57 UTC (rev 135779)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 23:38:43 UTC (rev 135780)
@@ -1,5 +1,12 @@
 2012-11-26  Robert Kroeger  
 
+Unreviewed gardening: failure in fast/text/atsui-small-caps-punctuation-size.html
+https://bugs.webkit.org/show_bug.cgi?id=103148
+
+* platform/chromium/TestExpectations:
+
+2012-11-26  Robert Kroeger  
+
 Unreviewed gardening: failure in http/tests/media/pdf-served-as-pdf.html
 https://bugs.webkit.org/show_bug.cgi?id=103093
 


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135779 => 135780)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:27:57 UTC (rev 135779)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:38:43 UTC (rev 135780)
@@ -4248,3 +4248,4 @@
 webkit.org/b/103183 [ Win7 SnowLeopard ] media/video-seek-past-end-playing.html [ Pass Crash ]
 webkit.org/b/103093 [ Lion SnowLeopard ] media/remove-from-document.html [ Crash Pass ]
 webkit.org/b/103299 [ Linux Mac Win ] fast/dom/shadow/shadow-dom-event-dispatching.html [ Failure Pass ]
+webkit.org/b/103148 [ Linux Win ] fast/text/atsui-small-caps-punctuation-size.html [ ImageOnlyFailure Failure Pass ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135779] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135779] trunk/Source/WebCore








Revision 135779
Author commit-qu...@webkit.org
Date 2012-11-26 15:27:57 -0800 (Mon, 26 Nov 2012)


Log Message
Removing unnecessary friend classes in RenderObject: LayoutRepainter, RenderSVGContainer
https://bugs.webkit.org/show_bug.cgi?id=103164

Patch by Adenilson Cavalcanti  on 2012-11-26
Reviewed by Simon Fraser.

Removing some of classes marked as friend of RenderObject. This patch solves this issue
for 2 classes: RenderSVGContainer (that is derived from RenderObject) and LayoutRepainter
(that accesses one const member function in RenderObject that is now made public).

No new tests, no changes in functionality.

* rendering/RenderObject.h:
(RenderObject):
(WebCore::RenderObject::outlineBoundsForRepaint):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/rendering/RenderObject.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135778 => 135779)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 23:18:55 UTC (rev 135778)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 23:27:57 UTC (rev 135779)
@@ -1,3 +1,20 @@
+2012-11-26  Adenilson Cavalcanti  
+
+Removing unnecessary friend classes in RenderObject: LayoutRepainter, RenderSVGContainer
+https://bugs.webkit.org/show_bug.cgi?id=103164
+
+Reviewed by Simon Fraser.
+
+Removing some of classes marked as friend of RenderObject. This patch solves this issue
+for 2 classes: RenderSVGContainer (that is derived from RenderObject) and LayoutRepainter
+(that accesses one const member function in RenderObject that is now made public).
+
+No new tests, no changes in functionality.
+
+* rendering/RenderObject.h:
+(RenderObject):
+(WebCore::RenderObject::outlineBoundsForRepaint):
+
 2012-11-26  Jon Lee  
 
 Pass clicks through to the restarted plugin


Modified: trunk/Source/WebCore/rendering/RenderObject.h (135778 => 135779)

--- trunk/Source/WebCore/rendering/RenderObject.h	2012-11-26 23:18:55 UTC (rev 135778)
+++ trunk/Source/WebCore/rendering/RenderObject.h	2012-11-26 23:27:57 UTC (rev 135779)
@@ -155,11 +155,9 @@
 
 // Base class for all rendering tree objects.
 class RenderObject : public CachedImageClient {
-friend class LayoutRepainter;
 friend class RenderBlock;
 friend class RenderLayer;
 friend class RenderObjectChildList;
-friend class RenderSVGContainer;
 public:
 // Anonymous objects should pass the document as their node, and they will then automatically be
 // marked as anonymous in the constructor.
@@ -811,6 +809,7 @@
 IntRect pixelSnappedAbsoluteClippedOverflowRect() const;
 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject* repaintContainer) const;
 virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const;
+virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*repaintContainer*/, const RenderGeometryMap* = 0) const { return LayoutRect(); }
 
 // Given a rect in the object's coordinate space, compute a rect suitable for repainting
 // that rect in view coordinates.
@@ -980,8 +979,6 @@
 virtual void willBeDestroyed();
 void arenaDelete(RenderArena*, void* objectBase);
 
-virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*repaintContainer*/, const RenderGeometryMap* = 0) const { return LayoutRect(); }
-
 virtual bool canBeReplacedWithInlineRunIn() const;
 
 virtual void insertedIntoTree();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135778] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135778] trunk/LayoutTests








Revision 135778
Author rjkro...@chromium.org
Date 2012-11-26 15:18:55 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed gardening: failure in http/tests/media/pdf-served-as-pdf.html
https://bugs.webkit.org/show_bug.cgi?id=103093

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135777 => 135778)

--- trunk/LayoutTests/ChangeLog	2012-11-26 23:12:49 UTC (rev 135777)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 23:18:55 UTC (rev 135778)
@@ -1,5 +1,12 @@
 2012-11-26  Robert Kroeger  
 
+Unreviewed gardening: failure in http/tests/media/pdf-served-as-pdf.html
+https://bugs.webkit.org/show_bug.cgi?id=103093
+
+* platform/chromium/TestExpectations:
+
+2012-11-26  Robert Kroeger  
+
 Unreviewed gardening: updated TextExpecations for failing
 fast/dom/shadow/shadow-dom-event-dispatching.html
 https://bugs.webkit.org/show_bug.cgi?id=103299


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135777 => 135778)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:12:49 UTC (rev 135777)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:18:55 UTC (rev 135778)
@@ -3868,7 +3868,7 @@
 crbug.com/145590 [ Android ] http/tests/media/media-source/video-media-source-seek.html [ Failure ]
 crbug.com/145590 [ Android ] http/tests/media/media-source/video-media-source-sourcebufferlist-crash.html [ Timeout ]
 crbug.com/145590 [ Android ] http/tests/media/media-source/video-media-source-state-changes.html [ Failure ]
-crbug.com/145590 [ Android ] http/tests/media/pdf-served-as-pdf.html [ Failure ]
+crbug.com/145590 [ Android Mac Win Linux ] http/tests/media/pdf-served-as-pdf.html [ Failure Pass Crash Timeout ]
 crbug.com/145590 [ Android ] http/tests/media/text-served-as-text.html [ Failure ]
 crbug.com/145590 [ Android ] http/tests/media/video-error-abort.html [ Failure ]
 crbug.com/145590 [ Android ] http/tests/media/video-load-suspend.html [ Timeout ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135777] branches/safari-536.28-branch/Source/WebCore

2012-11-26 Thread simon . fraser
Title: [135777] branches/safari-536.28-branch/Source/WebCore








Revision 135777
Author simon.fra...@apple.com
Date 2012-11-26 15:12:49 -0800 (Mon, 26 Nov 2012)


Log Message

Merge r135746

2012-11-26  Simon Fraser  

Optimize layer updates after scrolling
https://bugs.webkit.org/show_bug.cgi?id=102635

Reviewed by Sam Weinig.

updateLayerPositionsAfterScroll() previously unconditionally cleared clip
rects, and recomputed repaint rects too often. Recomputing both of these
can be very expensive, as they involve tree walks up to the root.

We can optimize layer updates after document scrolling by only clearing clip
rects, and recomputing repaint rects, if we encounter a fixed- or sticky-position
element. For overflow scroll, we have to clear clip rects and recompute repaint rects.

* page/FrameView.cpp:
(WebCore::FrameView::repaintFixedElementsAfterScrolling): Call updateLayerPositionsAfterDocumentScroll().
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateLayerPositions): Call clearClipRects() because
updateLayerPosition() no longer does.
(WebCore::RenderLayer::updateLayerPositionsAfterDocumentScroll): Version of updateLayerPositionsAfterScroll()
that is for document scrolls. It has no need to push layers to the geometry map.
(WebCore::RenderLayer::updateLayerPositionsAfterOverflowScroll): Pushes layers to the geometry map,
and calls updateLayerPositionsAfterScroll() with the IsOverflowScroll flag.
(WebCore::RenderLayer::updateLayerPositionsAfterScroll): Set the HasChangedAncestor flag
if our location changed, and use that as a hint to clear cached rects. Be more conservative
than before about when to clear cached clip rects.
(WebCore::RenderLayer::updateLayerPosition):  Move responsibility for calling
clearClipRects() ouf of this function and into callers.
(The one caller outside RenderLayer will be removed via bug 102624).
Return a bool indicating whether our position changed.
(WebCore::RenderLayer::scrollTo): Call updateLayerPositionsAfterOverflowScroll().
(WebCore::RenderLayer::updateClipRects): Added some #ifdeffed out code that is useful
to verify that cached clips are correct; it's too slow to leave enabled in debug builds.
* rendering/RenderLayer.h:
(WebCore::RenderLayer::setLocation): Change to take a LayoutPoint, rather than separate
x and y.

Modified Paths

branches/safari-536.28-branch/Source/WebCore/ChangeLog
branches/safari-536.28-branch/Source/WebCore/page/FrameView.cpp
branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.cpp
branches/safari-536.28-branch/Source/WebCore/rendering/RenderLayer.h




Diff

Modified: branches/safari-536.28-branch/Source/WebCore/ChangeLog (135776 => 135777)

--- branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 23:12:43 UTC (rev 135776)
+++ branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 23:12:49 UTC (rev 135777)
@@ -1,5 +1,48 @@
 2012-11-26  Simon Fraser  
 
+
+Merge r135746
+
+2012-11-26  Simon Fraser  
+
+Optimize layer updates after scrolling
+https://bugs.webkit.org/show_bug.cgi?id=102635
+
+Reviewed by Sam Weinig.
+
+updateLayerPositionsAfterScroll() previously unconditionally cleared clip
+rects, and recomputed repaint rects too often. Recomputing both of these
+can be very expensive, as they involve tree walks up to the root.
+
+We can optimize layer updates after document scrolling by only clearing clip
+rects, and recomputing repaint rects, if we encounter a fixed- or sticky-position
+element. For overflow scroll, we have to clear clip rects and recompute repaint rects.
+
+* page/FrameView.cpp:
+(WebCore::FrameView::repaintFixedElementsAfterScrolling): Call updateLayerPositionsAfterDocumentScroll().
+* rendering/RenderLayer.cpp:
+(WebCore::RenderLayer::updateLayerPositions): Call clearClipRects() because
+updateLayerPosition() no longer does.
+(WebCore::RenderLayer::updateLayerPositionsAfterDocumentScroll): Version of updateLayerPositionsAfterScroll()
+that is for document scrolls. It has no need to push layers to the geometry map.
+(WebCore::RenderLayer::updateLayerPositionsAfterOverflowScroll): Pushes layers to the geometry map,
+and calls updateLayerPositionsAfterScroll() with the IsOverflowScroll flag.
+(WebCore::RenderLayer::updateLayerPositionsAfterScroll): Set the HasChangedAncestor flag
+if our location changed, and use that as a hint to clear cached rects. Be more conservative
+than before about when to clear cached clip rects.
+(WebCore::RenderLayer::updateLayerPosition):  Move responsibility for calling
+clearClipRects() ouf of this functi

[webkit-changes] [135775] trunk/Source/WebKit/blackberry

2012-11-26 Thread commit-queue
Title: [135775] trunk/Source/WebKit/blackberry








Revision 135775
Author commit-qu...@webkit.org
Date 2012-11-26 15:07:35 -0800 (Mon, 26 Nov 2012)


Log Message
[BlackBerry] Form controls don't show pressed state.
https://bugs.webkit.org/show_bug.cgi?id=103292

Patch by Genevieve Mak  on 2012-11-26
Reviewed by Rob Buis.

Reviewed internally by Eli Fidler and Mike Lattanzio.
We weren't sending touch events to webpages unless they
had JS touch event listeners which form controls don't have.
Now send them always and do a little cleanup.
PR #249791

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
(BlackBerry::WebKit::WebPage::touchEvent):
* Api/WebPageClient.h:
* Api/WebPage_p.h:
(WebPagePrivate):
* WebCoreSupport/ChromeClientBlackBerry.cpp:
(WebCore::ChromeClientBlackBerry::needTouchEvents):

Modified Paths

trunk/Source/WebKit/blackberry/Api/WebPage.cpp
trunk/Source/WebKit/blackberry/Api/WebPageClient.h
trunk/Source/WebKit/blackberry/Api/WebPage_p.h
trunk/Source/WebKit/blackberry/ChangeLog
trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp




Diff

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (135774 => 135775)

--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-11-26 23:02:49 UTC (rev 135774)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-11-26 23:07:35 UTC (rev 135775)
@@ -372,7 +372,6 @@
 , m_overflowExceedsContentsSize(false)
 , m_resetVirtualViewportOnCommitted(true)
 , m_shouldUseFixedDesktopMode(false)
-, m_needTouchEvents(false)
 , m_preventIdleDimmingCount(0)
 #if ENABLE(TOUCH_EVENTS)
 , m_preventDefaultOnTouchStart(false)
@@ -4010,7 +4009,7 @@
 
 bool handled = false;
 
-if (d->m_needTouchEvents && !event.m_type != Platform::TouchEvent::TouchInjected)
+if (!event.m_type != Platform::TouchEvent::TouchInjected)
 handled = d->m_mainFrame->eventHandler()->handleTouchEvent(PlatformTouchEvent(&tEvent));
 
 if (d->m_preventDefaultOnTouchStart) {
@@ -5918,11 +5917,6 @@
 return d->m_page->settings()->webGLEnabled();
 }
 
-void WebPagePrivate::setNeedTouchEvents(bool value)
-{
-m_needTouchEvents = value;
-}
-
 void WebPagePrivate::frameUnloaded(const Frame* frame)
 {
 m_inputHandler->frameUnloaded(frame);


Modified: trunk/Source/WebKit/blackberry/Api/WebPageClient.h (135774 => 135775)

--- trunk/Source/WebKit/blackberry/Api/WebPageClient.h	2012-11-26 23:02:49 UTC (rev 135774)
+++ trunk/Source/WebKit/blackberry/Api/WebPageClient.h	2012-11-26 23:07:35 UTC (rev 135775)
@@ -103,7 +103,6 @@
 virtual void notifyRunLayoutTestsFinished() = 0;
 
 virtual void notifyInRegionScrollableAreasChanged(const std::vector&) = 0;
-virtual void notifyNoMouseMoveOrTouchMoveHandlers() = 0;
 
 virtual void notifyDocumentOnLoad(bool) = 0;
 


Modified: trunk/Source/WebKit/blackberry/Api/WebPage_p.h (135774 => 135775)

--- trunk/Source/WebKit/blackberry/Api/WebPage_p.h	2012-11-26 23:02:49 UTC (rev 135774)
+++ trunk/Source/WebKit/blackberry/Api/WebPage_p.h	2012-11-26 23:07:35 UTC (rev 135775)
@@ -490,7 +490,6 @@
 bool m_overflowExceedsContentsSize;
 bool m_resetVirtualViewportOnCommitted;
 bool m_shouldUseFixedDesktopMode;
-bool m_needTouchEvents;
 int m_preventIdleDimmingCount;
 
 #if ENABLE(TOUCH_EVENTS)


Modified: trunk/Source/WebKit/blackberry/ChangeLog (135774 => 135775)

--- trunk/Source/WebKit/blackberry/ChangeLog	2012-11-26 23:02:49 UTC (rev 135774)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-11-26 23:07:35 UTC (rev 135775)
@@ -1,3 +1,25 @@
+2012-11-26  Genevieve Mak  
+
+[BlackBerry] Form controls don't show pressed state.
+https://bugs.webkit.org/show_bug.cgi?id=103292
+
+Reviewed by Rob Buis.
+
+Reviewed internally by Eli Fidler and Mike Lattanzio.
+We weren't sending touch events to webpages unless they
+had JS touch event listeners which form controls don't have.
+Now send them always and do a little cleanup.
+PR #249791
+
+* Api/WebPage.cpp:
+(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
+(BlackBerry::WebKit::WebPage::touchEvent):
+* Api/WebPageClient.h:
+* Api/WebPage_p.h:
+(WebPagePrivate):
+* WebCoreSupport/ChromeClientBlackBerry.cpp:
+(WebCore::ChromeClientBlackBerry::needTouchEvents):
+
 2012-11-26  Nima Ghanavatian  
 
 [BlackBerry] Null check calls associated with retrieving the caret rect.


Modified: trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp (135774 => 135775)

--- trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp	2012-11-26 23:02:49 UTC (rev 135774)
+++ trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp	2012-11-26 23:07:35 UTC (rev 135775)
@@ -656,7 +656,6 @@
 #if ENABLE(TOUCH_EVENTS)
 void ChromeClientBlackBerry::needTouchEvents(bool value)
 {
-m_webPagePrivate->setNeedTouchEvents(value);
 }
 #endif
 






__

[webkit-changes] [135774] branches/chromium/1312/Source

2012-11-26 Thread tony
Title: [135774] branches/chromium/1312/Source








Revision 135774
Author t...@chromium.org
Date 2012-11-26 15:02:49 -0800 (Mon, 26 Nov 2012)


Log Message
Merge 135316 - When calling DocumentStyleSheetCollection::addUserSheet, pass in a user sheet
https://bugs.webkit.org/show_bug.cgi?id=102835

Reviewed by Ojan Vafai.

After r135082, Chromium browser_tests were triggering the ASSERT in
StyleResolver::collectRulesFromUserStyleSheets. Add an ASSERT that will
trigger earlier and make it clear in the Chromium code that we're always
inserting user level styles.

Source/WebCore:

No new tests, no behavior change except no longer triggering the StyleResolver ASSERT
in Chromium browser_tests.

* dom/DocumentStyleSheetCollection.cpp:
(WebCore::DocumentStyleSheetCollection::addUserSheet):

Source/WebKit/chromium:

* src/WebDocument.cpp:
(WebKit::WebDocument::insertUserStyleSheet):


TBR=t...@chromium.org
Review URL: https://codereview.chromium.org/11412177

Modified Paths

branches/chromium/1312/Source/WebCore/ChangeLog
branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.cpp
branches/chromium/1312/Source/WebKit/chromium/ChangeLog
branches/chromium/1312/Source/WebKit/chromium/src/WebDocument.cpp




Diff

Modified: branches/chromium/1312/Source/WebCore/ChangeLog (135773 => 135774)

--- branches/chromium/1312/Source/WebCore/ChangeLog	2012-11-26 23:01:24 UTC (rev 135773)
+++ branches/chromium/1312/Source/WebCore/ChangeLog	2012-11-26 23:02:49 UTC (rev 135774)
@@ -1,3 +1,21 @@
+2012-11-20  Tony Chang  
+
+When calling DocumentStyleSheetCollection::addUserSheet, pass in a user sheet
+https://bugs.webkit.org/show_bug.cgi?id=102835
+
+Reviewed by Ojan Vafai.
+
+After r135082, Chromium browser_tests were triggering the ASSERT in
+StyleResolver::collectRulesFromUserStyleSheets. Add an ASSERT that will
+trigger earlier and make it clear in the Chromium code that we're always
+inserting user level styles.
+
+No new tests, no behavior change except no longer triggering the StyleResolver ASSERT
+in Chromium browser_tests.
+
+* dom/DocumentStyleSheetCollection.cpp:
+(WebCore::DocumentStyleSheetCollection::addUserSheet):
+
 2012-11-18  Antti Koivisto  
 
 REGRESSION(r129644): User StyleSheet not applying


Modified: branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.cpp (135773 => 135774)

--- branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.cpp	2012-11-26 23:01:24 UTC (rev 135773)
+++ branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.cpp	2012-11-26 23:02:49 UTC (rev 135774)
@@ -193,6 +193,7 @@
 
 void DocumentStyleSheetCollection::addUserSheet(PassRefPtr userSheet)
 {
+ASSERT(userSheet->isUserStyleSheet());
 m_userStyleSheets.append(CSSStyleSheet::create(userSheet, m_document));
 m_document->styleResolverChanged(RecalcStyleImmediately);
 }


Modified: branches/chromium/1312/Source/WebKit/chromium/ChangeLog (135773 => 135774)

--- branches/chromium/1312/Source/WebKit/chromium/ChangeLog	2012-11-26 23:01:24 UTC (rev 135773)
+++ branches/chromium/1312/Source/WebKit/chromium/ChangeLog	2012-11-26 23:02:49 UTC (rev 135774)
@@ -1,3 +1,18 @@
+2012-11-20  Tony Chang  
+
+When calling DocumentStyleSheetCollection::addUserSheet, pass in a user sheet
+https://bugs.webkit.org/show_bug.cgi?id=102835
+
+Reviewed by Ojan Vafai.
+
+After r135082, Chromium browser_tests were triggering the ASSERT in
+StyleResolver::collectRulesFromUserStyleSheets. Add an ASSERT that will
+trigger earlier and make it clear in the Chromium code that we're always
+inserting user level styles.
+
+* src/WebDocument.cpp:
+(WebKit::WebDocument::insertUserStyleSheet):
+
 2012-11-08  Keishi Hattori  
 
 WebPagePopupImpl::handleKeyEvent is called after WebPagePopupImpl::close


Modified: branches/chromium/1312/Source/WebKit/chromium/src/WebDocument.cpp (135773 => 135774)

--- branches/chromium/1312/Source/WebKit/chromium/src/WebDocument.cpp	2012-11-26 23:01:24 UTC (rev 135773)
+++ branches/chromium/1312/Source/WebKit/chromium/src/WebDocument.cpp	2012-11-26 23:02:49 UTC (rev 135774)
@@ -194,12 +194,13 @@
 return WebDocumentType(constUnwrap()->doctype());
 }
 
-void WebDocument::insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel level)
+void WebDocument::insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel)
 {
 RefPtr document = unwrap();
 
+// FIXME: We currently ignore the passed in UserStyleLevel. http://crbug.com/162096
 RefPtr parsedSheet = StyleSheetContents::create(document.get());
-parsedSheet->setIsUserStyleSheet(level == UserStyleUserLevel);
+parsedSheet->setIsUserStyleSheet(true);
 parsedSheet->parseString(sourceCode);
 document->styleSheetCollection()->addUserSheet(parsedSheet.release());
 }






___

[webkit-changes] [135773] branches/chromium/1312

2012-11-26 Thread tony
Title: [135773] branches/chromium/1312








Revision 135773
Author t...@chromium.org
Date 2012-11-26 15:01:24 -0800 (Mon, 26 Nov 2012)


Log Message
Merge 135082 - REGRESSION(r129644): User StyleSheet not applying
https://bugs.webkit.org/show_bug.cgi?id=102110

Reviewed by Andreas Kling.

Source/WebCore:

Injected stylesheets added as UserStyleAuthorLevel fail to apply. r129644 implicitly assumed that
such things don't exists but on Chromium addUserStyleSheet() confusingly uses them.

The patch adds injected author stylesheets to DocumentStyleSheetCollection::activeStyleSheets().
It also generally cleans up the code around injected and user stylesheets.

Tests: userscripts/user-script-and-stylesheet.html
   userscripts/user-stylesheet-invalidate.html

* css/StyleResolver.cpp:
(WebCore::StyleResolver::StyleResolver):
(WebCore::StyleResolver::collectRulesFromUserStyleSheets):
(WebCore::collectCSSOMWrappers):
* css/StyleResolver.h:
(StyleResolver):
* dom/Document.cpp:
(WebCore::Document::setCompatibilityMode):
* dom/DocumentStyleSheetCollection.cpp:
(WebCore::DocumentStyleSheetCollection::DocumentStyleSheetCollection):
(WebCore::DocumentStyleSheetCollection::~DocumentStyleSheetCollection):
(WebCore::DocumentStyleSheetCollection::injectedUserStyleSheets):
(WebCore):
(WebCore::DocumentStyleSheetCollection::injectedAuthorStyleSheets):
(WebCore::DocumentStyleSheetCollection::updateInjectedStyleSheetCache):
(WebCore::DocumentStyleSheetCollection::invalidateInjectedStyleSheetCache):
(WebCore::DocumentStyleSheetCollection::addUserSheet):
(WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
(WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
* dom/DocumentStyleSheetCollection.h:
(WebCore::DocumentStyleSheetCollection::documentUserStyleSheets):
(DocumentStyleSheetCollection):
* page/PageGroup.cpp:
(WebCore::PageGroup::addUserStyleSheetToWorld):
(WebCore::PageGroup::removeUserStyleSheetFromWorld):
(WebCore::PageGroup::removeUserStyleSheetsFromWorld):
(WebCore::PageGroup::removeAllUserContent):
(WebCore::PageGroup::invalidatedInjectedStyleSheetCacheInAllFrames):
* page/PageGroup.h:
(PageGroup):

LayoutTests:

* inspector/timeline/timeline-script-tag-1-expected.txt:

Update the test result. The style invalidation log is slightly different.

* userscripts/user-stylesheet-invalidate-expected.txt: Added.
* userscripts/user-stylesheet-invalidate.html: Added.


TBR=an...@apple.com
Review URL: https://codereview.chromium.org/11412176

Modified Paths

branches/chromium/1312/LayoutTests/ChangeLog
branches/chromium/1312/LayoutTests/inspector/timeline/timeline-script-tag-1-expected.txt
branches/chromium/1312/Source/WebCore/ChangeLog
branches/chromium/1312/Source/WebCore/css/StyleResolver.cpp
branches/chromium/1312/Source/WebCore/css/StyleResolver.h
branches/chromium/1312/Source/WebCore/dom/Document.cpp
branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.cpp
branches/chromium/1312/Source/WebCore/dom/DocumentStyleSheetCollection.h
branches/chromium/1312/Source/WebCore/page/PageGroup.cpp
branches/chromium/1312/Source/WebCore/page/PageGroup.h


Added Paths

branches/chromium/1312/LayoutTests/userscripts/user-stylesheet-invalidate-expected.txt
branches/chromium/1312/LayoutTests/userscripts/user-stylesheet-invalidate.html




Diff

Modified: branches/chromium/1312/LayoutTests/ChangeLog (135772 => 135773)

--- branches/chromium/1312/LayoutTests/ChangeLog	2012-11-26 23:01:13 UTC (rev 135772)
+++ branches/chromium/1312/LayoutTests/ChangeLog	2012-11-26 23:01:24 UTC (rev 135773)
@@ -1,3 +1,17 @@
+2012-11-18  Antti Koivisto  
+
+REGRESSION(r129644): User StyleSheet not applying
+https://bugs.webkit.org/show_bug.cgi?id=102110
+
+Reviewed by Andreas Kling.
+
+* inspector/timeline/timeline-script-tag-1-expected.txt:
+
+Update the test result. The style invalidation log is slightly different.
+
+* userscripts/user-stylesheet-invalidate-expected.txt: Added.
+* userscripts/user-stylesheet-invalidate.html: Added.
+
 2012-10-30  Keishi Hattori  
 
 F4 inside  should not open calendar picker


Modified: branches/chromium/1312/LayoutTests/inspector/timeline/timeline-script-tag-1-expected.txt (135772 => 135773)

--- branches/chromium/1312/LayoutTests/inspector/timeline/timeline-script-tag-1-expected.txt	2012-11-26 23:01:13 UTC (rev 135772)
+++ branches/chromium/1312/LayoutTests/inspector/timeline/timeline-script-tag-1-expected.txt	2012-11-26 23:01:24 UTC (rev 135773)
@@ -3,8 +3,10 @@
 
 
 ParseHTML
+> ScheduleStyleRecalculation
 > InvalidateLayout
 ParseHTML
+> ScheduleStyleRecalculation
 > EvaluateScript
 > TimeStamp : SCRIPT TAG
 > InvalidateLayout


Copied: branches/chromium/1312/LayoutTests/userscripts/user-stylesheet-invalidate-expected.txt (from rev 135082, trunk/LayoutTests/userscripts/user-stylesheet-invalidate-expected.txt) (0 => 135773)

--- branches/chromium/1312/LayoutTests/userscripts/use

[webkit-changes] [135772] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135772] trunk/LayoutTests








Revision 135772
Author rjkro...@chromium.org
Date 2012-11-26 15:01:13 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed gardening: updated TextExpecations for failing
fast/dom/shadow/shadow-dom-event-dispatching.html
https://bugs.webkit.org/show_bug.cgi?id=103299

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135771 => 135772)

--- trunk/LayoutTests/ChangeLog	2012-11-26 22:52:41 UTC (rev 135771)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 23:01:13 UTC (rev 135772)
@@ -1,3 +1,11 @@
+2012-11-26  Robert Kroeger  
+
+Unreviewed gardening: updated TextExpecations for failing
+fast/dom/shadow/shadow-dom-event-dispatching.html
+https://bugs.webkit.org/show_bug.cgi?id=103299
+
+* platform/chromium/TestExpectations:
+
 2012-11-26  Roger Fong  
 
 Unreviewed. Skip fast/dom/Window/open-window-min-size.html on Windows.


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135771 => 135772)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 22:52:41 UTC (rev 135771)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 23:01:13 UTC (rev 135772)
@@ -4247,3 +4247,4 @@
 webkit.org/b/103181 [ Win7 ] http/tests/local/drag-over-remote-content.html [ Pass Crash Timeout ]
 webkit.org/b/103183 [ Win7 SnowLeopard ] media/video-seek-past-end-playing.html [ Pass Crash ]
 webkit.org/b/103093 [ Lion SnowLeopard ] media/remove-from-document.html [ Crash Pass ]
+webkit.org/b/103299 [ Linux Mac Win ] fast/dom/shadow/shadow-dom-event-dispatching.html [ Failure Pass ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135771] trunk/LayoutTests

2012-11-26 Thread roger_fong
Title: [135771] trunk/LayoutTests








Revision 135771
Author roger_f...@apple.com
Date 2012-11-26 14:52:41 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed. Skip fast/dom/Window/open-window-min-size.html on Windows.
DRT doesn't support showModalDialog https://bugs.webkit.org/show_bug.cgi?id=53675

* platform/win/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/win/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135770 => 135771)

--- trunk/LayoutTests/ChangeLog	2012-11-26 22:45:20 UTC (rev 135770)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 22:52:41 UTC (rev 135771)
@@ -1,5 +1,12 @@
 2012-11-26  Roger Fong  
 
+Unreviewed. Skip fast/dom/Window/open-window-min-size.html on Windows.
+DRT doesn't support showModalDialog https://bugs.webkit.org/show_bug.cgi?id=53675.
+
+* platform/win/TestExpectations:
+
+2012-11-26  Roger Fong  
+
 Unreviewed. ENABLE_ACCELERATED_OVERFLOW_SCROLLING not enabled on Windows.
 Add a feature flag and skip some failing tests.
 https://bugs.webkit.org/show_bug.cgi?id=103294


Modified: trunk/LayoutTests/platform/win/TestExpectations (135770 => 135771)

--- trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 22:45:20 UTC (rev 135770)
+++ trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 22:52:41 UTC (rev 135771)
@@ -1124,11 +1124,12 @@
 fast/text/hyphenate-character.html
 fast/text/hyphens.html
 
-# DRT doesn't support showModalDialog http://webkit.org/b/53675
+# DRT doesn't support showModalDialog https://bugs.webkit.org/show_bug.cgi?id=53675
 fast/events/show-modal-dialog-onblur-onfocus.html
 fast/harness/show-modal-dialog.html
 fast/events/scroll-event-during-modal-dialog.html
 inspector/console/console-long-eval-crash.html
+fast/dom/Window/open-window-min-size.html
 
 # These tests fail when showModalDialog is unsupported, even though they don't
 # rely on it directly http://webkit.org/b/53676






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135770] trunk/Source

2012-11-26 Thread zeno . albisser
Title: [135770] trunk/Source








Revision 135770
Author zeno.albis...@digia.com
Date 2012-11-26 14:45:20 -0800 (Mon, 26 Nov 2012)


Log Message
[Qt] Fix the LLInt build on Mac
https://bugs.webkit.org/show_bug.cgi?id=97587

Reviewed by Simon Hausmann.

Source/_javascript_Core:

* DerivedSources.pri:
* _javascript_Core.pro:

Source/WTF:

* wtf/InlineASM.h:
Use OS(DARWIN) instead of PLATFORM(MAC),
in order to allow Qt to use the same code.
* wtf/Platform.h:

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/DerivedSources.pri
trunk/Source/_javascript_Core/_javascript_Core.pro
trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/InlineASM.h
trunk/Source/WTF/wtf/Platform.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135769 => 135770)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 22:45:20 UTC (rev 135770)
@@ -1,3 +1,13 @@
+2012-11-26  Zeno Albisser  
+
+[Qt] Fix the LLInt build on Mac
+https://bugs.webkit.org/show_bug.cgi?id=97587
+
+Reviewed by Simon Hausmann.
+
+* DerivedSources.pri:
+* _javascript_Core.pro:
+
 2012-11-26  Oliver Hunt  
 
 32-bit build fix.  Move the method decalration outside of the X86_64 only section.


Modified: trunk/Source/_javascript_Core/DerivedSources.pri (135769 => 135770)

--- trunk/Source/_javascript_Core/DerivedSources.pri	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/_javascript_Core/DerivedSources.pri	2012-11-26 22:45:20 UTC (rev 135770)
@@ -102,15 +102,13 @@
 exists($$file): LLINT_FILES += $$file
 }
 
-if(linux-*|win32) {
-#GENERATOR: LLInt
-llint.output = ${QMAKE_FILE_IN_PATH}$${QMAKE_DIR_SEP}LLIntAssembly.h
-llint.script = $$PWD/offlineasm/asm.rb
-llint.input = LLINT_FILES
-llint.depends = $$LLINT_DEPENDENCY
-llint.commands = ruby $$llint.script $$LLINT_ASSEMBLER ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
-GENERATORS += llint
-}
+#GENERATOR: LLInt
+llint.output = ${QMAKE_FILE_IN_PATH}$${QMAKE_DIR_SEP}LLIntAssembly.h
+llint.script = $$PWD/offlineasm/asm.rb
+llint.input = LLINT_FILES
+llint.depends = $$LLINT_DEPENDENCY
+llint.commands = ruby $$llint.script $$LLINT_ASSEMBLER ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
+GENERATORS += llint
 
 linux-*:if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")) {
 # GENERATOR: disassembler


Modified: trunk/Source/_javascript_Core/_javascript_Core.pro (135769 => 135770)

--- trunk/Source/_javascript_Core/_javascript_Core.pro	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/_javascript_Core/_javascript_Core.pro	2012-11-26 22:45:20 UTC (rev 135770)
@@ -7,18 +7,16 @@
 TEMPLATE = subdirs
 CONFIG += ordered
 
-if(linux-*|win32*) {
-LLIntOffsetsExtractor.file = LLIntOffsetsExtractor.pro
-LLIntOffsetsExtractor.makefile = Makefile.LLIntOffsetsExtractor
-SUBDIRS += LLIntOffsetsExtractor
-}
+LLIntOffsetsExtractor.file = LLIntOffsetsExtractor.pro
+LLIntOffsetsExtractor.makefile = Makefile.LLIntOffsetsExtractor
+SUBDIRS += LLIntOffsetsExtractor
 
 derived_sources.file = DerivedSources.pri
 target.file = Target.pri
 
 SUBDIRS += derived_sources target
 
-if(linux-*|win32*):addStrictSubdirOrderBetween(LLIntOffsetsExtractor, derived_sources)
+addStrictSubdirOrderBetween(LLIntOffsetsExtractor, derived_sources)
 addStrictSubdirOrderBetween(derived_sources, target)
 
 jsc.file = jsc.pro


Modified: trunk/Source/WTF/ChangeLog (135769 => 135770)

--- trunk/Source/WTF/ChangeLog	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/WTF/ChangeLog	2012-11-26 22:45:20 UTC (rev 135770)
@@ -1,3 +1,15 @@
+2012-11-26  Zeno Albisser  
+
+[Qt] Fix the LLInt build on Mac
+https://bugs.webkit.org/show_bug.cgi?id=97587
+
+Reviewed by Simon Hausmann.
+
+* wtf/InlineASM.h:
+Use OS(DARWIN) instead of PLATFORM(MAC),
+in order to allow Qt to use the same code.
+* wtf/Platform.h:
+
 2012-11-26  Patrick Gansterer  
 
 Build fix for WinCE after r135640.


Modified: trunk/Source/WTF/wtf/InlineASM.h (135769 => 135770)

--- trunk/Source/WTF/wtf/InlineASM.h	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/WTF/wtf/InlineASM.h	2012-11-26 22:45:20 UTC (rev 135770)
@@ -77,7 +77,7 @@
 // FIXME: figure out how this works on all the platforms. I know that
 // on ELF, the preferred form is ".Lstuff" as opposed to "Lstuff".
 // Don't know about any of the others.
-#if PLATFORM(MAC)
+#if OS(DARWIN)
 #define LOCAL_LABEL_STRING(name) "L" #name
 #elif   OS(LINUX)   \
  || OS(FREEBSD) \


Modified: trunk/Source/WTF/wtf/Platform.h (135769 => 135770)

--- trunk/Source/WTF/wtf/Platform.h	2012-11-26 22:43:40 UTC (rev 135769)
+++ trunk/Source/WTF/wtf/Platform.h	2012-11-26 22:45:20 UTC (rev 135770)
@@ -926,7 +926,7 @@
 #if !defined(ENABLE_LLINT) \
 && ENABLE(JIT) \
 && (OS(DARWIN) || OS(LINUX)) \
-&& (PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(GTK

[webkit-changes] [135769] trunk/Source/WebKit/chromium

2012-11-26 Thread commit-queue
Title: [135769] trunk/Source/WebKit/chromium








Revision 135769
Author commit-qu...@webkit.org
Date 2012-11-26 14:43:40 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed.  Rolled DEPS.

Patch by Sheriff Bot  on 2012-11-26

* DEPS:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/DEPS




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135768 => 135769)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 22:37:56 UTC (rev 135768)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 22:43:40 UTC (rev 135769)
@@ -1,5 +1,11 @@
 2012-11-26  Sheriff Bot  
 
+Unreviewed.  Rolled DEPS.
+
+* DEPS:
+
+2012-11-26  Sheriff Bot  
+
 Unreviewed, rolling out r135743.
 http://trac.webkit.org/changeset/135743
 https://bugs.webkit.org/show_bug.cgi?id=103280


Modified: trunk/Source/WebKit/chromium/DEPS (135768 => 135769)

--- trunk/Source/WebKit/chromium/DEPS	2012-11-26 22:37:56 UTC (rev 135768)
+++ trunk/Source/WebKit/chromium/DEPS	2012-11-26 22:43:40 UTC (rev 135769)
@@ -32,7 +32,7 @@
 
 vars = {
   'chromium_svn': 'http://src.chromium.org/svn/trunk/src',
-  'chromium_rev': '169306'
+  'chromium_rev': '169445'
 }
 
 deps = {






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135768] branches/safari-536.28-branch/Source/WebKit2

2012-11-26 Thread lforschler
Title: [135768] branches/safari-536.28-branch/Source/WebKit2








Revision 135768
Author lforsch...@apple.com
Date 2012-11-26 14:37:56 -0800 (Mon, 26 Nov 2012)


Log Message
Merged r131975.  

Modified Paths

branches/safari-536.28-branch/Source/WebKit2/ChangeLog
branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebContext.cpp




Diff

Modified: branches/safari-536.28-branch/Source/WebKit2/ChangeLog (135767 => 135768)

--- branches/safari-536.28-branch/Source/WebKit2/ChangeLog	2012-11-26 22:36:03 UTC (rev 135767)
+++ branches/safari-536.28-branch/Source/WebKit2/ChangeLog	2012-11-26 22:37:56 UTC (rev 135768)
@@ -1,5 +1,23 @@
 2012-11-26  Lucas Forschler  
 
+Merge r131975
+
+2012-10-19  Andreas Kling  
+
+Race condition in WebProcessProxy::handleGetPlugins().
+
+
+
+Reviewed by Anders Carlsson.
+
+Scope the Vector so that all the destructors are guaranteed
+to have run when sendDidGetPlugins() executes on the main thread.
+
+* UIProcess/WebProcessProxy.cpp:
+(WebKit::WebProcessProxy::handleGetPlugins):
+
+2012-11-26  Lucas Forschler  
+
 Merge r132713
 
 2012-10-26  Anders Carlsson  


Modified: branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebContext.cpp (135767 => 135768)

--- branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebContext.cpp	2012-11-26 22:36:03 UTC (rev 135767)
+++ branches/safari-536.28-branch/Source/WebKit2/UIProcess/WebContext.cpp	2012-11-26 22:37:56 UTC (rev 135768)
@@ -635,9 +635,11 @@
 
 OwnPtr > pluginInfos = adoptPtr(new Vector);
 
-Vector plugins = m_pluginInfoStore.plugins();
-for (size_t i = 0; i < plugins.size(); ++i)
-pluginInfos->append(plugins[i].info);
+{
+Vector plugins = m_pluginInfoStore.plugins();
+for (size_t i = 0; i < plugins.size(); ++i)
+pluginInfos->append(plugins[i].info);
+}
 
 // NOTE: We have to pass the PluginInfo vector to the secondary thread via a pointer as otherwise
 //   we'd end up with a deref() race on all the WTF::Strings it contains.






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135767] trunk/Source

2012-11-26 Thread jonlee
Title: [135767] trunk/Source








Revision 135767
Author jon...@apple.com
Date 2012-11-26 14:36:03 -0800 (Mon, 26 Nov 2012)


Log Message
Pass clicks through to the restarted plugin
https://bugs.webkit.org/show_bug.cgi?id=102150


Reviewed by Simon Fraser.

Source/WebCore:

Add a new state to the machine for plugin snapshotting, called PlayingWithPendingMouseClick.
This represents the state where the plugin is playing, but before the pending mouse click
has been fired. Once the click is sent, the plugin state transitions to Playing. For
situations where the plugin just runs normally without a simulated click, the plugin state
jumps from DisplayingSnapshot straight to Playing, as before.

* html/HTMLPlugInElement.h: Add new display state to represent when the plugin is running,
but a pending mouse click is about to be sent to the plugin.
(WebCore::HTMLPlugInElement::dispatchPendingMouseClick): Called by the plugin when it is
ok for the element to send the pending mouse click.
* html/HTMLPlugInElement.cpp:
(WebCore::HTMLPlugInElement::defaultEventHandler): Update the handler to pass the event
to the renderer to handle if the state is before PlayingWithPendingMouseClick.

* html/HTMLPlugInImageElement.h:
* html/HTMLPlugInImageElement.cpp: Add a click timer to delay the mouse click so that the
plugin has some time to initialize.
(WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): Initialize the mouse timer.
(WebCore::HTMLPlugInImageElement::setPendingClickEvent): Keep track of the click event
the user made to restart the plugin.
(WebCore::HTMLPlugInImageElement::dispatchPendingMouseClick): Start the timer.
(WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired): When the timer fires,
dispatch the simulated click, with mouse over, mouse down, and mouse up events. Transition
to the Playing state, and we no longer need the click event.

* rendering/RenderSnapshottedPlugIn.cpp: Change the threshold state to PlayingWithPendingMouseClick
instead of Playing, since that is the earliest state where the plugin is playing.
(WebCore::RenderSnapshottedPlugIn::paint):
(WebCore::RenderSnapshottedPlugIn::paintReplaced):
(WebCore::RenderSnapshottedPlugIn::getCursor):
(WebCore::RenderSnapshottedPlugIn::handleEvent): If the user clicked on the button, jump to
Playing, and don't send a simulated click. Otherwise, transition to PlayingWithPendingMouseClick,
and keep track of that mouse event.

* WebCore.exp.in: Export MouseRelatedEvent::offsetX() and offsetY().

Source/WebKit2:

Expose convertToRootView() as a public function for all plugins. It converts the click point
from local plugin coordinates to root view coordinates. When the events are sent to the
plugin, the coordinate gets converted back to the local reference frame.
* WebProcess/Plugins/Plugin.cpp:
(WebKit::Plugin::convertToRootView): Default implementation should not be reached.
* WebProcess/Plugins/Plugin.h: Promote convertToRootView() from NetscapePlugin.h.
* WebProcess/Plugins/Netscape/NetscapePlugin.h: An implementation already existed. Make the
method virtual.
* WebProcess/Plugins/PluginProxy.h:
* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::convertToRootView): Apply the transform to the provided point to return
a point in root view coordinates.

Change the threshold state to PlayingWithPendingMouseClick instead of Playing, since that is
the earliest state where the plugin is playing.
* WebProcess/Plugins/PluginView.cpp: Give the snapshot a little more time to generate.
(WebKit::PluginView::didInitializePlugin): When the plugin has initialized, tell the plugin
element to dispatch the pending mouse click.
(WebKit::PluginView::paint):
(WebKit::PluginView::createWebEvent): Helper function to convert a WebCore mouse event to a
WebMouseEvent.
(WebKit::PluginView::handleEvent): If the event is simulated, there is no source event from
the UI process. So we fabricate one based on the simulated event.
(WebKit::PluginView::invalidateRect):
(WebKit::PluginView::isAcceleratedCompositingEnabled):
* WebProcess/Plugins/PluginView.h:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/WebCore.exp.in
trunk/Source/WebCore/html/HTMLPlugInElement.cpp
trunk/Source/WebCore/html/HTMLPlugInElement.h
trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp
trunk/Source/WebCore/html/HTMLPlugInImageElement.h
trunk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h
trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.cpp
trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.h
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135766 => 135767)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 22:34:47 UTC (rev 135766)
+++ trunk/Source/WebCore/ChangeL

[webkit-changes] [135766] trunk

2012-11-26 Thread roger_fong
Title: [135766] trunk








Revision 135766
Author roger_f...@apple.com
Date 2012-11-26 14:34:47 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed. ENABLE_ACCELERATED_OVERFLOW_SCROLLING not enabled on Windows.
Add a feature flag and skip some failing tests.
https://bugs.webkit.org/show_bug.cgi?id=103294

Tests skipped:
compositing/overflow/scrolling-without-painting.html
compositing/overflow/updating-scrolling-content.html

* win/tools/vsprops/FeatureDefines.vsprops:
* platform/win/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/win/TestExpectations
trunk/WebKitLibraries/ChangeLog
trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops




Diff

Modified: trunk/LayoutTests/ChangeLog (135765 => 135766)

--- trunk/LayoutTests/ChangeLog	2012-11-26 22:24:31 UTC (rev 135765)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 22:34:47 UTC (rev 135766)
@@ -1,3 +1,15 @@
+2012-11-26  Roger Fong  
+
+Unreviewed. ENABLE_ACCELERATED_OVERFLOW_SCROLLING not enabled on Windows.
+Add a feature flag and skip some failing tests.
+https://bugs.webkit.org/show_bug.cgi?id=103294
+
+Tests skipped:
+compositing/overflow/scrolling-without-painting.html
+compositing/overflow/updating-scrolling-content.html
+
+* platform/win/TestExpectations:
+
 2012-11-26  Dan Carney  
 
 Refactor V8 bindings to allow content scripts to access subframes


Modified: trunk/LayoutTests/platform/win/TestExpectations (135765 => 135766)

--- trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 22:24:31 UTC (rev 135765)
+++ trunk/LayoutTests/platform/win/TestExpectations	2012-11-26 22:34:47 UTC (rev 135766)
@@ -2433,3 +2433,7 @@
 fast/css3-text/css3-text-align-last/getComputedStyle/getComputedStyle-text-align-last-inherited.html
 fast/css3-text/css3-text-align-last/getComputedStyle/getComputedStyle-text-align-last.html
 fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-line.html
+
+#ACCELERATED_OVERFLOW_SCROLLING is disabled on Windows
+compositing/overflow/scrolling-without-painting.html
+compositing/overflow/updating-scrolling-content.html


Modified: trunk/WebKitLibraries/ChangeLog (135765 => 135766)

--- trunk/WebKitLibraries/ChangeLog	2012-11-26 22:24:31 UTC (rev 135765)
+++ trunk/WebKitLibraries/ChangeLog	2012-11-26 22:34:47 UTC (rev 135766)
@@ -1,3 +1,15 @@
+2012-11-26  Roger Fong  
+
+Unreviewed. ENABLE_ACCELERATED_OVERFLOW_SCROLLING not enabled on Windows.
+Add a feature flag and skip some failing tests.
+https://bugs.webkit.org/show_bug.cgi?id=103294
+
+Tests skipped:
+compositing/overflow/scrolling-without-painting.html
+compositing/overflow/updating-scrolling-content.html
+
+* win/tools/vsprops/FeatureDefines.vsprops:
+
 2012-11-23  Alexis Menard  
 
 [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.


Modified: trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops (135765 => 135766)

--- trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops	2012-11-26 22:24:31 UTC (rev 135765)
+++ trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops	2012-11-26 22:34:47 UTC (rev 135766)
@@ -9,7 +9,7 @@
 	>
		Name="VCCLCompilerTool"
-		PreprocessorDefinitions="$(ENABLE_IFRAME_SEAMLESS);$(ENABLE_REQUEST_ANIMATION_FRAME);$(ENABLE_3D_RENDERING);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_BLOB);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_BACKGROUND);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_FILTERS);$(ENABLE_CSS_GRID_LAYOUT);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_REGIONS);$(ENABLE_CSS_EXCLUSIONS);$(ENABLE_CSS_STICKY_POSITION);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_SQL_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_FILTERS);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIME);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_NOTIFICATIONS);$(ENABLE_LINK_PREFETCH);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_METER_ELEMENT);$(ENABLE_MICRODATA);$(ENABLE_MUTATION_OBSERVERS);$(ENABLE_NOTIFICATIONS);$(ENABLE_PAGE_VISIBILITY_API);$(ENABLE_PROGRESS_ELEMENT);$(ENABLE_PROXIMITY_EVENTS);$(ENABLE_QUOTA);$(ENABLE_REGISTER_PROTOCOL_HANDLER);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHADOW_DOM);$(ENABLE_SHARED_WORKERS);$(ENABLE_STYLE_SCOPED);$(ENABLE_SVG);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(E

[webkit-changes] [135765] trunk

2012-11-26 Thread commit-queue
Title: [135765] trunk








Revision 135765
Author commit-qu...@webkit.org
Date 2012-11-26 14:24:31 -0800 (Mon, 26 Nov 2012)


Log Message
Refactor V8 bindings to allow content scripts to access subframes
https://bugs.webkit.org/show_bug.cgi?id=93646

Patch by Dan Carney  on 2012-11-26
Reviewed by Adam Barth.

Source/WebCore:

Isolated window shells are now initialized on the fly
as needed.

No new tests. Existing test modified.

* bindings/v8/DOMWrapperWorld.cpp:
(WebCore::DOMWrapperWorld::ensureIsolatedWorld):
* bindings/v8/DOMWrapperWorld.h:
(WebCore::DOMWrapperWorld::createdFromUnitializedWorld):
(DOMWrapperWorld):
* bindings/v8/ScriptController.cpp:
(WebCore::ScriptController::currentWorldContext):

LayoutTests:

Test modified to check isolated world access across frames.

* http/tests/security/isolatedWorld/world-reuse-expected.txt:
* http/tests/security/isolatedWorld/world-reuse.html:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse-expected.txt
trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/bindings/v8/DOMWrapperWorld.cpp
trunk/Source/WebCore/bindings/v8/DOMWrapperWorld.h
trunk/Source/WebCore/bindings/v8/ScriptController.cpp




Diff

Modified: trunk/LayoutTests/ChangeLog (135764 => 135765)

--- trunk/LayoutTests/ChangeLog	2012-11-26 22:15:06 UTC (rev 135764)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 22:24:31 UTC (rev 135765)
@@ -1,3 +1,15 @@
+2012-11-26  Dan Carney  
+
+Refactor V8 bindings to allow content scripts to access subframes
+https://bugs.webkit.org/show_bug.cgi?id=93646
+
+Reviewed by Adam Barth.
+
+Test modified to check isolated world access across frames.
+
+* http/tests/security/isolatedWorld/world-reuse-expected.txt:
+* http/tests/security/isolatedWorld/world-reuse.html:
+
 2012-11-26  Tony Chang  
 
 Move more functions from internals.settings to internals


Modified: trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse-expected.txt (135764 => 135765)

--- trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse-expected.txt	2012-11-26 22:15:06 UTC (rev 135764)
+++ trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse-expected.txt	2012-11-26 22:24:31 UTC (rev 135765)
@@ -2,6 +2,8 @@
 Expecting undefined: undefined
 Expecting bar: bar
 Expecting undefined: undefined
+Expecting true: true
+Expecting true: true
 Expecting undefined,undefined: undefined,undefined
 Expecting undefined,undefined: undefined,undefined
 


Modified: trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html (135764 => 135765)

--- trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html	2012-11-26 22:15:06 UTC (rev 135764)
+++ trunk/LayoutTests/http/tests/security/isolatedWorld/world-reuse.html	2012-11-26 22:24:31 UTC (rev 135765)
@@ -30,10 +30,22 @@
   document.body.insertBefore(iframe, document.body.firstChild);
   document.body.insertBefore(document.createElement("br"), iframe.nextSibling);
   var iframeComplete = function(result) {
+
+// Isolated world executing in frame should be able to to access parent content.
+testRunner.evaluateScriptInIsolatedWorld(1,
+  "parent.document.body.appendChild(parent.document.createTextNode('Expecting true: ' + (parent.frames[0].document == this.document)));" +
+  "parent.document.body.appendChild(parent.document.createElement('br'));");
+
 document.body.appendChild(document.createTextNode('Expecting undefined,undefined: ' + result));
 document.body.appendChild(document.createElement('br'));
 reloadFrame();
   }
+
+  // Isolated world executing in window should be able to to access frame content.
+  testRunner.evaluateScriptInIsolatedWorld(1,
+"document.body.appendChild(document.createTextNode('Expecting true: ' + !!frames[0].document));" +
+"document.body.appendChild(document.createElement('br'));");
+
   iframe.src = ""
   
   // Also, navigating a single frame should not result in sharing variables.


Modified: trunk/Source/WebCore/ChangeLog (135764 => 135765)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 22:15:06 UTC (rev 135764)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 22:24:31 UTC (rev 135765)
@@ -1,3 +1,23 @@
+2012-11-26  Dan Carney  
+
+Refactor V8 bindings to allow content scripts to access subframes
+https://bugs.webkit.org/show_bug.cgi?id=93646
+
+Reviewed by Adam Barth.
+
+Isolated window shells are now initialized on the fly
+as needed.
+
+No new tests. Existing test modified.
+
+* bindings/v8/DOMWrapperWorld.cpp:
+(WebCore::DOMWrapperWorld::ensureIsolatedWorld):
+* bindings/v8/DOMWrapperWorld.h:
+(WebCore::DOMWrapperWorld::createdFromUnitializedWorld):
+(DOMWrapperWorld):
+* bindings/v8/ScriptController.cpp:
+(WebCore::ScriptController::currentWorldContext):
+
 2012-11-26 

[webkit-changes] [135764] branches/safari-536.28-branch

2012-11-26 Thread lforschler
Title: [135764] branches/safari-536.28-branch








Revision 135764
Author lforsch...@apple.com
Date 2012-11-26 14:15:06 -0800 (Mon, 26 Nov 2012)


Log Message
Merged r132924.  

Modified Paths

branches/safari-536.28-branch/LayoutTests/ChangeLog
branches/safari-536.28-branch/Source/WebCore/ChangeLog
branches/safari-536.28-branch/Source/WebCore/WebCore.exp.in
branches/safari-536.28-branch/Source/WebCore/editing/Editor.cpp
branches/safari-536.28-branch/Source/WebCore/editing/TextIterator.cpp
branches/safari-536.28-branch/Source/WebCore/editing/TextIterator.h


Added Paths

branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt
branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea.html




Diff

Modified: branches/safari-536.28-branch/LayoutTests/ChangeLog (135763 => 135764)

--- branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-26 22:11:42 UTC (rev 135763)
+++ branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-26 22:15:06 UTC (rev 135764)
@@ -1,5 +1,19 @@
 2012-11-26  Lucas Forschler  
 
+Merge r132924
+
+2012-10-30  Dan Bernstein  
+
+ REGRESSION (r121299): OS X Text Replacement forces cursor out of text fields
+https://bugs.webkit.org/show_bug.cgi?id=100768
+
+Reviewed by Anders Carlsson.
+
+* platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt: Added.
+* platform/mac/editing/spelling/autocorrection-in-textarea.html: Added.
+
+2012-11-26  Lucas Forschler  
+
 Merge r132713
 
 2012-10-26  Anders Carlsson   


Copied: branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt (from rev 132924, trunk/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt) (0 => 135764)

--- branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt	(rev 0)
+++ branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea-expected.txt	2012-11-26 22:15:06 UTC (rev 135764)
@@ -0,0 +1,3 @@
+0123456789
+
+PASS


Copied: branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea.html (from rev 132924, trunk/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea.html) (0 => 135764)

--- branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea.html	(rev 0)
+++ branches/safari-536.28-branch/LayoutTests/platform/mac/editing/spelling/autocorrection-in-textarea.html	2012-11-26 22:15:06 UTC (rev 135764)
@@ -0,0 +1,27 @@
+
+0123456789
+
+
+if (window.testRunner)
+testRunner.dumpAsText();
+
+_onload_ = function() {
+var textarea = document.getElementById("textarea");
+textarea.focus();
+var hasBeenBlurred = false;
+textarea._onblur_ = function() {
+hasBeenBlurred = true;
+}
+
+document.execCommand("InsertText", false, "te");
+document.execCommand("InsertText", false, "h");
+document.execCommand("InsertText", false, " ");
+
+document.execCommand("InsertText", false, "test result is");
+
+var result = textarea.value === "the test result is" ? "PASS" : "FAIL";
+document.getElementById("result").appendChild(document.createTextNode(result));
+}
+
+
+


Modified: branches/safari-536.28-branch/Source/WebCore/ChangeLog (135763 => 135764)

--- branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 22:11:42 UTC (rev 135763)
+++ branches/safari-536.28-branch/Source/WebCore/ChangeLog	2012-11-26 22:15:06 UTC (rev 135764)
@@ -1,3 +1,28 @@
+2012-11-26  Lucas Forschler  
+
+Merge r132924
+
+2012-10-30  Dan Bernstein  
+
+ REGRESSION (r121299): OS X Text Replacement forces cursor out of text fields
+https://bugs.webkit.org/show_bug.cgi?id=100768
+
+Reviewed by Anders Carlsson.
+
+r121299 introduced code to restore the paragraph range by saving its length and start offset
+relative to the document. The latter was obtained by iterating over the range starting at
+the beginning of the document and ending at the beginning of the paragraph range. However,
+such a range could not be constructed if the paragraph range was contained in a shadow DOM,
+since a range must have both its endpoints within the same shadow tree (or not in a shadow
+tree).
+
+Test: platform/mac/editing/spelling/autocorrection-in-textarea.html
+
+* editing/Editor.cpp:
+(WebCore::Editor::markAndReplaceFor): Changed paragraphStartIndex to be relative to the
+root container of paragraphRange, using the same logic used by
+checkForDifferentRootContainer() i

[webkit-changes] [135763] trunk/Source/WebCore

2012-11-26 Thread bfulgham
Title: [135763] trunk/Source/WebCore








Revision 135763
Author bfulg...@webkit.org
Date 2012-11-26 14:11:42 -0800 (Mon, 26 Nov 2012)


Log Message
clipboardwin compile error for win64
https://bugs.webkit.org/show_bug.cgi?id=94124

Patch by Alex Christensen  on 2012-11-26
Reviewed by Brent Fulgham.

The clipboard utilities code uses std::min with one unsigned int parameter and one size_t parameter.
This causes a problem when compiling for 64-bit Windows because the two types are not the same size.
To resolve this issue, we specify the template type as the type the return value is being cast into

Fixed a few compile errors for Windows x64 by specifying template parameters.

* platform/win/ClipboardUtilitiesWin.cpp:
(WebCore::setFileDescriptorData): Specify the types for the std::min macro to avoid compiler errors
under 64-bit builds.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135762 => 135763)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 22:01:01 UTC (rev 135762)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 22:11:42 UTC (rev 135763)
@@ -1,3 +1,20 @@
+2012-11-26  Alex Christensen  
+
+clipboardwin compile error for win64
+https://bugs.webkit.org/show_bug.cgi?id=94124
+
+Reviewed by Brent Fulgham.
+
+The clipboard utilities code uses std::min with one unsigned int parameter and one size_t parameter.
+This causes a problem when compiling for 64-bit Windows because the two types are not the same size.
+To resolve this issue, we specify the template type as the type the return value is being cast into
+
+Fixed a few compile errors for Windows x64 by specifying template parameters.
+
+* platform/win/ClipboardUtilitiesWin.cpp:
+(WebCore::setFileDescriptorData): Specify the types for the std::min macro to avoid compiler errors
+under 64-bit builds.
+
 2012-11-26  Arnaud Renevier  
 
 [GTK] GtkSocket is leaked until webview is destroyed.


Modified: trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp (135762 => 135763)

--- trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp	2012-11-26 22:01:01 UTC (rev 135762)
+++ trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp	2012-11-26 22:11:42 UTC (rev 135763)
@@ -433,7 +433,7 @@
 fgd->fgd[0].dwFlags = FD_FILESIZE;
 fgd->fgd[0].nFileSizeLow = size;
 
-int maxSize = std::min(pathname.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
+int maxSize = std::min(pathname.length(), WTF_ARRAY_LENGTH(fgd->fgd[0].cFileName));
 CopyMemory(fgd->fgd[0].cFileName, pathname.charactersWithNullTermination(), maxSize * sizeof(UChar));
 GlobalUnlock(medium.hGlobal);
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135762] trunk/Source/WebCore

2012-11-26 Thread mrobinson
Title: [135762] trunk/Source/WebCore








Revision 135762
Author mrobin...@webkit.org
Date 2012-11-26 14:01:01 -0800 (Mon, 26 Nov 2012)


Log Message
[GTK] GtkSocket is leaked until webview is destroyed.
https://bugs.webkit.org/show_bug.cgi?id=102564

Patch by Arnaud Renevier  on 2012-11-26
Reviewed by Martin Robinson.

Remove GtkSocket from its parent when pluginview is destroyed. Then,
the GtkSocket and it's possible child widgets are realeased when it is
no more needed.

No new tests, already covered by existing tests.

* plugins/gtk/PluginViewGtk.cpp:
(WebCore::PluginView::platformDestroy):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/plugins/gtk/PluginViewGtk.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135761 => 135762)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 22:00:15 UTC (rev 135761)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 22:01:01 UTC (rev 135762)
@@ -1,3 +1,19 @@
+2012-11-26  Arnaud Renevier  
+
+[GTK] GtkSocket is leaked until webview is destroyed.
+https://bugs.webkit.org/show_bug.cgi?id=102564
+
+Reviewed by Martin Robinson.
+
+Remove GtkSocket from its parent when pluginview is destroyed. Then,
+the GtkSocket and it's possible child widgets are realeased when it is
+no more needed.
+
+No new tests, already covered by existing tests.
+
+* plugins/gtk/PluginViewGtk.cpp:
+(WebCore::PluginView::platformDestroy):
+
 2012-11-26  Luke Macpherson   
 
 Make StyleResolver::applyProperty use isInherit in CSSPropertyWebkitMarquee instead of calculating equivalent in-place.


Modified: trunk/Source/WebCore/plugins/gtk/PluginViewGtk.cpp (135761 => 135762)

--- trunk/Source/WebCore/plugins/gtk/PluginViewGtk.cpp	2012-11-26 22:00:15 UTC (rev 135761)
+++ trunk/Source/WebCore/plugins/gtk/PluginViewGtk.cpp	2012-11-26 22:01:01 UTC (rev 135762)
@@ -883,6 +883,13 @@
 XFreePixmap(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), m_drawable);
 m_drawable = 0;
 }
+
+GtkWidget* widget = platformWidget();
+if (widget) {
+GtkWidget* parent = gtk_widget_get_parent(widget);
+ASSERT(parent);
+gtk_container_remove(GTK_CONTAINER(parent), widget);
+}
 }
 
 } // namespace WebCore






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135761] trunk

2012-11-26 Thread mrobinson
Title: [135761] trunk








Revision 135761
Author mrobin...@webkit.org
Date 2012-11-26 14:00:15 -0800 (Mon, 26 Nov 2012)


Log Message
[GTK] Explicitly link against librt
https://bugs.webkit.org/show_bug.cgi?id=103194

Patch by Kalev Lember  on 2012-11-26
Reviewed by Martin Robinson.

Fixes broken build with undefined references to shm_open / shm_unlink
symbols. SharedMemoryUnix.cpp uses these so we need to link with -lrt.

.:

* configure.ac:

Source/WebKit2:

* GNUmakefile.am:

Modified Paths

trunk/ChangeLog
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/GNUmakefile.am
trunk/configure.ac




Diff

Modified: trunk/ChangeLog (135760 => 135761)

--- trunk/ChangeLog	2012-11-26 21:44:10 UTC (rev 135760)
+++ trunk/ChangeLog	2012-11-26 22:00:15 UTC (rev 135761)
@@ -1,3 +1,15 @@
+2012-11-26  Kalev Lember  
+
+[GTK] Explicitly link against librt
+https://bugs.webkit.org/show_bug.cgi?id=103194
+
+Reviewed by Martin Robinson.
+
+Fixes broken build with undefined references to shm_open / shm_unlink
+symbols. SharedMemoryUnix.cpp uses these so we need to link with -lrt.
+
+* configure.ac:
+
 2012-11-26  Laszlo Gombos  
 
 [CMake] Allow user specified compiler flags to take precedence


Modified: trunk/Source/WebKit2/ChangeLog (135760 => 135761)

--- trunk/Source/WebKit2/ChangeLog	2012-11-26 21:44:10 UTC (rev 135760)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-26 22:00:15 UTC (rev 135761)
@@ -1,3 +1,15 @@
+2012-11-26  Kalev Lember  
+
+[GTK] Explicitly link against librt
+https://bugs.webkit.org/show_bug.cgi?id=103194
+
+Reviewed by Martin Robinson.
+
+Fixes broken build with undefined references to shm_open / shm_unlink
+symbols. SharedMemoryUnix.cpp uses these so we need to link with -lrt.
+
+* GNUmakefile.am:
+
 2012-11-26  Christophe Dumez  
 
 [EFL][WK2] Add setting to enable / disable HTML5 local storage functionality


Modified: trunk/Source/WebKit2/GNUmakefile.am (135760 => 135761)

--- trunk/Source/WebKit2/GNUmakefile.am	2012-11-26 21:44:10 UTC (rev 135760)
+++ trunk/Source/WebKit2/GNUmakefile.am	2012-11-26 22:00:15 UTC (rev 135761)
@@ -566,6 +566,7 @@
 	$(PANGO_LIBS) \
 	$(PNG_LIBS) \
 	$(SHLWAPI_LIBS) \
+	$(SHM_LIBS) \
 	$(SQLITE3_LIBS) \
 	$(UNICODE_LIBS) \
 	$(XRENDER_LIBS) \


Modified: trunk/configure.ac (135760 => 135761)

--- trunk/configure.ac	2012-11-26 21:44:10 UTC (rev 135760)
+++ trunk/configure.ac	2012-11-26 22:00:15 UTC (rev 135761)
@@ -1118,6 +1118,13 @@
if test "$have_gtk_unix_printing" = "yes"; then
AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
fi
+
+   # On some Linux/Unix platforms, shm_* may only be available if linking
+   # against librt
+   if test "$os_win32" = "no"; then
+   AC_SEARCH_LIBS([shm_open], [rt], [SHM_LIBS="-lrt"])
+   AC_SUBST(SHM_LIBS)
+   fi
 fi
 
 # Plugin Process






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135760] trunk/Source/WebCore

2012-11-26 Thread macpherson
Title: [135760] trunk/Source/WebCore








Revision 135760
Author macpher...@chromium.org
Date 2012-11-26 13:44:10 -0800 (Mon, 26 Nov 2012)


Log Message
Make StyleResolver::applyProperty use isInherit in CSSPropertyWebkitMarquee instead of calculating equivalent in-place.
https://bugs.webkit.org/show_bug.cgi?id=102446

Reviewed by Tony Chang.

!m_parentNode || !value->isInheritedValue() is equivalent to !isInherit (by De Morgan's law).

No new tests / code is provably equivalent.

* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/css/StyleResolver.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135759 => 135760)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 21:41:28 UTC (rev 135759)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 21:44:10 UTC (rev 135760)
@@ -1,3 +1,17 @@
+2012-11-26  Luke Macpherson   
+
+Make StyleResolver::applyProperty use isInherit in CSSPropertyWebkitMarquee instead of calculating equivalent in-place.
+https://bugs.webkit.org/show_bug.cgi?id=102446
+
+Reviewed by Tony Chang.
+
+!m_parentNode || !value->isInheritedValue() is equivalent to !isInherit (by De Morgan's law).
+
+No new tests / code is provably equivalent.
+
+* css/StyleResolver.cpp:
+(WebCore::StyleResolver::applyProperty):
+
 2012-11-26  Pratik Solanki  
 
 Add ResourceBuffer::append(CFDataRef) to get code to compile with USE(NETWORK_CFDATA_ARRAY_CALLBACK)


Modified: trunk/Source/WebCore/css/StyleResolver.cpp (135759 => 135760)

--- trunk/Source/WebCore/css/StyleResolver.cpp	2012-11-26 21:41:28 UTC (rev 135759)
+++ trunk/Source/WebCore/css/StyleResolver.cpp	2012-11-26 21:44:10 UTC (rev 135760)
@@ -3190,7 +3190,7 @@
 m_style->resetColumnRule();
 return;
 case CSSPropertyWebkitMarquee:
-if (!m_parentNode || !value->isInheritedValue())
+if (!isInherit)
 return;
 m_style->setMarqueeDirection(m_parentStyle->marqueeDirection());
 m_style->setMarqueeIncrement(m_parentStyle->marqueeIncrement());






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135759] trunk/Source/JavaScriptCore

2012-11-26 Thread oliver
Title: [135759] trunk/Source/_javascript_Core








Revision 135759
Author oli...@apple.com
Date 2012-11-26 13:41:28 -0800 (Mon, 26 Nov 2012)


Log Message
32-bit build fix.  Move the method decalration outside of the X86_64 only section.

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/assembler/MacroAssembler.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135758 => 135759)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 21:38:45 UTC (rev 135758)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 21:41:28 UTC (rev 135759)
@@ -1,5 +1,13 @@
 2012-11-26  Oliver Hunt  
 
+32-bit build fix.  Move the method decalration outside of the X86_64 only section.
+
+* assembler/MacroAssembler.h:
+(MacroAssembler):
+(JSC::MacroAssembler::shouldConsiderBlinding):
+
+2012-11-26  Oliver Hunt  
+
 Don't blind all the things.
 https://bugs.webkit.org/show_bug.cgi?id=102572
 


Modified: trunk/Source/_javascript_Core/assembler/MacroAssembler.h (135758 => 135759)

--- trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 21:38:45 UTC (rev 135758)
+++ trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 21:41:28 UTC (rev 135759)
@@ -308,8 +308,13 @@
 ASSERT(condition == Equal || condition == NotEqual);
 return condition;
 }
-
 
+static const unsigned BlindingModulus = 64;
+bool shouldConsiderBlinding()
+{
+return !(random() & (BlindingModulus - 1));
+}
+
 // Ptr methods
 // On 32-bit platforms (i.e. x86), these methods directly map onto their 32-bit equivalents.
 // FIXME: should this use a test for 32-bitness instead of this specific exception?
@@ -839,11 +844,6 @@
 using MacroAssemblerBase::and64;
 using MacroAssemblerBase::convertInt32ToDouble;
 using MacroAssemblerBase::store64;
-static const unsigned BlindingModulus = 64;
-bool shouldConsiderBlinding()
-{
-return !(random() & (BlindingModulus - 1));
-}
 bool shouldBlindDouble(double value)
 {
 // Don't trust NaN or +/-Infinity






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135758] trunk/Source/WebKit/blackberry

2012-11-26 Thread commit-queue
Title: [135758] trunk/Source/WebKit/blackberry








Revision 135758
Author commit-qu...@webkit.org
Date 2012-11-26 13:38:45 -0800 (Mon, 26 Nov 2012)


Log Message
[BlackBerry] Null check calls associated with retrieving the caret rect.
https://bugs.webkit.org/show_bug.cgi?id=103281

Patch by Nima Ghanavatian  on 2012-11-26
Reviewed by Rob Buis.

Some of these calls can return null, which could lead to a crash.

Internally reviewed by Gen Mak.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::requestSpellingCheckingOptions):

Modified Paths

trunk/Source/WebKit/blackberry/ChangeLog
trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp




Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (135757 => 135758)

--- trunk/Source/WebKit/blackberry/ChangeLog	2012-11-26 21:20:37 UTC (rev 135757)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-11-26 21:38:45 UTC (rev 135758)
@@ -1,3 +1,17 @@
+2012-11-26  Nima Ghanavatian  
+
+[BlackBerry] Null check calls associated with retrieving the caret rect.
+https://bugs.webkit.org/show_bug.cgi?id=103281
+
+Reviewed by Rob Buis.
+
+Some of these calls can return null, which could lead to a crash.
+
+Internally reviewed by Gen Mak.
+
+* WebKitSupport/InputHandler.cpp:
+(BlackBerry::WebKit::InputHandler::requestSpellingCheckingOptions):
+
 2012-11-26  Jonathan Dong  
 
 [BlackBerry] Should not autofill username and password when there're more than one password inputs on the same page


Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp (135757 => 135758)

--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp	2012-11-26 21:20:37 UTC (rev 135757)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp	2012-11-26 21:38:45 UTC (rev 135758)
@@ -743,6 +743,9 @@
 if (m_webPage->focusedOrMainFrame()->selection()->selectionType() != VisibleSelection::CaretSelection)
 return;
 
+if (!m_currentFocusElement || !m_currentFocusElement->document() || !m_currentFocusElement->document()->frame())
+return;
+
 // imf_sp_text_t should be generated in pixel viewport coordinates.
 WebCore::IntRect caretRect = m_webPage->focusedOrMainFrame()->selection()->selection().visibleStart().absoluteCaretBounds();
 caretRect = m_webPage->focusedOrMainFrame()->view()->contentsToRootView(caretRect);






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135757] trunk/Source/JavaScriptCore

2012-11-26 Thread oliver
Title: [135757] trunk/Source/_javascript_Core








Revision 135757
Author oli...@apple.com
Date 2012-11-26 13:20:37 -0800 (Mon, 26 Nov 2012)


Log Message
Don't blind all the things.
https://bugs.webkit.org/show_bug.cgi?id=102572

Reviewed by Gavin Barraclough.

No longer blind all the constants in the instruction stream.  We use a
simple non-deterministic filter to avoid blinding everything.  Also modified
the basic integer blinding logic to avoid blinding small negative values.

* assembler/MacroAssembler.h:
(MacroAssembler):
(JSC::MacroAssembler::shouldConsiderBlinding):
(JSC::MacroAssembler::shouldBlind):

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/assembler/MacroAssembler.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135756 => 135757)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 21:00:07 UTC (rev 135756)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 21:20:37 UTC (rev 135757)
@@ -1,3 +1,19 @@
+2012-11-26  Oliver Hunt  
+
+Don't blind all the things.
+https://bugs.webkit.org/show_bug.cgi?id=102572
+
+Reviewed by Gavin Barraclough.
+
+No longer blind all the constants in the instruction stream.  We use a
+simple non-deterministic filter to avoid blinding everything.  Also modified
+the basic integer blinding logic to avoid blinding small negative values.
+
+* assembler/MacroAssembler.h:
+(MacroAssembler):
+(JSC::MacroAssembler::shouldConsiderBlinding):
+(JSC::MacroAssembler::shouldBlind):
+
 2012-11-26  Mark Hahnenberg  
 
 JSObject::copyButterfly doesn't handle undecided indexing types correctly


Modified: trunk/Source/_javascript_Core/assembler/MacroAssembler.h (135756 => 135757)

--- trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 21:00:07 UTC (rev 135756)
+++ trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 21:20:37 UTC (rev 135757)
@@ -839,26 +839,30 @@
 using MacroAssemblerBase::and64;
 using MacroAssemblerBase::convertInt32ToDouble;
 using MacroAssemblerBase::store64;
-
+static const unsigned BlindingModulus = 64;
+bool shouldConsiderBlinding()
+{
+return !(random() & (BlindingModulus - 1));
+}
 bool shouldBlindDouble(double value)
 {
 // Don't trust NaN or +/-Infinity
 if (!isfinite(value))
-return true;
+return shouldConsiderBlinding();
 
 // Try to force normalisation, and check that there's no change
 // in the bit pattern
 if (bitwise_cast(value * 1.0) != bitwise_cast(value))
-return true;
+return shouldConsiderBlinding();
 
 value = abs(value);
 // Only allow a limited set of fractional components
 double scaledValue = value * 8;
 if (scaledValue / 8 != value)
-return true;
+return shouldConsiderBlinding();
 double frac = scaledValue - floor(scaledValue);
 if (frac != 0.0)
-return true;
+return shouldConsiderBlinding();
 
 return value > 0xff;
 }
@@ -887,8 +891,14 @@
 default: {
 if (value <= 0xff)
 return false;
+if (~value <= 0xff)
+return false;
 }
 }
+
+if (!shouldConsiderBlinding())
+return false;
+
 return shouldBlindForSpecificArch(value);
 }
 
@@ -940,6 +950,9 @@
 default: {
 if (value <= 0xff)
 return false;
+if (~value <= 0xff)
+return false;
+
 JSValue jsValue = JSValue::decode(value);
 if (jsValue.isInt32())
 return shouldBlind(Imm32(jsValue.asInt32()));
@@ -950,6 +963,10 @@
 return false;
 }
 }
+
+if (!shouldConsiderBlinding())
+return false;
+
 return shouldBlindForSpecificArch(value);
 }
 
@@ -1068,7 +1085,13 @@
 default:
 if (value <= 0xff)
 return false;
+if (~value <= 0xff)
+return false;
 }
+
+if (!shouldConsiderBlinding())
+return false;
+
 return shouldBlindForSpecificArch(value);
 #endif
 }






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135756] trunk/Source/JavaScriptCore

2012-11-26 Thread mhahnenberg
Title: [135756] trunk/Source/_javascript_Core








Revision 135756
Author mhahnenb...@apple.com
Date 2012-11-26 13:00:07 -0800 (Mon, 26 Nov 2012)


Log Message
JSObject::copyButterfly doesn't handle undecided indexing types correctly
https://bugs.webkit.org/show_bug.cgi?id=102573

Reviewed by Filip Pizlo.

We don't do any copying into the newly allocated vector and we don't zero-initialize CopiedBlocks
during the copying phase, so we end up with uninitialized memory in arrays which have undecided indexing
types. We should just do the actual memcpy from the old block to the new one.

* runtime/JSObject.cpp:
(JSC::JSObject::copyButterfly): Just do the same thing that we do for other contiguous indexing types.

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/runtime/JSObject.cpp




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135755 => 135756)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 20:49:06 UTC (rev 135755)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 21:00:07 UTC (rev 135756)
@@ -1,3 +1,17 @@
+2012-11-26  Mark Hahnenberg  
+
+JSObject::copyButterfly doesn't handle undecided indexing types correctly
+https://bugs.webkit.org/show_bug.cgi?id=102573
+
+Reviewed by Filip Pizlo.
+
+We don't do any copying into the newly allocated vector and we don't zero-initialize CopiedBlocks 
+during the copying phase, so we end up with uninitialized memory in arrays which have undecided indexing 
+types. We should just do the actual memcpy from the old block to the new one. 
+
+* runtime/JSObject.cpp:
+(JSC::JSObject::copyButterfly): Just do the same thing that we do for other contiguous indexing types.
+
 2012-11-26  Julien BRIANCEAU   
 
 [sh4] _javascript_Core JIT build is broken since r135330


Modified: trunk/Source/_javascript_Core/runtime/JSObject.cpp (135755 => 135756)

--- trunk/Source/_javascript_Core/runtime/JSObject.cpp	2012-11-26 20:49:06 UTC (rev 135755)
+++ trunk/Source/_javascript_Core/runtime/JSObject.cpp	2012-11-26 21:00:07 UTC (rev 135756)
@@ -129,13 +129,7 @@
 size_t count;
 
 switch (structure->indexingType()) {
-case ALL_UNDECIDED_INDEXING_TYPES: {
-currentTarget = 0;
-currentSource = 0;
-count = 0;
-break;
-}
-
+case ALL_UNDECIDED_INDEXING_TYPES:
 case ALL_CONTIGUOUS_INDEXING_TYPES:
 case ALL_INT32_INDEXING_TYPES:
 case ALL_DOUBLE_INDEXING_TYPES: {






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135755] trunk/Source/WebCore

2012-11-26 Thread psolanki
Title: [135755] trunk/Source/WebCore








Revision 135755
Author psola...@apple.com
Date 2012-11-26 12:49:06 -0800 (Mon, 26 Nov 2012)


Log Message
Add ResourceBuffer::append(CFDataRef) to get code to compile with USE(NETWORK_CFDATA_ARRAY_CALLBACK)
https://bugs.webkit.org/show_bug.cgi?id=102706

Reviewed by Brent Fulgham.

No new tests because the flag isn't enabled. Also the functionality should be covered by
existing tests.

* loader/ResourceBuffer.cpp:
(WebCore):
(WebCore::ResourceBuffer::append):
* loader/ResourceBuffer.h:
(ResourceBuffer):
* loader/mac/ResourceLoaderMac.mm:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/loader/ResourceBuffer.cpp
trunk/Source/WebCore/loader/ResourceBuffer.h
trunk/Source/WebCore/loader/mac/ResourceLoaderMac.mm




Diff

Modified: trunk/Source/WebCore/ChangeLog (135754 => 135755)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 20:37:06 UTC (rev 135754)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 20:49:06 UTC (rev 135755)
@@ -1,3 +1,20 @@
+2012-11-26  Pratik Solanki  
+
+Add ResourceBuffer::append(CFDataRef) to get code to compile with USE(NETWORK_CFDATA_ARRAY_CALLBACK)
+https://bugs.webkit.org/show_bug.cgi?id=102706
+
+Reviewed by Brent Fulgham.
+
+No new tests because the flag isn't enabled. Also the functionality should be covered by
+existing tests.
+
+* loader/ResourceBuffer.cpp:
+(WebCore):
+(WebCore::ResourceBuffer::append):
+* loader/ResourceBuffer.h:
+(ResourceBuffer):
+* loader/mac/ResourceLoaderMac.mm:
+
 2012-11-26  Tony Chang  
 
 Move more functions from internals.settings to internals


Modified: trunk/Source/WebCore/loader/ResourceBuffer.cpp (135754 => 135755)

--- trunk/Source/WebCore/loader/ResourceBuffer.cpp	2012-11-26 20:37:06 UTC (rev 135754)
+++ trunk/Source/WebCore/loader/ResourceBuffer.cpp	2012-11-26 20:49:06 UTC (rev 135755)
@@ -71,6 +71,14 @@
 m_sharedBuffer->append(data, size);
 }
 
+#if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
+void ResourceBuffer::append(CFDataRef data)
+{
+ASSERT(m_sharedBuffer);
+m_sharedBuffer->append(data);
+}
+#endif
+
 void ResourceBuffer::clear()
 {
 m_sharedBuffer->clear();


Modified: trunk/Source/WebCore/loader/ResourceBuffer.h (135754 => 135755)

--- trunk/Source/WebCore/loader/ResourceBuffer.h	2012-11-26 20:37:06 UTC (rev 135754)
+++ trunk/Source/WebCore/loader/ResourceBuffer.h	2012-11-26 20:49:06 UTC (rev 135755)
@@ -55,6 +55,9 @@
 virtual bool isEmpty() const;
 
 void append(const char*, unsigned);
+#if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
+void append(CFDataRef);
+#endif
 void clear();
 
 unsigned getSomeData(const char*& data, unsigned position = 0) const;


Modified: trunk/Source/WebCore/loader/mac/ResourceLoaderMac.mm (135754 => 135755)

--- trunk/Source/WebCore/loader/mac/ResourceLoaderMac.mm	2012-11-26 20:37:06 UTC (rev 135754)
+++ trunk/Source/WebCore/loader/mac/ResourceLoaderMac.mm	2012-11-26 20:49:06 UTC (rev 135755)
@@ -35,6 +35,7 @@
 
 #if USE(NETWORK_CFDATA_ARRAY_CALLBACK)
 #include "InspectorInstrumentation.h"
+#include "ResourceBuffer.h"
 #endif
 
 #if USE(CFNETWORK)






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135754] trunk/Source/WebKit/chromium

2012-11-26 Thread rjkroege
Title: [135754] trunk/Source/WebKit/chromium








Revision 135754
Author rjkro...@chromium.org
Date 2012-11-26 12:37:06 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed, rolling out r135743.
http://trac.webkit.org/changeset/135743
https://bugs.webkit.org/show_bug.cgi?id=103280

Caused compile failure 'SK_DISABLE_DITHER_32BIT_GRADIENT'
macro redefined (Requested by rjkroege on #webkit).

Patch by Sheriff Bot  on 2012-11-26

* skia_webkit.gyp:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/skia_webkit.gyp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135753 => 135754)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 20:27:36 UTC (rev 135753)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 20:37:06 UTC (rev 135754)
@@ -1,3 +1,14 @@
+2012-11-26  Sheriff Bot  
+
+Unreviewed, rolling out r135743.
+http://trac.webkit.org/changeset/135743
+https://bugs.webkit.org/show_bug.cgi?id=103280
+
+Caused compile failure 'SK_DISABLE_DITHER_32BIT_GRADIENT'
+macro redefined (Requested by rjkroege on #webkit).
+
+* skia_webkit.gyp:
+
 2012-11-26  Mike Reed  
 
 add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining


Modified: trunk/Source/WebKit/chromium/skia_webkit.gyp (135753 => 135754)

--- trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 20:27:36 UTC (rev 135753)
+++ trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 20:37:06 UTC (rev 135754)
@@ -39,9 +39,6 @@
 'defines': [
   # Place defines here that require significant WebKit rebaselining, or that
   # are otherwise best removed in WebKit and then rolled into Chromium.
-  
-  # extracted from SkUserConfig.h, in preparation for rebaselining.
-  'SK_DISABLE_DITHER_32BIT_GRADIENT',
 ],
   },
 },






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135753] trunk

2012-11-26 Thread tony
Title: [135753] trunk








Revision 135753
Author t...@chromium.org
Date 2012-11-26 12:27:36 -0800 (Mon, 26 Nov 2012)


Log Message
Move more functions from internals.settings to internals
https://bugs.webkit.org/show_bug.cgi?id=102976

Reviewed by Adam Barth.

Source/WebCore:

Move functions that don't have to do with Settings off of internals.settings.
setPagination and configurationForViewport were defined on internals, so we
can inline the functions (no test change).

setEnableMockPagePopup is moved to Internals.

No new tests, this is a refactor.

* testing/InternalSettings.cpp:
(WebCore::InternalSettings::reset): Move reset code into Internals.
* testing/InternalSettings.h:
(InternalSettings): Remove code for setPagination, configurationForViewport and setEnableMockPagePopup.
* testing/InternalSettings.idl: Remove setPagination and setEnableMockPagePopup.
* testing/Internals.cpp:
(WebCore): Use a static to keep track of the MockPagePopupDriver.
(WebCore::Internals::resetToConsistentState): Code from InternalSettings::reset
(WebCore::Internals::setEnableMockPagePopup): Code copied from InternalSettings.
(WebCore::Internals::pagePopupController): Code copied from InternalSettings.
(WebCore::Internals::setPagination): Code copied from InternalSettings.
(WebCore::Internals::configurationForViewport): Code copied from InternalSettings.
* testing/Internals.h:
(Internals): Add setEnableMockPagePopup.
* testing/Internals.idl: Add setEnableMockPagePopup.

LayoutTests:

Move internals.settings.setEnableMockPagePopup to internals.setEnableMockPagePopup.

* fast/forms/resources/picker-common.js:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/fast/forms/resources/picker-common.js
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/testing/InternalSettings.cpp
trunk/Source/WebCore/testing/InternalSettings.h
trunk/Source/WebCore/testing/InternalSettings.idl
trunk/Source/WebCore/testing/Internals.cpp
trunk/Source/WebCore/testing/Internals.h
trunk/Source/WebCore/testing/Internals.idl




Diff

Modified: trunk/LayoutTests/ChangeLog (135752 => 135753)

--- trunk/LayoutTests/ChangeLog	2012-11-26 20:17:36 UTC (rev 135752)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 20:27:36 UTC (rev 135753)
@@ -1,3 +1,14 @@
+2012-11-26  Tony Chang  
+
+Move more functions from internals.settings to internals
+https://bugs.webkit.org/show_bug.cgi?id=102976
+
+Reviewed by Adam Barth.
+
+Move internals.settings.setEnableMockPagePopup to internals.setEnableMockPagePopup.
+
+* fast/forms/resources/picker-common.js:
+
 2012-11-26  Andrei Bucur  
 
 [CSS Regions] Add Region info for RootLineBoxes and pack the pagination data


Modified: trunk/LayoutTests/fast/forms/resources/picker-common.js (135752 => 135753)

--- trunk/LayoutTests/fast/forms/resources/picker-common.js	2012-11-26 20:17:36 UTC (rev 135752)
+++ trunk/LayoutTests/fast/forms/resources/picker-common.js	2012-11-26 20:27:36 UTC (rev 135753)
@@ -1,6 +1,6 @@
 window.jsTestIsAsync = true;
 if (window.internals)
-internals.settings.setEnableMockPagePopup(true);
+internals.setEnableMockPagePopup(true);
 
 var popupWindow = null;
 


Modified: trunk/Source/WebCore/ChangeLog (135752 => 135753)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 20:17:36 UTC (rev 135752)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 20:27:36 UTC (rev 135753)
@@ -1,3 +1,34 @@
+2012-11-26  Tony Chang  
+
+Move more functions from internals.settings to internals
+https://bugs.webkit.org/show_bug.cgi?id=102976
+
+Reviewed by Adam Barth.
+
+Move functions that don't have to do with Settings off of internals.settings.
+setPagination and configurationForViewport were defined on internals, so we
+can inline the functions (no test change).
+
+setEnableMockPagePopup is moved to Internals.
+
+No new tests, this is a refactor.
+
+* testing/InternalSettings.cpp:
+(WebCore::InternalSettings::reset): Move reset code into Internals.
+* testing/InternalSettings.h:
+(InternalSettings): Remove code for setPagination, configurationForViewport and setEnableMockPagePopup.
+* testing/InternalSettings.idl: Remove setPagination and setEnableMockPagePopup.
+* testing/Internals.cpp:
+(WebCore): Use a static to keep track of the MockPagePopupDriver.
+(WebCore::Internals::resetToConsistentState): Code from InternalSettings::reset
+(WebCore::Internals::setEnableMockPagePopup): Code copied from InternalSettings.
+(WebCore::Internals::pagePopupController): Code copied from InternalSettings.
+(WebCore::Internals::setPagination): Code copied from InternalSettings.
+(WebCore::Internals::configurationForViewport): Code copied from InternalSettings.
+* testing/Internals.h:
+(Internals): Add setEnableMockPagePopup.
+* testing/Internals.idl: Add setEnableMockPagePopup.
+
 2012-11-26  Andrei Bucur  

[webkit-changes] [135752] trunk

2012-11-26 Thread commit-queue
Title: [135752] trunk








Revision 135752
Author commit-qu...@webkit.org
Date 2012-11-26 12:17:36 -0800 (Mon, 26 Nov 2012)


Log Message
[EFL][WK2] Add setting to enable / disable HTML5 local storage functionality
https://bugs.webkit.org/show_bug.cgi?id=103224

Patch by Christophe Dumez  on 2012-11-26
Reviewed by Laszlo Gombos.

Source/WebKit2:

Add API to ewk_settings to enable / disable the HTML5
local storage functionality. The functionality is
enabled by default.

* UIProcess/API/efl/ewk_settings.cpp:
(ewk_settings_local_storage_enabled_set):
(ewk_settings_local_storage_enabled_get):
* UIProcess/API/efl/ewk_settings.h:
* UIProcess/API/efl/tests/test_ewk2_settings.cpp:
(TEST_F): Add API test for ewk_settings_local_storage_enabled_get / set.

Tools:

Add --local-storage command line argument to MiniBrowser to
explicitely disable HTML5 local storage functionality. This
is useful for testing purposes.

* MiniBrowser/efl/main.c:
(window_create):
(elm_main):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp
trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.h
trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp
trunk/Tools/ChangeLog
trunk/Tools/MiniBrowser/efl/main.c




Diff

Modified: trunk/Source/WebKit2/ChangeLog (135751 => 135752)

--- trunk/Source/WebKit2/ChangeLog	2012-11-26 20:02:10 UTC (rev 135751)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-26 20:17:36 UTC (rev 135752)
@@ -1,3 +1,21 @@
+2012-11-26  Christophe Dumez  
+
+[EFL][WK2] Add setting to enable / disable HTML5 local storage functionality
+https://bugs.webkit.org/show_bug.cgi?id=103224
+
+Reviewed by Laszlo Gombos.
+
+Add API to ewk_settings to enable / disable the HTML5
+local storage functionality. The functionality is
+enabled by default.
+
+* UIProcess/API/efl/ewk_settings.cpp:
+(ewk_settings_local_storage_enabled_set):
+(ewk_settings_local_storage_enabled_get):
+* UIProcess/API/efl/ewk_settings.h:
+* UIProcess/API/efl/tests/test_ewk2_settings.cpp:
+(TEST_F): Add API test for ewk_settings_local_storage_enabled_get / set.
+
 2012-11-26  Rafael Brandao  
 
 [CoordinatedGraphics] Access to LayerTreeRenderer::m_renderQueue should be thread safe


Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp (135751 => 135752)

--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp	2012-11-26 20:02:10 UTC (rev 135751)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp	2012-11-26 20:17:36 UTC (rev 135752)
@@ -332,3 +332,19 @@
 
 return settings->preferences()->_javascript_CanOpenWindowsAutomatically();
 }
+
+Eina_Bool ewk_settings_local_storage_enabled_set(Ewk_Settings* settings, Eina_Bool enable)
+{
+EINA_SAFETY_ON_NULL_RETURN_VAL(settings, false);
+
+settings->preferences()->setLocalStorageEnabled(enable);
+
+return true;
+}
+
+Eina_Bool ewk_settings_local_storage_enabled_get(const Ewk_Settings* settings)
+{
+EINA_SAFETY_ON_NULL_RETURN_VAL(settings, false);
+
+return settings->preferences()->localStorageEnabled();
+}


Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.h (135751 => 135752)

--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.h	2012-11-26 20:02:10 UTC (rev 135751)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_settings.h	2012-11-26 20:17:36 UTC (rev 135752)
@@ -391,6 +391,39 @@
  */
 EAPI Eina_Bool ewk_settings_scripts_can_open_windows_get(const Ewk_Settings *settings);
 
+/**
+ * Enables/disables the HTML5 local storage functionality.
+ *
+ * Local storage provides simple synchronous storage access.
+ * HTML5 local storage specification is available at
+ * http://dev.w3.org/html5/webstorage/.
+ *
+ * By default, the HTML5 local storage is enabled.
+ *
+ * @param settings settings object to set the HTML5 local storage state
+ * @param enable @c EINA_TRUE to enable HTML5 local storage,
+ *@c EINA_FALSE to disable
+ *
+ * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
+ */
+EAPI Eina_Bool ewk_settings_local_storage_enabled_set(Ewk_Settings *settings, Eina_Bool enable);
+
+/**
+ * Returns whether the HTML5 local storage functionality is enabled or not.
+ *
+ * Local storage provides simple synchronous storage access.
+ * HTML5 local storage specification is available at
+ * http://dev.w3.org/html5/webstorage/.
+ *
+ * By default, the HTML5 local storage is enabled.
+ *
+ * @param settings settings object to query whether HTML5 local storage is enabled
+ *
+ * @return @c EINA_TRUE if the HTML5 local storage is enabled
+ * @c EINA_FALSE if disabled or on failure
+ */
+EAPI Eina_Bool ewk_settings_local_storage_enabled_get(const Ewk_Settings *settings);
+
 #ifdef __cplusplus
 }
 #endif


Modified: trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp (135751 => 135752)

--- trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp	2012-11-26 20:02:10 

[webkit-changes] [135751] branches/safari-536.28-branch

2012-11-26 Thread lforschler
Title: [135751] branches/safari-536.28-branch








Revision 135751
Author lforsch...@apple.com
Date 2012-11-26 12:02:10 -0800 (Mon, 26 Nov 2012)


Log Message
Merged r132713.  

Modified Paths

branches/safari-536.28-branch/LayoutTests/ChangeLog
branches/safari-536.28-branch/Source/WebKit2/ChangeLog
branches/safari-536.28-branch/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
branches/safari-536.28-branch/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
branches/safari-536.28-branch/Tools/ChangeLog
branches/safari-536.28-branch/Tools/DumpRenderTree/DumpRenderTree.gypi
branches/safari-536.28-branch/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
branches/safari-536.28-branch/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp
branches/safari-536.28-branch/Tools/DumpRenderTree/TestNetscapePlugIn/PluginTest.h
branches/safari-536.28-branch/Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj
branches/safari-536.28-branch/Tools/DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro
branches/safari-536.28-branch/Tools/GNUmakefile.am


Added Paths

branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp-expected.txt
branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp.html
branches/safari-536.28-branch/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/NPRuntimeCallsWithNullNPP.cpp




Diff

Modified: branches/safari-536.28-branch/LayoutTests/ChangeLog (135750 => 135751)

--- branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-26 20:00:49 UTC (rev 135750)
+++ branches/safari-536.28-branch/LayoutTests/ChangeLog	2012-11-26 20:02:10 UTC (rev 135751)
@@ -1,3 +1,19 @@
+2012-11-26  Lucas Forschler  
+
+Merge r132713
+
+2012-10-26  Anders Carlsson   
+
+Crash when making NPRuntime calls with a null NPP pointer 
+https://bugs.webkit.org/show_bug.cgi?id=100569 
+
+Reviewed by Darin Adler. 
+
+Add new tests. 
+
+* plugins/npruntime/npruntime-calls-with-null-npp-expected.txt: Added. 
+* plugins/npruntime/npruntime-calls-with-null-npp.html: Added. 
+
 2012-11-18  Simon Fraser  
 
  Simplify bounds computation for the RenderView's layer (102597)


Copied: branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp-expected.txt (from rev 132713, trunk/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp-expected.txt) (0 => 135751)

--- branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp-expected.txt	(rev 0)
+++ branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp-expected.txt	2012-11-26 20:02:10 UTC (rev 135751)
@@ -0,0 +1,4 @@
+
+Test that calling various NPRuntime related NPN_ functions doesn't crash.
+
+SUCCESS!


Copied: branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp.html (from rev 132713, trunk/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp.html) (0 => 135751)

--- branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp.html	(rev 0)
+++ branches/safari-536.28-branch/LayoutTests/plugins/npruntime/npruntime-calls-with-null-npp.html	2012-11-26 20:02:10 UTC (rev 135751)
@@ -0,0 +1,13 @@
+
+function runTest() {
+if (window.testRunner) {
+testRunner.dumpAsText();
+testRunner.waitUntilDone();
+}
+}
+
+
+
+Test that calling various NPRuntime related NPN_ functions doesn't crash.
+FAILURE
+


Modified: branches/safari-536.28-branch/Source/WebKit2/ChangeLog (135750 => 135751)

--- branches/safari-536.28-branch/Source/WebKit2/ChangeLog	2012-11-26 20:00:49 UTC (rev 135750)
+++ branches/safari-536.28-branch/Source/WebKit2/ChangeLog	2012-11-26 20:02:10 UTC (rev 135751)
@@ -1,3 +1,29 @@
+2012-11-26  Lucas Forschler  
+
+Merge r132713
+
+2012-10-26  Anders Carlsson  
+
+Crash when making NPRuntime calls with a null NPP pointer
+https://bugs.webkit.org/show_bug.cgi?id=100569
+
+
+
+Reviewed by Darin Adler.
+
+Finally bite the bullet and remove the assertion from NetscapePlugin::fromNPP. The WebKit1 equivalent of this
+function used to return the plug-in currently being initialized in NPP_New, but we've never done that in WebKit2
+and it has never been necessary. The crashes fixed here are not from calls underneath NPP_New so fixing it wouldn't
+do us any good anyway.
+
+Also, make the PluginDestructionProtector handle a null plug-in gracefully.
+
+* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
+(WebKit::PluginDestructionProtector::PluginDestructionProtector):
+(PluginDestructionProtector):
+* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
+   

[webkit-changes] [135750] trunk

2012-11-26 Thread commit-queue
Title: [135750] trunk








Revision 135750
Author commit-qu...@webkit.org
Date 2012-11-26 12:00:49 -0800 (Mon, 26 Nov 2012)


Log Message
[CSS Regions] Add Region info for RootLineBoxes and pack the pagination data
https://bugs.webkit.org/show_bug.cgi?id=101332

Patch by Andrei Bucur  on 2012-11-26
Reviewed by David Hyatt.

Source/WebCore:

Currently the pagination information for lines is spread between the RootInlineBox and InlineFlowBox classes, consuming memory even though
the boxes were not the result of an pagination layout. To overcome this, a new struct (LineFragmentationData) is created that wraps all the data,
including two new members, the containing Region for the line and a boolean that states if the line was laid out in a Region or not.
The flag is necessary because the sanitize function on LineFragmentationData resets the containing Region to 0 if the Region was removed from
chain (so a value of 0 for the containing Region means two things). The sanitize function should prevent access to an invalid address.
The containing Region is used to detect if a line changed the Region where it resides. This will be helpful especially when implementing region
styling for layout properties (e.g. the font-size property https://bugs.webkit.org/show_bug.cgi?id=95559 ).
A line can change the region when it is shifted inside the containing block or if the entire block moves. This means it's better to delegate
the task of updating the containing Region to the block.

Tests: fast/regions/line-containing-region-crash.html

* rendering/InlineFlowBox.cpp:
(SameSizeAsInlineFlowBox):
* rendering/InlineFlowBox.h:
(WebCore::InlineFlowBox::InlineFlowBox):
(InlineFlowBox):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::lineWidthForPaginatedLineChanged):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::layoutRunsAndFloatsInRange):
(WebCore::RenderBlock::linkToEndLineIfNeeded):
(WebCore::RenderBlock::determineStartPosition):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::RootInlineBox):
(WebCore::RootInlineBox::setContainingRegion):
(WebCore):
(WebCore::RootInlineBox::LineFragmentationData::sanitize): This is an O(1) function that checks if the containig Region is still valid pointer.
* rendering/RootInlineBox.h:
(WebCore):
(WebCore::RootInlineBox::paginationStrut):
(WebCore::RootInlineBox::setPaginationStrut):
(WebCore::RootInlineBox::isFirstAfterPageBreak):
(WebCore::RootInlineBox::setIsFirstAfterPageBreak):
(WebCore::RootInlineBox::paginatedLineWidth):
(WebCore::RootInlineBox::setPaginatedLineWidth):
(RootInlineBox):
(WebCore::RootInlineBox::containingRegion):
(WebCore::RootInlineBox::hasContainingRegion): Use this to determine if the line has a region or not.
(WebCore::RootInlineBox::ensureLineFragmentationData):
(LineFragmentationData):
(WebCore::RootInlineBox::LineFragmentationData::LineFragmentationData):

LayoutTests:

The test checks if there is a crash when doing a line layout if:
- the flow has no region
- the flow has a region but the lines have no containing region
- the flow has no region but the lines have a containing region

* fast/regions/line-containing-region-crash-expected.txt: Added.
* fast/regions/line-containing-region-crash.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/rendering/InlineFlowBox.cpp
trunk/Source/WebCore/rendering/InlineFlowBox.h
trunk/Source/WebCore/rendering/RenderBlock.cpp
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
trunk/Source/WebCore/rendering/RootInlineBox.cpp
trunk/Source/WebCore/rendering/RootInlineBox.h


Added Paths

trunk/LayoutTests/fast/regions/line-containing-region-crash-expected.txt
trunk/LayoutTests/fast/regions/line-containing-region-crash.html




Diff

Modified: trunk/LayoutTests/ChangeLog (135749 => 135750)

--- trunk/LayoutTests/ChangeLog	2012-11-26 19:57:40 UTC (rev 135749)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 20:00:49 UTC (rev 135750)
@@ -1,3 +1,18 @@
+2012-11-26  Andrei Bucur  
+
+[CSS Regions] Add Region info for RootLineBoxes and pack the pagination data
+https://bugs.webkit.org/show_bug.cgi?id=101332
+
+Reviewed by David Hyatt.
+
+The test checks if there is a crash when doing a line layout if:
+- the flow has no region
+- the flow has a region but the lines have no containing region
+- the flow has no region but the lines have a containing region
+
+* fast/regions/line-containing-region-crash-expected.txt: Added.
+* fast/regions/line-containing-region-crash.html: Added.
+
 2012-11-26  Michelangelo De Simone  
 
 [CSS Shaders] Add IDL file and bindings for mix function


Added: trunk/LayoutTests/fast/regions/line-containing-region-crash-expected.txt (0 => 135750)

--- trunk/LayoutTests/fast/regions/line-containing-region-crash-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/regions/line-containing-region-crash-expected.txt	2012-11-26 20:00:49

[webkit-changes] [135749] trunk

2012-11-26 Thread michelangelo
Title: [135749] trunk








Revision 135749
Author michelang...@webkit.org
Date 2012-11-26 11:57:40 -0800 (Mon, 26 Nov 2012)


Log Message
[CSS Shaders] Add IDL file and bindings for mix function
https://bugs.webkit.org/show_bug.cgi?id=93011

Reviewed by Dean Jackson.

Source/WebCore:

_javascript_ bindings have been added for the Custom Filter mix()
function (WebKitCSSMixFunctionValue). As of now, this is only a
placeholder that extends CSSValueList without adding any new
property.

Test: css3/filters/custom/custom-filter-mix-bindings.html

* CMakeLists.txt: mix() IDL has been added to the Generator;
DerivedSources have been included.
* DerivedSources.cpp: Ditto.
* DerivedSources.make: Ditto.
* DerivedSources.pri: Ditto.
* GNUmakefile.list.am: Ditto.
* WebCore.gypi: Ditto.
* WebCore.vcproj/WebCore.vcproj: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.
* bindings/js/JSCSSValueCustom.cpp:
(WebCore::toJS): return a JSC DOM wrapper for WebKitCSSMixFunctionValue.
* bindings/v8/custom/V8CSSValueCustom.cpp:
(WebCore::V8CSSValue::dispatchWrapCustom): Ditto, for V8.
* css/WebKitCSSMixFunctionValue.idl: Added.

LayoutTests:

Test for the Custom Filter mix() function JS bindings.

* css3/filters/custom/custom-filter-mix-bindings-expected.txt: Added.
* css3/filters/custom/custom-filter-mix-bindings.html: Added.
* css3/filters/script-tests/custom-filter-mix-bindings.js: Added.
(jsWrapperClass):
(shouldBeType):
* platform/chromium/css3/filters/custom/custom-filter-mix-bindings-expected.txt: Added.
* platform/efl/fast/js/global-constructors-expected.txt: Updated with the new WebKitCSSMixFunctionValueConstructor.
* platform/gtk/fast/js/global-constructors-expected.txt: Ditto.
* platform/mac/fast/js/global-constructors-expected.txt: Ditto.
* platform/qt-5.0/fast/js/global-constructors-expected.txt: Ditto.
* platform/qt/fast/js/global-constructors-expected.txt: Ditto.
* platform/win/fast/js/global-constructors-expected.txt: Ditto.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/efl/fast/js/global-constructors-expected.txt
trunk/LayoutTests/platform/gtk/fast/js/global-constructors-expected.txt
trunk/LayoutTests/platform/mac/fast/js/global-constructors-expected.txt
trunk/LayoutTests/platform/qt/fast/js/global-constructors-expected.txt
trunk/LayoutTests/platform/qt-5.0/fast/js/global-constructors-expected.txt
trunk/LayoutTests/platform/win/fast/js/global-constructors-expected.txt
trunk/Source/WebCore/CMakeLists.txt
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/DerivedSources.cpp
trunk/Source/WebCore/DerivedSources.make
trunk/Source/WebCore/DerivedSources.pri
trunk/Source/WebCore/GNUmakefile.list.am
trunk/Source/WebCore/WebCore.gypi
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
trunk/Source/WebCore/bindings/js/JSCSSValueCustom.cpp
trunk/Source/WebCore/bindings/v8/custom/V8CSSValueCustom.cpp
trunk/Source/WebCore/page/DOMWindow.idl


Added Paths

trunk/LayoutTests/css3/filters/custom/custom-filter-mix-bindings-expected.txt
trunk/LayoutTests/css3/filters/custom/custom-filter-mix-bindings.html
trunk/LayoutTests/css3/filters/script-tests/custom-filter-mix-bindings.js
trunk/LayoutTests/platform/chromium/css3/filters/custom/custom-filter-mix-bindings-expected.txt
trunk/Source/WebCore/css/WebKitCSSMixFunctionValue.idl




Diff

Modified: trunk/LayoutTests/ChangeLog (135748 => 135749)

--- trunk/LayoutTests/ChangeLog	2012-11-26 19:45:31 UTC (rev 135748)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 19:57:40 UTC (rev 135749)
@@ -1,3 +1,25 @@
+2012-11-26  Michelangelo De Simone  
+
+[CSS Shaders] Add IDL file and bindings for mix function
+https://bugs.webkit.org/show_bug.cgi?id=93011
+
+Reviewed by Dean Jackson.
+
+Test for the Custom Filter mix() function JS bindings.
+
+* css3/filters/custom/custom-filter-mix-bindings-expected.txt: Added.
+* css3/filters/custom/custom-filter-mix-bindings.html: Added.
+* css3/filters/script-tests/custom-filter-mix-bindings.js: Added.
+(jsWrapperClass):
+(shouldBeType):
+* platform/chromium/css3/filters/custom/custom-filter-mix-bindings-expected.txt: Added.
+* platform/efl/fast/js/global-constructors-expected.txt: Updated with the new WebKitCSSMixFunctionValueConstructor.
+* platform/gtk/fast/js/global-constructors-expected.txt: Ditto.
+* platform/mac/fast/js/global-constructors-expected.txt: Ditto.
+* platform/qt-5.0/fast/js/global-constructors-expected.txt: Ditto.
+* platform/qt/fast/js/global-constructors-expected.txt: Ditto.
+* platform/win/fast/js/global-constructors-expected.txt: Ditto.
+
 2012-11-26  Julien Chaffraix  
 
 RenderBox::computePercentageLogicalHeight should use containingBlockLogicalWidthForContent


Added: trunk/LayoutTests/css3/filters/custom/custom-filter-mix-bindings-expected.txt (0 => 135749)

--- trunk/LayoutTests/css3/filters/custom/custom-filter-mix-b

[webkit-changes] [135747] branches/chromium/1312/Source/WebCore/dom/Document.cpp

2012-11-26 Thread kareng
Title: [135747] branches/chromium/1312/Source/WebCore/dom/Document.cpp








Revision 135747
Author kar...@chromium.org
Date 2012-11-26 11:42:13 -0800 (Mon, 26 Nov 2012)


Log Message
Merge 135709 - Circular reference between Document and MediaQueryMatcher.
https://bugs.webkit.org/show_bug.cgi?id=103242

Patch by Marja Hölttä  on 2012-11-26
Reviewed by Kenneth Rohde Christiansen.

It's not enough to clean up listeners in MediaQueryMatcher in ~Document,
since MediaQueryListListener keeps the Document alive. This caused
www.crbug.com/113983.

No new tests: No visible change in behavior (except that it doesn't leak memory).

* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::detach):

TBR=commit-qu...@webkit.org
Review URL: https://codereview.chromium.org/11415134

Modified Paths

branches/chromium/1312/Source/WebCore/dom/Document.cpp




Diff

Modified: branches/chromium/1312/Source/WebCore/dom/Document.cpp (135746 => 135747)

--- branches/chromium/1312/Source/WebCore/dom/Document.cpp	2012-11-26 19:37:45 UTC (rev 135746)
+++ branches/chromium/1312/Source/WebCore/dom/Document.cpp	2012-11-26 19:42:13 UTC (rev 135747)
@@ -656,9 +656,6 @@
 
 m_weakReference->clear();
 
-if (m_mediaQueryMatcher)
-m_mediaQueryMatcher->documentDestroyed();
-
 clearStyleResolver(); // We need to destory CSSFontSelector before destroying m_cachedResourceLoader.
 
 // It's possible for multiple Documents to end up referencing the same CachedResourceLoader (e.g., SVGImages
@@ -2151,6 +2148,9 @@
 // callers of Document::detach().
 m_frame = 0;
 m_renderArena.clear();
+
+if (m_mediaQueryMatcher)
+m_mediaQueryMatcher->documentDestroyed();
 }
 
 void Document::prepareForDestruction()






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135746] trunk/Source/WebCore

2012-11-26 Thread simon . fraser
Title: [135746] trunk/Source/WebCore








Revision 135746
Author simon.fra...@apple.com
Date 2012-11-26 11:37:45 -0800 (Mon, 26 Nov 2012)


Log Message
Optimize layer updates after scrolling
https://bugs.webkit.org/show_bug.cgi?id=102635

Reviewed by Sam Weinig.

updateLayerPositionsAfterScroll() previously unconditionally cleared clip
rects, and recomputed repaint rects too often. Recomputing both of these
can be very expensive, as they involve tree walks up to the root.

We can optimize layer updates after document scrolling by only clearing clip
rects, and recomputing repaint rects, if we encounter a fixed- or sticky-position
element. For overflow scroll, we have to clear clip rects and recompute repaint rects.

* page/FrameView.cpp:
(WebCore::FrameView::repaintFixedElementsAfterScrolling): Call updateLayerPositionsAfterDocumentScroll().
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateLayerPositions): Call clearClipRects() because
updateLayerPosition() no longer does.
(WebCore::RenderLayer::updateLayerPositionsAfterDocumentScroll): Version of updateLayerPositionsAfterScroll()
that is for document scrolls. It has no need to push layers to the geometry map.
(WebCore::RenderLayer::updateLayerPositionsAfterOverflowScroll): Pushes layers to the geometry map,
and calls updateLayerPositionsAfterScroll() with the IsOverflowScroll flag.
(WebCore::RenderLayer::updateLayerPositionsAfterScroll): Set the HasChangedAncestor flag
if our location changed, and use that as a hint to clear cached rects. Be more conservative
than before about when to clear cached clip rects.
(WebCore::RenderLayer::updateLayerPosition):  Move responsibility for calling
clearClipRects() ouf of this function and into callers.
(The one caller outside RenderLayer will be removed via bug 102624).
Return a bool indicating whether our position changed.
(WebCore::RenderLayer::scrollTo): Call updateLayerPositionsAfterOverflowScroll().
(WebCore::RenderLayer::updateClipRects): Added some #ifdeffed out code that is useful
to verify that cached clips are correct; it's too slow to leave enabled in debug builds.
* rendering/RenderLayer.h:
(WebCore::RenderLayer::setLocation): Change to take a LayoutPoint, rather than separate
x and y.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/page/FrameView.cpp
trunk/Source/WebCore/rendering/RenderLayer.cpp
trunk/Source/WebCore/rendering/RenderLayer.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135745 => 135746)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 19:37:18 UTC (rev 135745)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 19:37:45 UTC (rev 135746)
@@ -1,3 +1,41 @@
+2012-11-26  Simon Fraser  
+
+Optimize layer updates after scrolling
+https://bugs.webkit.org/show_bug.cgi?id=102635
+
+Reviewed by Sam Weinig.
+
+updateLayerPositionsAfterScroll() previously unconditionally cleared clip
+rects, and recomputed repaint rects too often. Recomputing both of these
+can be very expensive, as they involve tree walks up to the root.
+
+We can optimize layer updates after document scrolling by only clearing clip
+rects, and recomputing repaint rects, if we encounter a fixed- or sticky-position
+element. For overflow scroll, we have to clear clip rects and recompute repaint rects.
+
+* page/FrameView.cpp:
+(WebCore::FrameView::repaintFixedElementsAfterScrolling): Call updateLayerPositionsAfterDocumentScroll().
+* rendering/RenderLayer.cpp:
+(WebCore::RenderLayer::updateLayerPositions): Call clearClipRects() because
+updateLayerPosition() no longer does.
+(WebCore::RenderLayer::updateLayerPositionsAfterDocumentScroll): Version of updateLayerPositionsAfterScroll()
+that is for document scrolls. It has no need to push layers to the geometry map.
+(WebCore::RenderLayer::updateLayerPositionsAfterOverflowScroll): Pushes layers to the geometry map,
+and calls updateLayerPositionsAfterScroll() with the IsOverflowScroll flag.
+(WebCore::RenderLayer::updateLayerPositionsAfterScroll): Set the HasChangedAncestor flag
+if our location changed, and use that as a hint to clear cached rects. Be more conservative
+than before about when to clear cached clip rects.
+(WebCore::RenderLayer::updateLayerPosition):  Move responsibility for calling
+clearClipRects() ouf of this function and into callers.
+(The one caller outside RenderLayer will be removed via bug 102624).
+Return a bool indicating whether our position changed.
+(WebCore::RenderLayer::scrollTo): Call updateLayerPositionsAfterOverflowScroll().
+(WebCore::RenderLayer::updateClipRects): Added some #ifdeffed out code that is useful
+to verify that cached clips are correct; it's too slow to leave enabled in debug builds.
+* rendering/RenderLayer.h:
+(WebCore::RenderLayer::setLocation): Change to take a

[webkit-changes] [135745] trunk/Source/JavaScriptCore

2012-11-26 Thread commit-queue
Title: [135745] trunk/Source/_javascript_Core








Revision 135745
Author commit-qu...@webkit.org
Date 2012-11-26 11:37:18 -0800 (Mon, 26 Nov 2012)


Log Message
[sh4] _javascript_Core JIT build is broken since r135330
Add missing implementation for sh4 arch.
https://bugs.webkit.org/show_bug.cgi?id=103145

Patch by Julien BRIANCEAU  on 2012-11-26
Reviewed by Oliver Hunt.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::canJumpReplacePatchableBranchPtrWithPatch):
(MacroAssemblerSH4):
(JSC::MacroAssemblerSH4::startOfBranchPtrWithPatchOnRegister):
(JSC::MacroAssemblerSH4::revertJumpReplacementToBranchPtrWithPatch):
(JSC::MacroAssemblerSH4::startOfPatchableBranchPtrWithPatchOnAddress):
(JSC::MacroAssemblerSH4::revertJumpReplacementToPatchableBranchPtrWithPatch):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::revertJump):
(SH4Assembler):
(JSC::SH4Assembler::printInstr):

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/assembler/MacroAssemblerSH4.h
trunk/Source/_javascript_Core/assembler/SH4Assembler.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135744 => 135745)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 19:31:53 UTC (rev 135744)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 19:37:18 UTC (rev 135745)
@@ -1,3 +1,23 @@
+2012-11-26  Julien BRIANCEAU   
+
+[sh4] _javascript_Core JIT build is broken since r135330
+Add missing implementation for sh4 arch.
+https://bugs.webkit.org/show_bug.cgi?id=103145
+
+Reviewed by Oliver Hunt.
+
+* assembler/MacroAssemblerSH4.h:
+(JSC::MacroAssemblerSH4::canJumpReplacePatchableBranchPtrWithPatch):
+(MacroAssemblerSH4):
+(JSC::MacroAssemblerSH4::startOfBranchPtrWithPatchOnRegister):
+(JSC::MacroAssemblerSH4::revertJumpReplacementToBranchPtrWithPatch):
+(JSC::MacroAssemblerSH4::startOfPatchableBranchPtrWithPatchOnAddress):
+(JSC::MacroAssemblerSH4::revertJumpReplacementToPatchableBranchPtrWithPatch):
+* assembler/SH4Assembler.h:
+(JSC::SH4Assembler::revertJump):
+(SH4Assembler):
+(JSC::SH4Assembler::printInstr):
+
 2012-11-26  Yuqiang Xian  
 
 Use load64 instead of loadPtr to load a JSValue on JSVALUE64 platforms


Modified: trunk/Source/_javascript_Core/assembler/MacroAssemblerSH4.h (135744 => 135745)

--- trunk/Source/_javascript_Core/assembler/MacroAssemblerSH4.h	2012-11-26 19:31:53 UTC (rev 135744)
+++ trunk/Source/_javascript_Core/assembler/MacroAssemblerSH4.h	2012-11-26 19:37:18 UTC (rev 135745)
@@ -2216,6 +2216,29 @@
 return 0;
 }
 
+static bool canJumpReplacePatchableBranchPtrWithPatch() { return false; }
+
+static CodeLocationLabel startOfBranchPtrWithPatchOnRegister(CodeLocationDataLabelPtr label)
+{
+return label.labelAtOffset(0);
+}
+
+static void revertJumpReplacementToBranchPtrWithPatch(CodeLocationLabel instructionStart, RegisterID, void* initialValue)
+{
+SH4Assembler::revertJump(instructionStart.dataLocation(), reinterpret_cast(initialValue) & 0x);
+}
+
+static CodeLocationLabel startOfPatchableBranchPtrWithPatchOnAddress(CodeLocationDataLabelPtr)
+{
+UNREACHABLE_FOR_PLATFORM();
+return CodeLocationLabel();
+}
+
+static void revertJumpReplacementToPatchableBranchPtrWithPatch(CodeLocationLabel instructionStart, Address, void* initialValue)
+{
+UNREACHABLE_FOR_PLATFORM();
+}
+
 protected:
 SH4Assembler::Condition SH4Condition(RelationalCondition cond)
 {


Modified: trunk/Source/_javascript_Core/assembler/SH4Assembler.h (135744 => 135745)

--- trunk/Source/_javascript_Core/assembler/SH4Assembler.h	2012-11-26 19:31:53 UTC (rev 135744)
+++ trunk/Source/_javascript_Core/assembler/SH4Assembler.h	2012-11-26 19:37:18 UTC (rev 135745)
@@ -1462,6 +1462,20 @@
 
 // Linking & patching
 
+static void revertJump(void* instructionStart, SH4Word imm)
+{
+SH4Word *insn = reinterpret_cast(instructionStart);
+SH4Word disp;
+
+ASSERT((insn[0] & 0xf000) == MOVL_READ_OFFPC_OPCODE);
+
+disp = insn[0] & 0x00ff;
+insn += 2 + (disp << 1); // PC += 4 + (disp*4)
+insn = (SH4Word *) ((unsigned) insn & (~3));
+insn[0] = imm;
+cacheFlush(insn, sizeof(SH4Word));
+}
+
 void linkJump(AssemblerLabel from, AssemblerLabel to, JumpType type = JumpFar)
 {
 ASSERT(to.isSet());
@@ -1755,6 +1769,9 @@
 case FCNVDS_DRM_FPUL_OPCODE:
 format = "FCNVDS FR%d, FPUL\n";
 break;
+case FCNVSD_FPUL_DRN_OPCODE:
+format = "FCNVSD FPUL, FR%d\n";
+break;
 }
 if (format) {
 if (isdoubleInst)






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135743] trunk/Source/WebKit/chromium

2012-11-26 Thread reed
Title: [135743] trunk/Source/WebKit/chromium








Revision 135743
Author r...@google.com
Date 2012-11-26 11:27:52 -0800 (Mon, 26 Nov 2012)


Log Message
add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining
https://bugs.webkit.org/show_bug.cgi?id=103272

Reviewed by NOBODY. Unreviewed.

No behavior change, as this define already exists on the chrome side in SkUserConfig.h

* skia_webkit.gyp:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/skia_webkit.gyp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135742 => 135743)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 19:12:01 UTC (rev 135742)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 19:27:52 UTC (rev 135743)
@@ -1,3 +1,14 @@
+2012-11-26  Mike Reed  
+
+add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining
+https://bugs.webkit.org/show_bug.cgi?id=103272
+
+Reviewed by NOBODY. Unreviewed.
+
+No behavior change, as this define already exists on the chrome side in SkUserConfig.h
+
+* skia_webkit.gyp:
+
 2012-11-26  Sheriff Bot  
 
 Unreviewed, rolling out r135735.


Modified: trunk/Source/WebKit/chromium/skia_webkit.gyp (135742 => 135743)

--- trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 19:12:01 UTC (rev 135742)
+++ trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 19:27:52 UTC (rev 135743)
@@ -39,6 +39,9 @@
 'defines': [
   # Place defines here that require significant WebKit rebaselining, or that
   # are otherwise best removed in WebKit and then rolled into Chromium.
+  
+  # extracted from SkUserConfig.h, in preparation for rebaselining.
+  'SK_DISABLE_DITHER_32BIT_GRADIENT',
 ],
   },
 },






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135741] trunk

2012-11-26 Thread jchaffraix
Title: [135741] trunk








Revision 135741
Author jchaffr...@webkit.org
Date 2012-11-26 11:07:20 -0800 (Mon, 26 Nov 2012)


Log Message
RenderBox::computePercentageLogicalHeight should use containingBlockLogicalWidthForContent
https://bugs.webkit.org/show_bug.cgi?id=103075

Reviewed by Ojan Vafai.

Source/WebCore:

Using the containing block's content logical block was working for most renderers but 2 renderers
were special and were broken in orthogonal writing modes:
- captions as they override containingBlockLogicalWidthForContent to return the table's logical width.
- multi-column renderers as they override availableLogicalWidth to constrain the child to the column logical width.

By switching to containingBlockLogicalWidthForContent, we got those 2 cases covered.

Tests: fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html
   fast/table/caption-orthogonal-writing-mode-sizing.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::computePercentageLogicalHeight):
Updated the function to track which renderer's containing block we use and call
containingBlockLogicalWidthForContent on it.

LayoutTests:

* fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt: Added.
* fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html: Added.
* fast/table/caption-orthogonal-writing-mode-sizing-expected.txt: Added.
* fast/table/caption-orthogonal-writing-mode-sizing.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/rendering/RenderBox.cpp


Added Paths

trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt
trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html
trunk/LayoutTests/fast/table/caption-orthogonal-writing-mode-sizing-expected.txt
trunk/LayoutTests/fast/table/caption-orthogonal-writing-mode-sizing.html




Diff

Modified: trunk/LayoutTests/ChangeLog (135740 => 135741)

--- trunk/LayoutTests/ChangeLog	2012-11-26 18:58:27 UTC (rev 135740)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 19:07:20 UTC (rev 135741)
@@ -1,3 +1,15 @@
+2012-11-26  Julien Chaffraix  
+
+RenderBox::computePercentageLogicalHeight should use containingBlockLogicalWidthForContent
+https://bugs.webkit.org/show_bug.cgi?id=103075
+
+Reviewed by Ojan Vafai.
+
+* fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt: Added.
+* fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html: Added.
+* fast/table/caption-orthogonal-writing-mode-sizing-expected.txt: Added.
+* fast/table/caption-orthogonal-writing-mode-sizing.html: Added.
+
 2012-11-26  Abhishek Arya  
 
 Crash in Frame::dispatchVisibilityStateChangeEvent.


Added: trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt (0 => 135741)

--- trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode-expected.txt	2012-11-26 19:07:20 UTC (rev 135741)
@@ -0,0 +1,5 @@
+Bug 103075: RenderBox::computePercentageLogicalHeight should use containingBlockLogicalWidthForContent
+
+This test checks that a percent logical height child in an orthogonal writing mode uses the multi-column's containing block column-width when resolving the logical height.
+
+PASS


Added: trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html (0 => 135741)

--- trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html	(rev 0)
+++ trunk/LayoutTests/fast/multicol/fixed-column-percent-logical-height-orthogonal-writing-mode.html	2012-11-26 19:07:20 UTC (rev 135741)
@@ -0,0 +1,28 @@
+
+
+
+
+.container {
+height: 100px;
+width: 400px;
+-webkit-column-width: 100px;
+-webkit-column-gap: 0px;
+}
+
+.percentLogicalHeight {
+-webkit-writing-mode: vertical-lr;
+height: 100%;
+width: 100%;
+background-color: navy;
+}
+
+
+

[webkit-changes] [135740] trunk

2012-11-26 Thread inferno
Title: [135740] trunk








Revision 135740
Author infe...@chromium.org
Date 2012-11-26 10:58:27 -0800 (Mon, 26 Nov 2012)


Log Message
Crash in Frame::dispatchVisibilityStateChangeEvent.
https://bugs.webkit.org/show_bug.cgi?id=102053

Reviewed by Adam Barth.

Source/WebCore:

Child frame can go away inside webkitvisibilitychange
event handler. Store it in a ref counted vector.

Test: fast/frames/page-visibility-crash.html

* page/Frame.cpp:
(WebCore::Frame::dispatchVisibilityStateChangeEvent):

LayoutTests:

* fast/frames/page-visibility-crash-expected.txt: Added.
* fast/frames/page-visibility-crash.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/page/Frame.cpp


Added Paths

trunk/LayoutTests/fast/frames/page-visibility-crash-expected.txt
trunk/LayoutTests/fast/frames/page-visibility-crash.html




Diff

Modified: trunk/LayoutTests/ChangeLog (135739 => 135740)

--- trunk/LayoutTests/ChangeLog	2012-11-26 18:56:22 UTC (rev 135739)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 18:58:27 UTC (rev 135740)
@@ -1,3 +1,13 @@
+2012-11-26  Abhishek Arya  
+
+Crash in Frame::dispatchVisibilityStateChangeEvent.
+https://bugs.webkit.org/show_bug.cgi?id=102053
+
+Reviewed by Adam Barth.
+
+* fast/frames/page-visibility-crash-expected.txt: Added.
+* fast/frames/page-visibility-crash.html: Added.
+
 2012-11-26  Thiago Marcos P. Santos  
 
 Import more CSS Device Adaptation layout tests


Added: trunk/LayoutTests/fast/frames/page-visibility-crash-expected.txt (0 => 135740)

--- trunk/LayoutTests/fast/frames/page-visibility-crash-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/frames/page-visibility-crash-expected.txt	2012-11-26 18:58:27 UTC (rev 135740)
@@ -0,0 +1 @@
+PASS. WebKit didn't crash


Added: trunk/LayoutTests/fast/frames/page-visibility-crash.html (0 => 135740)

--- trunk/LayoutTests/fast/frames/page-visibility-crash.html	(rev 0)
+++ trunk/LayoutTests/fast/frames/page-visibility-crash.html	2012-11-26 18:58:27 UTC (rev 135740)
@@ -0,0 +1,46 @@
+
+
+
+
+if (window.testRunner) {
+window.testRunner.dumpAsText();
+window.testRunner.waitUntilDone();
+}
+
+function finish() {
+if (window.testRunner)
+testRunner.resetPageVisibility();
+
+document.open();
+document.write("PASS. WebKit didn't crash");
+document.close();
+
+if (window.testRunner)
+testRunner.notifyDone();
+}
+
+function crash()
+{ 
+document.body.removeChild(document.getElementById("f"));
+setTimeout("finish()", 0);
+}
+
+frame = document.createElement("iframe");
+frame.id = "f";
+document.body.appendChild(frame);
+scriptElement = frame.contentDocument.createElement("script");
+frame.contentDocument.body.appendChild(scriptElement);
+scriptElement.innerText = "function handleVisibilityChange() \
+   { \
+   parent.crash(); \
+   } \
+   document.addEventListener('webkitvisibilitychange', handleVisibilityChange, false);";
+
+if (window.testRunner)
+testRunner.setPageVisibility("hidden");
+
+// Many platforms don't support the page visibility api. For those, just bail out.
+setTimeout("finish()", 10);
+
+
+
Property changes on: trunk/LayoutTests/fast/frames/page-visibility-crash.html
___


Added: svn:executable

Modified: trunk/Source/WebCore/ChangeLog (135739 => 135740)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 18:56:22 UTC (rev 135739)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 18:58:27 UTC (rev 135740)
@@ -1,3 +1,18 @@
+2012-11-26  Abhishek Arya  
+
+Crash in Frame::dispatchVisibilityStateChangeEvent.
+https://bugs.webkit.org/show_bug.cgi?id=102053
+
+Reviewed by Adam Barth.
+
+Child frame can go away inside webkitvisibilitychange
+event handler. Store it in a ref counted vector.
+
+Test: fast/frames/page-visibility-crash.html
+
+* page/Frame.cpp:
+(WebCore::Frame::dispatchVisibilityStateChangeEvent):
+
 2012-11-26  Hurnjoo Lee  
 
 [Cairo] fillRectWithColor with Color::transparent doesn't perform anything


Modified: trunk/Source/WebCore/page/Frame.cpp (135739 => 135740)

--- trunk/Source/WebCore/page/Frame.cpp	2012-11-26 18:56:22 UTC (rev 135739)
+++ trunk/Source/WebCore/page/Frame.cpp	2012-11-26 18:58:27 UTC (rev 135740)
@@ -657,8 +657,13 @@
 {
 if (m_doc)
 m_doc->dispatchVisibilityStateChangeEvent();
+
+Vector > childFrames;
 for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling())
-child->dispatchVisibilityStateChangeEvent();
+childFrames.append(child);
+
+for (size_t i = 0; i < childFrames.size(); ++i)
+childFrames[i]->dispatchVisibilityStateChangeEvent();
 }
 #endif
 






__

[webkit-changes] [135739] trunk/Tools

2012-11-26 Thread zandobersek
Title: [135739] trunk/Tools








Revision 135739
Author zandober...@gmail.com
Date 2012-11-26 10:56:22 -0800 (Mon, 26 Nov 2012)


Log Message
Coverage testing in webkitpy should omit some paths
https://bugs.webkit.org/show_bug.cgi?id=103267

Reviewed by Dirk Pranke.

Omit testing coverage of any file under /usr directory and any file
that is of third party origin and was autoinstalled.

* Scripts/webkitpy/test/main.py:
(Tester._run_tests):

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/Scripts/webkitpy/test/main.py




Diff

Modified: trunk/Tools/ChangeLog (135738 => 135739)

--- trunk/Tools/ChangeLog	2012-11-26 18:54:50 UTC (rev 135738)
+++ trunk/Tools/ChangeLog	2012-11-26 18:56:22 UTC (rev 135739)
@@ -1,3 +1,16 @@
+2012-11-26  Zan Dobersek  
+
+Coverage testing in webkitpy should omit some paths
+https://bugs.webkit.org/show_bug.cgi?id=103267
+
+Reviewed by Dirk Pranke.
+
+Omit testing coverage of any file under /usr directory and any file
+that is of third party origin and was autoinstalled.
+
+* Scripts/webkitpy/test/main.py:
+(Tester._run_tests):
+
 2012-11-26  Jaehun Lim  
 
 Text Autosizing: Add Text Autosizing APIs for WK2


Modified: trunk/Tools/Scripts/webkitpy/test/main.py (135738 => 135739)

--- trunk/Tools/Scripts/webkitpy/test/main.py	2012-11-26 18:54:50 UTC (rev 135738)
+++ trunk/Tools/Scripts/webkitpy/test/main.py	2012-11-26 18:56:22 UTC (rev 135739)
@@ -139,7 +139,7 @@
 self._options.child_processes = 1
 
 import webkitpy.thirdparty.autoinstalled.coverage as coverage
-cov = coverage.coverage()
+cov = coverage.coverage(omit=["/usr/*", "*/webkitpy/thirdparty/autoinstalled/*"])
 cov.start()
 
 self.printer.write_update("Checking imports ...")






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135737] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135737] trunk/Source/WebCore








Revision 135737
Author commit-qu...@webkit.org
Date 2012-11-26 10:49:54 -0800 (Mon, 26 Nov 2012)


Log Message
[Cairo] fillRectWithColor with Color::transparent doesn't perform anything
https://bugs.webkit.org/show_bug.cgi?id=101911

Patch by Hurnjoo Lee  on 2012-11-26
Reviewed by Kenneth Rohde Christiansen.

fillRectWithColor with Color::transparent doesn't perform anything
because fillRectWithColor does early-return if the alpha value of
color is zero. But we expect that fill the rect with transparent color
in case the cairo_operator is CAIRO_OPERATOR_SOURCE.

Covered by existing tests.

* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::fillRectWithColor):Add condition to prevent early-return if
cairo_operator is not CAIRO_OPERATOR_OVER

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135736 => 135737)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 18:47:18 UTC (rev 135736)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 18:49:54 UTC (rev 135737)
@@ -1,3 +1,21 @@
+2012-11-26  Hurnjoo Lee  
+
+[Cairo] fillRectWithColor with Color::transparent doesn't perform anything
+https://bugs.webkit.org/show_bug.cgi?id=101911
+
+Reviewed by Kenneth Rohde Christiansen.
+
+fillRectWithColor with Color::transparent doesn't perform anything
+because fillRectWithColor does early-return if the alpha value of
+color is zero. But we expect that fill the rect with transparent color
+in case the cairo_operator is CAIRO_OPERATOR_SOURCE.
+
+Covered by existing tests.
+
+* platform/graphics/cairo/GraphicsContextCairo.cpp:
+(WebCore::fillRectWithColor):Add condition to prevent early-return if
+cairo_operator is not CAIRO_OPERATOR_OVER
+
 2012-11-26  Jae Hyun Park  
 
 Remove redundant assignment in TextureMapperLayer::flushCompositingStateSelf


Modified: trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp (135736 => 135737)

--- trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp	2012-11-26 18:47:18 UTC (rev 135736)
+++ trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp	2012-11-26 18:49:54 UTC (rev 135737)
@@ -70,7 +70,7 @@
 // A helper which quickly fills a rectangle with a simple color fill.
 static inline void fillRectWithColor(cairo_t* cr, const FloatRect& rect, const Color& color)
 {
-if (!color.alpha())
+if (!color.alpha() && cairo_get_operator(cr) == CAIRO_OPERATOR_OVER)
 return;
 setSourceRGBAFromColor(cr, color);
 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135736] trunk/Source/WebKit/chromium

2012-11-26 Thread rjkroege
Title: [135736] trunk/Source/WebKit/chromium








Revision 135736
Author rjkro...@chromium.org
Date 2012-11-26 10:47:18 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed, rolling out r135735.
http://trac.webkit.org/changeset/135735
https://bugs.webkit.org/show_bug.cgi?id=103270

Caused breakage across the Chromium tree. (Requested by
rjkroege_ on #webkit).

Patch by Sheriff Bot  on 2012-11-26

* skia_webkit.gyp:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/skia_webkit.gyp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135735 => 135736)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 17:43:46 UTC (rev 135735)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 18:47:18 UTC (rev 135736)
@@ -1,3 +1,14 @@
+2012-11-26  Sheriff Bot  
+
+Unreviewed, rolling out r135735.
+http://trac.webkit.org/changeset/135735
+https://bugs.webkit.org/show_bug.cgi?id=103270
+
+Caused breakage across the Chromium tree. (Requested by
+rjkroege_ on #webkit).
+
+* skia_webkit.gyp:
+
 2012-11-26  Mike Reed  
 
 add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining


Modified: trunk/Source/WebKit/chromium/skia_webkit.gyp (135735 => 135736)

--- trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 17:43:46 UTC (rev 135735)
+++ trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 18:47:18 UTC (rev 135736)
@@ -39,9 +39,6 @@
 'defines': [
   # Place defines here that require significant WebKit rebaselining, or that
   # are otherwise best removed in WebKit and then rolled into Chromium.
-  
-  # extracted from SkUserConfig.h, in preparation for rebaselining.
-  SK_DISABLE_DITHER_32BIT_GRADIENT,
 ],
   },
 },






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135735] trunk/Source/WebKit/chromium

2012-11-26 Thread reed
Title: [135735] trunk/Source/WebKit/chromium








Revision 135735
Author r...@google.com
Date 2012-11-26 09:43:46 -0800 (Mon, 26 Nov 2012)


Log Message
add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining
https://bugs.webkit.org/show_bug.cgi?id=103269

Reviewed by NOBODY. Unreviewed.

No behavior change, as this define already exists on the chrome side in SkUserConfig.h

* skia_webkit.gyp:

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/skia_webkit.gyp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135734 => 135735)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 17:33:28 UTC (rev 135734)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 17:43:46 UTC (rev 135735)
@@ -1,3 +1,14 @@
+2012-11-26  Mike Reed  
+
+add SK_DISABLE_DITHER_32BIT_GRADIENT define, in preparation for rebaselining
+https://bugs.webkit.org/show_bug.cgi?id=103269
+
+Reviewed by NOBODY. Unreviewed.
+
+No behavior change, as this define already exists on the chrome side in SkUserConfig.h
+
+* skia_webkit.gyp:
+
 2012-11-26  Scott Violet  
 
 [chromium] Make use_default_render_theme compile the right set of files


Modified: trunk/Source/WebKit/chromium/skia_webkit.gyp (135734 => 135735)

--- trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 17:33:28 UTC (rev 135734)
+++ trunk/Source/WebKit/chromium/skia_webkit.gyp	2012-11-26 17:43:46 UTC (rev 135735)
@@ -39,6 +39,9 @@
 'defines': [
   # Place defines here that require significant WebKit rebaselining, or that
   # are otherwise best removed in WebKit and then rolled into Chromium.
+  
+  # extracted from SkUserConfig.h, in preparation for rebaselining.
+  SK_DISABLE_DITHER_32BIT_GRADIENT,
 ],
   },
 },






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135734] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135734] trunk/Source/WebCore








Revision 135734
Author commit-qu...@webkit.org
Date 2012-11-26 09:33:28 -0800 (Mon, 26 Nov 2012)


Log Message
Remove redundant assignment in TextureMapperLayer::flushCompositingStateSelf
https://bugs.webkit.org/show_bug.cgi?id=103233

Patch by Jae Hyun Park  on 2012-11-26
Reviewed by Noam Rosenthal.

This patch removes redundant assignment in TextureMapperLayer::flushCompositingStateSelf.

No new tests, because no change in bahavior.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::flushCompositingStateSelf):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135733 => 135734)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 17:18:25 UTC (rev 135733)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 17:33:28 UTC (rev 135734)
@@ -1,3 +1,17 @@
+2012-11-26  Jae Hyun Park  
+
+Remove redundant assignment in TextureMapperLayer::flushCompositingStateSelf
+https://bugs.webkit.org/show_bug.cgi?id=103233
+
+Reviewed by Noam Rosenthal.
+
+This patch removes redundant assignment in TextureMapperLayer::flushCompositingStateSelf.
+
+No new tests, because no change in bahavior.
+
+* platform/graphics/texmap/TextureMapperLayer.cpp:
+(WebCore::TextureMapperLayer::flushCompositingStateSelf):
+
 2012-11-26  Tamas Czene  
 
 OpenCL version of SourceAlpha, SourceGraphics and FETurbulence filter effects 


Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp (135733 => 135734)

--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-11-26 17:18:25 UTC (rev 135733)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp	2012-11-26 17:33:28 UTC (rev 135734)
@@ -418,7 +418,6 @@
 m_state.pos = graphicsLayer->position();
 m_state.anchorPoint = graphicsLayer->anchorPoint();
 m_state.size = graphicsLayer->size();
-m_state.contentsRect = graphicsLayer->contentsRect();
 m_state.transform = graphicsLayer->transform();
 m_state.contentsRect = graphicsLayer->contentsRect();
 m_state.preserves3D = graphicsLayer->preserves3D();






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135732] trunk/Source/WebCore

2012-11-26 Thread pfeldman
Title: [135732] trunk/Source/WebCore








Revision 135732
Author pfeld...@chromium.org
Date 2012-11-26 08:50:10 -0800 (Mon, 26 Nov 2012)


Log Message
Not reviewed: follow up for r135720, fixing node highlight.

* inspector/InspectorOverlayPage.html:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/inspector/InspectorOverlayPage.html




Diff

Modified: trunk/Source/WebCore/ChangeLog (135731 => 135732)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 16:40:24 UTC (rev 135731)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 16:50:10 UTC (rev 135732)
@@ -1,3 +1,9 @@
+2012-11-26  'Pavel Feldman'  
+
+Not reviewed: follow up for r135720, fixing node highlight.
+
+* inspector/InspectorOverlayPage.html:
+
 2012-11-26  Viatcheslav Ostapenko  
 
 [EFL] Crashes in compositing layout tests with AC on.


Modified: trunk/Source/WebCore/inspector/InspectorOverlayPage.html (135731 => 135732)

--- trunk/Source/WebCore/inspector/InspectorOverlayPage.html	2012-11-26 16:40:24 UTC (rev 135731)
+++ trunk/Source/WebCore/inspector/InspectorOverlayPage.html	2012-11-26 16:50:10 UTC (rev 135732)
@@ -344,9 +344,9 @@
 document.getElementById("tag-name").textContent = elementInfo.tagName;
 document.getElementById("node-id").textContent = elementInfo.idValue ? "#" + elementInfo.idValue : "";
 var className = elementInfo.className;
-if (className.length > 50)
+if (className && className.length > 50)
className = className.substring(0, 50) + "\u2026";
-document.getElementById("class-name").textContent = className;
+document.getElementById("class-name").textContent = className || "";
 document.getElementById("node-width").textContent = elementInfo.nodeWidth;
 document.getElementById("node-height").textContent = elementInfo.nodeHeight;
 var elementTitle = document.getElementById("element-title");






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135731] trunk/Source/WebCore

2012-11-26 Thread commit-queue
Title: [135731] trunk/Source/WebCore








Revision 135731
Author commit-qu...@webkit.org
Date 2012-11-26 08:40:24 -0800 (Mon, 26 Nov 2012)


Log Message
[EFL] Crashes in compositing layout tests with AC on.
https://bugs.webkit.org/show_bug.cgi?id=103144

Patch by Viatcheslav Ostapenko  on 2012-11-26
Reviewed by Noam Rosenthal.

Application could leave texture packing parameters in non-zero state before
texture mapper drawing/texture uploading. To avoid crash texture upload should
specify packing parameters before each texture upload if packing is supported.

Covered by existing tests.

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::BitmapTextureGL::updateContentsNoSwizzle):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135730 => 135731)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 16:37:38 UTC (rev 135730)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 16:40:24 UTC (rev 135731)
@@ -1,3 +1,19 @@
+2012-11-26  Viatcheslav Ostapenko  
+
+[EFL] Crashes in compositing layout tests with AC on.
+https://bugs.webkit.org/show_bug.cgi?id=103144
+
+Reviewed by Noam Rosenthal.
+
+Application could leave texture packing parameters in non-zero state before
+texture mapper drawing/texture uploading. To avoid crash texture upload should
+specify packing parameters before each texture upload if packing is supported.
+
+Covered by existing tests.
+
+* platform/graphics/texmap/TextureMapperGL.cpp:
+(WebCore::BitmapTextureGL::updateContentsNoSwizzle):
+
 2012-11-26  George Staikos  
 
 [BlackBerry] Remove a lot of unnecessary and incorrect code causing crashes


Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp (135730 => 135731)

--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2012-11-26 16:37:38 UTC (rev 135730)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp	2012-11-26 16:40:24 UTC (rev 135731)
@@ -691,21 +691,21 @@
 
 void BitmapTextureGL::updateContentsNoSwizzle(const void* srcData, const IntRect& targetRect, const IntPoint& sourceOffset, int bytesPerLine, unsigned bytesPerPixel, Platform3DObject glFormat)
 {
-if (!driverSupportsSubImage() // For ES drivers that don't support sub-images.
-|| (bytesPerLine == static_cast(targetRect.width() * bytesPerPixel) && sourceOffset == IntPoint::zero())) {
-m_context3D->texSubImage2D(GraphicsContext3D::TEXTURE_2D, 0, targetRect.x(), targetRect.y(), targetRect.width(), targetRect.height(), glFormat, DEFAULT_TEXTURE_PIXEL_TRANSFER_TYPE, srcData);
-return;
+#if !defined(TEXMAP_OPENGL_ES_2)
+if (driverSupportsSubImage()) { // For ES drivers that don't support sub-images.
+// Use the OpenGL sub-image extension, now that we know it's available.
+m_context3D->pixelStorei(GL_UNPACK_ROW_LENGTH, bytesPerLine / bytesPerPixel);
+m_context3D->pixelStorei(GL_UNPACK_SKIP_ROWS, sourceOffset.y());
+m_context3D->pixelStorei(GL_UNPACK_SKIP_PIXELS, sourceOffset.x());
 }
-
+#endif
+m_context3D->texSubImage2D(GraphicsContext3D::TEXTURE_2D, 0, targetRect.x(), targetRect.y(), targetRect.width(), targetRect.height(), glFormat, DEFAULT_TEXTURE_PIXEL_TRANSFER_TYPE, srcData);
 #if !defined(TEXMAP_OPENGL_ES_2)
-// Use the OpenGL sub-image extension, now that we know it's available.
-m_context3D->pixelStorei(GL_UNPACK_ROW_LENGTH, bytesPerLine / bytesPerPixel);
-m_context3D->pixelStorei(GL_UNPACK_SKIP_ROWS, sourceOffset.y());
-m_context3D->pixelStorei(GL_UNPACK_SKIP_PIXELS, sourceOffset.x());
-m_context3D->texSubImage2D(GraphicsContext3D::TEXTURE_2D, 0, targetRect.x(), targetRect.y(), targetRect.width(), targetRect.height(), glFormat, DEFAULT_TEXTURE_PIXEL_TRANSFER_TYPE, srcData);
-m_context3D->pixelStorei(GL_UNPACK_ROW_LENGTH, 0);
-m_context3D->pixelStorei(GL_UNPACK_SKIP_ROWS, 0);
-m_context3D->pixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+if (driverSupportsSubImage()) { // For ES drivers that don't support sub-images.
+m_context3D->pixelStorei(GL_UNPACK_ROW_LENGTH, 0);
+m_context3D->pixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+m_context3D->pixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+}
 #endif
 }
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135730] trunk/LayoutTests

2012-11-26 Thread commit-queue
Title: [135730] trunk/LayoutTests








Revision 135730
Author commit-qu...@webkit.org
Date 2012-11-26 08:37:38 -0800 (Mon, 26 Nov 2012)


Log Message
Import more CSS Device Adaptation layout tests
https://bugs.webkit.org/show_bug.cgi?id=95967

Patch by Thiago Marcos P. Santos  on 2012-11-26
Reviewed by Kenneth Rohde Christiansen.

And these are the remaining test from the Opera's CSS
Device Adaptation test suite.

* css3/device-adapt/opera/constrain-021-expected.txt: Added.
* css3/device-adapt/opera/constrain-021.xhtml: Added.
* css3/device-adapt/opera/constrain-022-expected.txt: Added.
* css3/device-adapt/opera/constrain-022.xhtml: Added.
* css3/device-adapt/opera/orientation-001-expected.txt: Added.
* css3/device-adapt/opera/orientation-001.xhtml: Added.
* css3/device-adapt/opera/orientation-002-expected.txt: Added.
* css3/device-adapt/opera/orientation-002.xhtml: Added.
* platform/efl-wk1/TestExpectations:
* platform/efl-wk2/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/efl-wk1/TestExpectations
trunk/LayoutTests/platform/efl-wk2/TestExpectations


Added Paths

trunk/LayoutTests/css3/device-adapt/opera/constrain-021-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-021.xhtml
trunk/LayoutTests/css3/device-adapt/opera/constrain-022-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-022.xhtml
trunk/LayoutTests/css3/device-adapt/opera/orientation-001-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/orientation-001.xhtml
trunk/LayoutTests/css3/device-adapt/opera/orientation-002-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/orientation-002.xhtml




Diff

Modified: trunk/LayoutTests/ChangeLog (135729 => 135730)

--- trunk/LayoutTests/ChangeLog	2012-11-26 16:32:31 UTC (rev 135729)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 16:37:38 UTC (rev 135730)
@@ -1,5 +1,26 @@
 2012-11-26  Thiago Marcos P. Santos  
 
+Import more CSS Device Adaptation layout tests
+https://bugs.webkit.org/show_bug.cgi?id=95967
+
+Reviewed by Kenneth Rohde Christiansen.
+
+And these are the remaining test from the Opera's CSS
+Device Adaptation test suite.
+
+* css3/device-adapt/opera/constrain-021-expected.txt: Added.
+* css3/device-adapt/opera/constrain-021.xhtml: Added.
+* css3/device-adapt/opera/constrain-022-expected.txt: Added.
+* css3/device-adapt/opera/constrain-022.xhtml: Added.
+* css3/device-adapt/opera/orientation-001-expected.txt: Added.
+* css3/device-adapt/opera/orientation-001.xhtml: Added.
+* css3/device-adapt/opera/orientation-002-expected.txt: Added.
+* css3/device-adapt/opera/orientation-002.xhtml: Added.
+* platform/efl-wk1/TestExpectations:
+* platform/efl-wk2/TestExpectations:
+
+2012-11-26  Thiago Marcos P. Santos  
+
 Viewport CSS rules should not clamp values like Viewport META
 https://bugs.webkit.org/show_bug.cgi?id=103068
 


Added: trunk/LayoutTests/css3/device-adapt/opera/constrain-021-expected.txt (0 => 135730)

--- trunk/LayoutTests/css3/device-adapt/opera/constrain-021-expected.txt	(rev 0)
+++ trunk/LayoutTests/css3/device-adapt/opera/constrain-021-expected.txt	2012-11-26 16:37:38 UTC (rev 135730)
@@ -0,0 +1,3 @@
+
+PASS CSS Test: @viewport constrained - width is device-width. 
+


Added: trunk/LayoutTests/css3/device-adapt/opera/constrain-021.xhtml (0 => 135730)

--- trunk/LayoutTests/css3/device-adapt/opera/constrain-021.xhtml	(rev 0)
+++ trunk/LayoutTests/css3/device-adapt/opera/constrain-021.xhtml	2012-11-26 16:37:38 UTC (rev 135730)
@@ -0,0 +1,84 @@
+
+
+
+ 
+  CSS Test: @viewport constrained - width is device-width.
+  
+  
+  
+  
+  
+  
+  

[webkit-changes] [135729] trunk/Source/WebCore

2012-11-26 Thread staikos
Title: [135729] trunk/Source/WebCore








Revision 135729
Author stai...@webkit.org
Date 2012-11-26 08:32:31 -0800 (Mon, 26 Nov 2012)


Log Message
[BlackBerry] Remove a lot of unnecessary and incorrect code causing crashes
https://bugs.webkit.org/show_bug.cgi?id=103199

Reviewed by Yong Li.

This is the first big step to unforking this code.  It's very close to
where it needs to be now, but the first step is to get rid of the
crashes by deleting code that isn't needed and makes bad assumptions
about object lifetime.  Crashes were found by automation without
test case or reproduction steps.

* loader/blackberry/CookieJarBlackBerry.cpp:
(WebCore::cookies): delete most code
(WebCore::setCookies): delete most code

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (135728 => 135729)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 16:22:31 UTC (rev 135728)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 16:32:31 UTC (rev 135729)
@@ -1,3 +1,20 @@
+2012-11-26  George Staikos  
+
+[BlackBerry] Remove a lot of unnecessary and incorrect code causing crashes
+https://bugs.webkit.org/show_bug.cgi?id=103199
+
+Reviewed by Yong Li.
+
+This is the first big step to unforking this code.  It's very close to
+where it needs to be now, but the first step is to get rid of the
+crashes by deleting code that isn't needed and makes bad assumptions
+about object lifetime.  Crashes were found by automation without
+test case or reproduction steps.
+
+* loader/blackberry/CookieJarBlackBerry.cpp:
+(WebCore::cookies): delete most code
+(WebCore::setCookies): delete most code
+
 2012-11-26  Thiago Marcos P. Santos  
 
 Viewport CSS rules should not clamp values like Viewport META


Modified: trunk/Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp (135728 => 135729)

--- trunk/Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp	2012-11-26 16:22:31 UTC (rev 135728)
+++ trunk/Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp	2012-11-26 16:32:31 UTC (rev 135729)
@@ -39,38 +39,15 @@
 
 String cookies(Document const* document, KURL const& url)
 {
-Frame* frame = document->frame();
-Page* page = frame ? frame->page() : 0;
-
-if (!page)
-return String();
-
-if (!(frame && frame->loader() && frame->loader()->client()))
-return String();
-
-if (!static_cast(frame->loader()->client())->cookiesEnabled())
-return String();
-
-ASSERT(document && url == document->cookieURL());
 // 'HttpOnly' cookies should no be accessible from scripts, so we filter them out here
 return cookieManager().getCookie(url, NoHttpOnlyCookie);
 }
 
 void setCookies(Document* document, KURL const& url, String const& value)
 {
-Frame* frame = document->frame();
-Page* page = frame ? frame->page() : 0;
-
-if (!page)
+if (!document->settings()->cookieEnabled())
 return;
 
-if (!(frame && frame->loader() && frame->loader()->client()))
-return;
-
-if (!static_cast(frame->loader()->client())->cookiesEnabled())
-return;
-
-ASSERT(document && url == document->cookieURL());
 cookieManager().setCookies(url, value, NoHttpOnlyCookie);
 }
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135728] trunk

2012-11-26 Thread commit-queue
Title: [135728] trunk








Revision 135728
Author commit-qu...@webkit.org
Date 2012-11-26 08:22:31 -0800 (Mon, 26 Nov 2012)


Log Message
Viewport CSS rules should not clamp values like Viewport META
https://bugs.webkit.org/show_bug.cgi?id=103068

Patch by Thiago Marcos P. Santos  on 2012-11-26
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

CSS Device Adaption does not clamp the length and zoom values the
same way as the Viewport META. In fact, they are not clamped at all,
but instead, we just make sure that length values are at least 1px.

Tests: css3/device-adapt/opera/constrain-018.xhtml
   css3/device-adapt/opera/constrain-019.xhtml
   css3/device-adapt/opera/constrain-023.xhtml
   css3/device-adapt/opera/constrain-024.xhtml

* dom/ViewportArguments.cpp:
(WebCore::ViewportArguments::resolve):

LayoutTests:

Imported Opera tests that makes sure we are doing the clamping right.

* css3/device-adapt/opera/constrain-018-expected.txt: Added.
* css3/device-adapt/opera/constrain-018.xhtml: Added.
* css3/device-adapt/opera/constrain-019-expected.txt: Added.
* css3/device-adapt/opera/constrain-019.xhtml: Added.
* css3/device-adapt/opera/constrain-023-expected.txt: Added.
* css3/device-adapt/opera/constrain-023.xhtml: Added.
* css3/device-adapt/opera/constrain-024-expected.txt: Added.
* css3/device-adapt/opera/constrain-024.xhtml: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/ViewportArguments.cpp


Added Paths

trunk/LayoutTests/css3/device-adapt/opera/constrain-018-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-018.xhtml
trunk/LayoutTests/css3/device-adapt/opera/constrain-019-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-019.xhtml
trunk/LayoutTests/css3/device-adapt/opera/constrain-023-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-023.xhtml
trunk/LayoutTests/css3/device-adapt/opera/constrain-024-expected.txt
trunk/LayoutTests/css3/device-adapt/opera/constrain-024.xhtml




Diff

Modified: trunk/LayoutTests/ChangeLog (135727 => 135728)

--- trunk/LayoutTests/ChangeLog	2012-11-26 16:12:47 UTC (rev 135727)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 16:22:31 UTC (rev 135728)
@@ -1,3 +1,21 @@
+2012-11-26  Thiago Marcos P. Santos  
+
+Viewport CSS rules should not clamp values like Viewport META
+https://bugs.webkit.org/show_bug.cgi?id=103068
+
+Reviewed by Kenneth Rohde Christiansen.
+
+Imported Opera tests that makes sure we are doing the clamping right.
+
+* css3/device-adapt/opera/constrain-018-expected.txt: Added.
+* css3/device-adapt/opera/constrain-018.xhtml: Added.
+* css3/device-adapt/opera/constrain-019-expected.txt: Added.
+* css3/device-adapt/opera/constrain-019.xhtml: Added.
+* css3/device-adapt/opera/constrain-023-expected.txt: Added.
+* css3/device-adapt/opera/constrain-023.xhtml: Added.
+* css3/device-adapt/opera/constrain-024-expected.txt: Added.
+* css3/device-adapt/opera/constrain-024.xhtml: Added.
+
 2012-11-26  Robert Kroeger  
 
 Unreviewed gardening: added TestExpecations failures for 


Added: trunk/LayoutTests/css3/device-adapt/opera/constrain-018-expected.txt (0 => 135728)

--- trunk/LayoutTests/css3/device-adapt/opera/constrain-018-expected.txt	(rev 0)
+++ trunk/LayoutTests/css3/device-adapt/opera/constrain-018-expected.txt	2012-11-26 16:22:31 UTC (rev 135728)
@@ -0,0 +1,3 @@
+
+PASS CSS Test: @viewport constrained - Small non-auto height not affecting width. 
+


Added: trunk/LayoutTests/css3/device-adapt/opera/constrain-018.xhtml (0 => 135728)

--- trunk/LayoutTests/css3/device-adapt/opera/constrain-018.xhtml	(rev 0)
+++ trunk/LayoutTests/css3/device-adapt/opera/constrain-018.xhtml	2012-11-26 16:22:31 UTC (rev 135728)
@@ -0,0 +1,84 @@
+
+
+
+ 
+  CSS Test: @viewport constrained - Small non-auto height not affecting width.
+  
+  
+  
+  
+  
+  
+  

[webkit-changes] [135727] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135727] trunk/LayoutTests








Revision 135727
Author rjkro...@chromium.org
Date 2012-11-26 08:12:47 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed gardening: added TestExpecations failures for
media/remove-from-document.html
https://bugs.webkit.org/show_bug.cgi?id=103093

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135726 => 135727)

--- trunk/LayoutTests/ChangeLog	2012-11-26 16:02:11 UTC (rev 135726)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 16:12:47 UTC (rev 135727)
@@ -1,3 +1,11 @@
+2012-11-26  Robert Kroeger  
+
+Unreviewed gardening: added TestExpecations failures for 
+media/remove-from-document.html
+https://bugs.webkit.org/show_bug.cgi?id=103093
+
+* platform/chromium/TestExpectations:
+
 2012-11-26  Justin Novosad  
 
 New baselines for test fast/backgrounds/background-opaque-images-over-color.html


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135726 => 135727)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 16:02:11 UTC (rev 135726)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 16:12:47 UTC (rev 135727)
@@ -4246,3 +4246,4 @@
 webkit.org/b/103148 [ Linux Win Mac ] svg/batik/text/textPosition2.svg [ ImageOnlyFailure ]
 webkit.org/b/103181 [ Win7 ] http/tests/local/drag-over-remote-content.html [ Pass Crash Timeout ]
 webkit.org/b/103183 [ Win7 SnowLeopard ] media/video-seek-past-end-playing.html [ Pass Crash ]
+webkit.org/b/103093 [ Lion SnowLeopard ] media/remove-from-document.html [ Crash Pass ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135726] trunk/LayoutTests

2012-11-26 Thread junov
Title: [135726] trunk/LayoutTests








Revision 135726
Author ju...@google.com
Date 2012-11-26 08:02:11 -0800 (Mon, 26 Nov 2012)


Log Message
New baselines for test fast/backgrounds/background-opaque-images-over-color.html
https://bugs.webkit.org/show_bug.cgi?id=102557

Unreviewed

* fast/backgrounds/background-opaque-images-over-color-expected.txt:
* platform/chromium-mac/fast/backgrounds/background-opaque-images-over-color-expected.png: Added.
* platform/chromium-win/fast/backgrounds/background-opaque-images-over-color-expected.png: Added.
* platform/chromium/TestExpectations:
* platform/mac/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/fast/backgrounds/background-opaque-images-over-color-expected.txt
trunk/LayoutTests/platform/chromium/TestExpectations
trunk/LayoutTests/platform/mac/TestExpectations


Added Paths

trunk/LayoutTests/platform/chromium-mac/fast/backgrounds/background-opaque-images-over-color-expected.png
trunk/LayoutTests/platform/chromium-win/fast/backgrounds/background-opaque-images-over-color-expected.png




Diff

Modified: trunk/LayoutTests/ChangeLog (135725 => 135726)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:51:38 UTC (rev 135725)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 16:02:11 UTC (rev 135726)
@@ -1,5 +1,18 @@
 2012-11-26  Justin Novosad  
 
+New baselines for test fast/backgrounds/background-opaque-images-over-color.html
+https://bugs.webkit.org/show_bug.cgi?id=102557
+
+Unreviewed
+
+* fast/backgrounds/background-opaque-images-over-color-expected.txt:
+* platform/chromium-mac/fast/backgrounds/background-opaque-images-over-color-expected.png: Added.
+* platform/chromium-win/fast/backgrounds/background-opaque-images-over-color-expected.png: Added.
+* platform/chromium/TestExpectations:
+* platform/mac/TestExpectations:
+
+2012-11-26  Justin Novosad  
+
 New baselines for test fast/backgrounds/gradient-background-leakage-2.html
 https://bugs.webkit.org/show_bug.cgi?id=103089
 


Modified: trunk/LayoutTests/fast/backgrounds/background-opaque-images-over-color-expected.txt (135725 => 135726)

--- trunk/LayoutTests/fast/backgrounds/background-opaque-images-over-color-expected.txt	2012-11-26 15:51:38 UTC (rev 135725)
+++ trunk/LayoutTests/fast/backgrounds/background-opaque-images-over-color-expected.txt	2012-11-26 16:02:11 UTC (rev 135726)
@@ -14,19 +14,14 @@
 RenderBlock (floating) {DIV} at (140,0) size 20x100 [bgcolor=#FF]
 RenderBlock (floating) {DIV} at (160,0) size 20x100 [bgcolor=#FF]
 RenderBlock (floating) {DIV} at (180,0) size 20x100 [bgcolor=#FF]
-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x108
-  RenderBlock {HTML} at (0,0) size 800x108
-RenderBody {BODY} at (8,8) size 784x0
   RenderBlock {DIV} at (0,0) size 784x0
-RenderBlock (floating) {DIV} at (0,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (20,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (40,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (60,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (80,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (100,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (120,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (140,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (160,0) size 20x100 [bgcolor=#FF]
-RenderBlock (floating) {DIV} at (180,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (200,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (220,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (240,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (260,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (280,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (300,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (320,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (340,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (360,0) size 20x100 [bgcolor=#FF]
+RenderBlock (floating) {DIV} at (380,0) size 20x100 [bgcolor=#FF]


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135725 => 135726)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 15:51:38 UTC (rev 135725)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 16:02:11 UTC (rev 135726)
@@ -1266,9 +1266,6 @@
 
 webkit.org/b/60118 [ Mac ] svg/dom/SVGScriptElement/script-set-href.svg [ Failure Pass ]
 
-# New test in need of new baselines
-webkit.org/b/102557 fast/backgrounds/background-opaque-images-over-color.html [ Pass Im

[webkit-changes] [135725] trunk/LayoutTests

2012-11-26 Thread junov
Title: [135725] trunk/LayoutTests








Revision 135725
Author ju...@google.com
Date 2012-11-26 07:51:38 -0800 (Mon, 26 Nov 2012)


Log Message
New baselines for test fast/backgrounds/gradient-background-leakage-2.html
https://bugs.webkit.org/show_bug.cgi?id=103089

Unreviewed

* platform/chromium-linux/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
* platform/chromium-mac/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
* platform/chromium-win/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations


Added Paths

trunk/LayoutTests/platform/chromium-linux/fast/backgrounds/gradient-background-leakage-2-expected.png
trunk/LayoutTests/platform/chromium-mac/fast/backgrounds/gradient-background-leakage-2-expected.png
trunk/LayoutTests/platform/chromium-win/fast/backgrounds/gradient-background-leakage-2-expected.png




Diff

Modified: trunk/LayoutTests/ChangeLog (135724 => 135725)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:47:01 UTC (rev 135724)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 15:51:38 UTC (rev 135725)
@@ -1,3 +1,15 @@
+2012-11-26  Justin Novosad  
+
+New baselines for test fast/backgrounds/gradient-background-leakage-2.html
+https://bugs.webkit.org/show_bug.cgi?id=103089
+
+Unreviewed
+
+* platform/chromium-linux/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
+* platform/chromium-mac/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
+* platform/chromium-win/fast/backgrounds/gradient-background-leakage-2-expected.png: Added.
+* platform/chromium/TestExpectations:
+
 2012-11-26  Mike West  
 
 Web Inspector: URLs containing '^' are improperly linked in console messages.


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135724 => 135725)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 15:47:01 UTC (rev 135724)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 15:51:38 UTC (rev 135725)
@@ -2163,9 +2163,6 @@
 
 crbug.com/117597 svg/batik/filters/feTile.svg [ ImageOnlyFailure ] 
 
-# Test needing new baselines
-webkit.org/b/103089 fast/backgrounds/gradient-background-leakage-2.html [ Pass Missing ImageOnlyFailure Failure ]
-
 # Caused by http://trac.webkit.org/changeset/56394.
 crbug.com/143475 [ Win ] http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html [ Failure Pass Timeout ]
 


Added: trunk/LayoutTests/platform/chromium-linux/fast/backgrounds/gradient-background-leakage-2-expected.png

(Binary files differ)

Property changes on: trunk/LayoutTests/platform/chromium-linux/fast/backgrounds/gradient-background-leakage-2-expected.png
___

Added: svn:mime-type

Added: trunk/LayoutTests/platform/chromium-mac/fast/backgrounds/gradient-background-leakage-2-expected.png

(Binary files differ)

Property changes on: trunk/LayoutTests/platform/chromium-mac/fast/backgrounds/gradient-background-leakage-2-expected.png
___

Added: svn:mime-type

Added: trunk/LayoutTests/platform/chromium-win/fast/backgrounds/gradient-background-leakage-2-expected.png

(Binary files differ)

Property changes on: trunk/LayoutTests/platform/chromium-win/fast/backgrounds/gradient-background-leakage-2-expected.png
___

Added: svn:mime-type




___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135724] trunk/Source/WTF

2012-11-26 Thread paroga
Title: [135724] trunk/Source/WTF








Revision 135724
Author par...@webkit.org
Date 2012-11-26 07:47:01 -0800 (Mon, 26 Nov 2012)


Log Message
Build fix for WinCE after r135640.

* wtf/DataLog.cpp:

Modified Paths

trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/DataLog.cpp




Diff

Modified: trunk/Source/WTF/ChangeLog (135723 => 135724)

--- trunk/Source/WTF/ChangeLog	2012-11-26 15:46:41 UTC (rev 135723)
+++ trunk/Source/WTF/ChangeLog	2012-11-26 15:47:01 UTC (rev 135724)
@@ -1,3 +1,9 @@
+2012-11-26  Patrick Gansterer  
+
+Build fix for WinCE after r135640.
+
+* wtf/DataLog.cpp:
+
 2012-11-24  Adam Barth  
 
 Chromium should use TCMalloc on Mac to go fast


Modified: trunk/Source/WTF/wtf/DataLog.cpp (135723 => 135724)

--- trunk/Source/WTF/wtf/DataLog.cpp	2012-11-26 15:46:41 UTC (rev 135723)
+++ trunk/Source/WTF/wtf/DataLog.cpp	2012-11-26 15:47:01 UTC (rev 135724)
@@ -29,6 +29,12 @@
 #include 
 #include 
 
+#if OS(WINCE)
+#ifndef _IONBF
+#define _IONBF 0x0004
+#endif
+#endif
+
 #define DATA_LOG_TO_FILE 0
 
 // Uncomment to force logging to the given file regardless of what the environment variable says.






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135723] trunk

2012-11-26 Thread mkwst
Title: [135723] trunk








Revision 135723
Author mk...@chromium.org
Date 2012-11-26 07:46:41 -0800 (Mon, 26 Nov 2012)


Log Message
Web Inspector: URLs containing '^' are improperly linked in console messages.
https://bugs.webkit.org/show_bug.cgi?id=103248

Reviewed by Yury Semikhatsky.

Source/WebCore:

This patch adds '^' to WebInspector's regex of acceptable characters for
URLs that it knows how to display.

Test: http/tests/inspector/network/script-as-text-loading-with-caret.html

* inspector/front-end/ResourceUtils.js:
(WebInspector.linkifyStringAsFragmentWithCustomLinkifier):

LayoutTests:

* http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt: Added.
* http/tests/inspector/network/script-as-text-loading-with-caret.html: Added.
* platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt:
JSC vs V8. :(

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/inspector/front-end/ResourceUtils.js


Added Paths

trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt
trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret.html
trunk/LayoutTests/platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt




Diff

Modified: trunk/LayoutTests/ChangeLog (135722 => 135723)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:42:01 UTC (rev 135722)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 15:46:41 UTC (rev 135723)
@@ -1,3 +1,15 @@
+2012-11-26  Mike West  
+
+Web Inspector: URLs containing '^' are improperly linked in console messages.
+https://bugs.webkit.org/show_bug.cgi?id=103248
+
+Reviewed by Yury Semikhatsky.
+
+* http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt: Added.
+* http/tests/inspector/network/script-as-text-loading-with-caret.html: Added.
+* platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt:
+JSC vs V8. :(
+
 2012-11-26  Robert Kroeger  
 
 Unreviewd Gardening: updated TestExpecations for additional failures in


Added: trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt (0 => 135723)

--- trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt	(rev 0)
+++ trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt	2012-11-26 15:46:41 UTC (rev 135723)
@@ -0,0 +1,5 @@
+Tests console message when script is loaded with incorrect text/html mime type and the URL contains the '^' character.
+
+Bug 103248
+Resource interpreted as Script but transferred with MIME type text/plain: "http://127.0.0.1:8000/inspector/network/resources/script-as-text.php?this-i…-with^carats^like^these^because^who^doesnt^love^strange^characters^in^urls". [native code]:1
+


Added: trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret.html (0 => 135723)

--- trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret.html	(rev 0)
+++ trunk/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret.html	2012-11-26 15:46:41 UTC (rev 135723)
@@ -0,0 +1,31 @@
+
+
+
+function loadScript()
+{
+var s = document.createElement("script");
+s.src = ""
+document.body.appendChild(s);
+}
+
+function test()
+{
+InspectorTest.addConsoleSniffer(step1);
+InspectorTest.evaluateInPage("loadScript()");
+
+function step1()
+{
+InspectorTest.dumpConsoleMessages();
+InspectorTest.completeTest();
+}
+}
+
+
+
+Tests console message when script is loaded with incorrect text/html mime
+type and the URL contains the '^' character.
+
+
+


Added: trunk/LayoutTests/platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt (0 => 135723)

--- trunk/LayoutTests/platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt	(rev 0)
+++ trunk/LayoutTests/platform/chromium/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt	2012-11-26 15:46:41 UTC (rev 135723)
@@ -0,0 +1,5 @@
+Tests console message when script is loaded with incorrect text/html mime type and the URL contains the '^' character.
+
+Bug 103248
+Resource interpreted as Script but transferred with MIME type text/plain: "http://127.0.0.1:8000/inspector/network/resources/script-as-text.php?this-i…-with^carats^like^these^because^who^doesnt^love^strange^characters^in^urls". script-as-text-loading-with-caret.html:10
+


Modified: trunk/Source/WebCore/ChangeLog (135722 => 135723)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 15:42:01 UTC (rev 135722)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 15:46:41 UTC (rev 135723)
@@ -1,3 +1,18 @@
+2012-11-26  Mike West  
+
+Web Inspector: URLs

[webkit-changes] [135722] trunk/LayoutTests

2012-11-26 Thread rjkroege
Title: [135722] trunk/LayoutTests








Revision 135722
Author rjkro...@chromium.org
Date 2012-11-26 07:42:01 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewd Gardening: updated TestExpecations for additional failures in
media/video-preload.html
https://bugs.webkit.org/show_bug.cgi?id=103093

* platform/chromium/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/chromium/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (135721 => 135722)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:23:45 UTC (rev 135721)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 15:42:01 UTC (rev 135722)
@@ -1,3 +1,11 @@
+2012-11-26  Robert Kroeger  
+
+Unreviewd Gardening: updated TestExpecations for additional failures in
+media/video-preload.html
+https://bugs.webkit.org/show_bug.cgi?id=103093
+
+* platform/chromium/TestExpectations:
+
 2012-11-26  Pavel Feldman  
 
 Web Inspector: object preview does not render node id, className; logs too many functions for jQuery.


Modified: trunk/LayoutTests/platform/chromium/TestExpectations (135721 => 135722)

--- trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 15:23:45 UTC (rev 135721)
+++ trunk/LayoutTests/platform/chromium/TestExpectations	2012-11-26 15:42:01 UTC (rev 135722)
@@ -4238,7 +4238,7 @@
 webkit.org/b/103062 [ Debug ] fast/canvas/canvas-strokePath-gradient-shadow.html [ Crash ]
 webkit.org/b/103062 [ Debug ] fast/canvas/canvas-strokeRect-gradient-shadow.html [ Crash ]
 
-webkit.org/b/103093 [ MountainLion ] media/video-preload.html [ Crash ]
+webkit.org/b/103093 [ Mac Win ] media/video-preload.html [ Crash Pass ]
 webkit.org/b/103148 [ Win Mac ] fast/frames/iframe-scaling-with-scroll.html [ ImageOnlyFailure ]
 webkit.org/b/103148 [ Lion ] fast/frames/iframe-scrolling-attribute.html [ ImageOnlyFailure ]
 webkit.org/b/103148 [ Lion ] fast/table/border-collapsing/004-vertical.html [ ImageOnlyFailure ]






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135721] trunk/Source/WebCore

2012-11-26 Thread yurys
Title: [135721] trunk/Source/WebCore








Revision 135721
Author yu...@chromium.org
Date 2012-11-26 07:23:45 -0800 (Mon, 26 Nov 2012)


Log Message
Unreviewed. Fix Qt minimal compilation after r135713.

* inspector/InspectorController.h: hid file content behind ENABLE(INSPECTOR)

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/inspector/InspectorController.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (135720 => 135721)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 15:17:17 UTC (rev 135720)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 15:23:45 UTC (rev 135721)
@@ -1,3 +1,9 @@
+2012-11-26  Yury Semikhatsky  
+
+Unreviewed. Fix Qt minimal compilation after r135713.
+
+* inspector/InspectorController.h: hid file content behind ENABLE(INSPECTOR)
+
 2012-11-26  Pavel Feldman  
 
 Web Inspector: object preview does not render node id, className; logs too many functions for jQuery.


Modified: trunk/Source/WebCore/inspector/InspectorController.h (135720 => 135721)

--- trunk/Source/WebCore/inspector/InspectorController.h	2012-11-26 15:17:17 UTC (rev 135720)
+++ trunk/Source/WebCore/inspector/InspectorController.h	2012-11-26 15:23:45 UTC (rev 135721)
@@ -31,6 +31,8 @@
 #ifndef InspectorController_h
 #define InspectorController_h
 
+#if ENABLE(INSPECTOR)
+
 #include "InspectorBaseAgent.h"
 #include 
 #include 
@@ -147,4 +149,6 @@
 
 }
 
+#endif // ENABLE(INSPECTOR)
+
 #endif // !defined(InspectorController_h)






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135720] trunk

2012-11-26 Thread pfeldman
Title: [135720] trunk








Revision 135720
Author pfeld...@chromium.org
Date 2012-11-26 07:17:17 -0800 (Mon, 26 Nov 2012)


Log Message
Web Inspector: object preview does not render node id, className; logs too many functions for jQuery.
https://bugs.webkit.org/show_bug.cgi?id=103222

Reviewed by Yury Semikhatsky.

Source/WebCore:

- Added node class name and id into the preview
- Now keeps track of properties separately from array indexes.

* inspector/InjectedScriptSource.js:
(.):
* inspector/InspectorOverlayPage.html:
* inspector/front-end/ConsoleMessage.js:
(WebInspector.ConsoleMessageImpl.prototype._appendObjectPreview):
(WebInspector.ConsoleMessageImpl.prototype._appendPropertyPreview):

LayoutTests:

* inspector/console/command-line-api-expected.txt:
* inspector/console/command-line-api-inspect-expected.txt:
* inspector/console/console-dir-expected.txt:
* inspector/console/console-format-collections-expected.txt:
* inspector/console/console-format-expected.txt:
* inspector/elements/event-listener-sidebar-expected.txt:
* inspector/elements/event-listeners-about-blank-expected.txt:
* platform/chromium-linux/inspector/console/console-format-collections-expected.txt: Removed.
* platform/chromium/inspector/console/command-line-api-inspect-expected.txt:
* platform/chromium/inspector/console/console-dir-expected.txt:
* platform/chromium/inspector/console/console-format-collections-expected.txt:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/inspector/console/command-line-api-expected.txt
trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt
trunk/LayoutTests/inspector/console/console-dir-expected.txt
trunk/LayoutTests/inspector/console/console-format-collections-expected.txt
trunk/LayoutTests/inspector/console/console-format-expected.txt
trunk/LayoutTests/inspector/elements/event-listener-sidebar-expected.txt
trunk/LayoutTests/inspector/elements/event-listeners-about-blank-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/command-line-api-inspect-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/console-dir-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/console-format-collections-expected.txt
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/inspector/InjectedScriptSource.js
trunk/Source/WebCore/inspector/InspectorOverlayPage.html
trunk/Source/WebCore/inspector/front-end/ConsoleMessage.js


Removed Paths

trunk/LayoutTests/platform/chromium-linux/inspector/console/console-format-collections-expected.txt




Diff

Modified: trunk/LayoutTests/ChangeLog (135719 => 135720)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:03:36 UTC (rev 135719)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 15:17:17 UTC (rev 135720)
@@ -1,3 +1,22 @@
+2012-11-26  Pavel Feldman  
+
+Web Inspector: object preview does not render node id, className; logs too many functions for jQuery.
+https://bugs.webkit.org/show_bug.cgi?id=103222
+
+Reviewed by Yury Semikhatsky.
+
+* inspector/console/command-line-api-expected.txt:
+* inspector/console/command-line-api-inspect-expected.txt:
+* inspector/console/console-dir-expected.txt:
+* inspector/console/console-format-collections-expected.txt:
+* inspector/console/console-format-expected.txt:
+* inspector/elements/event-listener-sidebar-expected.txt:
+* inspector/elements/event-listeners-about-blank-expected.txt:
+* platform/chromium-linux/inspector/console/console-format-collections-expected.txt: Removed.
+* platform/chromium/inspector/console/command-line-api-inspect-expected.txt:
+* platform/chromium/inspector/console/console-dir-expected.txt:
+* platform/chromium/inspector/console/console-format-collections-expected.txt:
+
 2012-11-26  Florin Malita  
 
 RenderSVGResourceContainer does not clear cached data on removal


Modified: trunk/LayoutTests/inspector/console/command-line-api-expected.txt (135719 => 135720)

--- trunk/LayoutTests/inspector/console/command-line-api-expected.txt	2012-11-26 15:03:36 UTC (rev 135719)
+++ trunk/LayoutTests/inspector/console/command-line-api-expected.txt	2012-11-26 15:17:17 UTC (rev 135720)
@@ -1,4 +1,4 @@
-CONSOLE MESSAGE: line 1040: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s")
+CONSOLE MESSAGE: line 1058: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s")
 Tests that command line api works.
 
 


Modified: trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt (135719 => 135720)

--- trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt	2012-11-26 15:03:36 UTC (rev 135719)
+++ trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt	2012-11-26 15:17:17 UTC (rev 135720)
@@ -4,7 +4,7 @@
 Running: testRevealElement
 
 
-WebInspector.inspect called with: 
+WebInsp

[webkit-changes] [135719] trunk

2012-11-26 Thread fmalita
Title: [135719] trunk








Revision 135719
Author fmal...@chromium.org
Date 2012-11-26 07:03:36 -0800 (Mon, 26 Nov 2012)


Log Message
RenderSVGResourceContainer does not clear cached data on removal
https://bugs.webkit.org/show_bug.cgi?id=102620

Reviewed by Dirk Schulze.

Source/WebCore:

RenderSVGResourceContainer::removeClient needs to also remove the client from specialized
caches, otherwise we can end up with stale references.

Test: svg/custom/stale-resource-data-crash.svg

* rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::removeClient):

LayoutTests:

* svg/custom/stale-resource-data-crash-expected.txt: Added.
* svg/custom/stale-resource-data-crash.svg: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp


Added Paths

trunk/LayoutTests/svg/custom/stale-resource-data-crash-expected.txt
trunk/LayoutTests/svg/custom/stale-resource-data-crash.svg




Diff

Modified: trunk/LayoutTests/ChangeLog (135718 => 135719)

--- trunk/LayoutTests/ChangeLog	2012-11-26 15:01:24 UTC (rev 135718)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 15:03:36 UTC (rev 135719)
@@ -1,3 +1,13 @@
+2012-11-26  Florin Malita  
+
+RenderSVGResourceContainer does not clear cached data on removal
+https://bugs.webkit.org/show_bug.cgi?id=102620
+
+Reviewed by Dirk Schulze.
+
+* svg/custom/stale-resource-data-crash-expected.txt: Added.
+* svg/custom/stale-resource-data-crash.svg: Added.
+
 2012-11-26  'Pavel Feldman'  
 
 Not reviewed: rolling out r135714 and r135712 for breaking debug tests.


Added: trunk/LayoutTests/svg/custom/stale-resource-data-crash-expected.txt (0 => 135719)

--- trunk/LayoutTests/svg/custom/stale-resource-data-crash-expected.txt	(rev 0)
+++ trunk/LayoutTests/svg/custom/stale-resource-data-crash-expected.txt	2012-11-26 15:03:36 UTC (rev 135719)
@@ -0,0 +1,2 @@
+PASS: did not crash.
+


Added: trunk/LayoutTests/svg/custom/stale-resource-data-crash.svg (0 => 135719)

--- trunk/LayoutTests/svg/custom/stale-resource-data-crash.svg	(rev 0)
+++ trunk/LayoutTests/svg/custom/stale-resource-data-crash.svg	2012-11-26 15:03:36 UTC (rev 135719)
@@ -0,0 +1,32 @@
+
+
+  
+
+  
+
+  
+
+
+  
+  PASS: did not crash.
+
+  
+f2 = document.getElementById('f2');
+docElement = document.getElementById('svg');
+light =  document.getElementById('light');
+newDefs = document.getElementById('defs').cloneNode(true);
+
+if (window.testRunner) {
+  testRunner.dumpAsText();
+  // Force a paint at this point to generate cached filter results.
+  testRunner.display();
+}
+
+docElement.appendChild(newDefs);
+docElement.appendChild(f2);
+docElement.offsetTop;
+light.removeAttribute('azimuth');
+  
+


Modified: trunk/Source/WebCore/ChangeLog (135718 => 135719)

--- trunk/Source/WebCore/ChangeLog	2012-11-26 15:01:24 UTC (rev 135718)
+++ trunk/Source/WebCore/ChangeLog	2012-11-26 15:03:36 UTC (rev 135719)
@@ -1,3 +1,18 @@
+2012-11-26  Florin Malita  
+
+RenderSVGResourceContainer does not clear cached data on removal
+https://bugs.webkit.org/show_bug.cgi?id=102620
+
+Reviewed by Dirk Schulze.
+
+RenderSVGResourceContainer::removeClient needs to also remove the client from specialized
+caches, otherwise we can end up with stale references.
+
+Test: svg/custom/stale-resource-data-crash.svg
+
+* rendering/svg/RenderSVGResourceContainer.cpp:
+(WebCore::RenderSVGResourceContainer::removeClient):
+
 2012-11-26  'Pavel Feldman'  
 
 Not reviewed: rolling out r135714 and r135712 for breaking debug tests.


Modified: trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp (135718 => 135719)

--- trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp	2012-11-26 15:01:24 UTC (rev 135718)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGResourceContainer.cpp	2012-11-26 15:03:36 UTC (rev 135719)
@@ -151,6 +151,7 @@
 void RenderSVGResourceContainer::removeClient(RenderObject* client)
 {
 ASSERT(client);
+removeClientFromCache(client, false);
 m_clients.remove(client);
 }
 






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135718] trunk/Source/WebKit/chromium

2012-11-26 Thread commit-queue
Title: [135718] trunk/Source/WebKit/chromium








Revision 135718
Author commit-qu...@webkit.org
Date 2012-11-26 07:01:24 -0800 (Mon, 26 Nov 2012)


Log Message
[chromium] Make use_default_render_theme compile the right set of files
https://bugs.webkit.org/show_bug.cgi?id=102952

Patch by Scott Violet  on 2012-11-26
Reviewed by Kent Tamura.

* WebKit.gyp: Adds WebRenderTheme.* and updates rules as to when to compile them.
* features.gypi: Removes use_default_render_theme default values as common.gypi sets them.
* public/default: Added.
* public/default/WebRenderTheme.h: Copy of linux/WebRenderTheme.h
* src/default: Added.
* src/default/WebRenderTheme.cpp: Copy of linux/WebRenderTheme.cpp

Modified Paths

trunk/Source/WebKit/chromium/ChangeLog
trunk/Source/WebKit/chromium/WebKit.gyp
trunk/Source/WebKit/chromium/features.gypi


Added Paths

trunk/Source/WebKit/chromium/public/default/
trunk/Source/WebKit/chromium/public/default/WebRenderTheme.h
trunk/Source/WebKit/chromium/src/default/
trunk/Source/WebKit/chromium/src/default/WebRenderTheme.cpp




Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (135717 => 135718)

--- trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 14:47:40 UTC (rev 135717)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-11-26 15:01:24 UTC (rev 135718)
@@ -1,3 +1,17 @@
+2012-11-26  Scott Violet  
+
+[chromium] Make use_default_render_theme compile the right set of files
+https://bugs.webkit.org/show_bug.cgi?id=102952
+
+Reviewed by Kent Tamura.
+
+* WebKit.gyp: Adds WebRenderTheme.* and updates rules as to when to compile them.
+* features.gypi: Removes use_default_render_theme default values as common.gypi sets them.
+* public/default: Added.
+* public/default/WebRenderTheme.h: Copy of linux/WebRenderTheme.h
+* src/default: Added.
+* src/default/WebRenderTheme.cpp: Copy of linux/WebRenderTheme.cpp
+
 2012-11-24  Silvia Pfeiffer  
 
 [chromium] Remove traces of MediaControlRootElement


Modified: trunk/Source/WebKit/chromium/WebKit.gyp (135717 => 135718)

--- trunk/Source/WebKit/chromium/WebKit.gyp	2012-11-26 14:47:40 UTC (rev 135717)
+++ trunk/Source/WebKit/chromium/WebKit.gyp	2012-11-26 15:01:24 UTC (rev 135718)
@@ -288,6 +288,7 @@
 'public/WebWorkerInfo.h',
 'public/android/WebInputEventFactory.h',
 'public/android/WebSandboxSupport.h',
+'public/default/WebRenderTheme.h',
 'public/gtk/WebInputEventFactory.h',
 'public/linux/WebFontRenderStyle.h',
 'public/linux/WebFontRendering.h',
@@ -432,6 +433,7 @@
 'src/PrerendererClientImpl.h',
 'src/PrerendererClientImpl.cpp',
 'src/android/WebInputEventFactory.cpp',
+'src/default/WebRenderTheme.cpp',
 'src/linux/WebFontInfo.cpp',
 'src/linux/WebFontRendering.cpp',
 'src/linux/WebFontRenderStyle.cpp',
@@ -840,6 +842,20 @@
 }],
 ],
 }],
+['use_default_render_theme==1', {
+'sources/': [
+['exclude', 'src/linux/WebRenderTheme.cpp'],
+['exclude', 'public/linux/WebRenderTheme.h'],
+],
+'include_dirs': [
+'public/default',
+],
+}, { # else use_default_render_theme==0
+'sources/': [
+['exclude', 'src/default/WebRenderTheme.cpp'],
+['exclude', 'public/default/WebRenderTheme.h'],
+],
+}],
 ],
 'target_conditions': [
 ['OS=="android"', {


Modified: trunk/Source/WebKit/chromium/features.gypi (135717 => 135718)

--- trunk/Source/WebKit/chromium/features.gypi	2012-11-26 14:47:40 UTC (rev 135717)
+++ trunk/Source/WebKit/chromium/features.gypi	2012-11-26 15:01:24 UTC (rev 135718)
@@ -146,13 +146,11 @@
   'enable_touch_events%': 1,
   'enable_touch_icon_loading%' : 0,
   'enable_mutation_observers%': 1,
-  'use_default_render_theme%': 0,
 },
 'use_accelerated_compositing%': '<(use_accelerated_compositing)',
 'enable_skia_text%': '<(enable_skia_text)',
 'enable_svg%': '<(enable_svg)',
 'enable_touch_events%': '<(enable_touch_events)',
-'use_default_render_theme%': '<(use_default_render_theme)',
 'conditions': [
   ['OS=="android"', {
 'feature_defines': [


Added: trunk/Source/WebKit/chromium/public/default/WebRenderTheme.h (0 => 135718)

--- trunk/Source/WebKit/chromium/public/default/WebRenderTheme.h	(rev 0)
+++ trunk/Source/WebKit/chromium/public/default/WebRenderTheme.h	2012-11-26 15:01:24 UTC (rev 135718)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2009 Joel Stanley. All rights reserved.
+ *
+ *

[webkit-changes] [135717] trunk/Source/JavaScriptCore

2012-11-26 Thread ossy
Title: [135717] trunk/Source/_javascript_Core








Revision 135717
Author o...@webkit.org
Date 2012-11-26 06:47:40 -0800 (Mon, 26 Nov 2012)


Log Message
[Qt][ARM] REGRESSION(r130826): It made 33 JSC test and 466 layout tests crash
https://bugs.webkit.org/show_bug.cgi?id=98857

Patch by Gabor Ballabas  on 2012-11-26
Reviewed by Zoltan Herczeg.

Implement a new version of patchableBranch32 to fix crashing JSC
tests.

* assembler/MacroAssembler.h:
(MacroAssembler):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::patchableBranch32):
(MacroAssemblerARM):

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/assembler/MacroAssembler.h
trunk/Source/_javascript_Core/assembler/MacroAssemblerARM.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (135716 => 135717)

--- trunk/Source/_javascript_Core/ChangeLog	2012-11-26 14:46:14 UTC (rev 135716)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-26 14:47:40 UTC (rev 135717)
@@ -1,3 +1,19 @@
+2012-11-26  Gabor Ballabas  
+
+[Qt][ARM] REGRESSION(r130826): It made 33 JSC test and 466 layout tests crash
+https://bugs.webkit.org/show_bug.cgi?id=98857
+
+Reviewed by Zoltan Herczeg.
+
+Implement a new version of patchableBranch32 to fix crashing JSC
+tests.
+
+* assembler/MacroAssembler.h:
+(MacroAssembler):
+* assembler/MacroAssemblerARM.h:
+(JSC::MacroAssemblerARM::patchableBranch32):
+(MacroAssemblerARM):
+
 2012-11-21  Filip Pizlo  
 
 Any function that can log things should be able to easily log them to a memory buffer as well


Modified: trunk/Source/_javascript_Core/assembler/MacroAssembler.h (135716 => 135717)

--- trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 14:46:14 UTC (rev 135716)
+++ trunk/Source/_javascript_Core/assembler/MacroAssembler.h	2012-11-26 14:47:40 UTC (rev 135717)
@@ -266,12 +266,14 @@
 {
 return PatchableJump(branchTest32(cond, reg, mask));
 }
-
+#endif // !CPU(ARM_THUMB2)
+
+#if !CPU(ARM)
 PatchableJump patchableBranch32(RelationalCondition cond, RegisterID reg, TrustedImm32 imm)
 {
 return PatchableJump(branch32(cond, reg, imm));
 }
-#endif
+#endif // !(CPU(ARM)
 
 void jump(Label target)
 {


Modified: trunk/Source/_javascript_Core/assembler/MacroAssemblerARM.h (135716 => 135717)

--- trunk/Source/_javascript_Core/assembler/MacroAssemblerARM.h	2012-11-26 14:46:14 UTC (rev 135716)
+++ trunk/Source/_javascript_Core/assembler/MacroAssemblerARM.h	2012-11-26 14:47:40 UTC (rev 135717)
@@ -570,11 +570,7 @@
 
 Jump branch32(RelationalCondition cond, RegisterID left, TrustedImm32 right, int useConstantPool = 0)
 {
-ARMWord tmp = (static_cast(right.m_value) == 0x8000) ? ARMAssembler::InvalidImmediate : m_assembler.getOp2(-right.m_value);
-if (tmp != ARMAssembler::InvalidImmediate)
-m_assembler.cmn(left, tmp);
-else
-m_assembler.cmp(left, m_assembler.getImm(right.m_value, ARMRegisters::S0));
+internalCompare32(left, right);
 return Jump(m_assembler.jmp(ARMCondition(cond), useConstantPool));
 }
 
@@ -807,6 +803,14 @@
 return Jump(m_assembler.jmp(ARMCondition(cond)));
 }
 
+PatchableJump patchableBranch32(RelationalCondition cond, RegisterID reg, TrustedImm32 imm)
+{
+internalCompare32(reg, imm);
+Jump jump(m_assembler.loadBranchTarget(ARMRegisters::S1, ARMCondition(cond), true));
+m_assembler.bx(ARMRegisters::S1, ARMCondition(cond));
+return PatchableJump(jump);
+}
+
 void breakpoint()
 {
 m_assembler.bkpt(0);
@@ -1320,6 +1324,15 @@
 friend class LinkBuffer;
 friend class RepatchBuffer;
 
+void internalCompare32(RegisterID left, TrustedImm32 right)
+{
+ARMWord tmp = (static_cast(right.m_value) == 0x8000) ? ARMAssembler::InvalidImmediate : m_assembler.getOp2(-right.m_value);
+if (tmp != ARMAssembler::InvalidImmediate)
+m_assembler.cmn(left, tmp);
+else
+m_assembler.cmp(left, m_assembler.getImm(right.m_value, ARMRegisters::S0));
+}
+
 static void linkCall(void* code, Call call, FunctionPtr function)
 {
 ARMAssembler::linkCall(code, call.m_label, function.value());






___
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes


[webkit-changes] [135716] trunk

2012-11-26 Thread pfeldman
Title: [135716] trunk








Revision 135716
Author pfeld...@chromium.org
Date 2012-11-26 06:46:14 -0800 (Mon, 26 Nov 2012)


Log Message
Not reviewed: rolling out r135714 and r135712 for breaking debug tests.

Source/WebCore:

* inspector/InjectedScriptSource.js:
(.):
* inspector/InspectorOverlayPage.html:
* inspector/front-end/ConsoleMessage.js:
(WebInspector.ConsoleMessageImpl.prototype._appendObjectPreview):

LayoutTests:

* inspector/console/command-line-api-expected.txt:
* inspector/console/command-line-api-inspect-expected.txt:
* inspector/console/console-dir-expected.txt:
* inspector/console/console-format-collections-expected.txt:
* inspector/console/console-format-expected.txt:
* inspector/elements/event-listener-sidebar-expected.txt:
* inspector/elements/event-listeners-about-blank-expected.txt:
* platform/chromium-linux/inspector/console/console-format-collections-expected.txt: Copied from LayoutTests/platform/chromium/inspector/console/console-format-collections-expected.txt.
* platform/chromium/inspector/console/command-line-api-inspect-expected.txt:
* platform/chromium/inspector/console/console-dir-expected.txt:
* platform/chromium/inspector/console/console-format-collections-expected.txt:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/inspector/console/command-line-api-expected.txt
trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt
trunk/LayoutTests/inspector/console/console-dir-expected.txt
trunk/LayoutTests/inspector/console/console-format-collections-expected.txt
trunk/LayoutTests/inspector/console/console-format-expected.txt
trunk/LayoutTests/inspector/elements/event-listener-sidebar-expected.txt
trunk/LayoutTests/inspector/elements/event-listeners-about-blank-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/command-line-api-inspect-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/console-dir-expected.txt
trunk/LayoutTests/platform/chromium/inspector/console/console-format-collections-expected.txt
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/inspector/InjectedScriptSource.js
trunk/Source/WebCore/inspector/InspectorOverlayPage.html
trunk/Source/WebCore/inspector/front-end/ConsoleMessage.js


Added Paths

trunk/LayoutTests/platform/chromium-linux/inspector/console/console-format-collections-expected.txt




Diff

Modified: trunk/LayoutTests/ChangeLog (135715 => 135716)

--- trunk/LayoutTests/ChangeLog	2012-11-26 14:36:05 UTC (rev 135715)
+++ trunk/LayoutTests/ChangeLog	2012-11-26 14:46:14 UTC (rev 135716)
@@ -1,5 +1,21 @@
 2012-11-26  'Pavel Feldman'  
 
+Not reviewed: rolling out r135714 and r135712 for breaking debug tests.
+
+* inspector/console/command-line-api-expected.txt:
+* inspector/console/command-line-api-inspect-expected.txt:
+* inspector/console/console-dir-expected.txt:
+* inspector/console/console-format-collections-expected.txt:
+* inspector/console/console-format-expected.txt:
+* inspector/elements/event-listener-sidebar-expected.txt:
+* inspector/elements/event-listeners-about-blank-expected.txt:
+* platform/chromium-linux/inspector/console/console-format-collections-expected.txt: Copied from LayoutTests/platform/chromium/inspector/console/console-format-collections-expected.txt.
+* platform/chromium/inspector/console/command-line-api-inspect-expected.txt:
+* platform/chromium/inspector/console/console-dir-expected.txt:
+* platform/chromium/inspector/console/console-format-collections-expected.txt:
+
+2012-11-26  'Pavel Feldman'  
+
 Not reviewed: rolling out accidental TestExpectations change.
 
 * platform/chromium/TestExpectations:


Modified: trunk/LayoutTests/inspector/console/command-line-api-expected.txt (135715 => 135716)

--- trunk/LayoutTests/inspector/console/command-line-api-expected.txt	2012-11-26 14:36:05 UTC (rev 135715)
+++ trunk/LayoutTests/inspector/console/command-line-api-expected.txt	2012-11-26 14:46:14 UTC (rev 135716)
@@ -1,4 +1,4 @@
-CONSOLE MESSAGE: line 1054: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s")
+CONSOLE MESSAGE: line 1040: The console function $() has changed from $=getElementById(id) to $=querySelector(selector). You might try $("#%s")
 Tests that command line api works.
 
 


Modified: trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt (135715 => 135716)

--- trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt	2012-11-26 14:36:05 UTC (rev 135715)
+++ trunk/LayoutTests/inspector/console/command-line-api-inspect-expected.txt	2012-11-26 14:46:14 UTC (rev 135716)
@@ -4,7 +4,7 @@
 Running: testRevealElement
 
 
-WebInspector.inspect called with: p#p1
+WebInspector.inspect called with: 
 WebInspector.inspect's hints are: []
 inspect($('#p1')) = 
 Selected node id: 'p1'.


Modified: trunk/LayoutTests/inspector/console/console-dir-expect

  1   2   >