[webkit-changes] [153982] trunk/LayoutTests

2013-08-12 Thread rniwa
Title: [153982] trunk/LayoutTests








Revision 153982
Author rn...@webkit.org
Date 2013-08-12 23:38:55 -0700 (Mon, 12 Aug 2013)


Log Message
Fix null dereference in HTMLAnchorElement::sendPings when frame is not attached to a page
https://bugs.webkit.org/show_bug.cgi?id=119716

Reviewed by Darin Adler.

Add a regression test for r153975.

* fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt: Added.
* fast/html/detach-frame-while-clicking-on-anchor-with-ping.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog


Added Paths

trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt
trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html




Diff

Modified: trunk/LayoutTests/ChangeLog (153981 => 153982)

--- trunk/LayoutTests/ChangeLog	2013-08-13 06:26:45 UTC (rev 153981)
+++ trunk/LayoutTests/ChangeLog	2013-08-13 06:38:55 UTC (rev 153982)
@@ -1,3 +1,15 @@
+2013-08-12  Ryosuke Niwa  
+
+Fix null dereference in HTMLAnchorElement::sendPings when frame is not attached to a page
+https://bugs.webkit.org/show_bug.cgi?id=119716
+
+Reviewed by Darin Adler.
+
+Add a regression test for r153975.
+
+* fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt: Added.
+* fast/html/detach-frame-while-clicking-on-anchor-with-ping.html: Added.
+
 2013-08-12  Zan Dobersek  
 
 ASSERTION FAILED: type() == Percent in WebCore::Length::percent


Added: trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt (0 => 153982)

--- trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping-expected.txt	2013-08-13 06:38:55 UTC (rev 153982)
@@ -0,0 +1,4 @@
+This tests detaching a frame while clicking on an anchor element with ping attribute in the frame.
+WebKit should not crash.
+
+PASS. WebKit did not crash.


Added: trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html (0 => 153982)

--- trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html	(rev 0)
+++ trunk/LayoutTests/fast/html/detach-frame-while-clicking-on-anchor-with-ping.html	2013-08-13 06:38:55 UTC (rev 153982)
@@ -0,0 +1,28 @@
+
+
+
+This tests detaching a frame while clicking on an anchor element with ping attribute in the frame.
+WebKit should not crash.
+
+
+if (window.testRunner)
+testRunner.dumpAsText();
+
+var iframe = document.createElement('iframe');
+document.body.appendChild(iframe);
+var anchorElement = iframe.contentDocument.createElement('a');
+anchorElement.setAttribute('href', '_javascript_:parent.remove(event);');
+anchorElement.setAttribute('ping', 'https://webkit.org/');
+iframe.contentDocument.body.appendChild(anchorElement);
+
+function remove(event) {
+iframe.parentNode.removeChild(iframe);
+event.preventDefault();
+}
+
+anchorElement.click();
+document.write('PASS. WebKit did not crash.');
+
+
+
+






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


[webkit-changes] [153981] trunk

2013-08-12 Thread zandobersek
Title: [153981] trunk








Revision 153981
Author zandober...@gmail.com
Date 2013-08-12 23:26:45 -0700 (Mon, 12 Aug 2013)


Log Message
ASSERTION FAILED: type() == Percent in WebCore::Length::percent
https://bugs.webkit.org/show_bug.cgi?id=116715

Reviewed by Darin Adler.

Source/WebCore: 

Allow the Calculated type in the Length::percent method that returns the Length's
float value. This reflects the changes in r110148 that adjusted the Length::isPercent
method to return true for Length objects of either Percent or Calculated type.

Test: fast/css/calculated-length-as-percent-crash.html

* platform/Length.h:
(WebCore::Length::percent): Assert that Length::isPercent is true when Length::percent
is called, ensuring the Length's type is either Percent or Calculated.

LayoutTests: 

Add the test case, as produced by the Fuzzinator, that was causing assertions
in Length::percent due to Length objects of the Calculated type not being treated
as holding a proper percent value in that method, despite Length::isPercent
returning true for Length objects of either Percent or the Calculated type.

* fast/css/calculated-length-as-percent-crash-expected.txt: Added.
* fast/css/calculated-length-as-percent-crash.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/Length.h


Added Paths

trunk/LayoutTests/fast/css/calculated-length-as-percent-crash-expected.txt
trunk/LayoutTests/fast/css/calculated-length-as-percent-crash.html




Diff

Modified: trunk/LayoutTests/ChangeLog (153980 => 153981)

--- trunk/LayoutTests/ChangeLog	2013-08-13 06:26:29 UTC (rev 153980)
+++ trunk/LayoutTests/ChangeLog	2013-08-13 06:26:45 UTC (rev 153981)
@@ -1,3 +1,18 @@
+2013-08-12  Zan Dobersek  
+
+ASSERTION FAILED: type() == Percent in WebCore::Length::percent
+https://bugs.webkit.org/show_bug.cgi?id=116715
+
+Reviewed by Darin Adler.
+
+Add the test case, as produced by the Fuzzinator, that was causing assertions
+in Length::percent due to Length objects of the Calculated type not being treated
+as holding a proper percent value in that method, despite Length::isPercent
+returning true for Length objects of either Percent or the Calculated type.
+
+* fast/css/calculated-length-as-percent-crash-expected.txt: Added.
+* fast/css/calculated-length-as-percent-crash.html: Added.
+
 2013-08-12  Alexey Proskuryakov  
 
 http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac


Added: trunk/LayoutTests/fast/css/calculated-length-as-percent-crash-expected.txt (0 => 153981)

--- trunk/LayoutTests/fast/css/calculated-length-as-percent-crash-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/css/calculated-length-as-percent-crash-expected.txt	2013-08-13 06:26:45 UTC (rev 153981)
@@ -0,0 +1,3 @@
+Test for bug #116715: ASSERTION FAILED: type() == Percent in WebCore::Length::percent
+This test passes if there's no crash.
+


Added: trunk/LayoutTests/fast/css/calculated-length-as-percent-crash.html (0 => 153981)

--- trunk/LayoutTests/fast/css/calculated-length-as-percent-crash.html	(rev 0)
+++ trunk/LayoutTests/fast/css/calculated-length-as-percent-crash.html	2013-08-13 06:26:45 UTC (rev 153981)
@@ -0,0 +1,19 @@
+
+
+
+if (window.testRunner)
+testRunner.dumpAsText();
+
+
+
+
+Test for : ASSERTION FAILED: type() == Percent in WebCore::Length::percent
+This test passes if there's no crash.
+
+
+
+
+
+
+
+


Modified: trunk/Source/WebCore/ChangeLog (153980 => 153981)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 06:26:29 UTC (rev 153980)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 06:26:45 UTC (rev 153981)
@@ -1,3 +1,20 @@
+2013-08-12  Zan Dobersek  
+
+ASSERTION FAILED: type() == Percent in WebCore::Length::percent
+https://bugs.webkit.org/show_bug.cgi?id=116715
+
+Reviewed by Darin Adler.
+
+Allow the Calculated type in the Length::percent method that returns the Length's
+float value. This reflects the changes in r110148 that adjusted the Length::isPercent
+method to return true for Length objects of either Percent or Calculated type.
+
+Test: fast/css/calculated-length-as-percent-crash.html
+
+* platform/Length.h:
+(WebCore::Length::percent): Assert that Length::isPercent is true when Length::percent
+is called, ensuring the Length's type is either Percent or Calculated.
+
 2013-06-16  Darin Adler  
 
 Move Clipboard::declareAndWriteDragImage to DragController


Modified: trunk/Source/WebCore/platform/Length.h (153980 => 153981)

--- trunk/Source/WebCore/platform/Length.h	2013-08-13 06:26:29 UTC (rev 153980)
+++ trunk/Source/WebCore/platform/Length.h	2013-08-13 06:26:45 UTC (rev 153981)
@@ -136,7 +136,7 @@
 
 float percent() const
 {
-ASSERT(type() == Percent);
+ASSERT(isPercent());
 return getFloatValue();
 }
 






_

[webkit-changes] [153980] trunk/Tools

2013-08-12 Thread mitz
Title: [153980] trunk/Tools








Revision 153980
Author m...@apple.com
Date 2013-08-12 23:26:29 -0700 (Mon, 12 Aug 2013)


Log Message
extract-localizable-strings output is not suited for parsing by Xcode
https://bugs.webkit.org/show_bug.cgi?id=119728

Reviewed by Darin Adler.

Added spaces where needed after “path:line:” to allow Xcode to recognize the file reference,
removed “ERROR” since messages that refer to a line in a file are shown as error by default,
added “warning: ” in messages that aren’t errors (i.e. don’t prevent the script from exiting
with 0).

* Scripts/extract-localizable-strings:

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/Scripts/extract-localizable-strings




Diff

Modified: trunk/Tools/ChangeLog (153979 => 153980)

--- trunk/Tools/ChangeLog	2013-08-13 06:16:35 UTC (rev 153979)
+++ trunk/Tools/ChangeLog	2013-08-13 06:26:29 UTC (rev 153980)
@@ -1,3 +1,17 @@
+2013-08-12  Dan Bernstein  
+
+extract-localizable-strings output is not suited for parsing by Xcode
+https://bugs.webkit.org/show_bug.cgi?id=119728
+
+Reviewed by Darin Adler.
+
+Added spaces where needed after “path:line:” to allow Xcode to recognize the file reference,
+removed “ERROR” since messages that refer to a line in a file are shown as error by default,
+added “warning: ” in messages that aren’t errors (i.e. don’t prevent the script from exiting
+with 0).
+
+* Scripts/extract-localizable-strings:
+
 2013-08-12  Ryuan Choi  
 
 [EFL][WK1] URL printing code in DumpRenderTree doesn't match WTR or Mac DRT


Modified: trunk/Tools/Scripts/extract-localizable-strings (153979 => 153980)

--- trunk/Tools/Scripts/extract-localizable-strings	2013-08-13 06:16:35 UTC (rev 153979)
+++ trunk/Tools/Scripts/extract-localizable-strings	2013-08-13 06:26:29 UTC (rev 153980)
@@ -95,13 +95,13 @@
 chomp;
 if (/^"([^\\"]|\\.)*"$/ or /^[-_\/\w\s.]+.(h|m|mm|c|cpp)$/ or /^[-_\/\w\s.]+.(h|m|mm|c|cpp):"([^\\"]|\\.)*"$/) {
 if ($exception{$_}) {
-print "$exceptionsFile:$.:exception for $_ appears twice\n";
-print "$exceptionsFile:$exception{$_}:first appearance\n";
+print "$exceptionsFile:$.: warning: exception for $_ appears twice\n";
+print "$exceptionsFile:$exception{$_}: warning: first appearance\n";
 } else {
 $exception{$_} = $.;
 }
 } else {
-print "$exceptionsFile:$.:syntax error\n";
+print "$exceptionsFile:$.: warning: syntax error\n";
 }
 }
 close EXCEPTIONS;
@@ -151,7 +151,7 @@
 
 if ($token eq "\"") {
 if ($expected and $expected ne "a quoted string") {
-print "$file:$.:ERROR:found a quoted string but expected $expected\n";
+print "$file:$.: found a quoted string but expected $expected\n";
 $sawError = 1;
 $expected = "";
 }
@@ -163,7 +163,7 @@
 $string .= $1;
 }
 } else {
-print "$file:$.:ERROR:mismatched quotes\n";
+print "$file:$.: mismatched quotes\n";
 $sawError = 1;
 $_ = "";
 }
@@ -202,7 +202,7 @@
 } elsif ($exception{"$file:\"$string\""}) {
 $usedException{"$file:\"$string\""} = 1;
 } else {
-print "$file:$stringLine:\"$string\" is not marked for localization\n" if $warnAboutUnlocalizedStrings;
+print "$file:$stringLine: warning: \"$string\" is not marked for localization\n" if $warnAboutUnlocalizedStrings;
 $notLocalizedCount++;
 }
 }
@@ -213,7 +213,7 @@
 $previousToken = $token;
 
 if ($token =~ /^NSLocalized/ && $token !~ /NSLocalizedDescriptionKey/ && $token !~ /NSLocalizedStringFromTableInBundle/ && $token !~ /NSLocalizedFileSizeDescription/) {
-print "$file:$.:ERROR:found a use of an NSLocalized macro ($token); not supported\n";
+print "$file:$.: found a use of an NSLocalized macro ($token); not supported\n";
 $nestingLevel = 0 if !defined $nestingLevel;
 $sawError = 1;
 $NSLocalizeCount++;
@@ -226,13 +226,13 @@
 $_ = ""; # Discard the rest of the line
 } elsif ($token eq "'") {
 if (!s-([^\\]|\\.)'--) { #' <-- that single quote makes the Project Builder editor less confused
-print "$file:$.:ERROR:mismatched single quote\n";
+print "$file:$.: mismatched single quote\n";
 $sawError = 1;
 $_ = "";
 }
 } else {
 if ($expected and $expected ne $toke

[webkit-changes] [153979] trunk

2013-08-12 Thread zandobersek
Title: [153979] trunk








Revision 153979
Author zandober...@gmail.com
Date 2013-08-12 23:16:35 -0700 (Mon, 12 Aug 2013)


Log Message
[Autotools] Adjust the help string for the configure's --enable-optimizations flag
https://bugs.webkit.org/show_bug.cgi?id=119682

Reviewed by Martin Robinson.

* Source/autotools/ReadCommandLineArguments.m4: Remove the 'GCC only' part of the help
string for the --enable-optimizations flag. This is not true and can lead to confusion
since the optimizations can be applied when compiling with Clang as well.

Modified Paths

trunk/ChangeLog
trunk/Source/autotools/ReadCommandLineArguments.m4




Diff

Modified: trunk/ChangeLog (153978 => 153979)

--- trunk/ChangeLog	2013-08-13 05:58:19 UTC (rev 153978)
+++ trunk/ChangeLog	2013-08-13 06:16:35 UTC (rev 153979)
@@ -1,3 +1,14 @@
+2013-08-12  Zan Dobersek  
+
+[Autotools] Adjust the help string for the configure's --enable-optimizations flag
+https://bugs.webkit.org/show_bug.cgi?id=119682
+
+Reviewed by Martin Robinson.
+
+* Source/autotools/ReadCommandLineArguments.m4: Remove the 'GCC only' part of the help
+string for the --enable-optimizations flag. This is not true and can lead to confusion
+since the optimizations can be applied when compiling with Clang as well.
+
 2013-08-11  Carlos Garcia Campos  
 
 Unreviewed. Update NEWS and Versions.m4 for 2.1.4 release.


Modified: trunk/Source/autotools/ReadCommandLineArguments.m4 (153978 => 153979)

--- trunk/Source/autotools/ReadCommandLineArguments.m4	2013-08-13 05:58:19 UTC (rev 153978)
+++ trunk/Source/autotools/ReadCommandLineArguments.m4	2013-08-13 06:16:35 UTC (rev 153979)
@@ -22,7 +22,7 @@
 
 AC_MSG_CHECKING([whether to enable optimized builds])
 AC_ARG_ENABLE(optimizations, 
-AC_HELP_STRING([--enable-optimizations], [turn on optimize builds (GCC only) [default=yes]]),
+AC_HELP_STRING([--enable-optimizations], [turn on build-time optimizations [default=yes]]),
 [enable_optimizations=$enableval],
 [
 if test "$enable_debug" = "yes"; then






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


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

2013-08-12 Thread darin
Title: [153978] trunk/Source/WebCore








Revision 153978
Author da...@apple.com
Date 2013-08-12 22:58:19 -0700 (Mon, 12 Aug 2013)


Log Message
Move Clipboard::declareAndWriteDragImage to DragController
https://bugs.webkit.org/show_bug.cgi?id=117683

Reviewed by Brent Fulgham.

* dom/Clipboard.h: Removed declareAndWriteDragImage.

* page/DragController.cpp:
(WebCore::selectImageBeforeDragging): Half of the old prepareClipboardForImageDrag
is now refactored into this function.
(WebCore::DragController::startDrag): Where we called prepareClipboardForImageDrag,
instead call selectImageBeforeDragging and declareAndWriteDragImage. This is needed
because declareAndWriteDragImage needs to be a member function, for Mac at least.

* page/DragController.h: Added declareAndWriteDragImage.

* page/efl/DragControllerEfl.cpp:
(WebCore::DragController::declareAndWriteDragImage): Added empty placeholder.
It would be better to delete this file rather than having these placeholders.
I don't think EFL actually has drag support, and it makes work to have to keep
source files up to date that are really unused.

* page/gtk/DragControllerGtk.cpp:
(WebCore::DragController::declareAndWriteDragImage): Added. Calls Pasteboard::writeImage.
* page/mac/DragControllerMac.mm:
(WebCore::DragController::declareAndWriteDragImage): Added. Calls to DragClient, which
does the work.
* page/qt/DragControllerQt.cpp:
(WebCore::DragController::declareAndWriteDragImage): Added. Calls Pasteboard::writeImage.
* page/win/DragControllerWin.cpp:
(WebCore::DragController::declareAndWriteDragImage): Added. Uses Pasteboard functions to
do the work.

* platform/Clipboard.h: Changed the pasteboard function to return a non-const reference.
For now, it's not clear what const will mean for pasteboards, and it's currently not
possible to write to a const pasteboard, which we need to do in the new
DragController::declareAndWriteDragImage functions.

* platform/Pasteboard.h: Added a new writeMarkup function, implemented only for Windows
at this time.

* platform/efl/ClipboardEfl.cpp: Deleted declareAndWriteDragImage.
* platform/gtk/ClipboardGtk.cpp: Ditto.
* platform/ios/ClipboardIOS.h: Ditto.
* platform/ios/ClipboardIOS.mm: Ditto.
* platform/mac/ClipboardMac.mm: Ditto.
* platform/qt/ClipboardQt.cpp: Ditto.
* platform/win/ClipboardWin.cpp: Ditto.

* platform/win/PasteboardWin.cpp:
(WebCore::Pasteboard::writePlainTextToDataObject): Took out a pointless line of code.
(WebCore::Pasteboard::writeMarkup): Added. Currently implemented only for Windows.
This factors out a significant piece of DragController::declareAndWriteDragImage,
and will probably be handy for other platforms later.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/Clipboard.h
trunk/Source/WebCore/page/DragController.cpp
trunk/Source/WebCore/page/DragController.h
trunk/Source/WebCore/page/efl/DragControllerEfl.cpp
trunk/Source/WebCore/page/gtk/DragControllerGtk.cpp
trunk/Source/WebCore/page/mac/DragControllerMac.mm
trunk/Source/WebCore/page/qt/DragControllerQt.cpp
trunk/Source/WebCore/page/win/DragControllerWin.cpp
trunk/Source/WebCore/platform/Pasteboard.h
trunk/Source/WebCore/platform/efl/ClipboardEfl.cpp
trunk/Source/WebCore/platform/gtk/ClipboardGtk.cpp
trunk/Source/WebCore/platform/ios/ClipboardIOS.h
trunk/Source/WebCore/platform/ios/ClipboardIOS.mm
trunk/Source/WebCore/platform/mac/ClipboardMac.mm
trunk/Source/WebCore/platform/qt/ClipboardQt.cpp
trunk/Source/WebCore/platform/win/ClipboardWin.cpp
trunk/Source/WebCore/platform/win/PasteboardWin.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153977 => 153978)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 05:55:56 UTC (rev 153977)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 05:58:19 UTC (rev 153978)
@@ -1,3 +1,60 @@
+2013-06-16  Darin Adler  
+
+Move Clipboard::declareAndWriteDragImage to DragController
+https://bugs.webkit.org/show_bug.cgi?id=117683
+
+Reviewed by Brent Fulgham.
+
+* dom/Clipboard.h: Removed declareAndWriteDragImage.
+
+* page/DragController.cpp:
+(WebCore::selectImageBeforeDragging): Half of the old prepareClipboardForImageDrag
+is now refactored into this function.
+(WebCore::DragController::startDrag): Where we called prepareClipboardForImageDrag,
+instead call selectImageBeforeDragging and declareAndWriteDragImage. This is needed
+because declareAndWriteDragImage needs to be a member function, for Mac at least.
+
+* page/DragController.h: Added declareAndWriteDragImage.
+
+* page/efl/DragControllerEfl.cpp:
+(WebCore::DragController::declareAndWriteDragImage): Added empty placeholder.
+It would be better to delete this file rather than having these placeholders.
+I don't think EFL actually has drag support, and it makes work to have to keep
+source files up to date that are really unused.
+
+* page/gtk/DragControllerGtk.cpp:
+(WebCore::DragControlle

[webkit-changes] [153976] trunk/Tools

2013-08-12 Thread mitz
Title: [153976] trunk/Tools








Revision 153976
Author m...@apple.com
Date 2013-08-12 22:53:05 -0700 (Mon, 12 Aug 2013)


Log Message
extract-localizable-strings doesn't know how to verify an existing strings file
https://bugs.webkit.org/show_bug.cgi?id=119704

Reviewed by Darin Adler.

* Scripts/extract-localizable-strings: Added an --exceptions option for specifying the
exceptions file, changing the way “no exceptions file” is expressed from passing “-” as the
exceptions file name to omitting the --exceptions option. Added a --skip option, changing
the way directories to skip are specified from prefixing the directory with a “-” to
specifying it with --skip.
Finally, added a --verify option. When specified, the strings file is not written to, but
instead read in and checked for consistency with the comments, keys and values derived from
the source files and the exceptions file. Missing keys, unused keys, mismatching values and
mismatching comments are reported as errors.
* Scripts/update-webkit-localizable-strings: Updated for the new way of specifying
directories to skip and no exceptions file.

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/Scripts/extract-localizable-strings
trunk/Tools/Scripts/update-webkit-localizable-strings




Diff

Modified: trunk/Tools/ChangeLog (153975 => 153976)

--- trunk/Tools/ChangeLog	2013-08-13 05:48:32 UTC (rev 153975)
+++ trunk/Tools/ChangeLog	2013-08-13 05:53:05 UTC (rev 153976)
@@ -1,3 +1,22 @@
+2013-08-12  Dan Bernstein  
+
+extract-localizable-strings doesn't know how to verify an existing strings file
+https://bugs.webkit.org/show_bug.cgi?id=119704
+
+Reviewed by Darin Adler.
+
+* Scripts/extract-localizable-strings: Added an --exceptions option for specifying the
+exceptions file, changing the way “no exceptions file” is expressed from passing “-” as the
+exceptions file name to omitting the --exceptions option. Added a --skip option, changing
+the way directories to skip are specified from prefixing the directory with a “-” to
+specifying it with --skip.
+Finally, added a --verify option. When specified, the strings file is not written to, but
+instead read in and checked for consistency with the comments, keys and values derived from
+the source files and the exceptions file. Missing keys, unused keys, mismatching values and
+mismatching comments are reported as errors.
+* Scripts/update-webkit-localizable-strings: Updated for the new way of specifying
+directories to skip and no exceptions file.
+
 2013-08-12  Alexey Proskuryakov  
 
 http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac


Modified: trunk/Tools/Scripts/extract-localizable-strings (153975 => 153976)

--- trunk/Tools/Scripts/extract-localizable-strings	2013-08-13 05:48:32 UTC (rev 153975)
+++ trunk/Tools/Scripts/extract-localizable-strings	2013-08-13 05:53:05 UTC (rev 153976)
@@ -43,33 +43,40 @@
 # The exceptions file has a list of strings in quotes, filenames, and filename/string pairs separated by :.
 
 use strict;
+use Getopt::Long;
 no warnings 'deprecated';
 
 sub UnescapeHexSequence($);
 
 my %isDebugMacro = ( ASSERT_WITH_MESSAGE => 1, LOG_ERROR => 1, ERROR => 1, NSURL_ERROR => 1, FATAL => 1, LOG => 1, LOG_WARNING => 1, UI_STRING_LOCALIZE_LATER => 1, UI_STRING_LOCALIZE_LATER_KEY => 1, LPCTSTR_UI_STRING_LOCALIZE_LATER => 1, UNLOCALIZED_STRING => 1, UNLOCALIZED_LPCTSTR => 1, dprintf => 1, NSException => 1, NSLog => 1, printf => 1 );
 
-@ARGV >= 2 or die "Usage: extract-localizable-strings   [ directory... ]\nDid you mean to run update-webkit-localizable-strings instead?\n";
+my $verify;
+my $exceptionsFile;
+my @directoriesToSkip = ();
 
-my $exceptionsFile = shift @ARGV;
--f $exceptionsFile or die "Couldn't find exceptions file $exceptionsFile\n" unless $exceptionsFile eq "-";
+my %options = (
+'verify' => \$verify,
+'exceptions=s' => \$exceptionsFile,
+'skip=s' => \@directoriesToSkip,
+);
 
+GetOptions(%options);
+
+@ARGV >= 2 or die "Usage: extract-localizable-strings [--verify] [--exceptions ]  [--skip directory | directory]...\nDid you mean to run update-webkit-localizable-strings instead?\n";
+
+-f $exceptionsFile or die "Couldn't find exceptions file $exceptionsFile\n" unless !defined $exceptionsFile;
+
 my $fileToUpdate = shift @ARGV;
 -f $fileToUpdate or die "Couldn't find file to update $fileToUpdate\n";
 
-my $warnAboutUnlocalizedStrings = $exceptionsFile ne "-";
+my $warnAboutUnlocalizedStrings = defined $exceptionsFile;
 
 my @directories = ();
-my @directoriesToSkip = ();
 if (@ARGV < 1) {
 push(@directories, ".");
 } else {
 for my $dir (@ARGV) {
-if ($dir =~ /^-(.*)$/) {
-push @directoriesToSkip, $1;
-} else {
-push @directories, $dir;
-}
+push @directories, $dir;
 }
 }
 
@@ -83,7 +90,7 @@
 my %exception;
 my %usedException;
 
-if ($exceptionsFile ne "-" && ope

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

2013-08-12 Thread rniwa
Title: [153975] trunk/Source/WebCore








Revision 153975
Author rn...@webkit.org
Date 2013-08-12 22:48:32 -0700 (Mon, 12 Aug 2013)


Log Message
Fix NULL de-refernce in HTMLAnchorElement::sendPings when settings doesn't exist
https://bugs.webkit.org/show_bug.cgi?id=119716

Reviewed by Darin Adler.

Merge https://chromium.googlesource.com/chromium/blink/+/d5783da353ab783e9994b8fbecd91880be5192a1

No new tests since the test in the Blink change doesn't reproduce crash on WebKit.

* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::sendPings):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/html/HTMLAnchorElement.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153974 => 153975)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 05:47:27 UTC (rev 153974)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 05:48:32 UTC (rev 153975)
@@ -1,3 +1,17 @@
+2013-08-12  Ryosuke Niwa  
+
+Fix NULL de-refernce in HTMLAnchorElement::sendPings when settings doesn't exist
+https://bugs.webkit.org/show_bug.cgi?id=119716
+
+Reviewed by Darin Adler.
+
+Merge https://chromium.googlesource.com/chromium/blink/+/d5783da353ab783e9994b8fbecd91880be5192a1
+
+No new tests since the test in the Blink change doesn't reproduce crash on WebKit.
+
+* html/HTMLAnchorElement.cpp:
+(WebCore::HTMLAnchorElement::sendPings):
+
 2013-08-12  Seokju Kwon  
 
 Use the correct preprocessor in shouldRepaintFixedBackgroundsOnScroll()


Modified: trunk/Source/WebCore/html/HTMLAnchorElement.cpp (153974 => 153975)

--- trunk/Source/WebCore/html/HTMLAnchorElement.cpp	2013-08-13 05:47:27 UTC (rev 153974)
+++ trunk/Source/WebCore/html/HTMLAnchorElement.cpp	2013-08-13 05:48:32 UTC (rev 153975)
@@ -512,7 +512,7 @@
 
 void HTMLAnchorElement::sendPings(const KURL& destinationURL)
 {
-if (!hasAttribute(pingAttr) || !document()->settings()->hyperlinkAuditingEnabled())
+if (!hasAttribute(pingAttr) || !document()->settings() || !document()->settings()->hyperlinkAuditingEnabled())
 return;
 
 SpaceSplitString pingURLs(getAttribute(pingAttr), false);






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


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

2013-08-12 Thread seokju
Title: [153974] trunk/Source/WebCore








Revision 153974
Author seo...@webkit.org
Date 2013-08-12 22:47:27 -0700 (Mon, 12 Aug 2013)


Log Message
Use the correct preprocessor in shouldRepaintFixedBackgroundsOnScroll()
https://bugs.webkit.org/show_bug.cgi?id=119710

Reviewed by Darin Adler.

No behavior change, no new tests needed.

* rendering/RenderObject.cpp: Remove unused parameter warning.
(WebCore::shouldRepaintFixedBackgroundsOnScroll):

Modified Paths

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




Diff

Modified: trunk/Source/WebCore/ChangeLog (153973 => 153974)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 03:44:57 UTC (rev 153973)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 05:47:27 UTC (rev 153974)
@@ -1,3 +1,15 @@
+2013-08-12  Seokju Kwon  
+
+Use the correct preprocessor in shouldRepaintFixedBackgroundsOnScroll()
+https://bugs.webkit.org/show_bug.cgi?id=119710
+
+Reviewed by Darin Adler.
+
+No behavior change, no new tests needed.
+
+* rendering/RenderObject.cpp: Remove unused parameter warning.
+(WebCore::shouldRepaintFixedBackgroundsOnScroll):
+
 2013-08-12  Alexey Proskuryakov  
 
 http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac


Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (153973 => 153974)

--- trunk/Source/WebCore/rendering/RenderObject.cpp	2013-08-13 03:44:57 UTC (rev 153973)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp	2013-08-13 05:47:27 UTC (rev 153974)
@@ -126,7 +126,7 @@
 // ignore the CSS property "background-attachment: fixed".
 static bool shouldRepaintFixedBackgroundsOnScroll(FrameView* frameView)
 {
-#if !ENABLE(FAST_MOBILE_SCROLLING) && !PLATFORM(QT)
+#if !ENABLE(FAST_MOBILE_SCROLLING) || !PLATFORM(QT)
 UNUSED_PARAM(frameView);
 #endif
 






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


[webkit-changes] [153973] trunk

2013-08-12 Thread ap
Title: [153973] trunk








Revision 153973
Author a...@apple.com
Date 2013-08-12 20:44:57 -0700 (Mon, 12 Aug 2013)


Log Message
http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac
https://bugs.webkit.org/show_bug.cgi?id=85522

Reviewed by Andy Estes.

Source/WebCore:

Drive-by FIXMEs and trivial fixes for WebCore issues I noticed while working
on this bug. No behavior change expected.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::submitForm):
(WebCore::FrameLoader::findFrameForNavigation):
* loader/NavigationScheduler.cpp:
(WebCore::ScheduledFormSubmission::fire):

Tools:

* DumpRenderTree/mac/UIDelegate.mm:
(-[UIDelegate webView:addMessageToConsole:withSource:]): Don't print console messages
when already done with a test. We already had this check in all UI delegate functions,
except for -webView:addMessageToConsole:withSource: somehow.

LayoutTests:

* http/tests/security/sandboxed-iframe-form-top-expected.txt: Console logging got
improved while this test was marked as skipped or flaky, updating the results.

* platform/mac/TestExpectations: Removed sandboxed-iframe-form-top.html, this test
no longer leaks output into later ones. The test was erroneously marked as flaky
instead of skipped, but now it's good.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/http/tests/security/sandboxed-iframe-form-top-expected.txt
trunk/LayoutTests/platform/mac/TestExpectations
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/loader/FrameLoader.cpp
trunk/Source/WebCore/loader/NavigationScheduler.cpp
trunk/Tools/ChangeLog
trunk/Tools/DumpRenderTree/mac/UIDelegate.mm




Diff

Modified: trunk/LayoutTests/ChangeLog (153972 => 153973)

--- trunk/LayoutTests/ChangeLog	2013-08-13 03:34:26 UTC (rev 153972)
+++ trunk/LayoutTests/ChangeLog	2013-08-13 03:44:57 UTC (rev 153973)
@@ -1,3 +1,17 @@
+2013-08-12  Alexey Proskuryakov  
+
+http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac
+https://bugs.webkit.org/show_bug.cgi?id=85522
+
+Reviewed by Andy Estes.
+
+* http/tests/security/sandboxed-iframe-form-top-expected.txt: Console logging got
+improved while this test was marked as skipped or flaky, updating the results.
+
+* platform/mac/TestExpectations: Removed sandboxed-iframe-form-top.html, this test
+no longer leaks output into later ones. The test was erroneously marked as flaky
+instead of skipped, but now it's good.
+
 2013-08-12  Ryuan Choi  
 
 [EFL] Unreviewed gardening.


Modified: trunk/LayoutTests/http/tests/security/sandboxed-iframe-form-top-expected.txt (153972 => 153973)

--- trunk/LayoutTests/http/tests/security/sandboxed-iframe-form-top-expected.txt	2013-08-13 03:34:26 UTC (rev 153972)
+++ trunk/LayoutTests/http/tests/security/sandboxed-iframe-form-top-expected.txt	2013-08-13 03:44:57 UTC (rev 153973)
@@ -1,4 +1,4 @@
-CONSOLE MESSAGE: Unsafe _javascript_ attempt to initiate a navigation change for frame with URL http://127.0.0.1:8000/security/sandboxed-iframe-form-top.html from frame with URL http://127.0.0.1:8000/security/resources/sandboxed-iframe-form-top.html.
+CONSOLE MESSAGE: Unsafe _javascript_ attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/sandboxed-iframe-form-top.html' from frame with URL 'http://127.0.0.1:8000/security/resources/sandboxed-iframe-form-top.html'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set.
 
 This tests passes if the sandboxed frame cannot navigate the top frame.
 


Modified: trunk/LayoutTests/platform/mac/TestExpectations (153972 => 153973)

--- trunk/LayoutTests/platform/mac/TestExpectations	2013-08-13 03:34:26 UTC (rev 153972)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2013-08-13 03:44:57 UTC (rev 153973)
@@ -621,8 +621,6 @@
 # Requires ENABLE(MEDIA_CAPTURE)
 fast/forms/file/file-input-capture.html
 
-webkit.org/b/85522 http/tests/security/sandboxed-iframe-form-top.html [ Pass Failure ]
-
 webkit.org/b/85523 fullscreen/full-screen-iframe-legacy.html [ Pass Failure ]
 
 webkit.org/b/85525 media/video-played-reset.html [ Pass Failure ]


Modified: trunk/Source/WebCore/ChangeLog (153972 => 153973)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 03:34:26 UTC (rev 153972)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 03:44:57 UTC (rev 153973)
@@ -1,3 +1,19 @@
+2013-08-12  Alexey Proskuryakov  
+
+http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac
+https://bugs.webkit.org/show_bug.cgi?id=85522
+
+Reviewed by Andy Estes.
+
+Drive-by FIXMEs and trivial fixes for WebCore issues I noticed while working
+on this bug. No behavior change expected.
+
+* loader/FrameLoader.cpp:
+(WebCore::FrameLoader::submitForm):
+(WebCore::FrameLoader::findFrameForNavigation):
+* loader/NavigationScheduler.cpp:
+(WebCore::ScheduledFormSubmission::fire):
+
 2013-08-13  Ryosuke Niwa  
 

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

2013-08-12 Thread rniwa
Title: [153972] trunk/Source/WebCore








Revision 153972
Author rn...@webkit.org
Date 2013-08-12 20:34:26 -0700 (Mon, 12 Aug 2013)


Log Message
Fix variable name |end| -> |size| in EventTarget::fireEventListeners
https://bugs.webkit.org/show_bug.cgi?id=119715

Reviewed by Benjamin Poulain.

Merge https://chromium.googlesource.com/chromium/blink/+/f58b017539c48059bb2b88d18ee0ee3d14decb01
and also fix variable names in FiringEventIterator.

* dom/EventTarget.cpp:
(WebCore::EventTarget::removeEventListener):
(WebCore::EventTarget::fireEventListeners):
(WebCore::EventTarget::removeAllEventListeners):
* dom/EventTarget.h:
(WebCore::FiringEventIterator::FiringEventIterator):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/EventTarget.cpp
trunk/Source/WebCore/dom/EventTarget.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (153971 => 153972)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 01:35:13 UTC (rev 153971)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 03:34:26 UTC (rev 153972)
@@ -1,3 +1,20 @@
+2013-08-13  Ryosuke Niwa  
+
+Fix variable name |end| -> |size| in EventTarget::fireEventListeners
+https://bugs.webkit.org/show_bug.cgi?id=119715
+
+Reviewed by Benjamin Poulain.
+
+Merge https://chromium.googlesource.com/chromium/blink/+/f58b017539c48059bb2b88d18ee0ee3d14decb01
+and also fix variable names in FiringEventIterator.
+
+* dom/EventTarget.cpp:
+(WebCore::EventTarget::removeEventListener):
+(WebCore::EventTarget::fireEventListeners):
+(WebCore::EventTarget::removeAllEventListeners):
+* dom/EventTarget.h:
+(WebCore::FiringEventIterator::FiringEventIterator):
+
 2013-08-12  Ryosuke Niwa  
 
 Encapsulate access to documentNamedItemMap and windowNamedItemMap


Modified: trunk/Source/WebCore/dom/EventTarget.cpp (153971 => 153972)

--- trunk/Source/WebCore/dom/EventTarget.cpp	2013-08-13 01:35:13 UTC (rev 153971)
+++ trunk/Source/WebCore/dom/EventTarget.cpp	2013-08-13 03:34:26 UTC (rev 153972)
@@ -92,10 +92,10 @@
 if (eventType != firingIterator.eventType)
 continue;
 
-if (indexOfRemovedListener >= firingIterator.end)
+if (indexOfRemovedListener >= firingIterator.size)
 continue;
 
---firingIterator.end;
+--firingIterator.size;
 if (indexOfRemovedListener <= firingIterator.iterator)
 --firingIterator.iterator;
 }
@@ -217,18 +217,17 @@
 {
 RefPtr protect = this;
 
-// Fire all listeners registered for this event. Don't fire listeners removed
-// during event dispatch. Also, don't fire event listeners added during event
-// dispatch. Conveniently, all new event listeners will be added after 'end',
-// so iterating to 'end' naturally excludes new event listeners.
+// Fire all listeners registered for this event. Don't fire listeners removed during event dispatch.
+// Also, don't fire event listeners added during event dispatch. Conveniently, all new event listeners will be added
+// after or at index |size|, so iterating up to (but not including) |size| naturally excludes new event listeners.
 
 bool userEventWasHandled = false;
 size_t i = 0;
-size_t end = entry.size();
+size_t size = entry.size();
 if (!d->firingEventIterators)
 d->firingEventIterators = adoptPtr(new FiringEventIteratorVector);
-d->firingEventIterators->append(FiringEventIterator(event->type(), i, end));
-for ( ; i < end; ++i) {
+d->firingEventIterators->append(FiringEventIterator(event->type(), i, size));
+for (; i < size; ++i) {
 RegisteredEventListener& registeredListener = entry[i];
 if (event->eventPhase() == Event::CAPTURING_PHASE && !registeredListener.useCapture)
 continue;
@@ -286,7 +285,7 @@
 if (d->firingEventIterators) {
 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) {
 d->firingEventIterators->at(i).iterator = 0;
-d->firingEventIterators->at(i).end = 0;
+d->firingEventIterators->at(i).size = 0;
 }
 }
 }


Modified: trunk/Source/WebCore/dom/EventTarget.h (153971 => 153972)

--- trunk/Source/WebCore/dom/EventTarget.h	2013-08-13 01:35:13 UTC (rev 153971)
+++ trunk/Source/WebCore/dom/EventTarget.h	2013-08-13 03:34:26 UTC (rev 153972)
@@ -79,16 +79,16 @@
 typedef int ExceptionCode;
 
 struct FiringEventIterator {
-FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end)
+FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& size)
 : eventType(eventType)
 , iterator(iterator)
-, end(end)
+, size(size)
 {
 }
 
 const AtomicString& eventType;
 size_t& iterator;
-size_t& end;
+size_t& size;
 };
 typedef Vector FiringEventIteratorVector;
 






_

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

2013-08-12 Thread rniwa
Title: [153970] trunk/Source/WebCore








Revision 153970
Author rn...@webkit.org
Date 2013-08-12 18:12:18 -0700 (Mon, 12 Aug 2013)


Log Message
Encapsulate access to documentNamedItemMap and windowNamedItemMap
https://bugs.webkit.org/show_bug.cgi?id=119701

Reviewed by Darin Adler.

Encapsulate m_documentNamedItem and m_windowNamedItem by adding various methods on HTMLDocument.
This will help us doing more refactorings in the future.

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::namedItemGetter):
(WebCore::JSDOMWindow::getOwnPropertySlot):
(WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
(WebCore::JSDOMWindow::getOwnPropertyDescriptor):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::canGetItemsForName):
(WebCore::JSHTMLDocument::nameGetter):
* dom/Element.cpp:
(WebCore::Element::updateNameForDocument):
(WebCore::Element::updateIdForDocument):
* html/HTMLDocument.cpp:
(WebCore::HTMLDocument::addDocumentNamedItem): Added.
(WebCore::HTMLDocument::removeDocumentNamedItem): Added.
(WebCore::HTMLDocument::addWindowNamedItem): Added.
(WebCore::HTMLDocument::removeWindowNamedItem): Added.
* html/HTMLDocument.h:
(WebCore::HTMLDocument::documentNamedItem): Added.
(WebCore::HTMLDocument::hasDocumentNamedItem): Added.
(WebCore::HTMLDocument::documentNamedItemContainsMultipleElements): Added.
(WebCore::HTMLDocument::windowNamedItem): Added.
(WebCore::HTMLDocument::hasWindowNamedItem): Added.
(WebCore::HTMLDocument::windowNamedItemContainsMultipleElements): Added.
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::parseAttribute):
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::updateDocNamedItem):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp
trunk/Source/WebCore/dom/Element.cpp
trunk/Source/WebCore/html/HTMLDocument.cpp
trunk/Source/WebCore/html/HTMLDocument.h
trunk/Source/WebCore/html/HTMLImageElement.cpp
trunk/Source/WebCore/html/HTMLObjectElement.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153969 => 153970)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 01:10:07 UTC (rev 153969)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 01:12:18 UTC (rev 153970)
@@ -1,3 +1,41 @@
+2013-08-12  Ryosuke Niwa  
+
+Encapsulate access to documentNamedItemMap and windowNamedItemMap
+https://bugs.webkit.org/show_bug.cgi?id=119701
+
+Reviewed by Darin Adler.
+
+Encapsulate m_documentNamedItem and m_windowNamedItem by adding various methods on HTMLDocument.
+This will help us doing more refactorings in the future.
+
+* bindings/js/JSDOMWindowCustom.cpp:
+(WebCore::namedItemGetter):
+(WebCore::JSDOMWindow::getOwnPropertySlot):
+(WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
+(WebCore::JSDOMWindow::getOwnPropertyDescriptor):
+* bindings/js/JSHTMLDocumentCustom.cpp:
+(WebCore::JSHTMLDocument::canGetItemsForName):
+(WebCore::JSHTMLDocument::nameGetter):
+* dom/Element.cpp:
+(WebCore::Element::updateNameForDocument):
+(WebCore::Element::updateIdForDocument):
+* html/HTMLDocument.cpp:
+(WebCore::HTMLDocument::addDocumentNamedItem): Added.
+(WebCore::HTMLDocument::removeDocumentNamedItem): Added.
+(WebCore::HTMLDocument::addWindowNamedItem): Added.
+(WebCore::HTMLDocument::removeWindowNamedItem): Added.
+* html/HTMLDocument.h:
+(WebCore::HTMLDocument::documentNamedItem): Added.
+(WebCore::HTMLDocument::hasDocumentNamedItem): Added.
+(WebCore::HTMLDocument::documentNamedItemContainsMultipleElements): Added.
+(WebCore::HTMLDocument::windowNamedItem): Added.
+(WebCore::HTMLDocument::hasWindowNamedItem): Added.
+(WebCore::HTMLDocument::windowNamedItemContainsMultipleElements): Added.
+* html/HTMLImageElement.cpp:
+(WebCore::HTMLImageElement::parseAttribute):
+* html/HTMLObjectElement.cpp:
+(WebCore::HTMLObjectElement::updateDocNamedItem):
+
 2013-08-12  Patrick Gansterer  
 
 [CMake] Use the correct list of files when compiling ANGLESupport on Windows


Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp (153969 => 153970)

--- trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp	2013-08-13 01:10:07 UTC (rev 153969)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp	2013-08-13 01:12:18 UTC (rev 153970)
@@ -96,18 +96,17 @@
 ASSERT(document->isHTMLDocument());
 
 AtomicStringImpl* atomicPropertyName = findAtomicString(propertyName);
-if (!atomicPropertyName || !toHTMLDocument(document)->windowNamedItemMap().contains(atomicPropertyName))
+if (!atomicPropertyName || !toHTMLDocument(document)->hasWindowNamedItem(atomicPropertyName))
 return jsUndefined();
 
-if (UNLIKELY(!toHTMLDocument(document)->windowNamedItemMap().containsSingle(atomicPropertyName))) {
+if (UNLIKEL

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

2013-08-12 Thread mitz
Title: [153969] trunk/Source/WebKit2








Revision 153969
Author m...@apple.com
Date 2013-08-12 18:10:07 -0700 (Mon, 12 Aug 2013)


Log Message
Fixed an off-by-(sizeof(char*) - 1) bug.

Reviewed by Sam Weinig.

* Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
(WebKit::XPCServiceEventHandler): Allocate a sufficiently large buffer.

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm




Diff

Modified: trunk/Source/WebKit2/ChangeLog (153968 => 153969)

--- trunk/Source/WebKit2/ChangeLog	2013-08-13 00:35:45 UTC (rev 153968)
+++ trunk/Source/WebKit2/ChangeLog	2013-08-13 01:10:07 UTC (rev 153969)
@@ -1,3 +1,12 @@
+2013-08-12  Dan Bernstein  
+
+Fixed an off-by-(sizeof(char*) - 1) bug.
+
+Reviewed by Sam Weinig.
+
+* Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
+(WebKit::XPCServiceEventHandler): Allocate a sufficiently large buffer.
+
 2013-08-12  Beth Dakin  
 
 Remove didNewFirstVisuallyNonEmptyLayout from WebKit2


Modified: trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm (153968 => 153969)

--- trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm	2013-08-13 00:35:45 UTC (rev 153968)
+++ trunk/Source/WebKit2/Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm	2013-08-13 01:10:07 UTC (rev 153969)
@@ -108,7 +108,7 @@
 
 xpc_object_t environmentArray = xpc_dictionary_get_value(event, "environment");
 size_t numberOfEnvironmentVariables = xpc_array_get_count(environmentArray);
-char** environment = static_cast(malloc(numberOfEnvironmentVariables * sizeof(char*) + 1));
+char** environment = static_cast(malloc((numberOfEnvironmentVariables + 1) * sizeof(char*)));
 for (size_t i = 0; i < numberOfEnvironmentVariables; ++i)
 environment[i] = strdup(xpc_array_get_string(environmentArray, i));
 environment[numberOfEnvironmentVariables] = 0;






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


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

2013-08-12 Thread paroga
Title: [153968] trunk/Source/WebCore








Revision 153968
Author par...@webkit.org
Date 2013-08-12 17:35:45 -0700 (Mon, 12 Aug 2013)


Log Message
[CMake] Use the correct list of files when compiling ANGLESupport on Windows
https://bugs.webkit.org/show_bug.cgi?id=119439

Reviewed by Gyuyoung Kim.

* CMakeLists.txt: Use ossource_win.cpp instead of ossource_posix.cpp on Windows platforms.

Modified Paths

trunk/Source/WebCore/CMakeLists.txt
trunk/Source/WebCore/ChangeLog




Diff

Modified: trunk/Source/WebCore/CMakeLists.txt (153967 => 153968)

--- trunk/Source/WebCore/CMakeLists.txt	2013-08-13 00:28:16 UTC (rev 153967)
+++ trunk/Source/WebCore/CMakeLists.txt	2013-08-13 00:35:45 UTC (rev 153968)
@@ -2887,7 +2887,6 @@
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/intermOut.cpp
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/IntermTraverse.cpp
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/MapLongVariableNames.cpp
-${THIRDPARTY_DIR}/ANGLE/src/compiler/ossource_posix.cpp
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/OutputESSL.cpp
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/OutputGLSL.cpp
 ${THIRDPARTY_DIR}/ANGLE/src/compiler/OutputGLSLBase.cpp
@@ -2926,6 +2925,16 @@
 ${THIRDPARTY_DIR}/ANGLE/src/third_party/compiler/ArrayBoundsClamper.cpp
 )
 
+if (WIN32)
+list(APPEND ANGLESupport_SOURCES
+${THIRDPARTY_DIR}/ANGLE/src/compiler/ossource_win.cpp
+)
+else ()
+list(APPEND ANGLESupport_SOURCES
+${THIRDPARTY_DIR}/ANGLE/src/compiler/ossource_posix.cpp
+)
+endif ()
+
 list(APPEND WebCore_SOURCES
 platform/graphics/ANGLEWebKitBridge.cpp
 platform/graphics/GraphicsContext3D.cpp


Modified: trunk/Source/WebCore/ChangeLog (153967 => 153968)

--- trunk/Source/WebCore/ChangeLog	2013-08-13 00:28:16 UTC (rev 153967)
+++ trunk/Source/WebCore/ChangeLog	2013-08-13 00:35:45 UTC (rev 153968)
@@ -1,3 +1,12 @@
+2013-08-12  Patrick Gansterer  
+
+[CMake] Use the correct list of files when compiling ANGLESupport on Windows
+https://bugs.webkit.org/show_bug.cgi?id=119439
+
+Reviewed by Gyuyoung Kim.
+
+* CMakeLists.txt: Use ossource_win.cpp instead of ossource_posix.cpp on Windows platforms.
+
 2013-08-12  Arnaud Renevier  
 
 [cairo] memory corruption with putImageData and accelerated canvas.






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


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

2013-08-12 Thread oliver
Title: [153967] trunk/Source/_javascript_Core








Revision 153967
Author oli...@apple.com
Date 2013-08-12 17:28:16 -0700 (Mon, 12 Aug 2013)


Log Message
Remove CodeBlock's notion of adding identifiers entirely
https://bugs.webkit.org/show_bug.cgi?id=119708

Reviewed by Geoffrey Garen.

Remove addAdditionalIdentifier entirely, including the bogus assertion.
Move the addition of identifiers to DFGPlan::reallyAdd

* bytecode/CodeBlock.h:
* dfg/DFGDesiredIdentifiers.cpp:
(JSC::DFG::DesiredIdentifiers::reallyAdd):
* dfg/DFGDesiredIdentifiers.h:
* dfg/DFGPlan.cpp:
(JSC::DFG::Plan::reallyAdd):
(JSC::DFG::Plan::finalize):
* dfg/DFGPlan.h:

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/bytecode/CodeBlock.h
trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.cpp
trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.h
trunk/Source/_javascript_Core/dfg/DFGPlan.cpp
trunk/Source/_javascript_Core/dfg/DFGPlan.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (153966 => 153967)

--- trunk/Source/_javascript_Core/ChangeLog	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-08-13 00:28:16 UTC (rev 153967)
@@ -1,5 +1,24 @@
 2013-08-12  Oliver Hunt  
 
+Remove CodeBlock's notion of adding identifiers entirely
+https://bugs.webkit.org/show_bug.cgi?id=119708
+
+Reviewed by Geoffrey Garen.
+
+Remove addAdditionalIdentifier entirely, including the bogus assertion.
+Move the addition of identifiers to DFGPlan::reallyAdd
+
+* bytecode/CodeBlock.h:
+* dfg/DFGDesiredIdentifiers.cpp:
+(JSC::DFG::DesiredIdentifiers::reallyAdd):
+* dfg/DFGDesiredIdentifiers.h:
+* dfg/DFGPlan.cpp:
+(JSC::DFG::Plan::reallyAdd):
+(JSC::DFG::Plan::finalize):
+* dfg/DFGPlan.h:
+
+2013-08-12  Oliver Hunt  
+
 Build fix
 
 * runtime/JSCell.h:


Modified: trunk/Source/_javascript_Core/bytecode/CodeBlock.h (153966 => 153967)

--- trunk/Source/_javascript_Core/bytecode/CodeBlock.h	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/bytecode/CodeBlock.h	2013-08-13 00:28:16 UTC (rev 153967)
@@ -664,12 +664,6 @@
 return m_jitCode->dfgCommon()->dfgIdentifiers.size();
 }
 
-void addAdditionalIdentifier(const Identifier& i)
-{
-ASSERT(JITCode::isOptimizingJIT(jitType()));
-return m_jitCode->dfgCommon()->dfgIdentifiers.append(i);
-}
-
 const Identifier& identifier(int index) const
 {
 size_t unlinkedIdentifiers = m_unlinkedCode->numberOfIdentifiers();


Modified: trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.cpp (153966 => 153967)

--- trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.cpp	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.cpp	2013-08-13 00:28:16 UTC (rev 153967)
@@ -62,12 +62,12 @@
 return result;
 }
 
-void DesiredIdentifiers::reallyAdd(VM& vm)
+void DesiredIdentifiers::reallyAdd(VM& vm, CommonData* commonData)
 {
 for (unsigned i = 0; i < m_addedIdentifiers.size(); ++i) {
 StringImpl* rep = m_addedIdentifiers[i];
 ASSERT(rep->hasAtLeastOneRef());
-m_codeBlock->addAdditionalIdentifier(Identifier(&vm, rep));
+commonData->dfgIdentifiers.append(Identifier(&vm, rep));
 }
 }
 


Modified: trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.h (153966 => 153967)

--- trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.h	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.h	2013-08-13 00:28:16 UTC (rev 153967)
@@ -38,6 +38,8 @@
 
 namespace DFG {
 
+class CommonData;
+
 class DesiredIdentifiers {
 public:
 DesiredIdentifiers(CodeBlock*);
@@ -50,7 +52,7 @@
 
 StringImpl* operator[](unsigned index) const { return at(index); }
 
-void reallyAdd(VM&);
+void reallyAdd(VM&, CommonData*);
 
 private:
 CodeBlock* m_codeBlock;


Modified: trunk/Source/_javascript_Core/dfg/DFGPlan.cpp (153966 => 153967)

--- trunk/Source/_javascript_Core/dfg/DFGPlan.cpp	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/dfg/DFGPlan.cpp	2013-08-13 00:28:16 UTC (rev 153967)
@@ -271,10 +271,10 @@
 && chains.areStillValid();
 }
 
-void Plan::reallyAdd()
+void Plan::reallyAdd(CommonData* commonData)
 {
 watchpoints.reallyAdd();
-identifiers.reallyAdd(vm);
+identifiers.reallyAdd(vm, commonData);
 }
 
 CompilationResult Plan::finalize(RefPtr& jitCode, MacroAssemblerCodePtr* jitCodeWithArityCheck)
@@ -291,7 +291,7 @@
 if (!result)
 return CompilationFailed;
 
-reallyAdd();
+reallyAdd(jitCode->dfgCommon());
 
 return CompilationSuccessful;
 }


Modified: trunk/Source/_javascript_Core/dfg/DFGPlan.h (153966 => 153967)

--- trunk/Source/_javascript_Core/dfg/DFGPlan.h	2013-08-13 00:20:47 UTC (rev 153966)
+++ trunk/Source/_javascript_Core/dfg/DFGPlan.h	201

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

2013-08-12 Thread oliver
Title: [153965] trunk/Source/_javascript_Core








Revision 153965
Author oli...@apple.com
Date 2013-08-12 16:56:39 -0700 (Mon, 12 Aug 2013)


Log Message
Build fix

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/runtime/JSCell.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (153964 => 153965)

--- trunk/Source/_javascript_Core/ChangeLog	2013-08-12 23:42:27 UTC (rev 153964)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-08-12 23:56:39 UTC (rev 153965)
@@ -1,5 +1,11 @@
 2013-08-12  Oliver Hunt  
 
+Build fix
+
+* runtime/JSCell.h:
+
+2013-08-12  Oliver Hunt  
+
 Move additionalIdentifiers into DFGCommonData as only the optimising JITs use them
 https://bugs.webkit.org/show_bug.cgi?id=119705
 


Modified: trunk/Source/_javascript_Core/runtime/JSCell.h (153964 => 153965)

--- trunk/Source/_javascript_Core/runtime/JSCell.h	2013-08-12 23:42:27 UTC (rev 153964)
+++ trunk/Source/_javascript_Core/runtime/JSCell.h	2013-08-12 23:56:39 UTC (rev 153965)
@@ -49,6 +49,9 @@
 IncludeDontEnumProperties
 };
 
+template void* allocateCell(Heap&);
+template void* allocateCell(Heap&, size_t);
+
 class JSCell {
 friend class JSValue;
 friend class MarkedBlock;






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


[webkit-changes] [153964] trunk/Tools

2013-08-12 Thread ap
Title: [153964] trunk/Tools








Revision 153964
Author a...@apple.com
Date 2013-08-12 16:42:27 -0700 (Mon, 12 Aug 2013)


Log Message
https://bugs.webkit.org/show_bug.cgi?id=119693
[Mac] security/contentSecurityPolicy/connect-src-websocket-blocked.html is flaky
because of connect-src-websocket-allowed.html

Reviewed by Darin Adler.

Starting a load of about:blank and immediately stopping it cancels outstanding
resource loads, but the page has to transition to committed state to have timers
or WebSockets stopped too.

* DumpRenderTree/mac/DumpRenderTree.mm: (runTest): Use a synchronous load to
ensure that transition to committed state happens before we start the next test.

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm




Diff

Modified: trunk/Tools/ChangeLog (153963 => 153964)

--- trunk/Tools/ChangeLog	2013-08-12 23:41:26 UTC (rev 153963)
+++ trunk/Tools/ChangeLog	2013-08-12 23:42:27 UTC (rev 153964)
@@ -1,3 +1,18 @@
+2013-08-12  Alexey Proskuryakov  
+
+https://bugs.webkit.org/show_bug.cgi?id=119693
+[Mac] security/contentSecurityPolicy/connect-src-websocket-blocked.html is flaky
+because of connect-src-websocket-allowed.html
+
+Reviewed by Darin Adler.
+
+Starting a load of about:blank and immediately stopping it cancels outstanding
+resource loads, but the page has to transition to committed state to have timers
+or WebSockets stopped too.
+
+* DumpRenderTree/mac/DumpRenderTree.mm: (runTest): Use a synchronous load to
+ensure that transition to committed state happens before we start the next test.
+
 2013-08-12  Beth Dakin  
 
 The LayoutMilestones didLayout callback should only fire for the main frame


Modified: trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm (153963 => 153964)

--- trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm	2013-08-12 23:41:26 UTC (rev 153963)
+++ trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm	2013-08-12 23:42:27 UTC (rev 153964)
@@ -1442,8 +1442,9 @@
 
 resetWebViewToConsistentStateBeforeTesting();
 
-[mainFrame loadHTMLString:@"" baseURL:[NSURL URLWithString:@"about:blank"]];
-[mainFrame stopLoading];
+// Loading an empty request synchronously replaces the document with a blank one, which is necessary
+// to stop timers, WebSockets and other activity that could otherwise spill output into next test's results.
+[mainFrame loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@""]]];
 
 [pool release];
 






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


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

2013-08-12 Thread oliver
Title: [153963] trunk/Source/_javascript_Core








Revision 153963
Author oli...@apple.com
Date 2013-08-12 16:41:26 -0700 (Mon, 12 Aug 2013)


Log Message
Move additionalIdentifiers into DFGCommonData as only the optimising JITs use them
https://bugs.webkit.org/show_bug.cgi?id=119705

Reviewed by Geoffrey Garen.

Relatively trivial refactoring

* bytecode/CodeBlock.h:
(JSC::CodeBlock::numberOfAdditionalIdentifiers):
(JSC::CodeBlock::addAdditionalIdentifier):
(JSC::CodeBlock::identifier):
(JSC::CodeBlock::numberOfIdentifiers):
* dfg/DFGCommonData.h:

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/bytecode/CodeBlock.h
trunk/Source/_javascript_Core/dfg/DFGCommonData.h




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (153962 => 153963)

--- trunk/Source/_javascript_Core/ChangeLog	2013-08-12 22:39:13 UTC (rev 153962)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-08-12 23:41:26 UTC (rev 153963)
@@ -1,5 +1,21 @@
 2013-08-12  Oliver Hunt  
 
+Move additionalIdentifiers into DFGCommonData as only the optimising JITs use them
+https://bugs.webkit.org/show_bug.cgi?id=119705
+
+Reviewed by Geoffrey Garen.
+
+Relatively trivial refactoring
+
+* bytecode/CodeBlock.h:
+(JSC::CodeBlock::numberOfAdditionalIdentifiers):
+(JSC::CodeBlock::addAdditionalIdentifier):
+(JSC::CodeBlock::identifier):
+(JSC::CodeBlock::numberOfIdentifiers):
+* dfg/DFGCommonData.h:
+
+2013-08-12  Oliver Hunt  
+
 Stop making unnecessary copy of CodeBlock Identifier Vector
 https://bugs.webkit.org/show_bug.cgi?id=119702
 


Modified: trunk/Source/_javascript_Core/bytecode/CodeBlock.h (153962 => 153963)

--- trunk/Source/_javascript_Core/bytecode/CodeBlock.h	2013-08-12 22:39:13 UTC (rev 153962)
+++ trunk/Source/_javascript_Core/bytecode/CodeBlock.h	2013-08-12 23:41:26 UTC (rev 153963)
@@ -654,17 +654,34 @@
 #endif
 
 // Constant Pool
+#if ENABLE(DFG_JIT)
+size_t numberOfIdentifiers() const { return m_unlinkedCode->numberOfIdentifiers() + numberOfDFGIdentifiers(); }
+size_t numberOfDFGIdentifiers() const
+{
+if (!JITCode::isOptimizingJIT(jitType()))
+return 0;
 
-size_t numberOfIdentifiers() const { return m_unlinkedCode->numberOfIdentifiers() + numberOfAdditionalIdentifiers(); }
-size_t numberOfAdditionalIdentifiers() const { return m_additionalIdentifiers.size(); }
-void addAdditionalIdentifier(const Identifier& i) { return m_additionalIdentifiers.append(i); }
+return m_jitCode->dfgCommon()->dfgIdentifiers.size();
+}
+
+void addAdditionalIdentifier(const Identifier& i)
+{
+ASSERT(JITCode::isOptimizingJIT(jitType()));
+return m_jitCode->dfgCommon()->dfgIdentifiers.append(i);
+}
+
 const Identifier& identifier(int index) const
 {
 size_t unlinkedIdentifiers = m_unlinkedCode->numberOfIdentifiers();
 if (static_cast(index) < unlinkedIdentifiers)
 return m_unlinkedCode->identifier(index);
-return m_additionalIdentifiers[index - unlinkedIdentifiers];
+ASSERT(JITCode::isOptimizingJIT(jitType()));
+return m_jitCode->dfgCommon()->dfgIdentifiers[index - unlinkedIdentifiers];
 }
+#else
+size_t numberOfIdentifiers() const { return m_unlinkedCode->numberOfIdentifiers(); }
+const Identifier& identifier(int index) const { return m_unlinkedCode->identifier(index); }
+#endif
 
 size_t numberOfConstantRegisters() const { return m_constantRegisters.size(); }
 unsigned addConstant(JSValue v)


Modified: trunk/Source/_javascript_Core/dfg/DFGCommonData.h (153962 => 153963)

--- trunk/Source/_javascript_Core/dfg/DFGCommonData.h	2013-08-12 22:39:13 UTC (rev 153962)
+++ trunk/Source/_javascript_Core/dfg/DFGCommonData.h	2013-08-12 23:41:26 UTC (rev 153963)
@@ -37,6 +37,7 @@
 namespace JSC {
 
 class CodeBlock;
+class Identifier;
 
 namespace DFG {
 
@@ -73,7 +74,8 @@
 void notifyCompilingStructureTransition(CodeBlock*, Node*);
 
 void shrinkToFit();
-
+
+Vector dfgIdentifiers;
 Vector transitions;
 Vector > weakReferences;
 






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


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

2013-08-12 Thread oliver
Title: [153962] trunk/Source/_javascript_Core








Revision 153962
Author oli...@apple.com
Date 2013-08-12 15:39:13 -0700 (Mon, 12 Aug 2013)


Log Message
Stop making unnecessary copy of CodeBlock Identifier Vector
https://bugs.webkit.org/show_bug.cgi?id=119702

Reviewed by Michael Saboff.

Make CodeBlock simply use a separate Vector for additional Identifiers
and use the UnlinkedCodeBlock for the initial set of identifiers.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::printGetByIdOp):
(JSC::dumpStructure):
(JSC::dumpChain):
(JSC::CodeBlock::printGetByIdCacheStatus):
(JSC::CodeBlock::printPutByIdOp):
(JSC::CodeBlock::dumpBytecode):
(JSC::CodeBlock::CodeBlock):
(JSC::CodeBlock::shrinkToFit):
* bytecode/CodeBlock.h:
(JSC::CodeBlock::numberOfIdentifiers):
(JSC::CodeBlock::numberOfAdditionalIdentifiers):
(JSC::CodeBlock::addAdditionalIdentifier):
(JSC::CodeBlock::identifier):
* dfg/DFGDesiredIdentifiers.cpp:
(JSC::DFG::DesiredIdentifiers::reallyAdd):
* jit/JIT.h:
* jit/JITOpcodes.cpp:
(JSC::JIT::emitSlow_op_get_arguments_length):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::emit_op_get_by_id):
(JSC::JIT::compileGetByIdHotPath):
(JSC::JIT::emitSlow_op_get_by_id):
(JSC::JIT::compileGetByIdSlowCase):
(JSC::JIT::emitSlow_op_put_by_id):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::emit_op_get_by_id):
(JSC::JIT::compileGetByIdHotPath):
(JSC::JIT::compileGetByIdSlowCase):
* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
* llint/LLIntSlowPaths.cpp:
(JSC::LLInt::LLINT_SLOW_PATH_DECL):

Modified Paths

trunk/Source/_javascript_Core/ChangeLog
trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp
trunk/Source/_javascript_Core/bytecode/CodeBlock.h
trunk/Source/_javascript_Core/dfg/DFGDesiredIdentifiers.cpp
trunk/Source/_javascript_Core/jit/JIT.h
trunk/Source/_javascript_Core/jit/JITOpcodes.cpp
trunk/Source/_javascript_Core/jit/JITPropertyAccess.cpp
trunk/Source/_javascript_Core/jit/JITPropertyAccess32_64.cpp
trunk/Source/_javascript_Core/jit/JITStubs.cpp
trunk/Source/_javascript_Core/llint/LLIntSlowPaths.cpp




Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (153961 => 153962)

--- trunk/Source/_javascript_Core/ChangeLog	2013-08-12 22:05:07 UTC (rev 153961)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-08-12 22:39:13 UTC (rev 153962)
@@ -1,3 +1,47 @@
+2013-08-12  Oliver Hunt  
+
+Stop making unnecessary copy of CodeBlock Identifier Vector
+https://bugs.webkit.org/show_bug.cgi?id=119702
+
+Reviewed by Michael Saboff.
+
+Make CodeBlock simply use a separate Vector for additional Identifiers
+and use the UnlinkedCodeBlock for the initial set of identifiers.
+
+* bytecode/CodeBlock.cpp:
+(JSC::CodeBlock::printGetByIdOp):
+(JSC::dumpStructure):
+(JSC::dumpChain):
+(JSC::CodeBlock::printGetByIdCacheStatus):
+(JSC::CodeBlock::printPutByIdOp):
+(JSC::CodeBlock::dumpBytecode):
+(JSC::CodeBlock::CodeBlock):
+(JSC::CodeBlock::shrinkToFit):
+* bytecode/CodeBlock.h:
+(JSC::CodeBlock::numberOfIdentifiers):
+(JSC::CodeBlock::numberOfAdditionalIdentifiers):
+(JSC::CodeBlock::addAdditionalIdentifier):
+(JSC::CodeBlock::identifier):
+* dfg/DFGDesiredIdentifiers.cpp:
+(JSC::DFG::DesiredIdentifiers::reallyAdd):
+* jit/JIT.h:
+* jit/JITOpcodes.cpp:
+(JSC::JIT::emitSlow_op_get_arguments_length):
+* jit/JITPropertyAccess.cpp:
+(JSC::JIT::emit_op_get_by_id):
+(JSC::JIT::compileGetByIdHotPath):
+(JSC::JIT::emitSlow_op_get_by_id):
+(JSC::JIT::compileGetByIdSlowCase):
+(JSC::JIT::emitSlow_op_put_by_id):
+* jit/JITPropertyAccess32_64.cpp:
+(JSC::JIT::emit_op_get_by_id):
+(JSC::JIT::compileGetByIdHotPath):
+(JSC::JIT::compileGetByIdSlowCase):
+* jit/JITStubs.cpp:
+(JSC::DEFINE_STUB_FUNCTION):
+* llint/LLIntSlowPaths.cpp:
+(JSC::LLInt::LLINT_SLOW_PATH_DECL):
+
 2013-08-08  Mark Lam  
 
 Restoring use of StackIterator instead of Interpreter::getStacktrace().


Modified: trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp (153961 => 153962)

--- trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp	2013-08-12 22:05:07 UTC (rev 153961)
+++ trunk/Source/_javascript_Core/bytecode/CodeBlock.cpp	2013-08-12 22:39:13 UTC (rev 153962)
@@ -283,12 +283,12 @@
 int r0 = (++it)->u.operand;
 int r1 = (++it)->u.operand;
 int id0 = (++it)->u.operand;
-out.printf("[%4d] %s\t %s, %s, %s", location, op, registerName(r0).data(), registerName(r1).data(), idName(id0, m_identifiers[id0]).data());
+out.printf("[%4d] %s\t %s, %s, %s", location, op, registerName(r0).data(), registerName(r1).data(), idName(id0, identifier(id0)).data());
 it += 4; // Increment up to the value profiler.
 }
 
 #if ENABLE(JIT) || ENABLE(LLINT) // unused in some configurations
-static void dumpStructure(PrintStream& out, const char* name, ExecState* exec, Structure

[webkit-changes] [153960] trunk/LayoutTests

2013-08-12 Thread rniwa
Title: [153960] trunk/LayoutTests








Revision 153960
Author rn...@webkit.org
Date 2013-08-12 14:55:06 -0700 (Mon, 12 Aug 2013)


Log Message
Layout Test fast/overflow/scrollbar-click-retains-focus.html is failing on Apple Mac WK1 and GTK.
https://bugs.webkit.org/show_bug.cgi?id=104104

Add back test expectation for Mac since it's still failing on ML WK1 bots.

* platform/mac/TestExpectations:
* platform/mac-wk2/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/mac/TestExpectations
trunk/LayoutTests/platform/mac-wk2/TestExpectations




Diff

Modified: trunk/LayoutTests/ChangeLog (153959 => 153960)

--- trunk/LayoutTests/ChangeLog	2013-08-12 21:50:06 UTC (rev 153959)
+++ trunk/LayoutTests/ChangeLog	2013-08-12 21:55:06 UTC (rev 153960)
@@ -1,3 +1,13 @@
+2013-08-12  Ryosuke Niwa  
+
+Layout Test fast/overflow/scrollbar-click-retains-focus.html is failing on Apple Mac WK1 and GTK.
+https://bugs.webkit.org/show_bug.cgi?id=104104
+
+Add back test expectation for Mac since it's still failing on ML WK1 bots.
+
+* platform/mac/TestExpectations:
+* platform/mac-wk2/TestExpectations:
+
 2013-08-12  Christophe Dumez  
 
 Define DOM_KEY_LOCATION_* constants on KeyboardEvent


Modified: trunk/LayoutTests/platform/mac/TestExpectations (153959 => 153960)

--- trunk/LayoutTests/platform/mac/TestExpectations	2013-08-12 21:50:06 UTC (rev 153959)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2013-08-12 21:55:06 UTC (rev 153960)
@@ -1128,6 +1128,9 @@
 # The logic in this test is no longer correct for Apple ports
 webkit.org/b/112492 media/track/track-user-preferences.html [ Skip ]
 
+# Only failing on WK1
+webkit.org/b/104104 fast/overflow/scrollbar-click-retains-focus.html [ Failure ]
+
 webkit.org/b/104954 http/tests/canvas/canvas-slow-font-loading.html [ ImageOnlyFailure ]
 
 webkit.org/b/104962 platform/mac/fast/loader/file-url-mimetypes-2.html [ Failure ]


Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (153959 => 153960)

--- trunk/LayoutTests/platform/mac-wk2/TestExpectations	2013-08-12 21:50:06 UTC (rev 153959)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations	2013-08-12 21:55:06 UTC (rev 153960)
@@ -338,6 +338,9 @@
 webkit.org/b/118925 [ Debug ] fast/repaint/region-painting-in-composited-view.html  [ ImageOnlyFailure ]
 webkit.org/b/118925 [ Debug ] svg/repaint/buffered-rendering-static-image.html  [ ImageOnlyFailure ]
 
+# Only failing on WK1
+webkit.org/b/104104 fast/overflow/scrollbar-click-retains-focus.html [ Pass ]
+
 ### END OF (1) Classified failures with bug reports
 
 






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


[webkit-changes] [153959] trunk/Source

2013-08-12 Thread rniwa
Title: [153959] trunk/Source








Revision 153959
Author rn...@webkit.org
Date 2013-08-12 14:50:06 -0700 (Mon, 12 Aug 2013)


Log Message
Use const AtomicStringImpl* in DocumentOrderedMap
https://bugs.webkit.org/show_bug.cgi?id=119700

Reviewed by Benjamin Poulain.

Use const AtomicStringImpl* in DocumentOrderedMap. It caught at least one bug that HTMLNameCollection'
subclasses' nodeMatches were taking const AtomicString& instead of AtomicStringImpl*. This was forcing
DocumentOrderedMap::getElementByWindowNamedItem and DocumentOrderedMap::getElementByDocumentNamedItem
to create temporary AtomicStrings.

* dom/DocumentOrderedMap.cpp:
(WebCore::keyMatchesId):
(WebCore::keyMatchesName):
(WebCore::keyMatchesMapName):
(WebCore::keyMatchesLowercasedMapName):
(WebCore::keyMatchesLabelForAttribute):
(WebCore::keyMatchesWindowNamedItem):
(WebCore::keyMatchesDocumentNamedItem):
(WebCore::DocumentOrderedMap::add):
(WebCore::DocumentOrderedMap::remove):
(WebCore::DocumentOrderedMap::get):
(WebCore::DocumentOrderedMap::getElementById):
(WebCore::DocumentOrderedMap::getElementByName):
(WebCore::DocumentOrderedMap::getElementByMapName):
(WebCore::DocumentOrderedMap::getElementByLowercasedMapName):
(WebCore::DocumentOrderedMap::getElementByLabelForAttribute):
(WebCore::DocumentOrderedMap::getElementByWindowNamedItem):
(WebCore::DocumentOrderedMap::getElementByDocumentNamedItem):
(WebCore::DocumentOrderedMap::getAllElementsById):
* dom/DocumentOrderedMap.h:
(WebCore::DocumentOrderedMap::containsSingle):
(WebCore::DocumentOrderedMap::contains):
(WebCore::DocumentOrderedMap::containsMultiple):
* html/HTMLNameCollection.cpp:
(WebCore::WindowNameCollection::nodeMatches):
(WebCore::DocumentNameCollection::nodeMatches):
* html/HTMLNameCollection.h:
(WebCore::WindowNameCollection::nodeMatches):
(WebCore::DocumentNameCollection::nodeMatches):

Modified Paths

trunk/Source/WTF/wtf/text/AtomicStringImpl.h
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/DocumentOrderedMap.cpp
trunk/Source/WebCore/dom/DocumentOrderedMap.h
trunk/Source/WebCore/html/HTMLNameCollection.cpp
trunk/Source/WebCore/html/HTMLNameCollection.h




Diff

Modified: trunk/Source/WTF/wtf/text/AtomicStringImpl.h (153958 => 153959)

--- trunk/Source/WTF/wtf/text/AtomicStringImpl.h	2013-08-12 21:37:06 UTC (rev 153958)
+++ trunk/Source/WTF/wtf/text/AtomicStringImpl.h	2013-08-12 21:50:06 UTC (rev 153959)
@@ -41,6 +41,11 @@
 ValueCheck {
 static void checkConsistency(const AtomicStringImpl*) { }
 };
+
+template<> struct
+ValueCheck {
+static void checkConsistency(const AtomicStringImpl*) { }
+};
 #endif
 
 }


Modified: trunk/Source/WebCore/ChangeLog (153958 => 153959)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 21:37:06 UTC (rev 153958)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 21:50:06 UTC (rev 153959)
@@ -1,3 +1,45 @@
+2013-08-12  Ryosuke Niwa  
+
+Use const AtomicStringImpl* in DocumentOrderedMap
+https://bugs.webkit.org/show_bug.cgi?id=119700
+
+Reviewed by Benjamin Poulain.
+
+Use const AtomicStringImpl* in DocumentOrderedMap. It caught at least one bug that HTMLNameCollection'
+subclasses' nodeMatches were taking const AtomicString& instead of AtomicStringImpl*. This was forcing
+DocumentOrderedMap::getElementByWindowNamedItem and DocumentOrderedMap::getElementByDocumentNamedItem
+to create temporary AtomicStrings.
+
+* dom/DocumentOrderedMap.cpp:
+(WebCore::keyMatchesId):
+(WebCore::keyMatchesName):
+(WebCore::keyMatchesMapName):
+(WebCore::keyMatchesLowercasedMapName):
+(WebCore::keyMatchesLabelForAttribute):
+(WebCore::keyMatchesWindowNamedItem):
+(WebCore::keyMatchesDocumentNamedItem):
+(WebCore::DocumentOrderedMap::add):
+(WebCore::DocumentOrderedMap::remove):
+(WebCore::DocumentOrderedMap::get):
+(WebCore::DocumentOrderedMap::getElementById):
+(WebCore::DocumentOrderedMap::getElementByName):
+(WebCore::DocumentOrderedMap::getElementByMapName):
+(WebCore::DocumentOrderedMap::getElementByLowercasedMapName):
+(WebCore::DocumentOrderedMap::getElementByLabelForAttribute):
+(WebCore::DocumentOrderedMap::getElementByWindowNamedItem):
+(WebCore::DocumentOrderedMap::getElementByDocumentNamedItem):
+(WebCore::DocumentOrderedMap::getAllElementsById):
+* dom/DocumentOrderedMap.h:
+(WebCore::DocumentOrderedMap::containsSingle):
+(WebCore::DocumentOrderedMap::contains):
+(WebCore::DocumentOrderedMap::containsMultiple):
+* html/HTMLNameCollection.cpp:
+(WebCore::WindowNameCollection::nodeMatches):
+(WebCore::DocumentNameCollection::nodeMatches):
+* html/HTMLNameCollection.h:
+(WebCore::WindowNameCollection::nodeMatches):
+(WebCore::DocumentNameCollection::nodeMatches):
+
 2013-08-12  Beth Dakin  
 
 The LayoutMilestones didLayout callback should only fire fo

[webkit-changes] [153958] trunk

2013-08-12 Thread bdakin
Title: [153958] trunk








Revision 153958
Author bda...@apple.com
Date 2013-08-12 14:37:06 -0700 (Mon, 12 Aug 2013)


Log Message
The LayoutMilestones didLayout callback should only fire for the main frame
https://bugs.webkit.org/show_bug.cgi?id=119457

Reviewed by Sam Weinig.

Source/WebCore: 

This patch makes it so that FrameLoader::didLayout(LayoutMilestones) is only ever 
called for the main frame. Technically this will change existing API for 
didFirstVisuallyNonEmptyLayoutInFrame and didFirstLayoutInFrame. Clients used to 
be able to register for those callbacks for any frame they wanted, however, now 
they will only ever get the callback when it applies to the main frame. We think 
that this is acceptable since we don’t know of any clients that ever used those 
APIs for a non-main frame. This change also makes nothing but sense for the 
didLayout(LayoutMilestones) callback, since that is a Page-level concept, so it 
should only fire for the main frame.

Only call didLayout for the main frame.
* dom/Document.cpp:
(WebCore::Document::setVisualUpdatesAllowed):

Assert that this is the main frame.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::didLayout):

Only call didLayout for the main frame.
* page/FrameView.cpp:
(WebCore::FrameView::performPostLayoutTasks):

Tools: 

Now that the didLayout callback only fires for the main frame, we want to make 
sure it will fire even when all of the content is in a subframe.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp: Added.
(TestWebKitAPI::didLayout):
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit2/all-content-in-one-iframe.html: Added.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/Document.cpp
trunk/Source/WebCore/loader/FrameLoader.cpp
trunk/Source/WebCore/page/FrameView.cpp
trunk/Tools/ChangeLog
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj


Added Paths

trunk/Tools/TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp
trunk/Tools/TestWebKitAPI/Tests/WebKit2/all-content-in-one-iframe.html




Diff

Modified: trunk/Source/WebCore/ChangeLog (153957 => 153958)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 21:02:40 UTC (rev 153957)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 21:37:06 UTC (rev 153958)
@@ -1,3 +1,32 @@
+2013-08-12  Beth Dakin  
+
+The LayoutMilestones didLayout callback should only fire for the main frame
+https://bugs.webkit.org/show_bug.cgi?id=119457
+
+Reviewed by Sam Weinig.
+
+This patch makes it so that FrameLoader::didLayout(LayoutMilestones) is only ever 
+called for the main frame. Technically this will change existing API for 
+didFirstVisuallyNonEmptyLayoutInFrame and didFirstLayoutInFrame. Clients used to 
+be able to register for those callbacks for any frame they wanted, however, now 
+they will only ever get the callback when it applies to the main frame. We think 
+that this is acceptable since we don’t know of any clients that ever used those 
+APIs for a non-main frame. This change also makes nothing but sense for the 
+didLayout(LayoutMilestones) callback, since that is a Page-level concept, so it 
+should only fire for the main frame.
+
+Only call didLayout for the main frame.
+* dom/Document.cpp:
+(WebCore::Document::setVisualUpdatesAllowed):
+
+Assert that this is the main frame.
+* loader/FrameLoader.cpp:
+(WebCore::FrameLoader::didLayout):
+
+Only call didLayout for the main frame.
+* page/FrameView.cpp:
+(WebCore::FrameView::performPostLayoutTasks):
+
 2013-08-12  Christophe Dumez  
 
 Define DOM_KEY_LOCATION_* constants on KeyboardEvent


Modified: trunk/Source/WebCore/dom/Document.cpp (153957 => 153958)

--- trunk/Source/WebCore/dom/Document.cpp	2013-08-12 21:02:40 UTC (rev 153957)
+++ trunk/Source/WebCore/dom/Document.cpp	2013-08-12 21:37:06 UTC (rev 153958)
@@ -1264,10 +1264,11 @@
 updateLayout();
 
 if (Page* page = this->page()) {
-if (frame() == page->mainFrame())
+if (frame() == page->mainFrame()) {
 frameView->addPaintPendingMilestones(DidFirstPaintAfterSuppressedIncrementalRendering);
-if (page->requestedLayoutMilestones() & DidFirstLayoutAfterSuppressedIncrementalRendering)
-frame()->loader()->didLayout(DidFirstLayoutAfterSuppressedIncrementalRendering);
+if (page->requestedLayoutMilestones() & DidFirstLayoutAfterSuppressedIncrementalRendering)
+frame()->loader()->didLayout(DidFirstLayoutAfterSuppressedIncrementalRendering);
+}
 }
 
 #if USE(ACCELERATED_COMPOSITING)


Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (153957 => 153958)

--- trunk/Source/WebCore/loader/FrameLoader.cpp	2013-08-12 21:02:40 UTC (rev 153957)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp	2013-08-1

[webkit-changes] [153957] branches/safari-537-branch/Source/WebCore

2013-08-12 Thread lforschler
Title: [153957] branches/safari-537-branch/Source/WebCore








Revision 153957
Author lforsch...@apple.com
Date 2013-08-12 14:02:40 -0700 (Mon, 12 Aug 2013)


Log Message
Merged r153917.  

Modified Paths

branches/safari-537-branch/Source/WebCore/ChangeLog
branches/safari-537-branch/Source/WebCore/platform/mac/WidgetMac.mm




Diff

Modified: branches/safari-537-branch/Source/WebCore/ChangeLog (153956 => 153957)

--- branches/safari-537-branch/Source/WebCore/ChangeLog	2013-08-12 20:54:20 UTC (rev 153956)
+++ branches/safari-537-branch/Source/WebCore/ChangeLog	2013-08-12 21:02:40 UTC (rev 153957)
@@ -1,3 +1,20 @@
+2013-08-12  Lucas Forschler  
+
+Merge r153917
+
+2013-08-09  Anders Carlsson  
+
+Artifacts seen sometimes with layer backed WebKit1 plug-in
+https://bugs.webkit.org/show_bug.cgi?id=119647
+
+
+Reviewed by Beth Dakin.
+
+Don't try to paint layer backed views - they will be painted by Core Animation.
+
+* platform/mac/WidgetMac.mm:
+(WebCore::Widget::paint):
+
 2013-08-09  Lucas Forschler  
 
 Merge r153907


Modified: branches/safari-537-branch/Source/WebCore/platform/mac/WidgetMac.mm (153956 => 153957)

--- branches/safari-537-branch/Source/WebCore/platform/mac/WidgetMac.mm	2013-08-12 20:54:20 UTC (rev 153956)
+++ branches/safari-537-branch/Source/WebCore/platform/mac/WidgetMac.mm	2013-08-12 21:02:40 UTC (rev 153957)
@@ -205,6 +205,12 @@
 return;
 NSView *view = getOuterView();
 
+// We don't want to paint the view at all if it's layer backed, because then we'll end up
+// with multiple copies of the view contents, one in the view's layer itself and one in the
+// WebHTMLView's backing store (either a layer or the window backing store).
+if (view.layer)
+return;
+
 // Take a reference to this Widget, because sending messages to the views can invoke arbitrary
 // code, which can deref it.
 RefPtr protectedThis(this);






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


[webkit-changes] [153956] trunk

2013-08-12 Thread bdakin
Title: [153956] trunk








Revision 153956
Author bda...@apple.com
Date 2013-08-12 13:54:20 -0700 (Mon, 12 Aug 2013)


Log Message
Remove didNewFirstVisuallyNonEmptyLayout from WebKit2
https://bugs.webkit.org/show_bug.cgi?id=119658

Reviewed by Darin Adler.

Source/WebKit2: 

Removing this function entirely will change some functionality in the Nightlies, 
but we think that is an acceptable difference for the Nightlies. If is does cause 
a problem though, we can roll out this patch and deprecate the function instead.

* UIProcess/API/C/WKPage.h:
* UIProcess/WebLoaderClient.cpp:
* UIProcess/WebLoaderClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::initializeLoaderClient):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchDidLayout):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::initializeInjectedBundleLoaderClient):

Tools: 

* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController awakeFromNib]):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::InjectedBundlePage):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::createWebViewWithOptions):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/UIProcess/API/C/WKPage.h
trunk/Source/WebKit2/UIProcess/WebLoaderClient.cpp
trunk/Source/WebKit2/UIProcess/WebLoaderClient.h
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
trunk/Tools/ChangeLog
trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
trunk/Tools/WebKitTestRunner/TestController.cpp




Diff

Modified: trunk/Source/WebKit2/ChangeLog (153955 => 153956)

--- trunk/Source/WebKit2/ChangeLog	2013-08-12 19:47:09 UTC (rev 153955)
+++ trunk/Source/WebKit2/ChangeLog	2013-08-12 20:54:20 UTC (rev 153956)
@@ -1,3 +1,29 @@
+2013-08-12  Beth Dakin  
+
+Remove didNewFirstVisuallyNonEmptyLayout from WebKit2
+https://bugs.webkit.org/show_bug.cgi?id=119658
+
+Reviewed by Darin Adler.
+
+Removing this function entirely will change some functionality in the Nightlies, 
+but we think that is an acceptable difference for the Nightlies. If is does cause 
+a problem though, we can roll out this patch and deprecate the function instead.
+
+* UIProcess/API/C/WKPage.h:
+* UIProcess/WebLoaderClient.cpp:
+* UIProcess/WebLoaderClient.h:
+* UIProcess/WebPageProxy.cpp:
+(WebKit::WebPageProxy::initializeLoaderClient):
+* UIProcess/WebPageProxy.h:
+* UIProcess/WebPageProxy.messages.in:
+* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
+* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
+* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
+* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+(WebKit::WebFrameLoaderClient::dispatchDidLayout):
+* WebProcess/WebPage/WebPage.cpp:
+(WebKit::WebPage::initializeInjectedBundleLoaderClient):
+
 2013-08-12  Arunprasad Rajkumar  
 
 [Qt] [WebKit2] Remove duplicate RAM Size calculation and reuse WTF::ramSize()


Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.h (153955 => 153956)

--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.h	2013-08-12 19:47:09 UTC (rev 153955)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.h	2013-08-12 20:54:20 UTC (rev 153956)
@@ -79,7 +79,6 @@
 typedef void (*WKPageDidReceiveAuthenticationChallengeInFrameCallback)(WKPageRef page, WKFrameRef frame, WKAuthenticationChallengeRef authenticationChallenge, const void *clientInfo);
 typedef void (*WKPageDidChangeBackForwardListCallback)(WKPageRef page, WKBackForwardListItemRef addedItem, WKArrayRef removedItems, const void *clientInfo);
 typedef bool (*WKPageShouldGoToBackForwardListItemCallback)(WKPageRef page, WKBackForwardListItemRef item, const void *clientInfo);
-typedef void (*WKPageDidNewFirstVisuallyNonEmptyLayoutCallback)(WKPageRef page, WKTypeRef userData, const void *clientInfo);
 typedef void (*WKPageWillGoToBackForwardListItemCallback)(WKPageRef page, WKBackForwardListItemRef item, WKTypeRef userData, const void *clientInfo);
 typedef void (*WKPageDidLayoutCallback)(WKPageRef page, WKLayoutMilestones milestones, WKTypeRef us

[webkit-changes] [153954] trunk/Tools

2013-08-12 Thread seokju
Title: [153954] trunk/Tools








Revision 153954
Author seo...@webkit.org
Date 2013-08-12 12:41:13 -0700 (Mon, 12 Aug 2013)


Log Message
Remove glu's libtest rule from checker.py
https://bugs.webkit.org/show_bug.cgi?id=119674

Reviewed by Darin Adler.

* Scripts/webkitpy/style/checker.py: It is no longer used after r148032.

Modified Paths

trunk/Tools/ChangeLog
trunk/Tools/Scripts/webkitpy/style/checker.py




Diff

Modified: trunk/Tools/ChangeLog (153953 => 153954)

--- trunk/Tools/ChangeLog	2013-08-12 19:24:58 UTC (rev 153953)
+++ trunk/Tools/ChangeLog	2013-08-12 19:41:13 UTC (rev 153954)
@@ -1,3 +1,12 @@
+2013-08-12  Seokju Kwon  
+
+Remove glu's libtest rule from checker.py
+https://bugs.webkit.org/show_bug.cgi?id=119674
+
+Reviewed by Darin Adler.
+
+* Scripts/webkitpy/style/checker.py: It is no longer used after r148032.
+
 2013-08-11  ChangSeok Oh  
 
 Unreviewed. Change my primary mail address.


Modified: trunk/Tools/Scripts/webkitpy/style/checker.py (153953 => 153954)

--- trunk/Tools/Scripts/webkitpy/style/checker.py	2013-08-12 19:24:58 UTC (rev 153953)
+++ trunk/Tools/Scripts/webkitpy/style/checker.py	2013-08-12 19:41:13 UTC (rev 153954)
@@ -260,13 +260,6 @@
   "+pep8/W291",  # Trailing white space
   "+whitespace/carriage_return"]),
 
-([# glu's libtess is third-party code, and doesn't follow WebKit style.
-  "Source/ThirdParty/glu"],
- ["-readability",
-  "-whitespace",
-  "-build/header_guard",
-  "-build/include_order"]),
-
 ([# There is no way to avoid the symbols __jit_debug_register_code
   # and __jit_debug_descriptor when integrating with gdb.
   "Source/_javascript_Core/jit/GDBInterface.cpp"],






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


[webkit-changes] [153953] trunk/LayoutTests

2013-08-12 Thread ap
Title: [153953] trunk/LayoutTests








Revision 153953
Author a...@apple.com
Date 2013-08-12 12:24:58 -0700 (Mon, 12 Aug 2013)


Log Message
Multiple CSP tests complain about undefined strings in echo-object-data.pl and echo-script-src.pl
https://bugs.webkit.org/show_bug.cgi?id=119692

Reviewed by Darin Adler.

* http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl:
* http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl:
Check whether optional CGI parameters are provided.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl
trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl




Diff

Modified: trunk/LayoutTests/ChangeLog (153952 => 153953)

--- trunk/LayoutTests/ChangeLog	2013-08-12 19:13:34 UTC (rev 153952)
+++ trunk/LayoutTests/ChangeLog	2013-08-12 19:24:58 UTC (rev 153953)
@@ -1,3 +1,14 @@
+2013-08-12  Alexey Proskuryakov  
+
+Multiple CSP tests complain about undefined strings in echo-object-data.pl and echo-script-src.pl
+https://bugs.webkit.org/show_bug.cgi?id=119692
+
+Reviewed by Darin Adler.
+
+* http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl:
+* http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl:
+Check whether optional CGI parameters are provided.
+
 2013-08-12  Dean Jackson  
 
 Shadows don't support viewport units


Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl (153952 => 153953)

--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl	2013-08-12 19:13:34 UTC (rev 153952)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl	2013-08-12 19:24:58 UTC (rev 153953)
@@ -5,19 +5,20 @@
 my $cgi = new CGI;
 
 print "Content-Type: text/html; charset=UTF-8\n";
-if ($cgi->param('experimental') eq 'true') {
-print "X-WebKit-CSP: ".$cgi->param('csp')."\n\n";
+my $experimental = $cgi->param('experimental') || "";
+if ($experimental eq 'true') {
+print "X-WebKit-CSP: " . $cgi->param('csp') . "\n\n";
 } else {
-print "Content-Security-Policy: ".$cgi->param('csp')."\n\n";
+print "Content-Security-Policy: " . $cgi->param('csp') . "\n\n";
 }
 
 print "\n";
 print "\n";
 print "\n";
 print "-print "param('log')."\"\n" if $cgi->param('log');
-print "type=\"".$cgi->param('type')."\"\n" if $cgi->param('type');
+print "param('plugin') . "\"\n";
+print "log=\"" . $cgi->param('log') . "\"\n" if $cgi->param('log');
+print "type=\"" . $cgi->param('type') . "\"\n" if $cgi->param('type');
 print ">\n";
 print "\n";
 print "\n";


Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl (153952 => 153953)


--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl	2013-08-12 19:13:34 UTC (rev 153952)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/echo-script-src.pl	2013-08-12 19:24:58 UTC (rev 153953)
@@ -5,18 +5,19 @@
 my $cgi = new CGI;
 
 print "Content-Type: text/html; charset=UTF-8\n";
-if ($cgi->param('experimental') eq 'true') {
-print "X-WebKit-CSP: ".$cgi->param('csp')."\n\n";
+my $experimental = $cgi->param('experimental') || "";
+if ($experimental eq 'true') {
+print "X-WebKit-CSP: " . $cgi->param('csp') . "\n\n";
 } else {
-print "Content-Security-Policy: ".$cgi->param('csp')."\n\n";
+print "Content-Security-Policy: " . $cgi->param('csp') . "\n\n";
 }
 
 my ($text, $replacement) = ("FAIL", "PASS");
 ($text, $replacement) = ($replacement, $text) if $cgi->param('should_run') eq 'no';
 
-my $nonce = "";
-if ($cgi->param('nonce') ne '') {
-  $nonce = "nonce='".$cgi->param('nonce')."'";
+my $nonce = $cgi->param('nonce') || "";
+if ($nonce ne "") {
+$nonce = "nonce='" . $nonce . "'";
 }
 
 
@@ -26,6 +27,6 @@
 print "
\n"; print "$text\n"; print "
\n";
-print "

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

Title: [153952] trunk/Source/WebCore








Revision 153952
Author timothy_hor...@apple.com
Date 2013-08-12 12:13:34 -0700 (Mon, 12 Aug 2013)


Log Message
dataLog dumpers for WebCore's basic geometry types
https://bugs.webkit.org/show_bug.cgi?id=119636

Reviewed by Filip Pizlo.

* platform/graphics/FloatPoint.cpp:
(WebCore::FloatPoint::dump):
* platform/graphics/FloatPoint.h:
* platform/graphics/FloatRect.cpp:
(WebCore::FloatRect::dump):
* platform/graphics/FloatRect.h:
* platform/graphics/FloatSize.cpp:
(WebCore::FloatSize::dump):
* platform/graphics/FloatSize.h:
* platform/graphics/IntPoint.h:
(WebCore::IntPoint::dump):
* platform/graphics/IntRect.cpp:
(WebCore::IntRect::dump):
* platform/graphics/IntRect.h:
* platform/graphics/IntSize.h:
(WebCore::IntSize::dump):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/FloatPoint.cpp
trunk/Source/WebCore/platform/graphics/FloatPoint.h
trunk/Source/WebCore/platform/graphics/FloatRect.cpp
trunk/Source/WebCore/platform/graphics/FloatRect.h
trunk/Source/WebCore/platform/graphics/FloatSize.cpp
trunk/Source/WebCore/platform/graphics/FloatSize.h
trunk/Source/WebCore/platform/graphics/IntPoint.h
trunk/Source/WebCore/platform/graphics/IntRect.cpp
trunk/Source/WebCore/platform/graphics/IntRect.h
trunk/Source/WebCore/platform/graphics/IntSize.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (153951 => 153952)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 19:13:34 UTC (rev 153952)
@@ -1,3 +1,27 @@
+2013-08-12  Tim Horton  
+
+dataLog dumpers for WebCore's basic geometry types
+https://bugs.webkit.org/show_bug.cgi?id=119636
+
+Reviewed by Filip Pizlo.
+
+* platform/graphics/FloatPoint.cpp:
+(WebCore::FloatPoint::dump):
+* platform/graphics/FloatPoint.h:
+* platform/graphics/FloatRect.cpp:
+(WebCore::FloatRect::dump):
+* platform/graphics/FloatRect.h:
+* platform/graphics/FloatSize.cpp:
+(WebCore::FloatSize::dump):
+* platform/graphics/FloatSize.h:
+* platform/graphics/IntPoint.h:
+(WebCore::IntPoint::dump):
+* platform/graphics/IntRect.cpp:
+(WebCore::IntRect::dump):
+* platform/graphics/IntRect.h:
+* platform/graphics/IntSize.h:
+(WebCore::IntSize::dump):
+
 2013-08-12  Dean Jackson  
 
 Shadows don't support viewport units


Modified: trunk/Source/WebCore/platform/graphics/FloatPoint.cpp (153951 => 153952)

--- trunk/Source/WebCore/platform/graphics/FloatPoint.cpp	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/platform/graphics/FloatPoint.cpp	2013-08-12 19:13:34 UTC (rev 153952)
@@ -33,6 +33,7 @@
 #include "TransformationMatrix.h"
 #include 
 #include 
+#include 
 
 namespace WebCore {
 
@@ -118,4 +119,9 @@
 return true;
 }
 
+void FloatPoint::dump(PrintStream& out) const
+{
+out.printf("(%f, %f)", x(), y());
 }
+
+}


Modified: trunk/Source/WebCore/platform/graphics/FloatPoint.h (153951 => 153952)

--- trunk/Source/WebCore/platform/graphics/FloatPoint.h	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/platform/graphics/FloatPoint.h	2013-08-12 19:13:34 UTC (rev 153952)
@@ -164,6 +164,8 @@
 FloatPoint matrixTransform(const TransformationMatrix&) const;
 FloatPoint matrixTransform(const AffineTransform&) const;
 
+void dump(PrintStream& out) const;
+
 private:
 float m_x, m_y;
 };


Modified: trunk/Source/WebCore/platform/graphics/FloatRect.cpp (153951 => 153952)

--- trunk/Source/WebCore/platform/graphics/FloatRect.cpp	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/platform/graphics/FloatRect.cpp	2013-08-12 19:13:34 UTC (rev 153952)
@@ -32,6 +32,7 @@
 #include 
 #include 
 #include 
+#include 
 
 using std::max;
 using std::min;
@@ -252,4 +253,9 @@
  r.width() * widthScale, r.height() * heightScale);
 }
 
+void FloatRect::dump(PrintStream& out) const
+{
+out.print(location(), " ", size());
 }
+
+}


Modified: trunk/Source/WebCore/platform/graphics/FloatRect.h (153951 => 153952)

--- trunk/Source/WebCore/platform/graphics/FloatRect.h	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/platform/graphics/FloatRect.h	2013-08-12 19:13:34 UTC (rev 153952)
@@ -203,6 +203,8 @@
 operator cairo_rectangle_t() const;
 #endif
 
+void dump(PrintStream& out) const;
+
 private:
 FloatPoint m_location;
 FloatSize m_size;


Modified: trunk/Source/WebCore/platform/graphics/FloatSize.cpp (153951 => 153952)

--- trunk/Source/WebCore/platform/graphics/FloatSize.cpp	2013-08-12 18:41:19 UTC (rev 153951)
+++ trunk/Source/WebCore/platform/graphics/FloatSize.cpp	2013-08-12 19:13:34 UTC (rev 153952)
@@ -60,4 +60,9 @@
 return FloatSize(narrowPrecisionToFloat(width), narrowPrecisionToFloat(height));
 }
 
+void FloatSize::dump(PrintStream& out) const
+{
+out.printf("(%f x %f)", width(), height());
 }
+
+}


M

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

Title: [153951] trunk/Source/WTF








Revision 153951
Author commit-qu...@webkit.org
Date 2013-08-12 11:41:19 -0700 (Mon, 12 Aug 2013)


Log Message
Broken build with build-webkit --no-webgl
https://bugs.webkit.org/show_bug.cgi?id=119272

Patch by Ragner Magalhaes  on 2013-08-12
Reviewed by Alexandru Chiculita.

CSS_SHADERS requires WEBGL enabled.
Add error message to dependency failure.

* wtf/FeatureDefines.h:

Modified Paths

trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/FeatureDefines.h




Diff

Modified: trunk/Source/WTF/ChangeLog (153950 => 153951)

--- trunk/Source/WTF/ChangeLog	2013-08-12 17:47:57 UTC (rev 153950)
+++ trunk/Source/WTF/ChangeLog	2013-08-12 18:41:19 UTC (rev 153951)
@@ -1,3 +1,15 @@
+2013-08-12  Ragner Magalhaes  
+
+Broken build with build-webkit --no-webgl
+https://bugs.webkit.org/show_bug.cgi?id=119272
+
+Reviewed by Alexandru Chiculita.
+
+CSS_SHADERS requires WEBGL enabled.
+Add error message to dependency failure.
+
+* wtf/FeatureDefines.h:
+
 2013-08-12  Joseph Pecoraro  
 
 [iOS] isMainThread implementation with USE(WEB_THREAD)


Modified: trunk/Source/WTF/wtf/FeatureDefines.h (153950 => 153951)

--- trunk/Source/WTF/wtf/FeatureDefines.h	2013-08-12 17:47:57 UTC (rev 153950)
+++ trunk/Source/WTF/wtf/FeatureDefines.h	2013-08-12 18:41:19 UTC (rev 153951)
@@ -850,4 +850,8 @@
 #error "ENABLE(VIDEO_TRACK) requires ENABLE(VIDEO)"
 #endif
 
+#if ENABLE(CSS_SHADERS) && !ENABLE(WEBGL)
+#error "ENABLE(CSS_SHADERS) requires ENABLE(WEBGL)"
+#endif
+
 #endif /* WTF_FeatureDefines_h */






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


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

Title: [153950] trunk/Source/WTF








Revision 153950
Author joep...@webkit.org
Date 2013-08-12 10:47:57 -0700 (Mon, 12 Aug 2013)


Log Message
[iOS] isMainThread implementation with USE(WEB_THREAD)
https://bugs.webkit.org/show_bug.cgi?id=119644

Reviewed by Benjamin Poulain.

On iOS isMainThread() means that the current thread is either the
MainThread or WebThread and the current thread has the WebThreadLock.

* wtf/ios/WebCoreThread.cpp: Added.
* wtf/ios/WebCoreThread.h: Added.
* wtf/mac/MainThreadMac.mm:
(WTF::isMainThread):

Modified Paths

trunk/Source/WTF/ChangeLog
trunk/Source/WTF/wtf/mac/MainThreadMac.mm


Added Paths

trunk/Source/WTF/wtf/ios/
trunk/Source/WTF/wtf/ios/WebCoreThread.cpp
trunk/Source/WTF/wtf/ios/WebCoreThread.h




Diff

Modified: trunk/Source/WTF/ChangeLog (153949 => 153950)

--- trunk/Source/WTF/ChangeLog	2013-08-12 17:32:37 UTC (rev 153949)
+++ trunk/Source/WTF/ChangeLog	2013-08-12 17:47:57 UTC (rev 153950)
@@ -1,3 +1,18 @@
+2013-08-12  Joseph Pecoraro  
+
+[iOS] isMainThread implementation with USE(WEB_THREAD)
+https://bugs.webkit.org/show_bug.cgi?id=119644
+
+Reviewed by Benjamin Poulain.
+
+On iOS isMainThread() means that the current thread is either the
+MainThread or WebThread and the current thread has the WebThreadLock.
+
+* wtf/ios/WebCoreThread.cpp: Added.
+* wtf/ios/WebCoreThread.h: Added.
+* wtf/mac/MainThreadMac.mm:
+(WTF::isMainThread):
+
 2013-08-11  Carlos Garcia Campos  
 
 Unreviewed. Fix make distcheck.


Added: trunk/Source/WTF/wtf/ios/WebCoreThread.cpp (0 => 153950)

--- trunk/Source/WTF/wtf/ios/WebCoreThread.cpp	(rev 0)
+++ trunk/Source/WTF/wtf/ios/WebCoreThread.cpp	2013-08-12 17:47:57 UTC (rev 153950)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer. 
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+#include "config.h"
+#include "WebCoreThread.h"
+
+WTF_EXPORT_PRIVATE bool (*WebCoreWebThreadIsLockedOrDisabled)(void);


Added: trunk/Source/WTF/wtf/ios/WebCoreThread.h (0 => 153950)

--- trunk/Source/WTF/wtf/ios/WebCoreThread.h	(rev 0)
+++ trunk/Source/WTF/wtf/ios/WebCoreThread.h	2013-08-12 17:47:57 UTC (rev 153950)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer. 
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// Since this is a shared header, with the same file name as a file in
+// WebC

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

Title: [153949] trunk/Source/WebKit2








Revision 153949
Author commit-qu...@webkit.org
Date 2013-08-12 10:32:37 -0700 (Mon, 12 Aug 2013)


Log Message
[Qt] [WebKit2] Remove duplicate RAM Size calculation and reuse WTF::ramSize()
https://bugs.webkit.org/show_bug.cgi?id=119663

Patch by Arunprasad Rajkumar  on 2013-08-12
Reviewed by Sam Weinig.

* WebProcess/qt/WebProcessQt.cpp:
(WebKit::WebProcess::platformSetCacheModel):

Modified Paths

trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp




Diff

Modified: trunk/Source/WebKit2/ChangeLog (153948 => 153949)

--- trunk/Source/WebKit2/ChangeLog	2013-08-12 17:23:42 UTC (rev 153948)
+++ trunk/Source/WebKit2/ChangeLog	2013-08-12 17:32:37 UTC (rev 153949)
@@ -1,3 +1,13 @@
+2013-08-12  Arunprasad Rajkumar  
+
+[Qt] [WebKit2] Remove duplicate RAM Size calculation and reuse WTF::ramSize()
+https://bugs.webkit.org/show_bug.cgi?id=119663
+
+Reviewed by Sam Weinig.
+
+* WebProcess/qt/WebProcessQt.cpp:
+(WebKit::WebProcess::platformSetCacheModel):
+
 2013-08-12  Anton Obzhirov  
 
 [GTK] Don't load GAIL when using GTK 3.2 or greater


Modified: trunk/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp (153948 => 153949)

--- trunk/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp	2013-08-12 17:23:42 UTC (rev 153948)
+++ trunk/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp	2013-08-12 17:32:37 UTC (rev 153949)
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #if defined(Q_OS_MACX)
 #include 
@@ -56,42 +57,9 @@
 
 namespace WebKit {
 
-static uint64_t physicalMemorySizeInBytes()
-{
-static uint64_t physicalMemorySize = 0;
-
-if (!physicalMemorySize) {
-#if defined(Q_OS_MACX)
-host_basic_info_data_t hostInfo;
-mach_port_t host = mach_host_self();
-mach_msg_type_number_t count = HOST_BASIC_INFO_COUNT;
-kern_return_t r = host_info(host, HOST_BASIC_INFO, (host_info_t)&hostInfo, &count);
-mach_port_deallocate(mach_task_self(), host);
-
-if (r == KERN_SUCCESS)
-physicalMemorySize = hostInfo.max_mem;
-
-#elif defined(Q_OS_WIN)
-MEMORYSTATUSEX statex;
-statex.dwLength = sizeof(statex);
-GlobalMemoryStatusEx(&statex);
-physicalMemorySize = static_cast(statex.ullTotalPhys);
-
-#else
-long pageSize = sysconf(_SC_PAGESIZE);
-long numberOfPages = sysconf(_SC_PHYS_PAGES);
-
-if (pageSize > 0 && numberOfPages > 0)
-physicalMemorySize = static_cast(pageSize) * static_cast(numberOfPages);
-
-#endif
-}
-return physicalMemorySize;
-}
-
 void WebProcess::platformSetCacheModel(CacheModel cacheModel)
 {
-uint64_t physicalMemorySizeInMegabytes = physicalMemorySizeInBytes() / 1024 / 1024;
+uint64_t physicalMemorySizeInMegabytes = WTF::ramSize() / 1024 / 1024;
 
 // The Mac port of WebKit2 uses a fudge factor of 1000 here to account for misalignment, however,
 // that tends to overestimate the memory quite a bit (1 byte misalignment ~ 48 MiB misestimation).






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


[webkit-changes] [153948] trunk

Title: [153948] trunk








Revision 153948
Author d...@apple.com
Date 2013-08-12 10:23:42 -0700 (Mon, 12 Aug 2013)


Log Message
Shadows don't support viewport units
https://bugs.webkit.org/show_bug.cgi?id=119649

Reviewed by Darin Adler.

Source/WebCore:

We don't yet support viewport units in shadows, so
fail parsing if we see one. The bug to fix this
completely is: https://webkit.org/b/119650

Test: fast/css/shadow-viewport-units.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseShadow): Fail if we get one of
vh, vw, vmin, vmax.

LayoutTests:

Test that exercises a viewport unit in text-shadow to make sure we don't parse it.

* fast/css/shadow-viewport-units-expected.txt: Added.
* fast/css/shadow-viewport-units.html: Added.

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/css/CSSParser.cpp


Added Paths

trunk/LayoutTests/fast/css/shadow-viewport-units-expected.txt
trunk/LayoutTests/fast/css/shadow-viewport-units.html




Diff

Modified: trunk/LayoutTests/ChangeLog (153947 => 153948)

--- trunk/LayoutTests/ChangeLog	2013-08-12 17:16:19 UTC (rev 153947)
+++ trunk/LayoutTests/ChangeLog	2013-08-12 17:23:42 UTC (rev 153948)
@@ -1,3 +1,15 @@
+2013-08-12  Dean Jackson  
+
+Shadows don't support viewport units
+https://bugs.webkit.org/show_bug.cgi?id=119649
+
+Reviewed by Darin Adler.
+
+Test that exercises a viewport unit in text-shadow to make sure we don't parse it.
+
+* fast/css/shadow-viewport-units-expected.txt: Added.
+* fast/css/shadow-viewport-units.html: Added.
+
 2013-08-12  Allan Sandfeld Jensen  
 
 [Qt] Add Support for canvas blend modes


Added: trunk/LayoutTests/fast/css/shadow-viewport-units-expected.txt (0 => 153948)

--- trunk/LayoutTests/fast/css/shadow-viewport-units-expected.txt	(rev 0)
+++ trunk/LayoutTests/fast/css/shadow-viewport-units-expected.txt	2013-08-12 17:23:42 UTC (rev 153948)
@@ -0,0 +1 @@
+PASS: No shadow style


Added: trunk/LayoutTests/fast/css/shadow-viewport-units.html (0 => 153948)

--- trunk/LayoutTests/fast/css/shadow-viewport-units.html	(rev 0)
+++ trunk/LayoutTests/fast/css/shadow-viewport-units.html	2013-08-12 17:23:42 UTC (rev 153948)
@@ -0,0 +1,18 @@
+
+#a { text-shadow: 0px 0px 0vh black; } /* Should be invalid - we don't yet support viewport units in shadow */
+
+
+
+window.addEventListener("load", function () {
+if (window.testRunner)
+testRunner.dumpAsText();
+
+var a = document.getElementById("a");
+var output = document.createElement("p");
+document.body.appendChild(output);
+if (window.getComputedStyle(a).textShadow == "none")
+output.innerText = "PASS: No shadow style";
+else
+output.innerText = "FAIL: Shadow style: " + window.getComputedStyle(a).textShadow;
+}, false);
+


Modified: trunk/Source/WebCore/ChangeLog (153947 => 153948)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 17:16:19 UTC (rev 153947)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 17:23:42 UTC (rev 153948)
@@ -1,3 +1,20 @@
+2013-08-12  Dean Jackson  
+
+Shadows don't support viewport units
+https://bugs.webkit.org/show_bug.cgi?id=119649
+
+Reviewed by Darin Adler.
+
+We don't yet support viewport units in shadows, so
+fail parsing if we see one. The bug to fix this
+completely is: https://webkit.org/b/119650
+
+Test: fast/css/shadow-viewport-units.html
+
+* css/CSSParser.cpp:
+(WebCore::CSSParser::parseShadow): Fail if we get one of
+vh, vw, vmin, vmax.
+
 2013-08-12  pe...@outlook.com  
 
 [Curl] Cookie is not set when url string is unicode.


Modified: trunk/Source/WebCore/css/CSSParser.cpp (153947 => 153948)

--- trunk/Source/WebCore/css/CSSParser.cpp	2013-08-12 17:16:19 UTC (rev 153947)
+++ trunk/Source/WebCore/css/CSSParser.cpp	2013-08-12 17:23:42 UTC (rev 153948)
@@ -6541,6 +6541,13 @@
 if (!context.allowLength())
 return 0;
 
+// We don't support viewport units for shadow values.
+if (val->unit == CSSPrimitiveValue::CSS_VW
+|| val->unit == CSSPrimitiveValue::CSS_VH
+|| val->unit == CSSPrimitiveValue::CSS_VMIN
+|| val->unit == CSSPrimitiveValue::CSS_VMAX)
+return 0;
+
 // Blur radius must be non-negative.
 if (context.allowBlur && !validUnit(val, FLength | FNonNeg, CSSStrictMode))
 return 0;






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


[webkit-changes] [153947] trunk/Source

Title: [153947] trunk/Source








Revision 153947
Author commit-qu...@webkit.org
Date 2013-08-12 10:16:19 -0700 (Mon, 12 Aug 2013)


Log Message
[GTK] Don't load GAIL when using GTK 3.2 or greater
https://bugs.webkit.org/show_bug.cgi?id=72735

Patch by Anton Obzhirov  on 2013-08-12
Reviewed by Carlos Garcia Campos.

Source/WebKit/gtk:

* tests/testatk.c:
(initializeTestingFramework):
(main):

Source/WebKit2:

* UIProcess/API/gtk/tests/AccessibilityTestServer.cpp:
(main):

Modified Paths

trunk/Source/WebKit/gtk/ChangeLog
trunk/Source/WebKit/gtk/tests/testatk.c
trunk/Source/WebKit2/ChangeLog
trunk/Source/WebKit2/UIProcess/API/gtk/tests/AccessibilityTestServer.cpp




Diff

Modified: trunk/Source/WebKit/gtk/ChangeLog (153946 => 153947)

--- trunk/Source/WebKit/gtk/ChangeLog	2013-08-12 16:52:48 UTC (rev 153946)
+++ trunk/Source/WebKit/gtk/ChangeLog	2013-08-12 17:16:19 UTC (rev 153947)
@@ -1,3 +1,14 @@
+2013-08-12  Anton Obzhirov  
+
+[GTK] Don't load GAIL when using GTK 3.2 or greater
+https://bugs.webkit.org/show_bug.cgi?id=72735
+
+Reviewed by Carlos Garcia Campos.
+
+* tests/testatk.c:
+(initializeTestingFramework):
+(main):
+
 2013-08-11  Carlos Garcia Campos  
 
 Unreviewed. Update NEWS and Versions.m4 for 2.1.4 release.


Modified: trunk/Source/WebKit/gtk/tests/testatk.c (153946 => 153947)

--- trunk/Source/WebKit/gtk/tests/testatk.c	2013-08-12 16:52:48 UTC (rev 153946)
+++ trunk/Source/WebKit/gtk/tests/testatk.c	2013-08-12 17:16:19 UTC (rev 153947)
@@ -2154,8 +2154,7 @@
 g_object_unref(parentContainer);
 }
 
-/* FIXME: Please remove this function and replace its usage by
-   gtk_test_init() when upgrading to GTK 3.2 or greater. */
+#ifdef GTK_API_VERSION_2
 static void initializeTestingFramework(int argc, char** argv)
 {
 /* Ensure GAIL is the only module loaded. */
@@ -2166,23 +2165,21 @@
 gtk_disable_setlocale();
 setlocale(LC_ALL, "C");
 
-#ifndef GTK_API_VERSION_2
-/* gdk_disable_multidevice() available since GTK+ 3.0 only. */
-gdk_disable_multidevice();
-#endif
-
 gtk_init(&argc, &argv);
 }
+#endif
 
 int main(int argc, char** argv)
 {
-  /* We can't just call to gtk_test_init() in this case because its
- implementation makes sure that no GTK+ module will be loaded, and
- we will need to load GAIL for tests that need to use AtkObjects
- from non-WebKit GtkWidgets (e.g parentForRootObject). However, it
- shouldn't be needed to do this in the future, as GAIL won't longer
- be a separate module (but part of GTK+) since GTK+ 3.2 on. */
+#ifdef GTK_API_VERSION_2
+/* We can't just call to gtk_test_init() in this case because its
+   implementation makes sure that no GTK+ module will be loaded, and
+   we will need to load GAIL for tests that need to use AtkObjects
+   from non-WebKit GtkWidgets (e.g parentForRootObject).*/
 initializeTestingFramework(argc, argv);
+#else
+gtk_test_init(&argc, &argv, NULL);
+#endif
 
 g_test_bug_base("https://bugs.webkit.org/");
 g_test_add_func("/webkit/atk/caretOffsets", testWebkitAtkCaretOffsets);


Modified: trunk/Source/WebKit2/ChangeLog (153946 => 153947)

--- trunk/Source/WebKit2/ChangeLog	2013-08-12 16:52:48 UTC (rev 153946)
+++ trunk/Source/WebKit2/ChangeLog	2013-08-12 17:16:19 UTC (rev 153947)
@@ -1,3 +1,13 @@
+2013-08-12  Anton Obzhirov  
+
+[GTK] Don't load GAIL when using GTK 3.2 or greater
+https://bugs.webkit.org/show_bug.cgi?id=72735
+
+Reviewed by Carlos Garcia Campos.
+
+* UIProcess/API/gtk/tests/AccessibilityTestServer.cpp:
+(main):
+
 2013-08-09  Beth Dakin  
 
 AX: Not able to use arrow keys to read text in a WK2 app


Modified: trunk/Source/WebKit2/UIProcess/API/gtk/tests/AccessibilityTestServer.cpp (153946 => 153947)

--- trunk/Source/WebKit2/UIProcess/API/gtk/tests/AccessibilityTestServer.cpp	2013-08-12 16:52:48 UTC (rev 153946)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/tests/AccessibilityTestServer.cpp	2013-08-12 17:16:19 UTC (rev 153947)
@@ -31,8 +31,8 @@
 
 int main(int argc, char** argv)
 {
-// Make sure that both GAIL and the ATK bridge are loaded.
-g_setenv("GTK_MODULES", "gail:atk-bridge", TRUE);
+// Make sure that the ATK bridge is loaded.
+g_setenv("GTK_MODULES", "atk-bridge", TRUE);
 
 gtk_init(&argc, &argv);
 






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


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

Title: [153946] trunk/Source/WebCore








Revision 153946
Author commit-qu...@webkit.org
Date 2013-08-12 09:52:48 -0700 (Mon, 12 Aug 2013)


Log Message
[Curl] Cookie is not set when url string is unicode.
https://bugs.webkit.org/show_bug.cgi?id=119545

Patch by pe...@outlook.com  on 2013-08-12
Reviewed by Brent Fulgham.

When the method setCookiesFromDOM is called with an unicode url parameter, the cookie is not correctly set.
We need to convert the cookie string to 8 bit, before passing it to the Curl api function.

* platform/network/curl/CookieJarCurl.cpp:
(WebCore::setCookiesFromDOM): Convert cookie string to 8 bit, if needed.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153945 => 153946)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 16:49:56 UTC (rev 153945)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 16:52:48 UTC (rev 153946)
@@ -1,3 +1,16 @@
+2013-08-12  pe...@outlook.com  
+
+[Curl] Cookie is not set when url string is unicode.
+https://bugs.webkit.org/show_bug.cgi?id=119545
+
+Reviewed by Brent Fulgham.
+
+When the method setCookiesFromDOM is called with an unicode url parameter, the cookie is not correctly set.
+We need to convert the cookie string to 8 bit, before passing it to the Curl api function.
+
+* platform/network/curl/CookieJarCurl.cpp:
+(WebCore::setCookiesFromDOM): Convert cookie string to 8 bit, if needed.
+
 2013-08-12  Eric Carlson  
 
 Revert r153912 because it broke some track tests.


Modified: trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp (153945 => 153946)

--- trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp	2013-08-12 16:49:56 UTC (rev 153945)
+++ trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp	2013-08-12 16:52:48 UTC (rev 153946)
@@ -238,6 +238,9 @@
 // required behavior if the domain field is not explicity specified.
 String cookie = getNetscapeCookieFormat(url, value);
 
+if (!cookie.is8Bit())
+cookie = String::make8BitFrom16BitSource(cookie.characters16(), cookie.length());
+
 CString strCookie(reinterpret_cast(cookie.characters8()), cookie.length());
 
 curl_easy_setopt(curl, CURLOPT_COOKIELIST, strCookie.data());






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


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

Title: [153945] trunk/Source/WebCore








Revision 153945
Author eric.carl...@apple.com
Date 2013-08-12 09:49:56 -0700 (Mon, 12 Aug 2013)


Log Message
Revert r153912 because it broke some track tests.

Rubber-stamped by Antti Koivisto.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged):
(WebCore::MediaPlayerPrivateAVFoundationObjC::languageOfPrimaryAudioTrack):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm




Diff

Modified: trunk/Source/WebCore/ChangeLog (153944 => 153945)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 16:36:01 UTC (rev 153944)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 16:49:56 UTC (rev 153945)
@@ -1,23 +1,13 @@
-2013-08-12  pe...@outlook.com  
+2013-08-12  Eric Carlson  
 
-[Curl] Crash when starting second download.
-https://bugs.webkit.org/show_bug.cgi?id=119620
+Revert r153912 because it broke some track tests.
 
-Reviewed by Brent Fulgham.
+Rubber-stamped by Antti Koivisto.
 
-When a second download is started, a crash sometimes occurs in Curl.
-This happens because the Curl easy handle is deleted and removed from the Curl multi handle twice.
-This is solved by adding an array to keep track of active downloads to avoid double deletion. 
+* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+(WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged):
+(WebCore::MediaPlayerPrivateAVFoundationObjC::languageOfPrimaryAudioTrack):
 
-* platform/network/curl/CurlDownload.cpp:
-(WebCore::CurlDownloadManager::CurlDownloadManager): Removed active download count member.
-(WebCore::CurlDownloadManager::getActiveDownloadCount): Use active download array to return active download count.
-(WebCore::CurlDownloadManager::updateHandleList): Remove Curl handles before adding, in case Curl reuses handles.
-(WebCore::CurlDownloadManager::addToCurl): Add Curl handle to active download array.
-(WebCore::CurlDownloadManager::removeFromCurl): Check if Curl handle is in active download array to avoid double deletion.
-(WebCore::CurlDownloadManager::downloadThread): Removed active download count member.
-* platform/network/curl/CurlDownload.h: Added array of active downloads member, and removed download count member.
-
 2013-08-12  Antti Koivisto  
 
 Add ElementTraversal::next/previousSibling


Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (153944 => 153945)

--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-08-12 16:36:01 UTC (rev 153944)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2013-08-12 16:49:56 UTC (rev 153945)
@@ -1045,7 +1045,7 @@
 
 sizeChanged();
 
-if (primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
+if (!primaryAudioTrackLanguage.isNull() && primaryAudioTrackLanguage != languageOfPrimaryAudioTrack())
 player()->characteristicChanged();
 }
 
@@ -1497,12 +1497,6 @@
 AVAssetTrack *track = [tracks objectAtIndex:0];
 NSString *language = [track extendedLanguageTag];
 
-// If the language code is stored as a QuickTime 5-bit packed code there aren't enough bits for a full
-// RFC 4646 language tag so extendedLanguageTag returns NULL. In this case languageCode will return the
-// ISO 639-2/T language code so check it.
-if (!language)
-language = [track languageCode];
-
 // Some legacy tracks have "und" as a language, treat that the same as no language at all.
 if (language && ![language isEqualToString:@"und"]) {
 m_languageOfPrimaryAudioTrack = language;






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


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

Title: [153944] trunk/Source/WebCore








Revision 153944
Author commit-qu...@webkit.org
Date 2013-08-12 09:36:01 -0700 (Mon, 12 Aug 2013)


Log Message
[Curl] Crash when starting second download.
https://bugs.webkit.org/show_bug.cgi?id=119620

Patch by pe...@outlook.com  on 2013-08-12
Reviewed by Brent Fulgham.

When a second download is started, a crash sometimes occurs in Curl.
This happens because the Curl easy handle is deleted and removed from the Curl multi handle twice.
This is solved by adding an array to keep track of active downloads to avoid double deletion.

* platform/network/curl/CurlDownload.cpp:
(WebCore::CurlDownloadManager::CurlDownloadManager): Removed active download count member.
(WebCore::CurlDownloadManager::getActiveDownloadCount): Use active download array to return active download count.
(WebCore::CurlDownloadManager::updateHandleList): Remove Curl handles before adding, in case Curl reuses handles.
(WebCore::CurlDownloadManager::addToCurl): Add Curl handle to active download array.
(WebCore::CurlDownloadManager::removeFromCurl): Check if Curl handle is in active download array to avoid double deletion.
(WebCore::CurlDownloadManager::downloadThread): Removed active download count member.
* platform/network/curl/CurlDownload.h: Added array of active downloads member, and removed download count member.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp
trunk/Source/WebCore/platform/network/curl/CurlDownload.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (153943 => 153944)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 16:32:57 UTC (rev 153943)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 16:36:01 UTC (rev 153944)
@@ -1,3 +1,23 @@
+2013-08-12  pe...@outlook.com  
+
+[Curl] Crash when starting second download.
+https://bugs.webkit.org/show_bug.cgi?id=119620
+
+Reviewed by Brent Fulgham.
+
+When a second download is started, a crash sometimes occurs in Curl.
+This happens because the Curl easy handle is deleted and removed from the Curl multi handle twice.
+This is solved by adding an array to keep track of active downloads to avoid double deletion. 
+
+* platform/network/curl/CurlDownload.cpp:
+(WebCore::CurlDownloadManager::CurlDownloadManager): Removed active download count member.
+(WebCore::CurlDownloadManager::getActiveDownloadCount): Use active download array to return active download count.
+(WebCore::CurlDownloadManager::updateHandleList): Remove Curl handles before adding, in case Curl reuses handles.
+(WebCore::CurlDownloadManager::addToCurl): Add Curl handle to active download array.
+(WebCore::CurlDownloadManager::removeFromCurl): Check if Curl handle is in active download array to avoid double deletion.
+(WebCore::CurlDownloadManager::downloadThread): Removed active download count member.
+* platform/network/curl/CurlDownload.h: Added array of active downloads member, and removed download count member.
+
 2013-08-12  Antti Koivisto  
 
 Add ElementTraversal::next/previousSibling


Modified: trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp (153943 => 153944)

--- trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp	2013-08-12 16:32:57 UTC (rev 153943)
+++ trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp	2013-08-12 16:36:01 UTC (rev 153944)
@@ -44,7 +44,6 @@
 CurlDownloadManager::CurlDownloadManager()
 : m_threadId(0)
 , m_curlMultiHandle(0)
-, m_activeDownloadCount(0)
 , m_runThread(false)
 {
 curl_global_init(CURL_GLOBAL_ALL);
@@ -79,7 +78,8 @@
 
 int CurlDownloadManager::getActiveDownloadCount() const
 {
-return m_activeDownloadCount;
+MutexLocker locker(m_mutex);
+return m_activeHandleList.size();
 }
 
 int CurlDownloadManager::getPendingDownloadCount() const
@@ -120,31 +120,41 @@
 {
 MutexLocker locker(m_mutex);
 
+// Remove curl easy handles from multi list 
+int size = m_removedHandleList.size();
+for (int i = 0; i < size; i++) {
+if (removeFromCurl(m_removedHandleList[0]))
+m_removedHandleList.remove(0);
+}
+
 // Add pending curl easy handles to multi list 
-int size = m_pendingHandleList.size();
+size = m_pendingHandleList.size();
 for (int i = 0; i < size; i++) {
 if (addToCurl(m_pendingHandleList[0]))
 m_pendingHandleList.remove(0);
 }
-
-// Remove curl easy handles from multi list 
-size = m_removedHandleList.size();
-for (int i = 0; i < size; i++) {
-if (removeFromCurl(m_removedHandleList[0]))
-m_removedHandleList.remove(0);
-}
 }
 
 bool CurlDownloadManager::addToCurl(CURL* curlHandle)
 {
 CURLMcode retval = curl_multi_add_handle(m_curlMultiHandle, curlHandle);
-return retval == CURLM_OK;
+if (retval == CURLM_OK) {
+m_activeHandleList.append(curlHandle);
+return true;
+}
+return fal

[webkit-changes] [153943] trunk/Source/WebKit

Title: [153943] trunk/Source/WebKit








Revision 153943
Author commit-qu...@webkit.org
Date 2013-08-12 09:32:57 -0700 (Mon, 12 Aug 2013)


Log Message
[Win] TestWebKitAPI fails to link.
https://bugs.webkit.org/show_bug.cgi?id=119619

Patch by pe...@outlook.com  on 2013-08-12
Reviewed by Brent Fulgham.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export needed symbol.

Modified Paths

trunk/Source/WebKit/ChangeLog
trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in




Diff

Modified: trunk/Source/WebKit/ChangeLog (153942 => 153943)

--- trunk/Source/WebKit/ChangeLog	2013-08-12 15:52:09 UTC (rev 153942)
+++ trunk/Source/WebKit/ChangeLog	2013-08-12 16:32:57 UTC (rev 153943)
@@ -1,3 +1,12 @@
+2013-08-12  pe...@outlook.com  
+
+[Win] TestWebKitAPI fails to link.
+https://bugs.webkit.org/show_bug.cgi?id=119619
+
+Reviewed by Brent Fulgham.
+
+* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in: Export needed symbol.
+
 2013-08-07  Ryuan Choi  
 
 Unreviewed build fix on Efl port after r153785.


Modified: trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in (153942 => 153943)

--- trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in	2013-08-12 15:52:09 UTC (rev 153942)
+++ trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in	2013-08-12 16:32:57 UTC (rev 153943)
@@ -396,6 +396,7 @@
 symbolWithPointer(?solidColor@BitmapImage@WebCore@@MBE?AVColor@2@XZ, ?solidColor@BitmapImage@WebCore@@MEBA?AVColor@2@XZ)
 symbolWithPointer(?draw@BitmapImage@WebCore@@MAEXPAVGraphicsContext@2@ABVFloatRect@2@1W4ColorSpace@2@W4CompositeOperator@2@W4BlendMode@2@W4RespectImageOrientationEnum@2@@Z, ?draw@BitmapImage@WebCore@@MEAAXPEAVGraphicsContext@2@AEBVFloatRect@2@1W4ColorSpace@2@W4CompositeOperator@2@W4BlendMode@2@W4RespectImageOrientationEnum@2@@Z)
 symbolWithPointer(?frameCount@BitmapImage@WebCore@@MAEIXZ, ?frameCount@BitmapImage@WebCore@@MEAA_KXZ)
+?frameOrientationAtIndex@BitmapImage@WebCore@@IAE?AVImageOrientation@2@I@Z
 symbolWithPointer(?addAuthorSheet@DocumentStyleSheetCollection@WebCore@@QAEXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z, ?addAuthorSheet@DocumentStyleSheetCollection@WebCore@@QEAAXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z)
 symbolWithPointer(?parseString@StyleSheetContents@WebCore@@QAE_NABVString@WTF@@@Z, ?parseString@StyleSheetContents@WebCore@@QEAA_NAEBVString@WTF@@@Z)
 symbolWithPointer(??0CSSParserContext@WebCore@@QAE@PAVDocument@1@ABVKURL@1@ABVString@WTF@@@Z, ??0CSSParserContext@WebCore@@QEAA@PEAVDocument@1@AEBVKURL@1@AEBVString@WTF@@@Z)






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


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

Title: [153942] trunk/Source/WebCore








Revision 153942
Author an...@apple.com
Date 2013-08-12 08:52:09 -0700 (Mon, 12 Aug 2013)


Log Message
Add ElementTraversal::next/previousSibling
https://bugs.webkit.org/show_bug.cgi?id=119681

Reviewed by Andreas Kling.

Add nextSibling/previousSibling/lastWithin to ElementTraversal namespace.

- Use them to replace internal use of Element::next/previousElementSibling DOM API for traversal.
- Replace some Node::nextSibling() usage with ElementTraversal::nextSibling() for tighter code.
- Replace ElementTraversal::nextSkippingChildren where it is used to traverse over immediate children only.

* css/SelectorChecker.cpp:
(WebCore::isFirstChildElement):
(WebCore::isLastChildElement):
(WebCore::isFirstOfType):
(WebCore::isLastOfType):
(WebCore::countElementsBefore):
(WebCore::countElementsOfTypeBefore):
(WebCore::countElementsAfter):
(WebCore::countElementsOfTypeAfter):
* dom/Element.cpp:
(WebCore::Element::lastElementChild):
(WebCore::Element::previousElementSibling):
(WebCore::Element::nextElementSibling):
* dom/Element.h:
* dom/ElementTraversal.h:
(WebCore::ElementTraversal::lastElementWithinTemplate):
(WebCore::ElementTraversal::lastWithin):
(WebCore::ElementTraversal::traverseNextSiblingElementTemplate):
(WebCore::ElementTraversal::nextSibling):
(WebCore::ElementTraversal::traversePreviousSiblingElementTemplate):
(WebCore::ElementTraversal::previousSibling):
* editing/ApplyStyleCommand.cpp:
(WebCore::isSpanWithoutAttributesOrUnstyledStyleSpan):
(WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
* editing/IndentOutdentCommand.cpp:
(WebCore::IndentOutdentCommand::tryIndentingAsListItem):
* editing/InsertListCommand.cpp:
(WebCore::InsertListCommand::mergeWithNeighboringLists):
* editing/markup.cpp:
(WebCore::createContextualFragment):
* html/HTMLCollection.cpp:
(WebCore::firstMatchingChildElement):
(WebCore::nextMatchingSiblingElement):
(WebCore::HTMLCollection::traverseNextElement):
(WebCore::HTMLCollection::traverseForwardToOffset):
* html/HTMLFieldSetElement.cpp:
(WebCore::HTMLFieldSetElement::childrenChanged):
(WebCore::HTMLFieldSetElement::legend):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::finishParsingChildren):
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::containsJavaApplet):
* rendering/FilterEffectRenderer.cpp:
(WebCore::FilterEffectRenderer::buildReferenceFilter):
* style/StyleResolveTree.cpp:
(WebCore::Style::resolveTree):
* svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::title):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/css/SelectorChecker.cpp
trunk/Source/WebCore/dom/Element.cpp
trunk/Source/WebCore/dom/Element.h
trunk/Source/WebCore/dom/ElementTraversal.h
trunk/Source/WebCore/editing/ApplyStyleCommand.cpp
trunk/Source/WebCore/editing/CompositeEditCommand.cpp
trunk/Source/WebCore/editing/IndentOutdentCommand.cpp
trunk/Source/WebCore/editing/InsertListCommand.cpp
trunk/Source/WebCore/editing/markup.cpp
trunk/Source/WebCore/html/HTMLCollection.cpp
trunk/Source/WebCore/html/HTMLFieldSetElement.cpp
trunk/Source/WebCore/html/HTMLMediaElement.cpp
trunk/Source/WebCore/html/HTMLObjectElement.cpp
trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp
trunk/Source/WebCore/style/StyleResolveTree.cpp
trunk/Source/WebCore/svg/SVGStyledElement.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153941 => 153942)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 12:18:00 UTC (rev 153941)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 15:52:09 UTC (rev 153942)
@@ -1,3 +1,67 @@
+2013-08-12  Antti Koivisto  
+
+Add ElementTraversal::next/previousSibling
+https://bugs.webkit.org/show_bug.cgi?id=119681
+
+Reviewed by Andreas Kling.
+
+Add nextSibling/previousSibling/lastWithin to ElementTraversal namespace.
+
+- Use them to replace internal use of Element::next/previousElementSibling DOM API for traversal.
+- Replace some Node::nextSibling() usage with ElementTraversal::nextSibling() for tighter code.
+- Replace ElementTraversal::nextSkippingChildren where it is used to traverse over immediate children only.
+
+* css/SelectorChecker.cpp:
+(WebCore::isFirstChildElement):
+(WebCore::isLastChildElement):
+(WebCore::isFirstOfType):
+(WebCore::isLastOfType):
+(WebCore::countElementsBefore):
+(WebCore::countElementsOfTypeBefore):
+(WebCore::countElementsAfter):
+(WebCore::countElementsOfTypeAfter):
+* dom/Element.cpp:
+(WebCore::Element::lastElementChild):
+(WebCore::Element::previousElementSibling):
+(WebCore::Element::nextElementSibling):
+* dom/Element.h:
+* dom/ElementTraversal.h:
+(WebCore::ElementTraversal::lastElementWithinTemplate):
+(WebCore::ElementTraversal::lastWithin):
+(WebCore::Element

[webkit-changes] [153941] trunk

Title: [153941] trunk








Revision 153941
Author allan.jen...@digia.com
Date 2013-08-12 05:18:00 -0700 (Mon, 12 Aug 2013)


Log Message
[Qt] Add Support for canvas blend modes
https://bugs.webkit.org/show_bug.cgi?id=100072

Reviewed by Jocelyn Turcotte.

Source/WebCore:

Implement basic support for the blend-modes supported by QPainter.

Covered by existing tests.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::toQtCompositionMode):
(WebCore::GraphicsContext::setPlatformCompositeOperation):
* platform/graphics/qt/ImageBufferQt.cpp:
(WebCore::ImageBuffer::draw):
* platform/graphics/qt/ImageQt.cpp:
(WebCore::BitmapImage::draw):
* platform/graphics/qt/StillImageQt.cpp:
(WebCore::StillImage::draw):

LayoutTests:

Unskip tests that now passes.

* platform/qt/TestExpectations:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/platform/qt/TestExpectations
trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
trunk/Source/WebCore/platform/graphics/qt/ImageBufferQt.cpp
trunk/Source/WebCore/platform/graphics/qt/ImageQt.cpp
trunk/Source/WebCore/platform/graphics/qt/StillImageQt.cpp




Diff

Modified: trunk/LayoutTests/ChangeLog (153940 => 153941)

--- trunk/LayoutTests/ChangeLog	2013-08-12 11:40:24 UTC (rev 153940)
+++ trunk/LayoutTests/ChangeLog	2013-08-12 12:18:00 UTC (rev 153941)
@@ -1,3 +1,14 @@
+2013-08-12  Allan Sandfeld Jensen  
+
+[Qt] Add Support for canvas blend modes
+https://bugs.webkit.org/show_bug.cgi?id=100072
+
+Reviewed by Jocelyn Turcotte.
+
+Unskip tests that now passes.
+
+* platform/qt/TestExpectations:
+
 2013-08-12  Zoltan Arvai  
 
 [Qt] Unreviewed gardening. Rebaselining after r153903.


Modified: trunk/LayoutTests/platform/qt/TestExpectations (153940 => 153941)

--- trunk/LayoutTests/platform/qt/TestExpectations	2013-08-12 11:40:24 UTC (rev 153940)
+++ trunk/LayoutTests/platform/qt/TestExpectations	2013-08-12 12:18:00 UTC (rev 153941)
@@ -481,48 +481,13 @@
 # CSS.regionOversetChanged is not implemented.
 webkit.org/b/117833 inspector/styles/protocol-css-regions-commands.html [ Skip ]
 
-# CSS -webkit-background-blend-mode not supported yet.
-css3/compositing/background-blend-mode-background-attachement-fixed.html
-css3/compositing/background-blend-mode-background-clip-content-box.html
-css3/compositing/background-blend-mode-background-clip-padding-box.html
-css3/compositing/background-blend-mode-background-origin-border-box.html
-css3/compositing/background-blend-mode-background-position-percentage.html
-css3/compositing/background-blend-mode-background-repeat-no-repeat.html
-css3/compositing/background-blend-mode-background-size-contain.html
-css3/compositing/background-blend-mode-background-size-cover.html
+# The following tests fail because blend-modes are only partially supported.
 css3/compositing/background-blend-mode-default-value.html
 css3/compositing/background-blend-mode-different-image-formats.html
 css3/compositing/background-blend-mode-image-color.html
 css3/compositing/background-blend-mode-image-image.html
 css3/compositing/background-blend-mode-single-layer-no-blending.html
 
-# The following test fail because canvas blending is not yet supported.
-# https://bugs.webkit.org/show_bug.cgi?id=100072
-fast/canvas/canvas-blend-image.html
-fast/canvas/canvas-blend-solid.html
-fast/canvas/canvas-blending-clipping.html
-fast/canvas/canvas-blending-color-over-color.html
-fast/canvas/canvas-blending-color-over-gradient.html
-fast/canvas/canvas-blending-color-over-image.html
-fast/canvas/canvas-blending-color-over-pattern.html
-fast/canvas/canvas-blending-fill-style.html
-fast/canvas/canvas-blending-global-alpha.html
-fast/canvas/canvas-blending-gradient-over-color.html
-fast/canvas/canvas-blending-gradient-over-gradient.html
-fast/canvas/canvas-blending-gradient-over-image.html
-fast/canvas/canvas-blending-gradient-over-pattern.html
-fast/canvas/canvas-blending-image-over-color.html
-fast/canvas/canvas-blending-image-over-gradient.html
-fast/canvas/canvas-blending-image-over-image.html
-fast/canvas/canvas-blending-image-over-pattern.html
-fast/canvas/canvas-blending-pattern-over-color.html
-fast/canvas/canvas-blending-pattern-over-gradient.html
-fast/canvas/canvas-blending-pattern-over-image.html
-fast/canvas/canvas-blending-pattern-over-pattern.html
-fast/canvas/canvas-blending-shadow.html
-fast/canvas/canvas-blending-text.html
-fast/canvas/canvas-blending-transforms.html
-
 # === #
 #   Drag and Drop Support in DRT. #
 # === #
@@ -1296,6 +1261,10 @@
 # Missing testRunner.setHandlesAuthenticationChallenges() implementation
 http/tests/misc/authentication-redirect-4/authentication-sent-to-redirect-same-origin-url.html
 
+# TestRunner::overridePreference() does not support the 'WebKitCan

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

Title: [153938] trunk/Source/WebCore








Revision 153938
Author an...@apple.com
Date 2013-08-12 03:25:21 -0700 (Mon, 12 Aug 2013)


Log Message
Move some Document recalcStyle code to StyleResolveTree
https://bugs.webkit.org/show_bug.cgi?id=119676

Reviewed by Andreas Kling.

Move the code that resolves the document and child styles to Style::resolveTree(Document*).

* dom/Document.cpp:
(WebCore::Document::recalcStyle):
* style/StyleResolveTree.cpp:
(WebCore::Style::resolveTree):
* style/StyleResolveTree.h:

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/dom/Document.cpp
trunk/Source/WebCore/style/StyleResolveTree.cpp
trunk/Source/WebCore/style/StyleResolveTree.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (153937 => 153938)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 10:22:06 UTC (rev 153937)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 10:25:21 UTC (rev 153938)
@@ -1,3 +1,18 @@
+2013-08-12  Antti Koivisto  
+
+Move some Document recalcStyle code to StyleResolveTree
+https://bugs.webkit.org/show_bug.cgi?id=119676
+
+Reviewed by Andreas Kling.
+
+Move the code that resolves the document and child styles to Style::resolveTree(Document*).
+
+* dom/Document.cpp:
+(WebCore::Document::recalcStyle):
+* style/StyleResolveTree.cpp:
+(WebCore::Style::resolveTree):
+* style/StyleResolveTree.h:
+
 2013-08-12  Allan Sandfeld Jensen  
 
 Resource leak related to gstreamer and videos


Modified: trunk/Source/WebCore/dom/Document.cpp (153937 => 153938)

--- trunk/Source/WebCore/dom/Document.cpp	2013-08-12 10:22:06 UTC (rev 153937)
+++ trunk/Source/WebCore/dom/Document.cpp	2013-08-12 10:25:21 UTC (rev 153938)
@@ -146,7 +146,6 @@
 #include "Settings.h"
 #include "ShadowRoot.h"
 #include "StylePropertySet.h"
-#include "StyleResolveForDocument.h"
 #include "StyleResolver.h"
 #include "StyleSheetContents.h"
 #include "StyleSheetList.h"
@@ -1777,25 +1776,12 @@
 if (m_pendingStyleRecalcShouldForce)
 change = Style::Force;
 
-// Recalculating the root style (on the document) is not needed in the common case.
-if ((change == Style::Force) || (shouldDisplaySeamlesslyWithParent() && (change >= Style::Inherit))) {
-// style selector may set this again during recalc
+if (change == Style::Force) {
+// This may get set again during style resolve.
 m_hasNodesWithPlaceholderStyle = false;
-
-RefPtr documentStyle = Style::resolveForDocument(this);
-
-Style::Change documentChange = Style::determineChange(documentStyle.get(), renderer()->style(), settings());
-if (documentChange != Style::NoChange)
-renderer()->setStyle(documentStyle.release());
 }
 
-for (Node* n = firstChild(); n; n = n->nextSibling()) {
-if (!n->isElementNode())
-continue;
-Element* element = toElement(n);
-if (change >= Style::Inherit || element->childNeedsStyleRecalc() || element->needsStyleRecalc())
-Style::resolveTree(element, change);
-}
+resolveTree(this, change);
 
 #if USE(ACCELERATED_COMPOSITING)
 if (view())


Modified: trunk/Source/WebCore/style/StyleResolveTree.cpp (153937 => 153938)

--- trunk/Source/WebCore/style/StyleResolveTree.cpp	2013-08-12 10:22:06 UTC (rev 153937)
+++ trunk/Source/WebCore/style/StyleResolveTree.cpp	2013-08-12 10:25:21 UTC (rev 153938)
@@ -34,6 +34,7 @@
 #include "RenderText.h"
 #include "Settings.h"
 #include "ShadowRoot.h"
+#include "StyleResolveForDocument.h"
 #include "StyleResolver.h"
 #include "Text.h"
 
@@ -281,6 +282,25 @@
 current->didRecalcStyle(change);
 }
 
+void resolveTree(Document* document, Change change)
+{
+bool resolveRootStyle = change == Force || (document->shouldDisplaySeamlesslyWithParent() && change >= Inherit);
+if (resolveRootStyle) {
+RefPtr documentStyle = resolveForDocument(document);
+
+Style::Change documentChange = determineChange(documentStyle.get(), document->renderer()->style(), document->settings());
+if (documentChange != NoChange)
+document->renderer()->setStyle(documentStyle.release());
+}
+
+for (Node* child = document->firstChild(); child; child = child->nextSibling()) {
+if (!child->isElementNode())
+continue;
+Element* elementChild = toElement(child);
+if (change >= Inherit || elementChild->childNeedsStyleRecalc() || elementChild->needsStyleRecalc())
+resolveTree(elementChild, change);
+}
 }
 
 }
+}


Modified: trunk/Source/WebCore/style/StyleResolveTree.h (153937 => 153938)

--- trunk/Source/WebCore/style/StyleResolveTree.h	2013-08-12 10:22:06 UTC (rev 153937)
+++ trunk/Source/WebCore/style/StyleResolveTree.h	2013-08-12 10:25:21 UTC (rev 153938)
@@ -28,6 +28,7 @@
 
 namespace WebCore {
 
+class Document;
 class Element;
 class RenderS

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

Title: [153937] trunk/Source/WebCore








Revision 153937
Author allan.jen...@digia.com
Date 2013-08-12 03:22:06 -0700 (Mon, 12 Aug 2013)


Log Message
Resource leak related to gstreamer and videos
https://bugs.webkit.org/show_bug.cgi?id=109350

Reviewed by Eric Carlson.

Since active DOM object are only stopped once and can not be restarted, we can
unreference the media player there, instead of waiting for garbage collection.

If the r152778 is rolled back, this also breaks a circular reference between
GStreamer and WebKit which prevented garbage collecting from triggering.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::stop):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/html/HTMLMediaElement.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153936 => 153937)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 09:38:50 UTC (rev 153936)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 10:22:06 UTC (rev 153937)
@@ -1,3 +1,19 @@
+2013-08-12  Allan Sandfeld Jensen  
+
+Resource leak related to gstreamer and videos
+https://bugs.webkit.org/show_bug.cgi?id=109350
+
+Reviewed by Eric Carlson.
+
+Since active DOM object are only stopped once and can not be restarted, we can
+unreference the media player there, instead of waiting for garbage collection.
+
+If the r152778 is rolled back, this also breaks a circular reference between
+GStreamer and WebKit which prevented garbage collecting from triggering.
+
+* html/HTMLMediaElement.cpp:
+(WebCore::HTMLMediaElement::stop):
+
 2013-08-12  Gabor Rapcsanyi  
 
 [Qt] Unreviewed buildfix for webaudio.


Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (153936 => 153937)

--- trunk/Source/WebCore/html/HTMLMediaElement.cpp	2013-08-12 09:38:50 UTC (rev 153936)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp	2013-08-12 10:22:06 UTC (rev 153937)
@@ -4178,6 +4178,11 @@
 cancelPendingEventsAndCallbacks();
 
 m_asyncEventQueue->close();
+
+// Once an active DOM object has been stopped it can not be restarted, so we can deallocate
+// the media player now. Note that userCancelledLoad will already have cleared the player
+// if the media was not fully loaded. This handles all other cases.
+m_player.clear();
 }
 
 void HTMLMediaElement::suspend(ReasonForSuspension why)






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


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

Title: [153936] trunk/Source/WebCore








Revision 153936
Author rga...@webkit.org
Date 2013-08-12 02:38:50 -0700 (Mon, 12 Aug 2013)


Log Message
[Qt] Unreviewed buildfix for webaudio.

* Target.pri: Add missing files

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/Target.pri




Diff

Modified: trunk/Source/WebCore/ChangeLog (153935 => 153936)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 09:17:29 UTC (rev 153935)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 09:38:50 UTC (rev 153936)
@@ -1,3 +1,9 @@
+2013-08-12  Gabor Rapcsanyi  
+
+[Qt] Unreviewed buildfix for webaudio.
+
+* Target.pri: Add missing files
+
 2013-08-12  Andreas Kling  
 
 Some build juice for the Windows bots after r153926 + r153927.


Modified: trunk/Source/WebCore/Target.pri (153935 => 153936)

--- trunk/Source/WebCore/Target.pri	2013-08-12 09:17:29 UTC (rev 153935)
+++ trunk/Source/WebCore/Target.pri	2013-08-12 09:38:50 UTC (rev 153936)
@@ -3404,6 +3404,7 @@
 platform/audio/DenormalDisabler.h \
 platform/audio/DirectConvolver.h \
 platform/audio/Distance.h \
+platform/audio/DownSampler.h \
 platform/audio/DynamicsCompressor.h \
 platform/audio/DynamicsCompressorKernel.h \
 platform/audio/EqualPowerPanner.h \
@@ -3422,6 +3423,7 @@
 platform/audio/Reverb.h \
 platform/audio/ReverbInputBuffer.h \
 platform/audio/SincResampler.h \
+platform/audio/UpSampler.h \
 platform/audio/VectorMath.h \
 platform/audio/ZeroPole.h
 
@@ -3485,6 +3487,7 @@
 platform/audio/Cone.cpp \
 platform/audio/DirectConvolver.cpp \
 platform/audio/Distance.cpp \
+platform/audio/DownSampler.cpp \
 platform/audio/DynamicsCompressor.cpp \
 platform/audio/DynamicsCompressorKernel.cpp \
 platform/audio/EqualPowerPanner.cpp \
@@ -3505,6 +3508,7 @@
 platform/audio/Reverb.cpp \
 platform/audio/ReverbInputBuffer.cpp \
 platform/audio/SincResampler.cpp \
+platform/audio/UpSampler.cpp \
 platform/audio/VectorMath.cpp \
 platform/audio/ZeroPole.cpp
 






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


[webkit-changes] [153935] trunk/Source/WebKit/win

Title: [153935] trunk/Source/WebKit/win








Revision 153935
Author akl...@apple.com
Date 2013-08-12 02:17:29 -0700 (Mon, 12 Aug 2013)


Log Message
More Windows build juice.

* WebView.cpp:
(WebView::notifyPreferencesChanged):

Modified Paths

trunk/Source/WebKit/win/ChangeLog
trunk/Source/WebKit/win/WebView.cpp




Diff

Modified: trunk/Source/WebKit/win/ChangeLog (153934 => 153935)

--- trunk/Source/WebKit/win/ChangeLog	2013-08-12 08:55:45 UTC (rev 153934)
+++ trunk/Source/WebKit/win/ChangeLog	2013-08-12 09:17:29 UTC (rev 153935)
@@ -1,3 +1,10 @@
+2013-08-12  Andreas Kling  
+
+More Windows build juice.
+
+* WebView.cpp:
+(WebView::notifyPreferencesChanged):
+
 2013-08-09  Christophe Dumez  
 
 Add support for KeyboardEvent.location attribute


Modified: trunk/Source/WebKit/win/WebView.cpp (153934 => 153935)

--- trunk/Source/WebKit/win/WebView.cpp	2013-08-12 08:55:45 UTC (rev 153934)
+++ trunk/Source/WebKit/win/WebView.cpp	2013-08-12 09:17:29 UTC (rev 153935)
@@ -4997,7 +4997,7 @@
 hr = prefsPrivate->isFullScreenEnabled(&enabled);
 if (FAILED(hr))
 return hr;
-settings->setFullScreenEnabled(enabled);
+settings.setFullScreenEnabled(enabled);
 #endif
 
 hr = prefsPrivate->mediaPlaybackRequiresUserGesture(&enabled);






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


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

Title: [153934] trunk/Source/WebCore








Revision 153934
Author akl...@apple.com
Date 2013-08-12 01:55:45 -0700 (Mon, 12 Aug 2013)


Log Message
Some build juice for the Windows bots after r153926 + r153927.

* html/shadow/MediaControlElements.cpp:
* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen):
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpCookiesForQuickTime):

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/html/shadow/MediaControlElements.cpp
trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp




Diff

Modified: trunk/Source/WebCore/ChangeLog (153933 => 153934)

--- trunk/Source/WebCore/ChangeLog	2013-08-12 08:20:50 UTC (rev 153933)
+++ trunk/Source/WebCore/ChangeLog	2013-08-12 08:55:45 UTC (rev 153934)
@@ -1,3 +1,12 @@
+2013-08-12  Andreas Kling  
+
+Some build juice for the Windows bots after r153926 + r153927.
+
+* html/shadow/MediaControlElements.cpp:
+* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
+(WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen):
+(WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpCookiesForQuickTime):
+
 2013-08-11  Sam Weinig  
 
 Move RenderMathMLSpace.h/cpp to the right group in the Xcode project.


Modified: trunk/Source/WebCore/html/shadow/MediaControlElements.cpp (153933 => 153934)

--- trunk/Source/WebCore/html/shadow/MediaControlElements.cpp	2013-08-12 08:20:50 UTC (rev 153933)
+++ trunk/Source/WebCore/html/shadow/MediaControlElements.cpp	2013-08-12 08:55:45 UTC (rev 153934)
@@ -54,6 +54,7 @@
 #include "RenderVideo.h"
 #include "RenderView.h"
 #include "Settings.h"
+#include "ShadowRoot.h"
 #if ENABLE(VIDEO_TRACK)
 #include "TextTrack.h"
 #include "TextTrackList.h"


Modified: trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp (153933 => 153934)

--- trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp	2013-08-12 08:20:50 UTC (rev 153933)
+++ trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp	2013-08-12 08:55:45 UTC (rev 153934)
@@ -199,7 +199,7 @@
 #if USE(ACCELERATED_COMPOSITING)
 Document* document = m_player->mediaPlayerClient()->mediaPlayerOwningDocument(); 
 if (document)
-return document->settings().acceleratedCompositingEnabled();
+return document->settings()->acceleratedCompositingEnabled();
 #endif
 return false;
 }
@@ -264,7 +264,7 @@
 // download the movie into WinInet before asking QuickTime to open it.
 Document* document = m_player->mediaPlayerClient()->mediaPlayerOwningDocument();
 Frame* frame = document ? document->frame() : 0;
-if (!frame || !frame->page() || !frame->page()->settings()->cookieEnabled())
+if (!frame || !frame->page() || !frame->page()->settings().cookieEnabled())
 return;
 
 KURL movieURL = KURL(KURL(), url);






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


[webkit-changes] [153932] trunk/LayoutTests

Title: [153932] trunk/LayoutTests








Revision 153932
Author g.czajkow...@samsung.com
Date 2013-08-12 00:57:15 -0700 (Mon, 12 Aug 2013)


Log Message
Update spellcheck-attribute.html description.
https://bugs.webkit.org/show_bug.cgi?id=119486

Reviewed by Ryosuke Niwa.

r70512 r72782 added new fields to spellcheck-attribute.html to verify
spellcheck attribute.
Update the test to be more descriptive by dumping additional information
whether the misspelled word should be marked or not.

* editing/spelling/spellcheck-attribute-expected.txt:
* editing/spelling/spellcheck-attribute.html:

Modified Paths

trunk/LayoutTests/ChangeLog
trunk/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt
trunk/LayoutTests/editing/spelling/spellcheck-attribute.html




Diff

Modified: trunk/LayoutTests/ChangeLog (153931 => 153932)

--- trunk/LayoutTests/ChangeLog	2013-08-12 07:12:32 UTC (rev 153931)
+++ trunk/LayoutTests/ChangeLog	2013-08-12 07:57:15 UTC (rev 153932)
@@ -1,3 +1,18 @@
+2013-08-12  Grzegorz Czajkowski  
+
+Update spellcheck-attribute.html description.
+https://bugs.webkit.org/show_bug.cgi?id=119486
+
+Reviewed by Ryosuke Niwa.
+
+r70512 r72782 added new fields to spellcheck-attribute.html to verify
+spellcheck attribute.
+Update the test to be more descriptive by dumping additional information
+whether the misspelled word should be marked or not.
+
+* editing/spelling/spellcheck-attribute-expected.txt:
+* editing/spelling/spellcheck-attribute.html:
+
 2013-08-09  Alexey Proskuryakov  
 
 Merge an encoding test from Blink


Modified: trunk/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt (153931 => 153932)

--- trunk/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt	2013-08-12 07:12:32 UTC (rev 153931)
+++ trunk/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt	2013-08-12 07:57:15 UTC (rev 153932)
@@ -1,27 +1,54 @@
-This tests if the "spellcheck" attribute is implemented as written in its specification. If this test succeeds, you can see six forms filled with an invalid word 'zz '. Nevertheless, the 'zz ' only in the line 1.1, 1.2, and 2.2 are marked as misspelled.
+This tests if the "spellcheck" attribute is implemented as written in its specification. If this test succeeds, you can see forms filled with an invalid word 'zz '. Nevertheless, the 'zz ' is not marked as misspelled in all of them.
 
-PASS:test1_1
-PASS:test1_2
-PASS:test1_3
-PASS:test1_4
-PASS:test1_5
-PASS:test1_6
-PASS:test2_1
-PASS:test2_2
-PASS:test2_3
-PASS:test2_4
-PASS:test2_5
-PASS:test2_6
-PASS:test3_1
-PASS:test3_2
-PASS:test3_3
-PASS:test3_4
-PASS:test3_5
-PASS:test3_6
-PASS:test4_1
-PASS:test4_2
-PASS:test4_3
-PASS:test4_4
-PASS:test4_5
-PASS:test4_6
+id=test1_1 type=text spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test1_2 type=text spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test1_3 type=text spellcheck=false parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+id=test1_4 type=text spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test1_5 type=text spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test1_6 type=text spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
 
+id=test2_1 type=text spellcheck=false parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+id=test2_2 type=text spellcheck=true parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test2_3 type=text spellcheck=false parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+id=test2_4 type=text spellcheck=false parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+id=test2_5 type=text spellcheck=true parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test2_6 type=text spellcheck=false parent's spellcheck=false
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+
+id=test3_1 type=search spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test3_2 type=search spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test3_3 type=search spellcheck=false parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is false
+id=test3_4 type=search spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test3_5 type=search spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 0, 2) is true
+id=test3_6 type=search spellcheck=true parent's spellcheck=true
+PASS internals.hasSpellingMarker(document, 

[webkit-changes] [153931] releases/WebKitGTK/webkit-2.1.4/

Title: [153931] releases/WebKitGTK/webkit-2.1.4/








Revision 153931
Author carlo...@webkit.org
Date 2013-08-12 00:12:32 -0700 (Mon, 12 Aug 2013)


Log Message
Tagging the WebKitGTK+ 2.1.4 release

Added Paths

releases/WebKitGTK/webkit-2.1.4/




Diff

Property changes: releases/WebKitGTK/webkit-2.1.4



Added: svn:ignore
depcomp
compile
config.guess
GNUmakefile.in
config.sub
ltmain.sh
aconfig.h.in
autom4te.cache
missing
aclocal.m4
install-sh
autotoolsconfig.h.in
INSTALL
README
gtk-doc.make
out
Makefile.chromium
WebKitSupportLibrary.zip
WebKitBuild

Added: svn:mergeinfo




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