Make update-webkit-localizable-strings put WebKit/win strings in WebCore
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-04-18  Timothy Hatcher  <timothy@apple.com>
2
3         Make update-webkit-localizable-strings put WebKit/win strings in WebCore
4         now that all localized strings in WebKit/win use WEB_UI_STRING.
5
6         https://webkit.org/b/58747
7
8         Reviewed by Dan Bernstein.
9
10         * English.lproj/Localizable.strings: Updated with strings from WebKit/win.
11
12 2011-04-15  MORITA Hajime  <morrita@google.com>
13
14         Reviewed by Adam Barth.
15
16         REGRESSION: <progress> doesn't animate if it doesn't have value
17         https://bugs.webkit.org/show_bug.cgi?id=58693
18
19         The initial value of RenderProgress::m_position is accidentally same as
20         the indeterminate value, that makes update code on updateFromElement() skipped.
21         This change set unique invalid value for the initial value of m_position.
22         
23         No new tests. Testing animated bar is not possible with DRT.
24
25         * html/HTMLProgressElement.cpp:
26         (WebCore::HTMLProgressElement::position):
27         * html/HTMLProgressElement.h:
28         * rendering/RenderProgress.cpp:
29         (WebCore::RenderProgress::RenderProgress):
30         (WebCore::RenderProgress::isDeterminate):
31
32 2011-04-18  MORITA Hajime  <morrita@google.com>
33
34         Reviewed by Eric Seidel.
35
36         REGRESSION: [Chromium Win] details-add-summary-1.html start crashing after r84039
37         https://bugs.webkit.org/show_bug.cgi?id=58791
38         
39         On refreshMainSummary(), findMainSummary() possibly releases oldSummary.
40         We should guard it again RefPtr.
41
42         * html/HTMLDetailsElement.cpp:
43         (WebCore::HTMLDetailsElement::refreshMainSummary):
44
45 2011-04-18  Antti Koivisto  <antti@apple.com>
46
47         Reviewed by Simon Fraser.
48
49         CSSSelector double frees
50         https://bugs.webkit.org/show_bug.cgi?id=56124
51         <rdar://problem/9119036>
52
53         In all stacks this is occuring when the document is kept alive by the guard ref only
54         and the node holding it is deleted.
55
56         As a speculative fix, clear the document stylesheets when it turns into a guard ref zombie.
57         This has a pretty good chance of fixing the actual bug. At minimum it will move the
58         crash to an earlier, more easily traceble point.
59
60         No tests, crash stacks only, no idea how to reproduce.
61
62         * dom/Document.cpp:
63         (WebCore::Document::removedLastRef):
64
65 2011-04-18  Alexander Pavlov  <apavlov@chromium.org>
66
67         Reviewed by Yury Semikhatsky.
68
69         Web Inspector: Backspace in the Console is broken
70         https://bugs.webkit.org/show_bug.cgi?id=58764
71
72         * inspector/front-end/inspector.js:
73         (WebInspector.documentKeyDown):
74
75 2011-04-18  Hans Wennborg  <hans@chromium.org>
76
77         Reviewed by Steve Block.
78
79         LevelDB backend for IndexedDB
80         https://bugs.webkit.org/show_bug.cgi?id=57372
81
82         Only available behind a run-time flag. Covered by existing layout
83         tests.
84
85         * Android.mk:
86         * CMakeLists.txt:
87         * GNUmakefile.am:
88         * GNUmakefile.list.am:
89         * WebCore.gyp/WebCore.gyp:
90         * WebCore.gypi:
91         * WebCore.pri:
92         * WebCore.pro:
93         * WebCore.xcodeproj/project.pbxproj:
94         * platform/leveldb/LevelDBComparator.h: Added.
95         (WebCore::LevelDBComparator::~LevelDBComparator):
96         * platform/leveldb/LevelDBDatabase.cpp: Added.
97         (WebCore::makeSlice):
98         (WebCore::makeLevelDBSlice):
99         (WebCore::makeVector):
100         (WebCore::LevelDBDatabase::LevelDBDatabase):
101         (WebCore::LevelDBDatabase::~LevelDBDatabase):
102         (WebCore::LevelDBDatabase::open):
103         (WebCore::LevelDBDatabase::put):
104         (WebCore::LevelDBDatabase::remove):
105         (WebCore::LevelDBDatabase::get):
106         (WebCore::LevelDBDatabase::newIterator):
107         * platform/leveldb/LevelDBDatabase.h: Added.
108         * platform/leveldb/LevelDBIterator.cpp: Added.
109         (WebCore::LevelDBIterator::~LevelDBIterator):
110         (WebCore::LevelDBIterator::LevelDBIterator):
111         (WebCore::makeSlice):
112         (WebCore::makeLevelDBSlice):
113         (WebCore::LevelDBIterator::isValid):
114         (WebCore::LevelDBIterator::seekToLast):
115         (WebCore::LevelDBIterator::seek):
116         (WebCore::LevelDBIterator::next):
117         (WebCore::LevelDBIterator::prev):
118         (WebCore::LevelDBIterator::key):
119         (WebCore::LevelDBIterator::value):
120         * platform/leveldb/LevelDBIterator.h: Added.
121         * platform/leveldb/LevelDBSlice.h: Added.
122         (WebCore::LevelDBSlice::LevelDBSlice):
123         (WebCore::LevelDBSlice::~LevelDBSlice):
124         (WebCore::LevelDBSlice::begin):
125         (WebCore::LevelDBSlice::end):
126         * storage/IDBLevelDBBackingStore.cpp:
127         (WebCore::encodeByte):
128         (WebCore::maxIDBKey):
129         (WebCore::minIDBKey):
130         (WebCore::encodeInt):
131         (WebCore::decodeInt):
132         (WebCore::encodeVarInt):
133         (WebCore::decodeVarInt):
134         (WebCore::encodeString):
135         (WebCore::decodeString):
136         (WebCore::encodeStringWithLength):
137         (WebCore::decodeStringWithLength):
138         (WebCore::encodeDouble):
139         (WebCore::decodeDouble):
140         (WebCore::encodeIDBKey):
141         (WebCore::decodeIDBKey):
142         (WebCore::extractEncodedIDBKey):
143         (WebCore::compareEncodedIDBKeys):
144         (WebCore::getInt):
145         (WebCore::putInt):
146         (WebCore::getString):
147         (WebCore::putString):
148         (WebCore::KeyPrefix::SchemaVersionKey::encode):
149         (WebCore::KeyPrefix::MaxDatabaseIdKey::encode):
150         (WebCore::KeyPrefix::DatabaseFreeListKey::DatabaseFreeListKey):
151         (WebCore::KeyPrefix::DatabaseFreeListKey::decode):
152         (WebCore::KeyPrefix::DatabaseFreeListKey::encode):
153         (WebCore::KeyPrefix::DatabaseFreeListKey::databaseId):
154         (WebCore::KeyPrefix::DatabaseFreeListKey::compare):
155         (WebCore::KeyPrefix::DatabaseNameKey::decode):
156         (WebCore::KeyPrefix::DatabaseNameKey::encode):
157         (WebCore::KeyPrefix::DatabaseNameKey::origin):
158         (WebCore::KeyPrefix::DatabaseNameKey::databaseName):
159         (WebCore::KeyPrefix::DatabaseNameKey::compare):
160         (WebCore::KeyPrefix::DatabaseMetaDataKey::encode):
161         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::ObjectStoreMetaDataKey):
162         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::decode):
163         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::encode):
164         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::objectStoreId):
165         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::metaDataType):
166         (WebCore::KeyPrefix::ObjectStoreMetaDataKey::compare):
167         (WebCore::KeyPrefix::IndexMetaDataKey::IndexMetaDataKey):
168         (WebCore::KeyPrefix::IndexMetaDataKey::decode):
169         (WebCore::KeyPrefix::IndexMetaDataKey::encode):
170         (WebCore::KeyPrefix::IndexMetaDataKey::compare):
171         (WebCore::KeyPrefix::IndexMetaDataKey::indexId):
172         (WebCore::KeyPrefix::IndexMetaDataKey::metaDataType):
173         (WebCore::KeyPrefix::ObjectStoreFreeListKey::ObjectStoreFreeListKey):
174         (WebCore::KeyPrefix::ObjectStoreFreeListKey::decode):
175         (WebCore::KeyPrefix::ObjectStoreFreeListKey::encode):
176         (WebCore::KeyPrefix::ObjectStoreFreeListKey::objectStoreId):
177         (WebCore::KeyPrefix::ObjectStoreFreeListKey::compare):
178         (WebCore::KeyPrefix::IndexFreeListKey::IndexFreeListKey):
179         (WebCore::KeyPrefix::IndexFreeListKey::decode):
180         (WebCore::KeyPrefix::IndexFreeListKey::encode):
181         (WebCore::KeyPrefix::IndexFreeListKey::compare):
182         (WebCore::KeyPrefix::IndexFreeListKey::objectStoreId):
183         (WebCore::KeyPrefix::IndexFreeListKey::indexId):
184         (WebCore::KeyPrefix::ObjectStoreNamesKey::decode):
185         (WebCore::KeyPrefix::ObjectStoreNamesKey::encode):
186         (WebCore::KeyPrefix::ObjectStoreNamesKey::compare):
187         (WebCore::KeyPrefix::ObjectStoreNamesKey::objectStoreName):
188         (WebCore::KeyPrefix::IndexNamesKey::IndexNamesKey):
189         (WebCore::KeyPrefix::IndexNamesKey::decode):
190         (WebCore::KeyPrefix::IndexNamesKey::encode):
191         (WebCore::KeyPrefix::IndexNamesKey::compare):
192         (WebCore::KeyPrefix::IndexNamesKey::indexName):
193         (WebCore::KeyPrefix::ObjectStoreDataKey::decode):
194         (WebCore::KeyPrefix::ObjectStoreDataKey::encode):
195         (WebCore::KeyPrefix::ObjectStoreDataKey::compare):
196         (WebCore::KeyPrefix::ObjectStoreDataKey::userKey):
197         (WebCore::KeyPrefix::ExistsEntryKey::decode):
198         (WebCore::KeyPrefix::ExistsEntryKey::encode):
199         (WebCore::KeyPrefix::ExistsEntryKey::compare):
200         (WebCore::KeyPrefix::ExistsEntryKey::userKey):
201         (WebCore::KeyPrefix::IndexDataKey::IndexDataKey):
202         (WebCore::KeyPrefix::IndexDataKey::decode):
203         (WebCore::KeyPrefix::IndexDataKey::encode):
204         (WebCore::KeyPrefix::IndexDataKey::encodeMaxKey):
205         (WebCore::KeyPrefix::IndexDataKey::compare):
206         (WebCore::KeyPrefix::IndexDataKey::databaseId):
207         (WebCore::KeyPrefix::IndexDataKey::objectStoreId):
208         (WebCore::KeyPrefix::IndexDataKey::indexId):
209         (WebCore::KeyPrefix::IndexDataKey::userKey):
210         (WebCore::KeyPrefix::realCompare):
211         (WebCore::KeyPrefix::compareKeys):
212         (WebCore::KeyPrefix::compareIndexKeys):
213         (WebCore::KeyPrefix::Comparator::compare):
214         (WebCore::KeyPrefix::Comparator::name):
215         (WebCore::setUpMetadata):
216         (WebCore::IDBLevelDBBackingStore::IDBLevelDBBackingStore):
217         (WebCore::IDBLevelDBBackingStore::open):
218         (WebCore::IDBLevelDBBackingStore::extractIDBDatabaseMetaData):
219         (WebCore::getNewDatabaseId):
220         (WebCore::IDBLevelDBBackingStore::setIDBDatabaseMetaData):
221         (WebCore::IDBLevelDBBackingStore::getObjectStores):
222         (WebCore::getNewObjectStoreId):
223         (WebCore::IDBLevelDBBackingStore::createObjectStore):
224         (WebCore::deleteRange):
225         (WebCore::IDBLevelDBBackingStore::deleteObjectStore):
226         (WebCore::IDBLevelDBBackingStore::getObjectStoreRecord):
227         (WebCore::getNewVersionNumber):
228         (WebCore::IDBLevelDBBackingStore::putObjectStoreRecord):
229         (WebCore::IDBLevelDBBackingStore::clearObjectStore):
230         (WebCore::IDBLevelDBBackingStore::createInvalidRecordIdentifier):
231         (WebCore::IDBLevelDBBackingStore::deleteObjectStoreRecord):
232         (WebCore::IDBLevelDBBackingStore::nextAutoIncrementNumber):
233         (WebCore::IDBLevelDBBackingStore::keyExistsInObjectStore):
234         (WebCore::IDBLevelDBBackingStore::forEachObjectStoreRecord):
235         (WebCore::IDBLevelDBBackingStore::getIndexes):
236         (WebCore::getNewIndexId):
237         (WebCore::IDBLevelDBBackingStore::createIndex):
238         (WebCore::IDBLevelDBBackingStore::deleteIndex):
239         (WebCore::IDBLevelDBBackingStore::putIndexDataForRecord):
240         (WebCore::findGreatestKeyLessThan):
241         (WebCore::IDBLevelDBBackingStore::deleteIndexDataForRecord):
242         (WebCore::IDBLevelDBBackingStore::getObjectViaIndex):
243         (WebCore::versionExists):
244         (WebCore::IDBLevelDBBackingStore::getPrimaryKeyViaIndex):
245         (WebCore::IDBLevelDBBackingStore::keyExistsInIndex):
246         (WebCore::findLastIndexKeyEqualTo):
247         (WebCore::IDBLevelDBBackingStore::openObjectStoreCursor):
248         (WebCore::IDBLevelDBBackingStore::openIndexKeyCursor):
249         (WebCore::IDBLevelDBBackingStore::openIndexCursor):
250         (WebCore::IDBLevelDBBackingStore::createTransaction):
251         * storage/IDBLevelDBBackingStore.h:
252
253 2011-04-18  Pavel Feldman  <pfeldman@google.com>
254
255         Reviewed by Yury Semikhatsky.
256
257         Web Inspector: add test for CSS-resource binding.
258         https://bugs.webkit.org/show_bug.cgi?id=58786
259
260         Test: inspector/styles/styles-history.html
261
262         * inspector/InspectorCSSAgent.cpp:
263         (WebCore::InspectorCSSAgent::setPropertyText):
264         (WebCore::InspectorCSSAgent::toggleProperty):
265         * inspector/InspectorStyleSheet.cpp:
266         (WebCore::InspectorStyle::setPropertyText):
267         (WebCore::InspectorStyle::toggleProperty):
268         (WebCore::InspectorStyleSheet::setPropertyText):
269         (WebCore::InspectorStyleSheet::toggleProperty):
270         * inspector/InspectorStyleSheet.h:
271         * inspector/front-end/CSSStyleModel.js:
272         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged.if):
273         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged.mycallback):
274         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged):
275         (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
276         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
277         (WebInspector.CSSProperty.prototype.setText.callback):
278         (WebInspector.CSSProperty.prototype.setText):
279
280 2011-04-18  Sheriff Bot  <webkit.review.bot@gmail.com>
281
282         Unreviewed, rolling out r83996.
283         http://trac.webkit.org/changeset/83996
284         https://bugs.webkit.org/show_bug.cgi?id=58790
285
286         layout test editing/selection/move-by-word-visually.html is
287         failing (Requested by jknotten on #webkit).
288
289         * editing/visible_units.cpp:
290         (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality):
291         (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality):
292         (WebCore::previousWordBreakInBox):
293         (WebCore::leftWordBoundary):
294         (WebCore::rightWordBoundary):
295         (WebCore::leftWordPosition):
296         (WebCore::rightWordPosition):
297
298 2011-04-18  Adam Bergkvist  <adam.bergkvist@ericsson.com>
299
300         Reviewed by Daniel Bates.
301
302         Modify make_names.pl to not include conditional includes unconditionally
303         https://bugs.webkit.org/show_bug.cgi?id=53672
304
305         Fixed conditional includes being unconditionally included.
306
307         No new tests (no change in functionality)
308
309         * dom/make_names.pl:
310             - Modified printJSElementIncludes() to only print unconditional element includes.
311             - Modified printElementIncludes() to only print unconditional element includes.
312             - Added printConditionalElementIncludes() which takes care of printing conditional element includes.
313
314 2011-04-18  Sheriff Bot  <webkit.review.bot@gmail.com>
315
316         Unreviewed, rolling out r83803.
317         http://trac.webkit.org/changeset/83803
318         https://bugs.webkit.org/show_bug.cgi?id=58782
319
320         Caused focus rings to appear in youtube videos (Requested by
321         inferno-sec on #webkit).
322
323         * rendering/RenderWidget.cpp:
324         (WebCore::RenderWidget::paint):
325
326 2011-04-18  Alexander Pavlov  <apavlov@chromium.org>
327
328         Reviewed by Pavel Feldman.
329
330         Web Inspector: Need a workaround for bug 58422
331         https://bugs.webkit.org/show_bug.cgi?id=58780
332
333         Instead of the A:before content, the link text is displayed as the A tag content.
334
335         * inspector/front-end/StylesSidebarPane.js:
336         (WebInspector.StylePropertiesSection.linkifyUncopyable):
337         (WebInspector.StylePropertiesSection):
338         * inspector/front-end/inspector.css:
339
340 2011-04-18  Carlos Garcia Campos  <cgarcia@igalia.com>
341
342         Unreviewed. Fix WebKit2 GTK build after 82465.
343
344         * platform/gtk/LocalizedStringsGtk.cpp:
345         (WebCore::localizedString):
346
347 2011-04-18  Andrey Adaikin  <aandrey@google.com>
348
349         Reviewed by Yury Semikhatsky.
350
351         Web Inspector: TAB should not move focus from the text editor while live editing
352         https://bugs.webkit.org/show_bug.cgi?id=58537
353
354         * inspector/front-end/TextViewer.js:
355         (WebInspector.TextViewer.prototype._registerShortcuts):
356         (WebInspector.TextViewer.prototype._cancelEditing):
357         (WebInspector.TextEditorMainPanel.prototype.handleUndoRedo):
358         (WebInspector.TextEditorMainPanel.prototype.handleTabKeyPress):
359         (WebInspector.TextEditorMainPanel.prototype._setCaretLocation):
360         (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
361         (WebInspector.TextEditorMainPanel.prototype._setText):
362
363 2011-04-18  Alexander Pavlov  <apavlov@chromium.org>
364
365         Reviewed by Yury Semikhatsky.
366
367         Web Inspector: Incorrect content area dimensions in Metrics pane for box-sizing: border-box
368         https://bugs.webkit.org/show_bug.cgi?id=58551
369
370         Test: inspector/styles/metrics-box-sizing.html
371
372         * inspector/front-end/MetricsSidebarPane.js:
373         (WebInspector.MetricsSidebarPane.prototype._getPropertyValueAsPx):
374         (WebInspector.MetricsSidebarPane.prototype._getBox):
375         (WebInspector.MetricsSidebarPane.prototype._update.getContentAreaWidthPx):
376         (WebInspector.MetricsSidebarPane.prototype._update.getContentAreaHeightPx):
377         (WebInspector.MetricsSidebarPane.prototype._update):
378         (WebInspector.MetricsSidebarPane.prototype.startEditing):
379         (WebInspector.MetricsSidebarPane.prototype.editingCommitted.setEnabledValueCallback):
380         (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
381
382 2011-04-18  Ilya Tikhonovsky  <loislo@chromium.org>
383
384         Reviewed by Yury Semikhatsky.
385
386         Web Inspector: Database agent stops to propagate it's events after navigation.
387         https://bugs.webkit.org/show_bug.cgi?id=58776
388
389         * inspector/InspectorAgent.cpp:
390         (WebCore::InspectorAgent::InspectorAgent):
391         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
392         * inspector/InspectorDatabaseAgent.cpp:
393         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
394         (WebCore::InspectorDatabaseAgent::clearFrontend):
395         (WebCore::InspectorDatabaseAgent::enable):
396         (WebCore::InspectorDatabaseAgent::disable):
397         (WebCore::InspectorDatabaseAgent::restore):
398         * inspector/InspectorDatabaseAgent.h:
399         (WebCore::InspectorDatabaseAgent::create):
400
401 2011-04-18  Sheriff Bot  <webkit.review.bot@gmail.com>
402
403         Unreviewed, rolling out r83968.
404         http://trac.webkit.org/changeset/83968
405         https://bugs.webkit.org/show_bug.cgi?id=58769
406
407         Breaks Backspace in Web Inspector console (Requested by
408         apavlov on #webkit).
409
410         * inspector/front-end/inspector.js:
411         (WebInspector.documentKeyDown):
412
413 2011-04-15  Yury Semikhatsky  <yurys@chromium.org>
414
415         Reviewed by Pavel Feldman.
416
417         Web Inspector: introduce WorkerInspectorController
418         https://bugs.webkit.org/show_bug.cgi?id=58668
419
420         WorkerInspectorController will be owned by WorkerContext and will hold all inspector
421         agents and will also manage connection to the inspector frontend.
422
423         * CMakeLists.txt:
424         * GNUmakefile.list.am:
425         * WebCore.gypi:
426         * WebCore.pro:
427         * WebCore.vcproj/WebCore.vcproj:
428         * WebCore.xcodeproj/project.pbxproj:
429         * bindings/js/ScriptState.cpp:
430         (WebCore::scriptStateFromWorkerContext):
431         * bindings/js/ScriptState.h:
432         * bindings/v8/ScriptState.cpp:
433         (WebCore::scriptStateFromWorkerContext):
434         * bindings/v8/ScriptState.h:
435         * inspector/InspectorState.cpp:
436         (WebCore::InspectorState::updateCookie):
437         * inspector/WorkerInspectorController.cpp: Added.
438         (WebCore::WorkerInspectorController::WorkerInspectorController):
439         (WebCore::WorkerInspectorController::~WorkerInspectorController):
440         (WebCore::WorkerInspectorController::connectFrontend):
441         (WebCore::WorkerInspectorController::disconnectFrontend):
442         (WebCore::WorkerInspectorController::dispatchMessageFromFrontend):
443         * inspector/WorkerInspectorController.h: Copied from Source/WebCore/bindings/js/ScriptState.h.
444         * workers/WorkerContext.cpp:
445         (WebCore::WorkerContext::WorkerContext):
446         * workers/WorkerContext.h:
447         (WebCore::WorkerContext::workerInspectorController):
448
449 2011-04-17  Thierry Reding  <thierry.reding@avionic-design.de>
450
451         Reviewed by Adam Barth.
452
453         Fix build with GCC 4.6.
454
455         * dom/make_names.pl: Execute preprocessor without the -P option. The
456         preprocessor in GCC 4.6 eats empty lines, effectively breaking the
457         parsing performed by this script. Dropping the -P option when invoking
458         the preprocessor keeps the empty lines but as a side-effect also adds
459         additional linemarkers.
460
461         From the cpp manpage:
462
463           -P  Inhibit generation of linemarkers in the output from the
464               preprocessor. This might be useful when running the preprocessor
465               on something that is not C code, and will be sent to a program
466               which might be confused by the linemarkers.
467
468         The linemarkers are not problematic, however, because the script
469         properly handles them by ignoring all lines starting with a #.
470
471 2011-04-17  David Kilzer  <ddkilzer@apple.com>
472
473         <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
474         <rdar://problem/9268729>
475
476         Reviewed by Dan Bernstein.
477
478         This replaces support for the WebKitEnableHTTPPipelining user
479         default with methods on the WebCore::ResourceRequest class in
480         WebCore, the WebView class in WebKit1, and the WebContext class
481         in WebKit2.  It also removes support for the
482         WebKitForceHTTPPipeliningPriorityHigh user default which was not
483         needed.
484
485         Run these commands if you set the user defaults previously,
486         replacing "BUNDLE.ID" with your application's bundle ID:
487
488             defaults delete BUNDLE.ID WebKitEnableHTTPPipelining
489             defaults delete BUNDLE.ID WebKitForceHTTPPipeliningPriorityHigh
490
491         * WebCore.exp.in: Export ResourceRequest::httpPipeliningEnabled()
492         and ResourceRequest::setHTTPPipeliningEnabled().
493
494         * platform/network/ResourceRequestBase.h:
495         (WebCore::isHTTPPipeliningEnabled): Removed declaration.
496         (WebCore::shouldForceHTTPPipeliningPriorityHigh): Removed declaration.
497
498         * platform/network/cf/ResourceRequest.h:
499         (WebCore::ResourceRequest::httpPipeliningEnabled): Added declaration.
500         (WebCore::ResourceRequest::setHTTPPipeliningEnabled): Added declaration.
501         (WebCore::ResourceRequest::s_httpPipeliningEnabled): Added declaration.
502
503         * platform/network/cf/ResourceRequestCFNet.cpp:
504         (WebCore::ResourceRequest::s_httpPipeliningEnabled): Added.
505         (WebCore::ResourceRequest::httpPipeliningEnabled): Added.
506         (WebCore::ResourceRequest::setHTTPPipeliningEnabled): Added.
507         (WebCore::initializeMaximumHTTPConnectionCountPerHost): Switched
508         to use ResourceRequest::httpPipeliningEnabled().
509         (WebCore::readBooleanPreference): Removed.
510         (WebCore::isHTTPPipeliningEnabled): Removed.
511         (WebCore::shouldForceHTTPPipeliningPriorityHigh): Removed.
512
513         * platform/network/mac/ResourceRequestMac.mm:
514         (WebCore::ResourceRequest::doUpdateResourceRequest): Switched to
515         use ResourceRequest::httpPipeliningEnabled().  Removed check for
516         shouldForceHTTPPipeliningPriorityHigh().
517         (WebCore::ResourceRequest::doUpdatePlatformRequest): Ditto.
518
519 2011-04-17  Dan Bernstein  <mitz@apple.com>
520
521         Reviewed by Maciej Stachowiak.
522
523         REGRESSION (r84096): <br> moved to the right in fast/block/float/032.html
524         https://bugs.webkit.org/show_bug.cgi?id=58736
525
526         * rendering/RenderBlockLineLayout.cpp:
527         (WebCore::RenderBlock::appendFloatingObjectToLastLine): It is enough to extend the float so
528         that it touches the bottom of the previous line, since RenderBlock::markLinesDirtyInBlockRange()
529         always dirties the line after the last one in the range.
530
531 2011-04-17  Patrick Gansterer  <paroga@webkit.org>
532
533         Unreviewed. Add missing include to fix build without precompiled header.
534
535         * rendering/RenderMediaControls.cpp:
536
537 2011-04-17  Daniel Bates  <dbates@webkit.org>
538
539         Attempt to fix the Chromium build after changeset 84110 <http://trac.webkit.org/changeset/84110>
540         (https://bugs.webkit.org/show_bug.cgi?id=57842).
541
542         * loader/cache/CachedResourceLoader.cpp:
543         (WebCore::CachedResourceLoader::canRequest): Rename CachedResource::LinkPrefetch to CachedResource::LinkResource.
544
545 2011-04-17  Patrick Gansterer  <paroga@webkit.org>
546
547         Reviewed by Eric Seidel.
548
549         Remove pthread dependency of GCController
550         https://bugs.webkit.org/show_bug.cgi?id=54833
551
552         * bindings/js/GCController.cpp:
553         (WebCore::GCController::garbageCollectOnAlternateThreadForDebugging):
554
555 2011-04-17  Gavin Peters  <gavinp@chromium.org>
556
557         Reviewed by Adam Barth.
558
559         Add support for link rel type "subresource"
560         https://bugs.webkit.org/show_bug.cgi?id=57842
561
562         Link rel=prefetch is great for cache warming for resources on
563         subsequent pages, but it launches requests at too low a priority
564         to use for subresources of the current page.
565
566         Particularly after https://bugs.webkit.org/show_bug.cgi?id=51940
567         is implemented, a rel type that launches requests at an higher
568         priority is going to be very useful.  This rel type is in the
569         HTML5 spec at http://wiki.whatwg.org/wiki/RelExtensions .  An
570         expected use case will be for servers to provide subresource hints
571         in link headers, which will allow servers to help make the web
572         faster.
573
574         This feature continues my implementation of the Link header, which
575         we've talked about in WebKit-dev in
576         https://lists.webkit.org/pipermail/webkit-dev/2011-February/016034.html.
577
578         Tests: fast/dom/HTMLLinkElement/subresource.html
579                http/tests/misc/link-rel-prefetch-and-subresource.html
580
581         * html/HTMLLinkElement.cpp:
582         (WebCore::HTMLLinkElement::~HTMLLinkElement):
583         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
584         (WebCore::HTMLLinkElement::process):
585         (WebCore::HTMLLinkElement::onloadTimerFired):
586         (WebCore::HTMLLinkElement::notifyFinished):
587         * html/HTMLLinkElement.h:
588         (WebCore::HTMLLinkElement::RelAttribute::RelAttribute):
589         * loader/cache/CachedResource.cpp:
590         (WebCore::defaultPriorityForResourceType):
591         * loader/cache/CachedResource.h:
592         (WebCore::CachedResource::isLinkResource):
593         * loader/cache/CachedResourceLoader.cpp:
594         (WebCore::createResource):
595         (WebCore::CachedResourceLoader::requestLinkResource):
596         (WebCore::CachedResourceLoader::canRequest):
597         (WebCore::CachedResourceLoader::incrementRequestCount):
598         (WebCore::CachedResourceLoader::decrementRequestCount):
599         * loader/cache/CachedResourceLoader.h:
600         * loader/cache/CachedResourceRequest.cpp:
601         (WebCore::cachedResourceTypeToTargetType):
602         (WebCore::CachedResourceRequest::load):
603
604 2011-04-17  Dan Bernstein  <mitz@apple.com>
605
606         Reviewed by Joseph Pecoraro.
607
608         <rdar://problem/9296211> REGRESSION (r83514): Failing fast/repaint/trailing-floats-root-line-box-overflow.html
609         https://bugs.webkit.org/show_bug.cgi?id=58745
610
611         This is really a regression from r82611, but it went unnoticed due to a mistake in r73385,
612         which was fixed in r83514.
613
614         * rendering/RenderBlockLineLayout.cpp:
615         (WebCore::RenderBlock::layoutInlineChildren): Actually assign the bottom visual overflow to the
616         variable so named, not the top layout overflow.
617
618 2011-04-17  Geoffrey Garen  <ggaren@apple.com>
619
620         Strongly suggested, but not necessarily reviewed, by
621         Sam Weinig and Maciej Stachowiak.
622
623         Renamed DOMObject* => JSDOMWrapper*.
624
625         * bindings/js/DOMWrapperWorld.cpp:
626         (WebCore::isObservable):
627         (WebCore::DOMObjectHandleOwner::finalize):
628         * bindings/js/DOMWrapperWorld.h:
629         * bindings/js/JSArrayBufferViewHelper.h:
630         (WebCore::toJSArrayBufferView):
631         * bindings/js/JSCSSRuleCustom.cpp:
632         (WebCore::toJS):
633         * bindings/js/JSCSSValueCustom.cpp:
634         (WebCore::toJS):
635         * bindings/js/JSDOMBinding.h:
636         (WebCore::JSDOMWrapperWithGlobalPointer::globalObject):
637         (WebCore::JSDOMWrapperWithGlobalPointer::JSDOMWrapperWithGlobalPointer):
638         (WebCore::DOMConstructorObject::DOMConstructorObject):
639         (WebCore::createDOMObjectWrapper):
640         (WebCore::getDOMObjectWrapper):
641         * bindings/js/JSDOMWrapper.cpp:
642         (WebCore::JSDOMWrapper::~JSDOMWrapper):
643         * bindings/js/JSDOMWrapper.h:
644         (WebCore::JSDOMWrapper::JSDOMWrapper):
645         * bindings/js/JSDocumentCustom.cpp:
646         (WebCore::JSDocument::location):
647         (WebCore::toJS):
648         * bindings/js/JSEventCustom.cpp:
649         (WebCore::toJS):
650         * bindings/js/JSHTMLCollectionCustom.cpp:
651         (WebCore::toJS):
652         * bindings/js/JSImageDataCustom.cpp:
653         (WebCore::toJS):
654         * bindings/js/JSSVGPathSegCustom.cpp:
655         (WebCore::toJS):
656         * bindings/js/JSStyleSheetCustom.cpp:
657         (WebCore::toJS):
658         * bindings/js/ScriptWrappable.h:
659         (WebCore::ScriptWrappable::wrapper):
660         (WebCore::ScriptWrappable::setWrapper):
661         * bindings/scripts/CodeGeneratorJS.pm:
662
663 2011-04-17  Patrick Gansterer  <paroga@webkit.org>
664
665         Reviewed by Adam Barth.
666
667         Rename PLATFORM(CA) to USE(CA)
668         https://bugs.webkit.org/show_bug.cgi?id=58742
669
670         * config.h:
671         * platform/graphics/ca/TransformationMatrixCA.cpp:
672         * platform/graphics/cg/ImageBufferDataCG.h:
673         * platform/graphics/transforms/TransformationMatrix.h:
674         * platform/mac/WebCoreSystemInterface.h:
675         * rendering/RenderLayerBacking.cpp:
676         (WebCore::RenderLayerBacking::containsPaintedContent):
677         * rendering/RenderLayerCompositor.cpp:
678         (WebCore::RenderLayerCompositor::updateBacking):
679
680 2011-04-17  Young Han Lee  <joybro@company100.net>
681
682         Reviewed by Benjamin Poulain.
683
684         [Texmap] [Qt] Improve readability by using gInVertexAttributeIndex instead of 0.
685         https://bugs.webkit.org/show_bug.cgi?id=58739
686
687         gInVertexAttributeIndex is a constant variable to point the location of
688         "InVertex" attribute of the vertex shaders.
689
690         * platform/graphics/opengl/TextureMapperGL.cpp:
691         (WebCore::TextureMapperGL::drawTexture):
692         (WebCore::TextureMapperGL::paintToTarget):
693
694 2011-04-17  Kinuko Yasuda  <kinuko@chromium.org>
695
696         Not reviewed: Fix copyright (I had submitted the file with wrong
697         copyright line).
698
699         * storage/StorageInfo.idl:
700
701 2011-04-17  Patrick Gansterer  <paroga@webkit.org>
702
703         Reviewed by Adam Barth.
704
705         Rename PLATFORM(CG) to USE(CG)
706         https://bugs.webkit.org/show_bug.cgi?id=58729
707
708         * config.h:
709         * html/HTMLCanvasElement.cpp:
710         (WebCore::HTMLCanvasElement::toDataURL):
711         * html/HTMLCanvasElement.h:
712         * html/canvas/CanvasRenderingContext2D.cpp:
713         (WebCore::CanvasRenderingContext2D::setShadow):
714         (WebCore::CanvasRenderingContext2D::drawTextInternal):
715         * html/canvas/CanvasRenderingContext2D.h:
716         * html/canvas/CanvasStyle.cpp:
717         (WebCore::CanvasStyle::applyStrokeColor):
718         (WebCore::CanvasStyle::applyFillColor):
719         * loader/cache/CachedFont.cpp:
720         * loader/cache/CachedImage.cpp:
721         (WebCore::CachedImage::createImage):
722         * platform/FloatConversion.h:
723         * platform/MIMETypeRegistry.cpp:
724         (WebCore::initializeSupportedImageMIMETypes):
725         (WebCore::initializeSupportedImageMIMETypesForEncoding):
726         * platform/graphics/BitmapImage.h:
727         * platform/graphics/Color.h:
728         * platform/graphics/DashArray.h:
729         * platform/graphics/FloatPoint.h:
730         * platform/graphics/FloatRect.h:
731         * platform/graphics/FloatSize.h:
732         * platform/graphics/FontPlatformData.h:
733         (WebCore::FontPlatformData::FontPlatformData):
734         (WebCore::FontPlatformData::hash):
735         * platform/graphics/GlyphBuffer.h:
736         (WebCore::GlyphBuffer::advanceAt):
737         (WebCore::GlyphBuffer::add):
738         (WebCore::GlyphBuffer::expandLastAdvance):
739         * platform/graphics/Gradient.h:
740         * platform/graphics/GraphicsContext.cpp:
741         (WebCore::GraphicsContext::setLegacyShadow):
742         * platform/graphics/GraphicsContext.h:
743         (WebCore::GraphicsContextState::GraphicsContextState):
744         * platform/graphics/GraphicsContext3D.h:
745         * platform/graphics/Image.cpp:
746         * platform/graphics/Image.h:
747         * platform/graphics/ImageBuffer.cpp:
748         * platform/graphics/ImageBuffer.h:
749         * platform/graphics/ImageBufferData.h:
750         * platform/graphics/ImageSource.h:
751         * platform/graphics/IntPoint.h:
752         * platform/graphics/IntRect.h:
753         * platform/graphics/IntSize.h:
754         * platform/graphics/Path.h:
755         * platform/graphics/Pattern.h:
756         * platform/graphics/SimpleFontData.h:
757         * platform/graphics/cg/ColorCG.cpp:
758         * platform/graphics/cg/FloatPointCG.cpp:
759         * platform/graphics/cg/FloatRectCG.cpp:
760         * platform/graphics/cg/FloatSizeCG.cpp:
761         * platform/graphics/cg/ImageCG.cpp:
762         * platform/graphics/cg/ImageSourceCG.cpp:
763         * platform/graphics/cg/IntPointCG.cpp:
764         * platform/graphics/cg/IntRectCG.cpp:
765         * platform/graphics/cg/IntSizeCG.cpp:
766         * platform/graphics/cg/PDFDocumentImage.cpp:
767         * platform/graphics/cg/PDFDocumentImage.h:
768         * platform/graphics/cg/PathCG.cpp:
769         * platform/graphics/cg/TransformationMatrixCG.cpp:
770         * platform/graphics/chromium/ImageLayerChromium.h:
771         * platform/graphics/chromium/LayerRendererChromium.cpp:
772         * platform/graphics/chromium/LayerRendererChromium.h:
773         * platform/graphics/chromium/PlatformCanvas.cpp:
774         (WebCore::PlatformCanvas::resize):
775         (WebCore::PlatformCanvas::AutoLocker::AutoLocker):
776         (WebCore::PlatformCanvas::Painter::Painter):
777         * platform/graphics/chromium/PlatformCanvas.h:
778         * platform/graphics/chromium/PlatformImage.cpp:
779         (WebCore::PlatformImage::updateFromImage):
780         * platform/graphics/opentype/OpenTypeUtilities.cpp:
781         * platform/graphics/transforms/AffineTransform.h:
782         * platform/graphics/transforms/TransformationMatrix.h:
783         * platform/graphics/win/DIBPixelData.h:
784         * platform/graphics/win/FontCacheWin.cpp:
785         (WebCore::FontCache::platformInit):
786         (WebCore::createGDIFont):
787         (WebCore::FontCache::createFontPlatformData):
788         * platform/graphics/win/FontPlatformDataWin.cpp:
789         (WebCore::FontPlatformData::FontPlatformData):
790         * platform/graphics/win/GraphicsContextWin.cpp:
791         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
792         * platform/graphics/win/SimpleFontDataWin.cpp:
793         * platform/image-decoders/ImageDecoder.cpp:
794         * platform/image-decoders/ImageDecoder.h:
795         * rendering/RenderObject.h:
796         * rendering/svg/RenderSVGResourceFilter.cpp:
797         (WebCore::RenderSVGResourceFilter::postApplyResource):
798         * rendering/svg/RenderSVGResourceGradient.cpp:
799         (WebCore::RenderSVGResourceGradient::RenderSVGResourceGradient):
800         (WebCore::RenderSVGResourceGradient::applyResource):
801         * rendering/svg/RenderSVGResourceGradient.h:
802         * rendering/svg/RenderSVGResourceMasker.cpp:
803         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
804         * rendering/svg/RenderSVGResourcePattern.cpp:
805         (WebCore::RenderSVGResourcePattern::applyResource):
806
807 2011-04-16  Adam Barth  <abarth@webkit.org>
808
809         Reviewed by Sam Weinig.
810
811         about:blank documents in new tabs can XHR anywhere
812         https://bugs.webkit.org/show_bug.cgi?id=58712
813
814         Empty security origins have supposed to be low-privilege, we should
815         mark them as having a unique origin.
816
817         * manual-tests/about-blank-xhr.html: Added.
818         * page/SecurityOrigin.cpp:
819         (WebCore::SecurityOrigin::SecurityOrigin):
820         * page/SecurityOrigin.h:
821
822 2011-04-16  Dan Bernstein  <mitz@apple.com>
823
824         Reviewed by Simon Fraser.
825
826         <rdar://problem/9190108> Crash when hiding a float
827
828         Test: fast/block/float/overhanging-tall-block.html
829
830         * rendering/RenderBlock.cpp:
831         (WebCore::RenderBlock::addOverhangingFloats): Moved the call to childLogicalTop() out of the loop.
832         Capped the logical bottom so that we get the correct maximum.
833         * rendering/RenderBlock.h: Decleared appendFloatingObjectToLastLine().
834         * rendering/RenderBlockLineLayout.cpp:
835         (WebCore::RenderBlock::appendFloatingObjectToLastLine): Added. Ensures correct bookkeeping by
836         extending the float if needed so that it touches the line.
837         (WebCore::RenderBlock::layoutInlineChildren): Changed to call appendFloatingObjectToLastLine().
838         (WebCore::RenderBlock::checkFloatsInCleanLine): Capped the float height so the we mark the right
839         range of lines as dirty.
840         * rendering/RootInlineBox.h:
841         (WebCore::RootInlineBox::appendFloat): Replaced the floats() accessor with this function, which
842         allows the creation of the vector to be combined with appending the first float.
843
844 2011-04-16  Sam Weinig  <sam@webkit.org>
845
846         Reviewed by Simon Fraser.
847
848         Pages in the PageCache don't have the correct visited link coloring after being restored
849         https://bugs.webkit.org/show_bug.cgi?id=58721
850
851         * WebCore.exp.in:
852         Add export of markPagesForVistedLinkStyleRecalc for use by WebKit2.
853
854         * history/CachedPage.cpp:
855         (WebCore::CachedPage::CachedPage):
856         (WebCore::CachedPage::restore):
857         (WebCore::CachedPage::clear):
858         * history/CachedPage.h:
859         (WebCore::CachedPage::markForVistedLinkStyleRecalc):
860         Add bit, set by calling markForVistedLinkStyleRecalc, which forces a visited link
861         style recalc when being restored.
862
863         * history/PageCache.h:
864         * history/PageCache.cpp:
865         (WebCore::PageCache::markPagesForVistedLinkStyleRecalc):
866         Mark all pages in the page cache as requiring visited link style recalc.
867
868         * page/PageGroup.cpp:
869         (WebCore::PageGroup::addVisitedLink):
870         (WebCore::PageGroup::removeVisitedLinks):
871         (WebCore::PageGroup::removeAllVisitedLinks):
872         Set dirty bit when changing any visited link information.
873         
874
875 2011-04-16  Leo Yang  <leoyang.webkit@gmail.com>
876
877         Reviewed by Nikolas Zimmermann.
878
879         ASSERT failure when svg <use> element changes href
880         https://bugs.webkit.org/show_bug.cgi?id=58726
881
882         m_resourceId was not empty after the pending resource
883         becomes available. This will trigger the assertion at
884         line 509 of SVGUseElement.cpp when the <use> element's
885         href becomes empty or invalid.
886
887         This patch makes m_resourceId be empty after the pending
888         resource becomes available to avoid assertion failure.
889
890         Test: svg/custom/use-crash-when-href-change.svg
891
892         * svg/SVGUseElement.cpp:
893         (WebCore::SVGUseElement::buildPendingResource):
894
895 2011-04-16  Patrick Gansterer  <paroga@webkit.org>
896
897         Reviewed by Eric Seidel.
898
899         Rename PLATFORM(CAIRO) to USE(CAIRO)
900         https://bugs.webkit.org/show_bug.cgi?id=55192
901
902         * CMakeListsEfl.txt:
903         * config.h:
904         * platform/MIMETypeRegistry.cpp:
905         (WebCore::initializeSupportedImageMIMETypesForEncoding):
906         * platform/graphics/ContextShadow.h:
907         * platform/graphics/DashArray.h:
908         * platform/graphics/FloatRect.h:
909         * platform/graphics/FontPlatformData.h:
910         (WebCore::FontPlatformData::FontPlatformData):
911         (WebCore::FontPlatformData::hash):
912         (WebCore::FontPlatformData::isHashTableDeletedValue):
913         * platform/graphics/GlyphBuffer.h:
914         (WebCore::GlyphBuffer::glyphAt):
915         (WebCore::GlyphBuffer::add):
916         * platform/graphics/Gradient.cpp:
917         * platform/graphics/Gradient.h:
918         * platform/graphics/GraphicsContext.cpp:
919         * platform/graphics/GraphicsContext.h:
920         (WebCore::GraphicsContextState::GraphicsContextState):
921         * platform/graphics/GraphicsContext3D.h:
922         * platform/graphics/ImageBufferData.h:
923         * platform/graphics/ImageSource.h:
924         * platform/graphics/Path.h:
925         * platform/graphics/Pattern.h:
926         * platform/graphics/SimpleFontData.h:
927         * platform/graphics/cairo/DrawErrorUnderline.h:
928         * platform/graphics/cairo/GraphicsContextCairo.cpp:
929         * platform/graphics/cairo/ImageCairo.cpp:
930         * platform/graphics/gstreamer/ImageGStreamer.h:
931         * platform/graphics/transforms/AffineTransform.h:
932         * platform/graphics/transforms/TransformationMatrix.h:
933         * platform/graphics/win/FontCacheWin.cpp:
934         (WebCore::createGDIFont):
935         (WebCore::FontCache::createFontPlatformData):
936         * platform/graphics/win/FontPlatformDataWin.cpp:
937         (WebCore::FontPlatformData::FontPlatformData):
938         * platform/graphics/win/GraphicsContextWin.cpp:
939         * plugins/win/PluginViewWin.cpp:
940         (WebCore::PluginView::paintWindowedPluginIntoContext):
941         * rendering/RenderObject.h:
942
943 2011-04-16  Patrick Gansterer  <paroga@webkit.org>
944
945         Unreviewed WinCE build fix for r84033.
946
947         * platform/win/LocalizedStringsWin.cpp:
948         (WebCore::localizedString):
949
950 2011-04-16  Abhishek Arya  <inferno@chromium.org>
951
952         Reviewed by Nikolas Zimmermann.
953
954         Only allow inline child for SVG text since we cannot
955         handle block childs.
956         https://bugs.webkit.org/show_bug.cgi?id=58678
957
958         Test: svg/text/text-block-child-crash.xhtml
959
960         * rendering/svg/RenderSVGText.cpp:
961         (WebCore::RenderSVGText::isChildAllowed):
962         * rendering/svg/RenderSVGText.h:
963
964 2011-04-15  Ilya Tikhonovsky  <loislo@chromium.org>
965
966         Reviewed by Pavel Feldman.
967
968         Web Inspector: The list of Database entries is empty if the page opens a database just before Web Inspector.
969         https://bugs.webkit.org/show_bug.cgi?id=57833
970
971         * inspector/Inspector.json:
972         * inspector/InspectorDatabaseAgent.cpp:
973         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
974         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
975         (WebCore::InspectorDatabaseAgent::setFrontend):
976         (WebCore::InspectorDatabaseAgent::clearFrontend):
977         (WebCore::InspectorDatabaseAgent::enable):
978         (WebCore::InspectorDatabaseAgent::disable):
979         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
980         (WebCore::InspectorDatabaseAgent::executeSQL):
981         * inspector/InspectorDatabaseAgent.h:
982         * inspector/front-end/inspector.js:
983
984 2011-04-15  Adam Barth  <abarth@webkit.org>
985
986         Reviewed by Eric Seidel.
987
988         CSP media-src is missing
989         https://bugs.webkit.org/show_bug.cgi?id=58642
990
991         Yay HTMLMediaElement for having the exact hook we need!
992
993         Tests: http/tests/security/contentSecurityPolicy/media-src-allowed.html
994                http/tests/security/contentSecurityPolicy/media-src-blocked.html
995
996         * html/HTMLMediaElement.cpp:
997         (WebCore::HTMLMediaElement::isSafeToLoadURL):
998             - Although it's tempting to add this branch to the previous
999               if-block, that results in the wrong error message being logged to
1000               the console (covered by the "blocked" test).
1001         * page/ContentSecurityPolicy.cpp:
1002         (WebCore::ContentSecurityPolicy::allowMediaFromSource):
1003         (WebCore::ContentSecurityPolicy::addDirective):
1004         * page/ContentSecurityPolicy.h:
1005             - These changes are routine.
1006
1007 2011-04-15  Adam Barth  <abarth@webkit.org>
1008
1009         Reviewed by Eric Seidel.
1010
1011         CSP should block string arguments to setTimeout and setInterval unless options eval-script
1012         https://bugs.webkit.org/show_bug.cgi?id=58610
1013
1014         It's somewhat sadness that the JSC and V8 code for setTimeout and
1015         setInterval are so different.  I struggled for a while with how to
1016         handle the worker case, but I decided to punt on it for now.
1017
1018         Tests: http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html
1019                http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html
1020                http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html
1021                http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html
1022
1023         * bindings/js/JSDOMWindowCustom.cpp:
1024         (WebCore::JSDOMWindow::setTimeout):
1025         (WebCore::JSDOMWindow::setInterval):
1026         * bindings/js/JSWorkerContextCustom.cpp:
1027         (WebCore::JSWorkerContext::setTimeout):
1028         (WebCore::JSWorkerContext::setInterval):
1029         * bindings/js/ScheduledAction.cpp:
1030         (WebCore::ScheduledAction::create):
1031         * bindings/js/ScheduledAction.h:
1032         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1033         (WebCore::WindowSetTimeoutImpl):
1034         * page/ContentSecurityPolicy.cpp:
1035         (WebCore::ContentSecurityPolicy::allowEval):
1036         * page/ContentSecurityPolicy.h:
1037
1038 2011-04-15  Shishir Agrawal  <shishir@chromium.org>
1039
1040         Reviewed by James Robinson.
1041
1042         Add a flag to guard Page Visibility API changes.
1043         https://bugs.webkit.org/show_bug.cgi?id=58464
1044
1045         * Configurations/FeatureDefines.xcconfig:
1046
1047 2011-04-15  Fridrich Strba  <fridrich.strba@bluewin.ch>
1048
1049         Reviewed by Martin Robinson.
1050
1051         Make plugins compile during WebKit GTK Windows build.
1052         Ifdef properly relevant parts so that the PluginViewGtk compiles on Windows.
1053         https://bugs.webkit.org/show_bug.cgi?id=58580
1054
1055         * plugins/PluginView.cpp:
1056         (WebCore::PluginView::stop):
1057         * plugins/PluginView.h:
1058         * plugins/gtk/PluginViewGtk.cpp:
1059         (WebCore::PluginView::platformGetValue):
1060         (WebCore::PluginView::platformStart):
1061
1062 2011-04-15  MORITA Hajime  <morrita@google.com>
1063
1064         Reviewed by Simon Fraser.
1065
1066         Calls to WebCore::Document::mayCauseFlashOfUnstyledContent make frequently-run drawing methods slower
1067         https://bugs.webkit.org/show_bug.cgi?id=58512
1068         
1069         Manually rolled out r72367 at which mayCauseFlashOfUnstyledContent() was introduced.
1070         This change keeps an small refactoring on
1071         FrameView::shouldUpdate(), which doesn't affect on the behavior.
1072
1073         * dom/Document.cpp:
1074         * dom/Document.h:
1075         * page/FrameView.cpp:
1076         (WebCore::FrameView::invalidateRect):
1077         (WebCore::FrameView::shouldUpdate):
1078         * rendering/RenderBlock.cpp:
1079         (WebCore::RenderBlock::paintContents):
1080         * rendering/RenderLayer.cpp:
1081         (WebCore::RenderLayer::paintLayer):
1082
1083 2011-04-15  Chris Rogers  <crogers@google.com>
1084
1085         Reviewed by Kenneth Russell.
1086
1087         Reduce default kernel size of SincResampler to favor better speed over quality
1088         https://bugs.webkit.org/show_bug.cgi?id=58710
1089
1090         No new tests since audio API is not yet implemented.
1091
1092         * platform/audio/SincResampler.h:
1093
1094 2011-04-15  Fridrich Strba  <fridrich.strba@bluewin.ch>
1095
1096         Reviewed by Martin Robinson.
1097
1098         Expand the ntohs, ntohl, htons and htonl defines for OS(WINDOWS)
1099         These have to be defined for Windows in general, since win32 API
1100         does not provide them.
1101         https://bugs.webkit.org/show_bug.cgi?id=58582
1102
1103         * platform/graphics/WOFFFileFormat.cpp:
1104
1105 2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>
1106
1107         Reviewed by Adam Barth.
1108
1109         Show a console message when X-Frame-Options blocks a load
1110         https://bugs.webkit.org/show_bug.cgi?id=39087
1111
1112         Added console message when X-Frame-Options headers block resource loading
1113
1114         * loader/MainResourceLoader.cpp:
1115         (WebCore::MainResourceLoader::didReceiveResponse):
1116
1117 2011-04-15  Fridrich Strba  <fridrich.strba@bluewin.ch>
1118
1119         Reviewed by Martin Robinson.
1120
1121         Evaluate PLATFORM(GTK) before the all-encompassing OS(WINDOWS)
1122         test. This allows Windows build of WebKit GTK to chose the right
1123         path.
1124         https://bugs.webkit.org/show_bug.cgi?id=58576
1125
1126         * platform/FileSystem.h:
1127
1128 2011-04-08  Luiz Agostini  <luiz.agostini@openbossa.org>
1129
1130         Reviewed by Kenneth Rohde Christiansen.
1131
1132         [Qt] QWebPage MIME type handling inconsistency with other web browsers
1133         https://bugs.webkit.org/show_bug.cgi?id=46968
1134
1135         Implementing mime type sniffing based on
1136         http://tools.ietf.org/html/draft-abarth-mime-sniff-06.
1137
1138         * WebCore.pro:
1139         * platform/network/MIMESniffing.cpp: Added.
1140         (MagicNumbers::dataSizeNeededForImageSniffing):
1141         (MagicNumbers::maskedCompare):
1142         (MagicNumbers::checkSpaceOrBracket):
1143         (MagicNumbers::compare):
1144         (MagicNumbers::findMIMEType):
1145         (MagicNumbers::findSimpleMIMEType):
1146         (MagicNumbers::textOrBinaryTypeSniffingProcedure):
1147         (MagicNumbers::unknownTypeSniffingProcedure):
1148         (MagicNumbers::imageTypeSniffingProcedure):
1149         (MagicNumbers::checkText):
1150         (MagicNumbers::checkRDF):
1151         (MagicNumbers::skipTag):
1152         (MagicNumbers::feedTypeSniffingProcedure):
1153         (MIMESniffer::MIMESniffer):
1154         * platform/network/MIMESniffing.h: Added.
1155         (MIMESniffer::dataSize):
1156         (MIMESniffer::sniff):
1157         (MIMESniffer::isValid):
1158         * platform/network/NetworkingContext.h:
1159         * platform/network/qt/QNetworkReplyHandler.cpp:
1160         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
1161         (WebCore::QNetworkReplyWrapper::release):
1162         (WebCore::QNetworkReplyWrapper::receiveMetaData):
1163         (WebCore::QNetworkReplyWrapper::receiveSniffedMIMEType):
1164         (WebCore::QNetworkReplyWrapper::emitMetaDataChanged):
1165         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1166         (WebCore::QNetworkReplyHandler::sendNetworkRequest):
1167         (WebCore::QNetworkReplyHandler::start):
1168         * platform/network/qt/QNetworkReplyHandler.h:
1169         (WebCore::QNetworkReplyWrapper::advertisedMIMEType):
1170         (WebCore::QNetworkReplyWrapper::mimeType):
1171         * platform/network/qt/QtMIMETypeSniffer.cpp: Added.
1172         (QtMIMETypeSniffer::QtMIMETypeSniffer):
1173         (QtMIMETypeSniffer::sniff):
1174         (QtMIMETypeSniffer::trySniffing):
1175         * platform/network/qt/QtMIMETypeSniffer.h: Added.
1176         (QtMIMETypeSniffer::mimeType):
1177         (QtMIMETypeSniffer::isFinished):
1178
1179 2011-04-15  Emil A Eklund  <eae@chromium.org>
1180
1181         Reviewed by Dimitri Glazkov.
1182
1183         input field with focus makes appendChild operation ~42x slower
1184         https://bugs.webkit.org/show_bug.cgi?id=57059
1185
1186         Change ContainerNode::cloneChildNodes to only disable the
1187         deleteButtonController if the container itself (or any of its children)
1188         is being edited. Thus avoiding a reflow in cases where it's not.
1189
1190         Test: perf/clone-with-focus.html
1191
1192         * dom/ContainerNode.cpp:
1193         (WebCore::ContainerNode::cloneChildNodes):
1194
1195 2011-04-15  Kinuko Yasuda  <kinuko@chromium.org>
1196
1197         Reviewed by David Levin.
1198
1199         Expose unified Quota API if QUOTA build flag is enabled
1200         https://bugs.webkit.org/show_bug.cgi?id=58648
1201
1202         Test: storage/storageinfo-query-usage.html
1203
1204         * CMakeLists.txt: Added new file entries.
1205         * DerivedSources.cpp: Added new file entries.
1206         * DerivedSources.make: Added new file entries.
1207         * GNUmakefile.am: Added new file entries.
1208         * WebCore.gypi: Added new file entries.
1209         * WebCore.vcproj/WebCore.vcproj: Added new file entries.
1210         * WebCore.xcodeproj/project.pbxproj: Added new file entries.
1211         * page/DOMWindow.cpp:
1212         (WebCore::DOMWindow::webkitStorageInfo): Added.
1213         * page/DOMWindow.h:
1214         * page/DOMWindow.idl:
1215         * storage/StorageInfo.h: Added storage type enum.
1216         * storage/StorageInfo.idl: Added.
1217         * storage/StorageInfoErrorCallback.idl: Added.
1218         * storage/StorageInfoUsageCallback.idl: Added.
1219
1220 2011-04-15  Oliver Hunt  <oliver@apple.com>
1221
1222         GC allocate Structure
1223         https://bugs.webkit.org/show_bug.cgi?id=58483
1224
1225         Rolling r83894 r83827 r83810 r83809 r83808 back in with
1226         a workaround for the gcc bug seen by the gtk bots
1227
1228         * WebCore.exp.in:
1229         * bindings/js/JSAudioConstructor.h:
1230         (WebCore::JSAudioConstructor::createStructure):
1231         * bindings/js/JSDOMBinding.cpp:
1232         (WebCore::cacheDOMStructure):
1233         * bindings/js/JSDOMBinding.h:
1234         (WebCore::DOMObjectWithGlobalPointer::createStructure):
1235         (WebCore::DOMObjectWithGlobalPointer::DOMObjectWithGlobalPointer):
1236         (WebCore::DOMConstructorObject::createStructure):
1237         (WebCore::DOMConstructorObject::DOMConstructorObject):
1238         (WebCore::DOMConstructorWithDocument::DOMConstructorWithDocument):
1239         * bindings/js/JSDOMGlobalObject.cpp:
1240         (WebCore::JSDOMGlobalObject::JSDOMGlobalObject):
1241         (WebCore::JSDOMGlobalObject::markChildren):
1242         * bindings/js/JSDOMGlobalObject.h:
1243         (WebCore::JSDOMGlobalObject::createStructure):
1244         * bindings/js/JSDOMWindowBase.cpp:
1245         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
1246         * bindings/js/JSDOMWindowBase.h:
1247         (WebCore::JSDOMWindowBase::createStructure):
1248         * bindings/js/JSDOMWindowShell.cpp:
1249         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
1250         (WebCore::JSDOMWindowShell::setWindow):
1251         * bindings/js/JSDOMWindowShell.h:
1252         (WebCore::JSDOMWindowShell::createStructure):
1253         * bindings/js/JSDOMWrapper.h:
1254         (WebCore::DOMObject::DOMObject):
1255         * bindings/js/JSEventListener.cpp:
1256         (WebCore::JSEventListener::JSEventListener):
1257         * bindings/js/JSImageConstructor.h:
1258         (WebCore::JSImageConstructor::createStructure):
1259         * bindings/js/JSImageDataCustom.cpp:
1260         (WebCore::toJS):
1261         * bindings/js/JSOptionConstructor.h:
1262         (WebCore::JSOptionConstructor::createStructure):
1263         * bindings/js/JSWorkerContextBase.cpp:
1264         (WebCore::JSWorkerContextBase::JSWorkerContextBase):
1265         * bindings/js/JSWorkerContextBase.h:
1266         (WebCore::JSWorkerContextBase::createStructure):
1267         * bindings/js/ScriptCachedFrameData.h:
1268         * bindings/js/SerializedScriptValue.h:
1269         * bindings/js/WorkerScriptController.cpp:
1270         (WebCore::WorkerScriptController::~WorkerScriptController):
1271         (WebCore::WorkerScriptController::initScript):
1272         * bindings/scripts/CodeGeneratorJS.pm:
1273         * bridge/c/CRuntimeObject.h:
1274         (JSC::Bindings::CRuntimeObject::createStructure):
1275         * bridge/c/c_instance.cpp:
1276         (JSC::Bindings::CRuntimeMethod::createStructure):
1277         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1278         (JavaRuntimeMethod::createStructure):
1279         * bridge/jni/jsc/JavaRuntimeObject.h:
1280         (JSC::Bindings::JavaRuntimeObject::createStructure):
1281         * bridge/objc/ObjCRuntimeObject.h:
1282         (JSC::Bindings::ObjCRuntimeObject::createStructure):
1283         * bridge/objc/objc_instance.mm:
1284         (ObjCRuntimeMethod::createStructure):
1285         * bridge/objc/objc_runtime.h:
1286         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
1287         * bridge/qt/qt_instance.cpp:
1288         (JSC::Bindings::QtRuntimeObject::createStructure):
1289         * bridge/qt/qt_pixmapruntime.cpp:
1290         (JSC::Bindings::QtPixmapRuntimeObject::createStructure):
1291         * bridge/qt/qt_runtime.h:
1292         (JSC::Bindings::QtRuntimeMethod::createStructure):
1293         * bridge/runtime_array.cpp:
1294         (JSC::RuntimeArray::RuntimeArray):
1295         * bridge/runtime_array.h:
1296         (JSC::RuntimeArray::createStructure):
1297         * bridge/runtime_method.cpp:
1298         (JSC::RuntimeMethod::RuntimeMethod):
1299         * bridge/runtime_method.h:
1300         (JSC::RuntimeMethod::createStructure):
1301         * bridge/runtime_object.cpp:
1302         (JSC::Bindings::RuntimeObject::RuntimeObject):
1303         * bridge/runtime_object.h:
1304         (JSC::Bindings::RuntimeObject::createStructure):
1305         * history/HistoryItem.h:
1306
1307 2011-04-15  Jessie Berlin  <jberlin@apple.com>
1308
1309         Reviewed by Brian Weinstein.
1310
1311         Hang underneath ApplicationCacheStorage::writeDataToUniqueFileInDirectory when loading
1312         http://www.webkit.org/demos/calendar.
1313         https://bugs.webkit.org/show_bug.cgi?id=58698
1314
1315         * platform/win/FileSystemWin.cpp:
1316         (WebCore::openFile):
1317         Add breaks to the case statement.
1318         (WebCore::directoryName):
1319         Remove any trailing slash in directoryName. After closer inspection of all callers, it
1320         appears the that callers do not need the trailing slash, and those that use the length do
1321         so only to change the direction of the slashes throughout the length of the path.
1322
1323 2011-04-15  Roland Steiner  <rolandsteiner@chromium.org>
1324
1325         Reviewed by Dimitri Glazkov.
1326
1327         Bug 52963 - Enable O(1) access to root from any node in shadow DOM subtree
1328         https://bugs.webkit.org/show_bug.cgi?id=52963
1329
1330         .) Change base class of ShadowRoot from DocumentFragment to TreeScope.
1331         .) Re-enable tree scope handling in Node (had ASSERT_NOT_REACHED, etc.).
1332         .) Merged setTreeScope() with setTreeScopeRecursively()
1333         .) Call setTreeScopeRecursively in DOM manipulation functions where applicable.
1334
1335         No new tests. (refactoring)
1336
1337         * dom/ContainerNode.cpp:
1338         (WebCore::ContainerNode::takeAllChildrenFrom):
1339         (WebCore::ContainerNode::removeBetween):
1340         (WebCore::ContainerNode::removeChildren):
1341         (WebCore::ContainerNode::parserAddChild):
1342         * dom/Document.cpp:
1343         (WebCore::Document::Document):
1344         (WebCore::Document::~Document):
1345         (WebCore::Document::setDocType):
1346         * dom/Element.h:
1347         * dom/Node.cpp:
1348         (WebCore::Node::treeScope):
1349         (WebCore::Node::setTreeScopeRecursively):
1350         * dom/Node.h:
1351         (WebCore::Node::document):
1352         * dom/ShadowRoot.cpp:
1353         (WebCore::ShadowRoot::ShadowRoot):
1354         (WebCore::ShadowRoot::~ShadowRoot):
1355         (WebCore::ShadowRoot::nodeType):
1356         (WebCore::ShadowRoot::cloneNode):
1357         (WebCore::ShadowRoot::childTypeAllowed):
1358         * dom/ShadowRoot.h:
1359         (WebCore::toShadowRoot):
1360         * dom/TreeScope.cpp:
1361         (WebCore::TreeScope::TreeScope):
1362         (WebCore::TreeScope::setParentTreeScope):
1363         * dom/TreeScope.h:
1364         * rendering/RenderSlider.cpp:
1365
1366 2011-04-15  Geoffrey Garen  <ggaren@apple.com>
1367
1368         Reviewed by Oliver Hunt.
1369
1370         DOM object handles are never removed from cache
1371         https://bugs.webkit.org/show_bug.cgi?id=58707
1372
1373         We were trying to remove hash table items by value instead of by key.
1374
1375         * bindings/js/DOMWrapperWorld.cpp:
1376         (WebCore::JSNodeHandleOwner::finalize): Changed to work more like
1377         DOMObjectHandleOwner::finalize because I'm going to merge them.
1378
1379         (WebCore::DOMObjectHandleOwner::finalize): Remove hash table items
1380         by key, not value. (Oops!) Use a helper function to make sure we get
1381         this right.
1382
1383         * bindings/js/JSDOMBinding.cpp:
1384         (WebCore::cacheDOMObjectWrapper): Store the hash table key as our weak
1385         handle context, so we can use it at destruction time.
1386
1387         * bindings/js/JSDOMBinding.h: Removed unnecessary include.
1388
1389         * bindings/js/JSNodeCustom.h:
1390         (WebCore::cacheDOMNodeWrapper): Store the hash table key as our weak
1391         handle context, so we can use it at destruction time.
1392
1393         * bindings/js/ScriptWrappable.h:
1394         (WebCore::ScriptWrappable::setWrapper): Forward context parameter, to
1395         support the above.
1396
1397 2011-04-15  Kenneth Russell  <kbr@google.com>
1398
1399         Unreviewed. Chromium Linux Release build fix due to unused variables.
1400
1401         * platform/audio/mkl/FFTFrameMKL.cpp:
1402         (WebCore::FFTFrame::doFFT):
1403         (WebCore::FFTFrame::doInverseFFT):
1404         (WebCore::FFTFrame::cleanup):
1405
1406 2011-04-15  Brent Fulgham  <bfulgham@webkit.org>
1407
1408         Unreviewed build change after r83945.
1409
1410         New 'PlatformPathCairo.cpp' was not added to the WinCairo build.
1411
1412         * WebCore.vcproj/WebCore.vcproj: Add missing file to WinCairo
1413           build.  Exclude for standard Apple build.
1414
1415 2011-04-15  Anders Carlsson  <andersca@apple.com>
1416
1417         Reviewed by Dan Bernstein.
1418
1419         Fade the find page overlay
1420         https://bugs.webkit.org/show_bug.cgi?id=58697
1421
1422         Add a symbol that WebKit2 needs.
1423
1424         * WebCore.exp.in:
1425
1426 2011-04-15  MORITA Hajime  <morrita@google.com>
1427
1428         Reviewed by Dimitri Glazkov.
1429
1430         RenderDetailsMarker should belong to shadow element.
1431         https://bugs.webkit.org/show_bug.cgi?id=58591
1432
1433         - Introduced DetailsMarkerControl element, which is a shadow element of <summary>, creates RenderDetailsMarker.
1434         - Removed custom layout code from RenderDetails, RenderDetailsMarker, which is now done by usual CSS layout.
1435           Note that marker size is given via style for -webkit-details-marker pseudo class.
1436         - Converted default summary implementation from pure-renderer style to shadow of HTMLDetailsElement.
1437           Now RenderDetails knows nothing about default summary.
1438         - Moved event handling code from HTMLDetailsElement to HTMLSummaryElement because now the marker is always child of 
1439           <summary>, and the clickable area is now <summary> itself.
1440
1441         - Note that the rendering result is changed due to the conversion from custom layout code to usual CSS styling.
1442
1443         * Android.mk:
1444         * CMakeLists.txt:
1445         * GNUmakefile.list.am:
1446         * WebCore.gypi:
1447         * WebCore.pro:
1448         * WebCore.vcproj/WebCore.vcproj:
1449         * WebCore.xcodeproj/project.pbxproj:
1450         * css/html.css:
1451         (summary::-webkit-details-marker):
1452         * dom/Element.cpp:
1453         (WebCore::Element::attach):
1454         * dom/Node.cpp:
1455         (WebCore::shouldCreateRendererFor):
1456         * dom/Node.h:
1457         (WebCore::Node::canHaveLightChildRendererWithShadow):
1458         * html/HTMLDetailsElement.cpp:
1459         (WebCore::HTMLDetailsElement::findSummaryFor):
1460         (WebCore::HTMLDetailsElement::findMainSummary):
1461         (WebCore::HTMLDetailsElement::refreshMainSummary):
1462         (WebCore::HTMLDetailsElement::createShadowSubtree):
1463         (WebCore::HTMLDetailsElement::childrenChanged):
1464         (WebCore::HTMLDetailsElement::finishParsingChildren):
1465         (WebCore::HTMLDetailsElement::toggleOpen):
1466         * html/HTMLDetailsElement.h:
1467         (WebCore::HTMLDetailsElement::canHaveLightChildRendererWithShadow):
1468         * html/HTMLSummaryElement.cpp:
1469         (WebCore::HTMLSummaryElement::create):
1470         (WebCore::HTMLSummaryElement::createShadowSubtree):
1471         (WebCore::HTMLSummaryElement::detailsElement):
1472         (WebCore::HTMLSummaryElement::isMainSummary):
1473         (WebCore::HTMLSummaryElement::defaultEventHandler):
1474         * html/HTMLSummaryElement.h:
1475         (WebCore::HTMLSummaryElement::canHaveLightChildRendererWithShadow):
1476         * html/shadow/DetailsMarkerControl.cpp: Added.
1477         (WebCore::DetailsMarkerControl::DetailsMarkerControl):
1478         (WebCore::DetailsMarkerControl::createRenderer):
1479         (WebCore::DetailsMarkerControl::rendererIsNeeded):
1480         (WebCore::DetailsMarkerControl::shadowPseudoId):
1481         (WebCore::DetailsMarkerControl::summaryElement):
1482         * html/shadow/DetailsMarkerControl.h: Added.
1483         (WebCore::DetailsMarkerControl::create):
1484         * rendering/RenderDetails.cpp:
1485         (WebCore::RenderDetails::RenderDetails):
1486         (WebCore::RenderDetails::styleDidChange):
1487         (WebCore::RenderDetails::moveSummaryToContents):
1488         (WebCore::RenderDetails::checkMainSummary):
1489         (WebCore::RenderDetails::layout):
1490         * rendering/RenderDetails.h:
1491         * rendering/RenderDetailsMarker.cpp:
1492         (WebCore::RenderDetailsMarker::RenderDetailsMarker):
1493         (WebCore::RenderDetailsMarker::isOpen):
1494         (WebCore::RenderDetailsMarker::getPath):
1495         (WebCore::RenderDetailsMarker::paint):
1496         (WebCore::RenderDetailsMarker::details):
1497         * rendering/RenderDetailsMarker.h:
1498
1499 2011-04-15  Sam Weinig  <sam@webkit.org>
1500
1501         Reviewed by Adam Roben.
1502
1503         Implement localize strings for windows WebKit2
1504         https://bugs.webkit.org/show_bug.cgi?id=58688
1505
1506         * platform/win/LocalizedStringsWin.cpp:
1507         (WebCore::createWebKitBundle):
1508         (WebCore::webKitBundle):
1509         (WebCore::localizedString):
1510         Add implementation of localizedString for Windows.
1511
1512 2011-04-15  Geoffrey Garen  <ggaren@apple.com>
1513
1514         Reviewed by Oliver Hunt.
1515
1516         Some mechanical DOM wrapper cleanup
1517         https://bugs.webkit.org/show_bug.cgi?id=58689
1518
1519         * WebCore.exp.in: Export!
1520
1521         * bindings/js/DOMWrapperWorld.cpp:
1522         (WebCore::isReachableFromDOM): Inverted the inDocument test to make the
1523         relationship of the special cases to the normal case clearer.
1524
1525         * bindings/js/JSArrayBufferViewHelper.h:
1526         (WebCore::toJSArrayBufferView):
1527         * bindings/js/JSCSSRuleCustom.cpp:
1528         (WebCore::toJS):
1529         * bindings/js/JSCSSValueCustom.cpp:
1530         (WebCore::toJS):
1531         * bindings/js/JSDOMBinding.cpp:
1532         (WebCore::getCachedDOMObjectWrapper):
1533         (WebCore::cacheDOMObjectWrapper):
1534         * bindings/js/JSDOMBinding.h:
1535         (WebCore::createDOMObjectWrapper):
1536         (WebCore::getDOMObjectWrapper):
1537         (WebCore::createDOMNodeWrapper):
1538         (WebCore::getDOMNodeWrapper): Changed DOM wrapper functions to operate
1539         in terms of DOMWrapperWorlds instead of ExecStates. This is clearer,
1540         and ever-so-slightly faster.
1541         
1542         Removed hasCachedXXX functions, now that they're unused.
1543
1544         * bindings/js/JSDOMWindowCustom.cpp:
1545         (WebCore::JSDOMWindow::history):
1546         (WebCore::JSDOMWindow::location):
1547         * bindings/js/JSDocumentCustom.cpp:
1548         (WebCore::JSDocument::location):
1549         (WebCore::toJS):
1550         * bindings/js/JSElementCustom.cpp:
1551         (WebCore::toJSNewlyCreated):
1552         * bindings/js/JSEventCustom.cpp:
1553         (WebCore::toJS):
1554         * bindings/js/JSHTMLCollectionCustom.cpp:
1555         (WebCore::toJS):
1556         * bindings/js/JSImageDataCustom.cpp:
1557         (WebCore::toJS):
1558         * bindings/js/JSNodeCustom.cpp:
1559         (WebCore::createWrapperInline):
1560         * bindings/js/JSNodeCustom.h:
1561         (WebCore::getCachedDOMNodeWrapper):
1562         (WebCore::cacheDOMNodeWrapper):
1563         (WebCore::toJS):
1564         * bindings/js/JSSVGPathSegCustom.cpp:
1565         (WebCore::toJS):
1566         * bindings/js/JSStyleSheetCustom.cpp:
1567         (WebCore::toJS): Updated for changes above.
1568
1569         * xml/XMLHttpRequest.cpp:
1570         (WebCore::XMLHttpRequest::dropProtection): Removed use of hasCachedDOMObjectWrapper
1571         because XHR is almost always created and used by JavaScript, so it's
1572         simpler to just always report extra cost.
1573
1574 2011-04-15  Andreas Kling  <kling@webkit.org>
1575
1576         Rolling out accidental part of r84010.
1577
1578         * platform/qt/RenderThemeQt.cpp:
1579         (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
1580         (WebCore::RenderThemeQt::setButtonPadding):
1581
1582 2011-04-15  Oliver Hunt  <oliver@apple.com>
1583
1584         Forgot windows build fix.
1585
1586         * bindings/js/JSNodeFilterCondition.cpp:
1587         (WebCore::JSNodeFilterCondition::WeakOwner::isReachableFromOpaqueRoots):
1588
1589 2011-04-15  Joseph Pecoraro  <joepeck@webkit.org>
1590
1591         Reviewed by Yury Semikhatsky.
1592
1593         Frontend Part of Web Inspector: Remote Web Inspector - Cross Platform InspectorServer
1594         https://bugs.webkit.org/show_bug.cgi?id=51364
1595
1596         The front end should not use a transparent background when
1597         loaded as a web page (remote debugging) but should when loaded
1598         regularly in a custom window. This adds a "remote" style class
1599         onto the document body when the page is loaded remotely.
1600
1601         * inspector/front-end/inspector.css:
1602         (body.detached.platform-mac-snowleopard:not(.remote) #toolbar): respect the "remote" class.
1603         * inspector/front-end/inspector.js: add a "remote" class on the body when loaded remotely.
1604
1605 2011-04-15  Joseph Pecoraro  <joepeck@webkit.org>
1606
1607         Reviewed by David Kilzer.
1608
1609         JSLock ASSERT seen often when using the inspector for long
1610         periods of time. We should take the JSLock whenever we
1611         might allocate memory in the JavaScript Heap.
1612
1613         JSC InjectedScriptHost::nodeAsScriptValue should take JSLock before possible JavaScript Allocations
1614         https://bugs.webkit.org/show_bug.cgi?id=58674
1615
1616         * bindings/js/JSInjectedScriptHostCustom.cpp:
1617         (WebCore::InjectedScriptHost::nodeAsScriptValue): take the JSLock.
1618
1619 2011-04-14  Oliver Hunt  <oliver@apple.com>
1620
1621         Reviewed by Geoffrey Garen.
1622
1623         Make JSNodeFilterCondition handle its lifetime correctly
1624         https://bugs.webkit.org/show_bug.cgi?id=58622
1625
1626         Switch over to a WeakHandle and external roots to keep the
1627         condition value live.
1628
1629         * bindings/js/JSNodeFilterCondition.cpp:
1630         (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
1631         (WebCore::JSNodeFilterCondition::markAggregate):
1632         (WebCore::JSNodeFilterCondition::acceptNode):
1633         (WebCore::JSNodeFilterCondition::WeakOwner::isReachableFromOpaqueRoots):
1634         * bindings/js/JSNodeFilterCondition.h:
1635         (WebCore::JSNodeFilterCondition::create):
1636         * bindings/js/JSNodeFilterCustom.cpp:
1637         (WebCore::toNodeFilter):
1638         * bindings/scripts/CodeGeneratorJS.pm:
1639
1640 2011-04-13  Luiz Agostini  <luiz.agostini@openbossa.org>
1641
1642         Reviewed by Andreas Kling.
1643
1644         [Qt] QNetworkReplyHandler refactoring: some adjustments
1645         https://bugs.webkit.org/show_bug.cgi?id=57092
1646
1647         - Removing flag m_redirected from QNetworkReplyHandler and using m_redirectionTargetUrl.isValid() instead.
1648         - Moving flag m_responseContainsData from QNetworkReplyHandler to the reply wrapper and removing the connection of
1649         signal metaDataChanged for m_responseContainsData to be consistent.
1650         - Using an OwnPtr to keep the reference to the QNetworkReplyWrapper.
1651
1652         * platform/network/qt/QNetworkReplyHandler.cpp:
1653         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
1654         (WebCore::QNetworkReplyWrapper::receiveMetaData):
1655         (WebCore::QNetworkReplyWrapper::didReceiveReadyRead):
1656         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1657         (WebCore::QNetworkReplyHandler::release):
1658         (WebCore::shouldIgnoreHttpError):
1659         (WebCore::QNetworkReplyHandler::finish):
1660         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1661         (WebCore::QNetworkReplyHandler::redirect):
1662         (WebCore::QNetworkReplyHandler::forwardData):
1663         * platform/network/qt/QNetworkReplyHandler.h:
1664         (WebCore::QNetworkReplyWrapper::responseContainsData):
1665         (WebCore::QNetworkReplyWrapper::redirected):
1666
1667 2011-04-15  Alexey Proskuryakov  <ap@apple.com>
1668
1669         Chromium build fix.
1670
1671         * platform/SecureTextInput.h: CARBON_SECURE_INPUT_MODE no longer exists.
1672
1673 2011-04-15  Mike Reed  <reed@google.com>
1674
1675         Reviewed by Darin Fisher.
1676
1677         hide unused static function when SKIA_GPU is enabled
1678         https://bugs.webkit.org/show_bug.cgi?id=58670
1679
1680         No new tests. Just fixes a warning (treated as an error) when SKIA_GPU is enabled
1681
1682         * platform/graphics/skia/ImageSkia.cpp:
1683
1684 2011-04-15  Simon Fraser  <simon.fraser@apple.com>
1685
1686         Reviewed by Beth Dakin.
1687
1688         Some borders with border-radius do not have rounded inner edges
1689         https://bugs.webkit.org/show_bug.cgi?id=58457
1690         
1691         Improve the logic used to compute the inner radii on curved
1692         borders, to maintain borders of even thickness around the curve.
1693         
1694         Tests: fast/borders/mixed-border-styles-radius.html
1695                fast/borders/mixed-border-styles.html
1696
1697         * rendering/RenderBoxModelObject.h:
1698         * rendering/RenderBoxModelObject.cpp:
1699         (WebCore::RenderBoxModelObject::computeBorderOuterRect):
1700         (WebCore::RenderBoxModelObject::computeBorderInnerRect):
1701         Two new utility functions to share some code that was in both paintBorder()
1702         and paintBoxShaadow().
1703         getRoundedInnerBorderWithBorderWidths() now takes the outer border box
1704         as well as the inner box.
1705         
1706         (WebCore::RenderBoxModelObject::paintBorder): Call new methods.
1707         (WebCore::RenderBoxModelObject::paintBoxShadow): Ditto.
1708
1709         * rendering/RenderObject.cpp:
1710         (WebCore::RenderObject::drawBoxSideFromPath):
1711         getRoundedInnerBorderWithBorderWidths() now takes the outer border box
1712         as well as the inner box.
1713
1714         * rendering/style/RenderStyle.cpp:
1715         (WebCore::RenderStyle::getRoundedInnerBorderWithBorderWidths):
1716         * rendering/style/RenderStyle.h:
1717         Compute the inner radii by starting with teh radii used for the
1718         outer box, and then shrinking them down based on the border thickness.
1719
1720 2011-04-14  Alexey Proskuryakov  <ap@apple.com>
1721
1722         Reviewed by Dan Bernstein.
1723
1724         WebKit2: Password field input does not switch to ASCII-compatible source
1725         https://bugs.webkit.org/show_bug.cgi?id=58583
1726         <rdar://problem/9059651>
1727
1728         * platform/SecureTextInput.cpp:
1729         (WebCore::enableSecureTextInput):
1730         (WebCore::disableSecureTextInput):
1731         This is now only used by Chromium. There is no need to change TSMDocument properties in
1732         renderer process (and really, all secure text input logic in WebCore should be eliminated).
1733
1734 2011-04-13  Xiaomei Ji  <xji@chromium.org>
1735
1736         Reviewed by Ryosuke Niwa.
1737
1738         Continue (3rd) experiment with moving caret by word in visual order.
1739         https://bugs.webkit.org/show_bug.cgi?id=58294
1740
1741         This patch along with r82588 and r83483 implements moving caret by
1742         word in visual order.
1743         
1744         The overall algorithm is:
1745         1. First get the InlineBox and offset of the pass-in VisiblePosition.
1746         2. Based on the position (left boundary, middle, right boundary) of the offset and the
1747            direction of the movement, look for visually adjacent word breaks.
1748         2.1 If the offset is the minimum offset of the box,
1749             return the rightmost word boundary in previous boxes if moving left.
1750             return the leftmost word boundary in box and next boxes if moving right.
1751         2.2 Similar for the case when offset is at the maximum offset of the box.
1752         2.3 When offset is inside the box (not at boundaries), first find the previousWordPosition 
1753             or nextWordPosition based on the directionality of the box. If this word break position 
1754             is also inside the same box, return it. Otherwise (the nextWordPosition or 
1755             previousWordPosition is not in the same box or is at the box boundary), collect all the 
1756             word breaks in the box and search for the one closest to the input "offset" based on 
1757             box directionality, block directionality, and movement direction. Continue search in 
1758             adjacent boxes if needed.
1759
1760         Notes:
1761         1. Word boundaries are collected one box at a time. Only when a boundary that is closest to 
1762            the input position (in the moving direction) is not available in current box, word 
1763            boundaries in adjacent box will be collected. So, there is no need to save InlineBox in 
1764            word boundaries. Instead, the word boundaries are saved as a pair 
1765            (VisiblePosition, offset) to avoid recomputing VisiblePosition.
1766  
1767         2. We only collect boundaries of the right kind (i.e. left boundary of a word in LTR block
1768            and right boundary of a word in RTL block). And word boundaries are collected using 
1769            previousWordPosition() and nextWordPosition(). So when box directionality is the same as 
1770            block directionality, word boundaries are collected from right to left visually in a LTR 
1771            box, and word boundaries are collected from left to right visually in a RTL box. It is
1772            the other way around when box directionality is different from block directionality.
1773
1774         3. To find the right kinds of word boundaries, we must move back and forth between words
1775            in some situations. For example, if we're moving to the right in a LTR box in LTR block,
1776            we cannot simply return nextWordPosition() because it would return the right boundary
1777            of a word. Instead, we return nextWordPosition()'s nextWordPosition()'s previousWordPosition().
1778
1779         4. When collecting word breaks inside a box, it first computes a start position, then
1780            collect the right kind of word breaks until it reaches the end of (or beyond) the box.
1781            In the meanwhile, it might need special handling on the rightmost or leftmost position 
1782            based on the directionality of the box and block. These computations do not consider the 
1783            box's bidi level.
1784
1785         * editing/visible_units.cpp:
1786         (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality):
1787         (WebCore::collectWordBreaksInBox):
1788         (WebCore::previousWordBoundaryInBox):
1789         (WebCore::nextWordBoundaryInBox):
1790         (WebCore::visuallyLastWordBoundaryInBox):
1791         (WebCore::leftWordBoundary):
1792         (WebCore::rightWordBoundary):
1793         (WebCore::leftWordPosition):
1794         (WebCore::rightWordPosition):
1795
1796 2011-04-14  Zhenyao Mo  <zmo@google.com>
1797
1798         Reviewed by Kenneth Russell.
1799
1800         Use HTMLImageElement in Canvas 2D / WebGL before response is ready causes crash
1801         https://bugs.webkit.org/show_bug.cgi?id=58501
1802
1803         * html/canvas/WebGLRenderingContext.cpp:
1804         (WebCore::WebGLRenderingContext::texImage2D): Call validateHTMLImageElement().
1805         (WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
1806         (WebCore::WebGLRenderingContext::validateHTMLImageElement): Make sure image is ready.
1807         * html/canvas/WebGLRenderingContext.h:
1808
1809 2011-04-07  MORITA Hajime  <morrita@google.com>
1810
1811         Reviewed by Ryosuke Niwa.
1812
1813         DocumentMaker::AllMarkers should not be a part of DocumentMarker::MarkerType
1814         https://bugs.webkit.org/show_bug.cgi?id=58112
1815         
1816         - Converted DocumentMarker::MarkerTypes from unsigned int to a class.
1817         - Converted DocumentMarker::AllMarkers from an enum entry to a subclass of MarkerTypes.
1818         - Changed type of some MarkerType argument on DocumentMarkerController API to MarkerTypes
1819           which should allow a combination of MarkerType constansts.
1820         - Removed some MarkerType arguments on DocumentMarkerController API
1821           which only received AllMarkers.
1822         
1823         No new tests, no behavior change.
1824
1825         * WebCore.exp.in:
1826         * dom/DocumentMarker.h:
1827         (WebCore::DocumentMarker::MarkerTypes::MarkerTypes):
1828         (WebCore::DocumentMarker::MarkerTypes::contains):
1829         (WebCore::DocumentMarker::MarkerTypes::intersects):
1830         (WebCore::DocumentMarker::MarkerTypes::operator==):
1831         (WebCore::DocumentMarker::MarkerTypes::add):
1832         (WebCore::DocumentMarker::MarkerTypes::remove):
1833         (WebCore::DocumentMarker::AllMarkers::AllMarkers):
1834         * dom/DocumentMarkerController.cpp:
1835         (WebCore::DocumentMarkerController::possiblyHasMarkers):
1836         (WebCore::DocumentMarkerController::addMarker):
1837         (WebCore::DocumentMarkerController::copyMarkers):
1838         (WebCore::DocumentMarkerController::removeMarkers):
1839         (WebCore::DocumentMarkerController::markerContainingPoint):
1840         (WebCore::DocumentMarkerController::markersInRange):
1841         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
1842         (WebCore::DocumentMarkerController::removeMarkersFromMarkerMapVectorPair):
1843         (WebCore::DocumentMarkerController::repaintMarkers):
1844         (WebCore::DocumentMarkerController::shiftMarkers):
1845         (WebCore::DocumentMarkerController::setMarkersActive):
1846         (WebCore::DocumentMarkerController::hasMarkers):
1847         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
1848         * dom/DocumentMarkerController.h:
1849
1850 2011-04-14  Geoffrey Garen  <ggaren@apple.com>
1851
1852         Reviewed by Oliver Hunt.
1853
1854         Complicated hash table is complicated
1855         https://bugs.webkit.org/show_bug.cgi?id=58631
1856         
1857         Now that we use the opaque roots system to track node wrapper lifetime,
1858         we can remove a lot of complicated hash-tablery that used to do the same.
1859         
1860         Now normal world node wrappers are just set as direct properties of
1861         ScriptWrappable, while isolated world node wrappers and other DOM object
1862         wrappers are stored in a shared, per-world hash table.
1863
1864         In addition to reducing complexity, this makes DOM wrapper allocation
1865         1.6X faster (tested with scratch-gc-dom3.html), and it reduces the memory
1866         footprint of normal world wrappers by ~2/3, and isolated world wrappers
1867         by ~1/3.
1868
1869         * WebCore.exp.in: Paying the patch tithe.
1870
1871         * bindings/js/DOMWrapperWorld.cpp:
1872         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1873         (WebCore::DOMWrapperWorld::clearWrappers): No more per-document hash tables.
1874
1875         (WebCore::JSNodeHandleOwner::finalize): Changed to call a helper function,
1876         so the code to destroy a wrapper can live next to the code to create one.
1877
1878         * bindings/js/DOMWrapperWorld.h: No more per-document hash tables.
1879
1880         * bindings/js/JSDOMBinding.cpp:
1881         (WebCore::uncacheDOMObjectWrapper):
1882         * bindings/js/JSDOMBinding.h:
1883         (WebCore::createDOMNodeWrapper):
1884         (WebCore::getDOMNodeWrapper): No more per-document hash tables.
1885         Added uncacheDOMObjectWrapper to be symmetrical with cacheDOMObjectWrapper.
1886
1887         * bindings/js/JSDocumentCustom.cpp:
1888         (WebCore::toJS):
1889         * bindings/js/JSElementCustom.cpp:
1890         (WebCore::toJSNewlyCreated):
1891         * bindings/js/JSNodeCustom.cpp:
1892         (WebCore::createWrapperInline): Ditto.
1893
1894         * bindings/js/JSNodeCustom.h:
1895         (WebCore::getCachedDOMNodeWrapper):
1896         (WebCore::cacheDOMNodeWrapper):
1897         (WebCore::uncacheDOMNodeWrapper):
1898         (WebCore::toJS): Implemented the scheme described above.
1899
1900         * bindings/js/ScriptWrappable.h:
1901         (WebCore::ScriptWrappable::wrapper):
1902         (WebCore::ScriptWrappable::setWrapper):
1903         (WebCore::ScriptWrappable::clearWrapper): ScriptWrappable needs a handle
1904         owner now, since we don't have an extra handle living in a hash table
1905         to maintain ownership for us.
1906
1907         * dom/Document.cpp:
1908         (WebCore::Document::Document):
1909         (WebCore::Document::~Document):
1910         * dom/Document.h:
1911         * dom/Node.cpp:
1912         (WebCore::Node::setDocument): No more per-document hash tables.
1913
1914         * html/HTMLCanvasElement.cpp:
1915         (WebCore::HTMLCanvasElement::createImageBuffer): Removed call to
1916         hasCachedDOMNodeWrapperUnchecked because that was the old way of doing
1917         things, and I was in the mood for getting rid of the old way. It's
1918         debatable whether the check was ever a good idea. Even when a <canvas>
1919         doesn't have a direct JS wrapper, other JS references can still keep
1920         the <canvas> alive. So, it's probably best always to report extra cost.
1921
1922 2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>
1923
1924         Reviewed by Pavel Feldman.
1925
1926         Web Inspector: Rename rawRequestHeadersText and RawResponseHeadersText to requestHeadersText and responseHeadersText
1927         https://bugs.webkit.org/show_bug.cgi?id=58650
1928
1929         * inspector/Inspector.json:
1930         * inspector/InspectorResourceAgent.cpp:
1931         (WebCore::buildObjectForResourceResponse):
1932         * inspector/front-end/NetworkManager.js:
1933         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
1934         * inspector/front-end/Resource.js:
1935         (WebInspector.Resource.prototype.get requestHeadersText):
1936         (WebInspector.Resource.prototype.set requestHeadersText):
1937         (WebInspector.Resource.prototype.get requestHeadersSize):
1938         (WebInspector.Resource.prototype.get responseHeadersText):
1939         (WebInspector.Resource.prototype.set responseHeadersText):
1940         (WebInspector.Resource.prototype.get responseHeadersSize):
1941         (WebInspector.Resource.prototype._headersSize):
1942         * inspector/front-end/ResourceHeadersView.js:
1943         (WebInspector.ResourceHeadersView):
1944         (WebInspector.ResourceHeadersView.prototype._refreshRequestHeaders):
1945         (WebInspector.ResourceHeadersView.prototype._refreshResponseHeaders):
1946         (WebInspector.ResourceHeadersView.prototype._refreshHeadersTitle):
1947         (WebInspector.ResourceHeadersView.prototype._refreshHeadersText):
1948         (WebInspector.ResourceHeadersView.prototype._toggleRequestHeadersText):
1949         (WebInspector.ResourceHeadersView.prototype._toggleResponseHeadersText):
1950         (WebInspector.ResourceHeadersView.prototype._createHeadersToggleButton):
1951         * inspector/front-end/networkPanel.css:
1952         (.resource-headers-view .outline-disclosure li.headers-text):
1953         * platform/network/ResourceLoadInfo.h:
1954
1955 2011-04-15  Luke Macpherson   <macpherson@chromium.org>
1956
1957         Reviewed by Dimitri Glazkov.
1958
1959         Implement css overflow properties in CSSStyleApplyProperty
1960         https://bugs.webkit.org/show_bug.cgi?id=58633
1961
1962         No new tests required as no functionality changes.
1963
1964         * css/CSSStyleApplyProperty.cpp:
1965         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1966         Add initializers for CSSPropertyOverflowX, CSSPropertyOverflowY and CSSPropertyOverflow.
1967         * css/CSSStyleSelector.cpp:
1968         (WebCore::CSSStyleSelector::applyProperty):
1969         Delete existing implementations.
1970
1971 2011-04-15  Sam Weinig  <sam@webkit.org>
1972
1973         Reviewed by Maciej Stachowiak.
1974
1975         Make mac WebKit1 use the default localization strategy
1976         https://bugs.webkit.org/show_bug.cgi?id=58628
1977
1978         * English.lproj/Localizable.strings:
1979         Update by running update-webkit-localizable-strings.
1980
1981         * platform/DefaultLocalizationStrategy.cpp:
1982         (WebCore::DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary):
1983         (WebCore::DefaultLocalizationStrategy::keygenKeychainItemName):
1984         (WebCore::DefaultLocalizationStrategy::imageTitle):
1985         Match the WebKit1 versions of these functions by special casing CF platforms.
1986
1987 2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>
1988
1989         Reviewed by Pavel Feldman.
1990
1991         Web Inspector: No console message and headers in inspector when X-Frame-Options header blocks a load
1992         https://bugs.webkit.org/show_bug.cgi?id=58136
1993
1994         Passed response info to inspector when X-Frame-Options header blocks resource loading.
1995
1996         Test: http/tests/inspector/network/x-frame-options-deny.html
1997
1998         * inspector/InspectorInstrumentation.cpp:
1999         (WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDeniedImpl):
2000         * inspector/InspectorInstrumentation.h:
2001         (WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDenied):
2002         * loader/MainResourceLoader.cpp:
2003         (WebCore::MainResourceLoader::didReceiveResponse):
2004
2005 2011-04-15  Andrey Adaikin  <aandrey@google.com>
2006
2007         Reviewed by Pavel Feldman.
2008
2009         Web Inspector: TextViewer and TextEditorModel must support both \n and \r\n as line separators
2010         https://bugs.webkit.org/show_bug.cgi?id=58449
2011
2012         Test: inspector/editor/text-editor-model.html
2013
2014         * inspector/front-end/TextEditorModel.js:
2015         (WebInspector.TextEditorModel):
2016         (WebInspector.TextEditorModel.prototype.get text):
2017         (WebInspector.TextEditorModel.prototype.setText):
2018         (WebInspector.TextEditorModel.prototype._innerSetText):
2019         (WebInspector.TextEditorModel.prototype.copyRange):
2020
2021 2011-04-15  Sergey Vorobyev  <sergeyvorobyev@google.com>
2022
2023         Reviewed by Yury Semikhatsky.
2024
2025         Web Inspector: Network events don't preserves,
2026         when inspector frontend closed and open again
2027         https://bugs.webkit.org/show_bug.cgi?id=58064
2028
2029         Added InspectorFrontendProxy and EventsCollector.
2030         They allow captured messages from InspectorResourceAgent
2031         to frontend (or mockFrontend if frontend disabled) and
2032         push collected data when frontend reconnect.
2033         This functionality is disabled by default.
2034
2035         * CMakeLists.txt:
2036         * GNUmakefile.list.am:
2037         * WebCore.gypi:
2038         * WebCore.pro:
2039         * WebCore.vcproj/WebCore.vcproj:
2040         * WebCore.xcodeproj/project.pbxproj:
2041         * inspector/EventsCollector.cpp: Added.
2042         (WebCore::EventsCollector::EventsCollector):
2043         (WebCore::EventsCollector::addEvent):
2044         (WebCore::EventsCollector::sendCollectedEvents):
2045         * inspector/EventsCollector.h: Added.
2046         (WebCore::EventsCollector::~EventsCollector):
2047         * inspector/Inspector.json:
2048         * inspector/InspectorFrontendProxy.cpp: Added.
2049         (WebCore::InspectorFrontendProxy::InspectorFrontendProxy):
2050         (WebCore::InspectorFrontendProxy::setInspectorFrontendChannel):
2051         (WebCore::InspectorFrontendProxy::setEventsCollector):
2052         (WebCore::InspectorFrontendProxy::sendMessageToFrontend):
2053         * inspector/InspectorFrontendProxy.h: Added.
2054         (WebCore::InspectorFrontendProxy::~InspectorFrontendProxy):
2055         * inspector/InspectorInstrumentation.cpp:
2056         (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
2057         (WebCore::InspectorInstrumentation::loadEventFiredImpl):
2058         * inspector/InspectorInstrumentation.h:
2059         (WebCore::InspectorInstrumentation::willSendRequest):
2060         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
2061         (WebCore::InspectorInstrumentation::didReceiveContentLength):
2062         (WebCore::InspectorInstrumentation::didFinishLoading):
2063         (WebCore::InspectorInstrumentation::domContentLoadedEventFired):
2064         (WebCore::InspectorInstrumentation::loadEventFired):
2065         (WebCore::InspectorInstrumentation::frameDetachedFromParent):
2066         (WebCore::InspectorInstrumentation::didCreateWebSocket):
2067         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
2068         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
2069         (WebCore::InspectorInstrumentation::didCloseWebSocket):
2070         * inspector/InspectorResourceAgent.cpp:
2071         (WebCore::InspectorResourceAgent::setFrontend):
2072         (WebCore::InspectorResourceAgent::resourceContent):
2073         (WebCore::InspectorResourceAgent::~InspectorResourceAgent):
2074         (WebCore::InspectorResourceAgent::didReceiveResponse):
2075         (WebCore::InspectorResourceAgent::domContentEventFired):
2076         (WebCore::InspectorResourceAgent::loadEventFired):
2077         (WebCore::InspectorResourceAgent::enabledBackgoundEventsCoollection):
2078         (WebCore::InspectorResourceAgent::enable):
2079         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
2080         * inspector/InspectorResourceAgent.h:
2081         * inspector/front-end/NetworkManager.js:
2082         (WebInspector.NetworkDispatcher.prototype.domContentEventFired):
2083         (WebInspector.NetworkDispatcher.prototype.loadEventFired):
2084         * inspector/front-end/inspector.js:
2085         (WebInspector.domContentEventFired):
2086         (WebInspector.loadEventFired):
2087
2088 2011-04-15  Alexis Menard  <alexis.menard@openbossa.org>
2089
2090         Reviewed by Dimitri Glazkov.
2091
2092         REGRESSION(r83397) [Qt] When clicking on the media elements they grow 2 pixels.
2093         https://bugs.webkit.org/show_bug.cgi?id=58477
2094
2095         Since r83397 the media controls elements are actual DOM elements.
2096         Therefore the global style-sheet applies to them. html.css defines
2097         input[type="button"]:active to be border-style: inset which means
2098         that when the buttons are active they grow by their border size. Therefore
2099         ports which are not using the borders must explicitly disable them in their custom
2100         stylesheet.
2101
2102         * css/mediaControlsQt.css:
2103         (audio::-webkit-media-controls-mute-button):
2104         (video::-webkit-media-controls-mute-button):
2105         (audio::-webkit-media-controls-play-button):
2106         (video::-webkit-media-controls-play-button):
2107         (video::-webkit-media-controls-fullscreen-button):
2108         * css/mediaControlsQuickTime.css:
2109         (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
2110         (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
2111         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
2112         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
2113         (audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
2114         (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
2115         (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
2116         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
2117         (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button):
2118
2119 2011-04-15  Zelidrag Hornung  <zelidrag@chromium.org>
2120
2121         Reviewed by Darin Fisher.
2122
2123         Added enums for external file system type.
2124         https://bugs.webkit.org/show_bug.cgi?id=58456
2125
2126         * fileapi/DOMFileSystemBase.cpp:
2127         (WebCore::DOMFileSystemBase::crackFileSystemURL):
2128         * fileapi/DOMFileSystemBase.h:
2129         * fileapi/EntryBase.cpp:
2130         (WebCore::EntryBase::toURL):
2131         * page/DOMWindow.cpp:
2132         (WebCore::DOMWindow::requestFileSystem):
2133         * page/DOMWindow.h:
2134         * platform/AsyncFileSystem.h:
2135         * workers/WorkerContext.cpp:
2136         (WebCore::WorkerContext::requestFileSystem):
2137         (WebCore::WorkerContext::requestFileSystemSync):
2138         * workers/WorkerContext.h:
2139
2140 2011-04-15  Pavel Feldman  <pfeldman@google.com>
2141
2142         Reviewed by Yury Semikhatsky.
2143
2144         Web Inspector: make resource revisions use dedicated type (not Resource clone).
2145         https://bugs.webkit.org/show_bug.cgi?id=58659
2146
2147         * inspector/front-end/CSSStyleModel.js:
2148         (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
2149         * inspector/front-end/Resource.js:
2150         (WebInspector.Resource.prototype.addRevision):
2151         (WebInspector.Resource.prototype._innerRequestContent.onResourceContent):
2152         (WebInspector.Resource.prototype._innerRequestContent):
2153         (WebInspector.ResourceRevision):
2154         (WebInspector.ResourceRevision.prototype.get resource):
2155         (WebInspector.ResourceRevision.prototype.get timestamp):
2156         (WebInspector.ResourceRevision.prototype.get content):
2157         (WebInspector.ResourceRevision.prototype.revertToThis):
2158         (WebInspector.ResourceRevision.prototype.requestContent.mycallback):
2159         (WebInspector.ResourceRevision.prototype.requestContent):
2160         * inspector/front-end/ResourceView.js:
2161         (WebInspector.ResourceView.resourceViewTypeMatchesResource):
2162         (WebInspector.ResourceView.resourceViewForResource):
2163         (WebInspector.ResourceView.recreateResourceView):
2164         (WebInspector.ResourceView.existingResourceViewForResource):
2165         (WebInspector.RevisionSourceFrame):
2166         (WebInspector.RevisionSourceFrame.prototype.get resource):
2167         (WebInspector.RevisionSourceFrame.prototype.isContentEditable):
2168         (WebInspector.RevisionSourceFrame.prototype.requestContent):
2169         * inspector/front-end/ResourcesPanel.js:
2170         (WebInspector.ResourcesPanel.prototype._showResourceView):
2171         (WebInspector.ResourcesPanel.prototype._showRevisionView):
2172         (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup.step1):
2173         (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup.step2):
2174         (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup):
2175         (WebInspector.ResourceRevisionTreeElement):
2176         (WebInspector.ResourceRevisionTreeElement.prototype.get itemURL):
2177         (WebInspector.ResourceRevisionTreeElement.prototype.onselect):
2178         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
2179         (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
2180         * inspector/front-end/SourceFrame.js:
2181         (WebInspector.SourceFrame.prototype._ensureContentLoaded):
2182         (WebInspector.SourceFrame.prototype.requestContent):
2183         (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
2184         (WebInspector.SourceFrame.prototype.commitEditing):
2185
2186 2011-04-15  Alexander Pavlov  <apavlov@chromium.org>
2187
2188         Reviewed by Yury Semikhatsky.
2189
2190         Web Inspector: Prevent Backspace keypresses from routing into the inspected page
2191         https://bugs.webkit.org/show_bug.cgi?id=58653
2192
2193         * inspector/front-end/inspector.js:
2194         (WebInspector.documentKeyDown):
2195
2196 2011-04-15  Alice Boxhall  <aboxhall@chromium.org>
2197
2198         Reviewed by Ryosuke Niwa.
2199
2200         Text selection changes unexpectedly when dragging out of the <input>
2201         https://bugs.webkit.org/show_bug.cgi?id=55552
2202
2203         Tests: editing/selection/select-out-of-editable.html
2204                editing/selection/select-out-of-floated-contenteditable.html
2205                editing/selection/select-out-of-floated-input.html
2206                editing/selection/select-out-of-floated-textarea.html
2207
2208         * page/EventHandler.cpp:
2209         (WebCore::selectionExtentRespectingEditingBoundary): When dragging from an editable element, check that
2210         the endpoint is not outside the element. If it is, translate the point into a local point within
2211         the editable element.
2212         (WebCore::EventHandler::updateSelectionForMouseDrag): Call targetPositionForSelectionEndpoint() to
2213         calculate the selection endpoint.
2214
2215 2011-04-15  Adam Roben  <aroben@apple.com>
2216
2217         Roll out r83954
2218
2219         It was causing fast/dom/Window/timer-null-script-execution-context.html to crash on multiple
2220         bots.
2221
2222         See <http://webkit.org/b/58610>.
2223
2224         * bindings/js/JSDOMWindowCustom.cpp:
2225         (WebCore::JSDOMWindow::setTimeout):
2226         (WebCore::JSDOMWindow::setInterval):
2227         * bindings/js/JSWorkerContextCustom.cpp:
2228         (WebCore::JSWorkerContext::setTimeout):
2229         (WebCore::JSWorkerContext::setInterval):
2230         * bindings/js/ScheduledAction.cpp:
2231         (WebCore::ScheduledAction::create):
2232         * bindings/js/ScheduledAction.h:
2233         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2234         (WebCore::WindowSetTimeoutImpl):
2235         * page/ContentSecurityPolicy.cpp:
2236         * page/ContentSecurityPolicy.h:
2237
2238 2011-04-15  Pavel Feldman  <pfeldman@google.com>
2239
2240         Reviewed by Yury Semikhatsky.
2241
2242         Web Inspector: refactor resource setContent / revisions infrastructure to get
2243         rid of onRevert callback.
2244         https://bugs.webkit.org/show_bug.cgi?id=58649
2245
2246         Instead, we will have DomainModel/Resource binding responsible for changing
2247         underlying model upon resource changes and vice versa.
2248
2249         * inspector/Inspector.json:
2250         * inspector/InspectorCSSAgent.cpp:
2251         (WebCore::InspectorCSSAgent::getStyleSheet):
2252         (WebCore::InspectorCSSAgent::getStyleSheetText):
2253         (WebCore::InspectorCSSAgent::setStyleSheetText):
2254         (WebCore::InspectorCSSAgent::setPropertyText):
2255         (WebCore::InspectorCSSAgent::toggleProperty):
2256         (WebCore::InspectorCSSAgent::setRuleSelector):
2257         (WebCore::InspectorCSSAgent::assertStyleSheetForId):
2258         * inspector/InspectorCSSAgent.h:
2259         * inspector/front-end/CSSStyleModel.js:
2260         (WebInspector.CSSStyleModel):
2261         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
2262         (WebInspector.CSSStyleModel.prototype.addRule):
2263         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged.callback):
2264         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged):
2265         (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
2266         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
2267         (WebInspector.CSSProperty.prototype.setText):
2268         (WebInspector.CSSProperty.prototype.setText.callback):
2269         (WebInspector.CSSProperty.prototype.setDisabled.callback):
2270         (WebInspector.CSSProperty.prototype.setDisabled):
2271         (WebInspector.CSSStyleSheet.prototype.setText):
2272         (WebInspector.CSSStyleModelResourceBinding):
2273         (WebInspector.CSSStyleModelResourceBinding.prototype.setContent):
2274         (WebInspector.CSSStyleModelResourceBinding.prototype._frameNavigated):
2275         (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent):
2276         (WebInspector.CSSStyleModelResourceBinding.prototype._loadStyleSheetHeaders):
2277         (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged.setContent):
2278         (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged):
2279         * inspector/front-end/DebuggerPresentationModel.js:
2280         (WebInspector.DebuggerPresentationModel):
2281         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didEditScriptSource):
2282         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didReceiveSource):
2283         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
2284         (WebInspector.DebuggerPresentationModelResourceBinding):
2285         (WebInspector.DebuggerPresentationModelResourceBinding.prototype.canSetContent):
2286         (WebInspector.DebuggerPresentationModelResourceBinding.prototype.setContent):
2287         * inspector/front-end/Object.js:
2288         (WebInspector.Object.prototype.hasEventListeners):
2289         * inspector/front-end/Resource.js:
2290         (WebInspector.Resource):
2291         (WebInspector.Resource.registerDomainModelBinding):
2292         (WebInspector.Resource.prototype.isEditable):
2293         (WebInspector.Resource.prototype.setContent):
2294         (WebInspector.Resource.prototype.addRevision):
2295         (WebInspector.Resource.prototype.revertToThis.callback):
2296         (WebInspector.Resource.prototype.revertToThis):
2297         (WebInspector.ResourceDomainModelBinding):
2298         (WebInspector.ResourceDomainModelBinding.prototype.canSetContent):
2299         (WebInspector.ResourceDomainModelBinding.prototype.setContent):
2300         * inspector/front-end/ResourceView.js:
2301         (WebInspector.ResourceView.createResourceView):
2302         (WebInspector.ResourceView.resourceViewTypeMatchesResource):
2303         (WebInspector.ResourceSourceFrame.prototype.isContentEditable):
2304         (WebInspector.ResourceSourceFrame.prototype.editContent):
2305         (WebInspector.ResourceSourceFrame.prototype.endEditing):
2306         (WebInspector.ResourceSourceFrame.prototype._clearIncrementalUpdateTimer):
2307         (WebInspector.ResourceSourceFrame.prototype._requestContent):
2308         * inspector/front-end/ResourcesPanel.js:
2309         (WebInspector.ResourcesPanel.prototype._resourceAdded):
2310         (WebInspector.FrameResourceTreeElement):
2311         (WebInspector.FrameResourceTreeElement.prototype._populateRevisions):
2312         (WebInspector.FrameResourceTreeElement.prototype._revisionAdded):
2313         (WebInspector.FrameResourceTreeElement.prototype._appendRevision):
2314         * inspector/front-end/inspector.html:
2315
2316 2011-04-15  Andrey Kosyakov  <caseq@chromium.org>
2317
2318         Unreviewed, rolling out r83949.
2319         http://trac.webkit.org/changeset/83949
2320         https://bugs.webkit.org/show_bug.cgi?id=57960
2321
2322         broke 31 tests in chromium win & linux
2323
2324         * platform/graphics/chromium/GLES2Canvas.cpp:
2325         (WebCore::GLES2Canvas::drawTexturedRect):
2326         * platform/graphics/chromium/GLES2Canvas.h:
2327         * platform/graphics/gpu/Texture.cpp:
2328         (WebCore::copySubRect):
2329         (WebCore::Texture::load):
2330         (WebCore::Texture::updateSubRect):
2331         * platform/graphics/gpu/Texture.h:
2332         * platform/graphics/skia/ImageBufferSkia.cpp:
2333         (WebCore::getImageData):
2334         (WebCore::putImageData):
2335         (WebCore::ImageBuffer::putUnmultipliedImageData):
2336         (WebCore::ImageBuffer::putPremultipliedImageData):
2337
2338 2011-04-15  Ben Taylor  <bentaylor.solx86@gmail.com>
2339
2340         Reviewed by Alexey Proskuryakov.
2341
2342         Fix building with Sun Studio 12: function pointers for extern "C" are treated differently
2343         https://bugs.webkit.org/show_bug.cgi?id=58508
2344
2345         Since extern "C" makes a different type (although most compilers ignore that),
2346         we should be more careful when passing NPAPI callback functions.
2347
2348         * plugins/npapi.cpp:
2349         (NPN_PluginThreadAsyncCall):
2350
2351 2011-04-15  Adam Barth  <abarth@webkit.org>
2352
2353         Reviewed by Eric Seidel.
2354
2355         CSP should block string arguments to setTimeout and setInterval unless options eval-script
2356         https://bugs.webkit.org/show_bug.cgi?id=58610
2357
2358         It's somewhat sadness that the JSC and V8 code for setTimeout and
2359         setInterval are so different.  I struggled for a while with how to
2360         handle the worker case, but I decided to punt on it for now.
2361
2362         Tests: http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html
2363                http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html
2364                http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html
2365                http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html
2366
2367         * bindings/js/JSDOMWindowCustom.cpp:
2368         (WebCore::JSDOMWindow::setTimeout):
2369         (WebCore::JSDOMWindow::setInterval):
2370         * bindings/js/JSWorkerContextCustom.cpp:
2371         (WebCore::JSWorkerContext::setTimeout):
2372         (WebCore::JSWorkerContext::setInterval):
2373         * bindings/js/ScheduledAction.cpp:
2374         (WebCore::ScheduledAction::create):
2375         * bindings/js/ScheduledAction.h:
2376         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2377         (WebCore::WindowSetTimeoutImpl):
2378         * page/ContentSecurityPolicy.cpp:
2379         (WebCore::ContentSecurityPolicy::allowEval):
2380         * page/ContentSecurityPolicy.h:
2381
2382 2011-04-15  Adam Barth  <abarth@webkit.org>
2383
2384         Reviewed by Eric Seidel.
2385
2386         Add support for CSP's 'self' source
2387         https://bugs.webkit.org/show_bug.cgi?id=58604
2388
2389         This change is now trivially easy.
2390
2391         Test: http/tests/security/contentSecurityPolicy/script-src-self.html
2392
2393         * page/ContentSecurityPolicy.cpp:
2394         (WebCore::CSPSourceList::addSourceSelf):
2395
2396 2011-04-15  Anna Cavender  <annacc@chromium.org>
2397
2398         Reviewed by Eric Carlson.
2399
2400         Renaming TRACK feature define to VIDEO_TRACK
2401         https://bugs.webkit.org/show_bug.cgi?id=53556
2402
2403         No new tests. No new functionality.
2404
2405         * CMakeLists.txt:
2406         * Configurations/FeatureDefines.xcconfig:
2407         * DerivedSources.make:
2408         * GNUmakefile.am:
2409         * features.pri:
2410         * html/HTMLTagNames.in:
2411         * html/HTMLTrackElement.cpp:
2412         * html/HTMLTrackElement.h:
2413         * html/HTMLTrackElement.idl:
2414
2415 2011-04-14  Andrey Adaikin  <aandrey@google.com>
2416
2417         Reviewed by Pavel Feldman.
2418
2419         Web Inspector: Ctrl+Left/Right switch panels during live editing
2420         https://bugs.webkit.org/show_bug.cgi?id=58521
2421
2422         Disable Ctrl+Left/Right keyboard shortcuts while in live edit.
2423
2424         * inspector/front-end/SourceFrame.js:
2425         (WebInspector.SourceFrame.prototype.readOnlyStateChanged):
2426         * inspector/front-end/TextViewer.js:
2427         (WebInspector.TextViewer.prototype.set readOnly):
2428         (WebInspector.TextViewer.prototype.get readOnly):
2429         (WebInspector.TextViewer.prototype._doubleClick):
2430         (WebInspector.TextViewer.prototype._commitEditing.didCommitEditing):
2431         (WebInspector.TextViewer.prototype._commitEditing):
2432         (WebInspector.TextViewer.prototype._cancelEditing):
2433         (WebInspector.TextViewerDelegate.prototype.readOnlyStateChanged):
2434         (WebInspector.TextEditorMainPanel.prototype.set readOnly):
2435         * inspector/front-end/inspector.js:
2436         (WebInspector.markBeingEdited):
2437         (WebInspector.isEditingAnyField):
2438         (WebInspector.startEditing.cleanUpAfterEditing):
2439
2440 2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>
2441
2442         Reviewed by Pavel Feldman.
2443
2444         Web Inspector: Enable raw HTTP headers support
2445         https://bugs.webkit.org/show_bug.cgi?id=58259
2446
2447         Added raw headers text support to inspector.
2448
2449         * English.lproj/localizedStrings.js:
2450         * inspector/Inspector.json:
2451         * inspector/InspectorResourceAgent.cpp:
2452         (WebCore::buildObjectForResourceResponse):
2453         * inspector/front-end/NetworkManager.js:
2454         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
2455         * inspector/front-end/Resource.js:
2456         (WebInspector.Resource):
2457         (WebInspector.Resource.prototype.get transferSize):
2458         (WebInspector.Resource.prototype.set requestHeaders):
2459         (WebInspector.Resource.prototype.get rawRequestHeadersText):
2460         (WebInspector.Resource.prototype.set rawRequestHeadersText):
2461         (WebInspector.Resource.prototype.get requestHeadersSize):
2462         (WebInspector.Resource.prototype.set responseHeaders):
2463         (WebInspector.Resource.prototype.get rawResponseHeadersText):
2464         (WebInspector.Resource.prototype.set rawResponseHeadersText):
2465         (WebInspector.Resource.prototype.get responseHeadersSize):
2466         (WebInspector.Resource.prototype._headersSize):
2467         * inspector/front-end/ResourceHeadersView.js:
2468         (WebInspector.ResourceHeadersView):
2469         (WebInspector.ResourceHeadersView.prototype._refreshParms):
2470         (WebInspector.ResourceHeadersView.prototype._refreshRequestHeaders):
2471         (WebInspector.ResourceHeadersView.prototype._refreshResponseHeaders):
2472         (WebInspector.ResourceHeadersView.prototype._refreshHeadersTitle):
2473         (WebInspector.ResourceHeadersView.prototype._refreshHeaders):
2474         (WebInspector.ResourceHeadersView.prototype._refreshRawHeadersText):
2475         (WebInspector.ResourceHeadersView.prototype._toggleRawRequestHeadersText):
2476         (WebInspector.ResourceHeadersView.prototype._toggleRawResponseHeadersText):
2477         (WebInspector.ResourceHeadersView.prototype._createToggleButton):
2478         (WebInspector.ResourceHeadersView.prototype._createHeadersToggleButton):
2479         * inspector/front-end/networkPanel.css:
2480         (.resource-headers-view .outline-disclosure li .header-toggle):
2481         (.resource-headers-view .outline-disclosure li.expanded .header-toggle):
2482         (.resource-headers-view .outline-disclosure li .header-toggle:hover):
2483         (.resource-headers-view .outline-disclosure li.raw-headers-text):
2484         * platform/network/ResourceLoadInfo.h:
2485
2486 2011-04-14  Justin Novosad  <junov@chromium.org>
2487
2488         Reviewed by Kenneth Russell.
2489
2490         [Chromium] Accelerated 2D Canvas is slow to execute putImageData
2491         https://bugs.webkit.org/show_bug.cgi?id=57960
2492
2493         * platform/graphics/chromium/GLES2Canvas.cpp:
2494         (WebCore::GLES2Canvas::drawTexturedRect):
2495         Added an option for using the blend ops for alpha multiplication
2496         instead of compositing.
2497         (WebCore::GLES2Canvas::applyClipping):
2498         (WebCore::GLES2Canvas::putImageData):
2499         New method for drawing raw pixel data from memory to the canvas
2500         (WebCore::GLES2Canvas::putUnmultipliedImageData):
2501         Wrapper for putImageData
2502         (WebCore::GLES2Canvas::putPremultipliedImageData):
2503         Wrapper for putImageData
2504         * platform/graphics/chromium/GLES2Canvas.h:
2505         * platform/graphics/gpu/Texture.cpp:
2506         (WebCore::copySubRect):
2507         (WebCore::Texture::load):
2508         (WebCore::Texture::updateSubRect):
2509         Added an overload of the updateSubRect method that can receive a pixel 
2510         of a size that is different from texture size. Improved the performance
2511         of updateSubrect by avoiding the allocation of a temporary buffer when
2512         not required.
2513         * platform/graphics/gpu/Texture.h:
2514         * platform/graphics/skia/ImageBufferSkia.cpp:
2515         (WebCore::getImageData):
2516         In the unmultiplied path, division by alpha now performs proper
2517         rounding in order to avoid generational degradation with putImageData
2518         (WebCore::putImageData):
2519         Alpha multiplication now performs proper rounding in order to be
2520         consistent with the hardware rendering path: OpenGL always rounds when
2521         converting to fixed point representation.
2522         (WebCore::ImageBuffer::putUnmultipliedImageData):
2523         Now supports a hardware rendering path, which eliminates the need
2524         for a readback from the GPU
2525         (WebCore::ImageBuffer::putPremultipliedImageData):
2526         Now supports a hardware rendering path, which eliminates the need
2527         for a readback from the GPU
2528
2529 2011-04-14  Joone Hur  <joone.hur@collabora.co.uk>
2530
2531         Reviewed by Martin Robinson.
2532
2533         Creating a CairoPath instance is not thread safe
2534         https://bugs.webkit.org/show_bug.cgi?id=58514
2535
2536         This patch allows a cairo surface to be created just one time in order to 
2537         guarantee thread safety.
2538         In addition, CairoPath.{h,cpp} is renamed to PlatformPathCairo.{h,cpp} to 
2539         prevent confusing them with PathCairo.cpp
2540
2541         * CMakeListsEfl.txt: Added PlatformPathCairo.cpp
2542         * GNUmakefile.list.am: Added PlatformPathCairo.{h,cpp} instead of CairoPath.h.
2543         * platform/graphics/cairo/CairoPath.h: Removed.
2544         * platform/graphics/cairo/CairoUtilities.cpp: Include PlatformPathCairo.h instead of CairoPath.h.
2545         * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
2546         * platform/graphics/cairo/PathCairo.cpp: Ditto.
2547         * platform/graphics/cairo/PlatformPathCairo.cpp: Added.
2548         (WebCore::getPathSurface): Getting a static cairo surface.
2549         (WebCore::CairoPath::CairoPath): Moved the implementation of the constructor 
2550         into the CPP file.
2551         * platform/graphics/cairo/PlatformPathCairo.h: Renamed CairoPath.h to this.
2552         (WebCore::CairoPath::~CairoPath):
2553         (WebCore::CairoPath::context):
2554
2555 2011-04-14  Nat Duca  <nduca@chromium.org>
2556
2557         Reviewed by Darin Fisher.
2558
2559         [chromium] Add lowpass filter and graph to fps indicator
2560         https://bugs.webkit.org/show_bug.cgi?id=58186
2561
2562         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2563         (WebCore::CCHeadsUpDisplay::CCHeadsUpDisplay):
2564         (WebCore::CCHeadsUpDisplay::drawHudContents):
2565         (WebCore::CCHeadsUpDisplay::drawFPSCounter):
2566         (WebCore::CCHeadsUpDisplay::drawPlatformLayerTree):
2567         (WebCore::CCHeadsUpDisplay::onPresent):
2568         * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
2569
2570 2011-04-14  Beth Dakin  <bdakin@apple.com>
2571
2572         Reviewed by Adele Peterson.
2573
2574         https://bugs.webkit.org/show_bug.cgi?id=58612
2575         Crash switching overlay/non-overlay scrollbar preference 
2576         (WebCore::Page::setNeedsRecalcStyleInAllFrames + 9)
2577         -and corresponding-
2578         <rdar://problem/9241920> 
2579
2580         Speculative fix: Page could definitely be null here. 
2581         * page/FrameView.cpp:
2582         (WebCore::FrameView::scrollbarStyleChanged):
2583
2584 2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>
2585
2586         Reviewed by Pavel Feldman.
2587
2588         Web Inspector: ResourceResponse should have encodedDataLength field for synchronous requests transfer size
2589         https://bugs.webkit.org/show_bug.cgi?id=58447
2590
2591         FrameLoader now takes encoded data length for synchronous requests from the field with the same name.
2592
2593         * loader/FrameLoader.cpp:
2594         (WebCore::FrameLoader::loadResourceSynchronously):
2595         * platform/network/ResourceLoadInfo.h:
2596         (WebCore::ResourceLoadInfo::ResourceLoadInfo):
2597
2598 2011-04-14  Alok Priyadarshi  <alokp@chromium.org>
2599
2600         Reviewed by James Robinson.
2601
2602         Remove dependency on chromium skia::PlatformCanvas
2603         https://bugs.webkit.org/show_bug.cgi?id=57563
2604
2605         This patch does not change any functionality, just the type of object skia::PlatformCanvas -> SkCanvas. The object is still being created by a factory method skia::CreateBitmapCanvas defined in Chromium. We will eventually define an API that every port using skia will define.
2606
2607         * platform/graphics/chromium/FontChromiumWin.cpp:
2608         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
2609         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
2610         (WebCore::Font::drawComplexText):
2611         * platform/graphics/chromium/ImageBufferDataSkia.h:
2612         * platform/graphics/chromium/LayerChromium.h:
2613         * platform/graphics/chromium/LayerRendererChromium.h:
2614         * platform/graphics/chromium/PlatformCanvas.cpp:
2615         (WebCore::PlatformCanvas::resize):
2616         * platform/graphics/chromium/PlatformCanvas.h:
2617         * platform/graphics/chromium/TransparencyWin.cpp:
2618         (WebCore::TransparencyWin::compositeTextComposite):
2619         (WebCore::TransparencyWin::makeLayerOpaque):
2620         * platform/graphics/skia/ImageBufferSkia.cpp:
2621         (WebCore::ImageBuffer::ImageBuffer):
2622         * platform/graphics/skia/ImageSkia.cpp:
2623         (WebCore::paintSkBitmap):
2624         (WebCore::Image::drawPattern):
2625         * platform/graphics/skia/PlatformContextSkia.cpp:
2626         (WebCore::PlatformContextSkia::PlatformContextSkia):
2627         (WebCore::PlatformContextSkia::setCanvas):
2628         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2629         * platform/graphics/skia/PlatformContextSkia.h:
2630         (WebCore::PlatformContextSkia::canvas):
2631         (WebCore::PlatformContextSkia::printing):
2632         (WebCore::PlatformContextSkia::setPrinting):
2633
2634 2011-04-14  Eric Seidel  <eric@webkit.org>
2635
2636         Reviewed by Simon Fraser.
2637
2638         PumpSession should not call currentTime() in the constructor
2639         https://bugs.webkit.org/show_bug.cgi?id=55211
2640
2641         currentTime() is expensive.  So we avoid calling it in the constructor
2642         and instead set startTime on the first check for a yield
2643         (which in the synchronous case never happens, and in the yielding
2644         case will happen immediately after the first token due to
2645         processedTokens being set to INT_MAX).
2646
2647         This ended up being a large win on (my local copy of)
2648         peacekeeper's domDynamicCreationCreateElement:
2649
2650         Before:
2651         avg 366.3333333333333
2652         median 366
2653         stdev 2.712112747574399
2654         min 362
2655         max 377
2656
2657         After:
2658         avg 345.96666666666664
2659         median 346
2660         stdev 1.6829207415152454
2661         min 343
2662         max 349
2663
2664         * html/parser/HTMLDocumentParser.cpp:
2665         * html/parser/HTMLParserScheduler.h:
2666         (WebCore::PumpSession::PumpSession):
2667         (WebCore::HTMLParserScheduler::checkForYieldBeforeToken):
2668
2669 2011-04-14  Ami Fischman  <fischman@google.com>
2670
2671         Reviewed by Eric Carlson.
2672
2673         Remove unnecessary bottom margin of controls in video elements on media documents.
2674         This makes the cases of media documents and non-media documents consistent,
2675         and makes it possible to reason about the height of a rendered media document
2676         (needed e.g. for sizing iframes).
2677
2678         This change is covered by (the currently Skipped, but soon-to-be-un-Skipped)
2679         media/video-controls-in-media-document.html layouttest (see bug 54634 for
2680         the un-Skipping).
2681
2682         https://bugs.webkit.org/show_bug.cgi?id=58442
2683
2684         * css/mediaControls.css:
2685         (video:-webkit-full-page-media::-webkit-media-controls-panel):
2686         * css/mediaControlsEfl.css:
2687         (video:-webkit-full-page-media::-webkit-media-controls-panel):
2688         * css/mediaControlsQuickTime.css:
2689         (video:-webkit-full-page-media::-webkit-media-controls-panel):
2690
2691 2011-04-14  Geoffrey Garen  <ggaren@apple.com>
2692
2693         Reviewed by Oliver Hunt.
2694
2695         Use opaque roots instead of direct marking for nodes in the DOM
2696         https://bugs.webkit.org/show_bug.cgi?id=58624
2697
2698         A node treats the root of its tree (usually the document) as its opaque
2699         root during GC.
2700         
2701         This is needed for correctness in a generational GC world, but it also
2702         happens to be a 3.5X speedup in a DOM-heavy GC test (scratch-gc-dom2.html).
2703
2704         * bindings/js/DOMWrapperWorld.cpp:
2705         (WebCore::isObservable):
2706         (WebCore::isReachableFromDOM): Moved a helper function from JSDOMBinding.
2707         We use this function to determine whether a node is observable.
2708
2709         (WebCore::JSNodeHandleOwner::isReachableFromOpaqueRoots): Start using
2710         our weak handle callback to determine reachability, instead of direct
2711         marking traversal through the DOM.
2712
2713         * bindings/js/JSAttrCustom.cpp:
2714         (WebCore::JSAttr::markChildren): Updated to use the opaque roots mechanism
2715         instead of direct marking.
2716
2717         * bindings/js/JSDOMBinding.cpp:
2718         * bindings/js/JSDOMBinding.h: Moved code mentioned above. Removed
2719         markDOMNodeWrapper because it is now unused. This is a good thing because
2720         markDOMNodeWrapper used deprecatedAppend, which is not compatible
2721         with generational GC.
2722
2723         * bindings/js/JSDOMImplementationCustom.cpp:
2724         (WebCore::JSDOMImplementation::markChildren): Updated to use opaque roots.
2725
2726         * bindings/js/JSDocumentCustom.cpp:
2727         (WebCore::JSDocument::markChildren): No need to mark our child nodes directly,
2728         since they will take care of themselves through the opaque roots mechanism.
2729
2730         * bindings/js/JSNamedNodeMapCustom.cpp:
2731         (WebCore::JSNamedNodeMap::markChildren): Updated to use opaque roots.
2732
2733         * bindings/js/JSNodeCustom.cpp:
2734         (WebCore::JSNode::markChildren): No need to mark our tree or our document
2735         directly, since they will take care of themselves through the opaque
2736         roots mechanism.
2737
2738         * bindings/js/JSNodeCustom.h:
2739         (WebCore::root): Helper function for accessing the root of a node tree.
2740         This is O(1) while you're in the document, O(log(N)) when you're in a
2741         reasonably balanced disconnected tree, and O(N) in the pathological case
2742         of a disconnected tree that's shaped like a linked list. If average case
2743         O(long(N)) turns out to be too slow, we can optimize through use of
2744         rare data or an external hash table, but it is so uncommon that I have
2745         ignored it for now.
2746
2747         * bindings/js/JSSVGElementInstanceCustom.cpp:
2748         (WebCore::JSSVGElementInstance::markChildren): Updated to use opaque roots.
2749
2750 2011-04-14  Mike Reed  <reed@google.com>
2751
2752         Reviewed by Kenneth Russell.
2753
2754         fix shadows with gradients
2755         https://bugs.webkit.org/show_bug.cgi?id=58376
2756
2757         No new tests. Existing tests exercise this
2758         LayoutTests/fast/canvas/canvas-fillPath-gradient-shadow.html
2759
2760         * platform/graphics/skia/GraphicsContextSkia.cpp:
2761         (WebCore::GraphicsContext::setPlatformShadow):
2762
2763 2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>
2764
2765         Reviewed by Pavel Feldman.
2766
2767         Web Inspector: No headers information in network panel for downloads.
2768         https://bugs.webkit.org/show_bug.cgi?id=58139
2769
2770         Passed resource response to inspector for PolicyDownload and PolicyIgnore requests.
2771
2772         Test: http/tests/inspector/network/download.html
2773
2774         * inspector/InspectorInstrumentation.cpp:
2775         (WebCore::InspectorInstrumentation::didReceiveResourceResponseButCanceledImpl):
2776         (WebCore::InspectorInstrumentation::continueWithPolicyDownloadImpl):
2777         (WebCore::InspectorInstrumentation::continueWithPolicyIgnoreImpl):
2778         * inspector/InspectorInstrumentation.h:
2779         (WebCore::InspectorInstrumentation::continueWithPolicyDownload):
2780         (WebCore::InspectorInstrumentation::continueWithPolicyIgnore):
2781         * loader/MainResourceLoader.cpp:
2782         (WebCore::MainResourceLoader::continueAfterContentPolicy):
2783
2784 2011-04-14  Joone Hur  <joone.hur@collabora.co.uk>
2785
2786         Reviewed by Martin Robinson.
2787
2788         Convert use of raw pointers to RefPtr in using Cairo
2789         https://bugs.webkit.org/show_bug.cgi?id=57717
2790
2791         No new tests added becaue of just replacing raw pointers with smart pointers.
2792
2793         * platform/graphics/cairo/ContextShadowCairo.cpp: Use a RefPtr<cairo_surface_t> instead of raw pointer.
2794         (WebCore::purgeScratchBuffer):
2795         (WebCore::getScratchBuffer):
2796         * platform/graphics/cairo/ImageBufferCairo.cpp: Use a RefPtr<cairo_t> instead of raw pointer.
2797         (copySurface):
2798
2799 2011-04-14  Naoki Takano  <takano.naoki@gmail.com>
2800
2801         Reviewed by Eric Seidel.
2802
2803         [Chromium]Change menu list background fallback value to transparent to work background:none for HTML select tag.
2804         https://bugs.webkit.org/show_bug.cgi?id=57818
2805
2806         Test: fast/forms/select-background-none.html
2807
2808         This fix is only for Chromium on Linux. Chromium on Mac already works fine.
2809         But Windows has the same problem. This change doesn't include Windows part.
2810
2811         * rendering/RenderThemeChromiumLinux.cpp:
2812         (WebCore::RenderThemeChromiumLinux::paintMenuList): Change the default color to transparent.
2813
2814 2011-04-14  Luke Macpherson   <macpherson@chromium.org>
2815
2816         Reviewed by Dimitri Glazkov.
2817
2818         Implement border style css properties in CSSStyleApplyProperty
2819         https://bugs.webkit.org/show_bug.cgi?id=58506
2820
2821         No new functionality added.
2822
2823         * css/CSSStyleApplyProperty.cpp:
2824         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2825         Added new property initializers.
2826
2827         * css/CSSStyleSelector.cpp:
2828         (WebCore::CSSStyleSelector::applyProperty):
2829         Removed old property handlers.
2830
2831 2011-04-14  Dimitri Glazkov  <dglazkov@chromium.org>
2832
2833         Reviewed by Ojan Vafai.
2834
2835         Presence of shadow DOM should suppress rendering of ordinary child nodes
2836         https://bugs.webkit.org/show_bug.cgi?id=58073
2837
2838         Test: fast/dom/shadow/no-renderers-for-light-children.html
2839
2840         * dom/Node.cpp:
2841         (WebCore::shadowRoot): Added a helper function.
2842         (WebCore::Node::setDocumentRecursively): Changed to use the helper.
2843         (WebCore::shouldCreateRendererFor): Expanded a long condition check into a helper function,
2844             added a check for children of an element with a shadow DOM.
2845         (WebCore::Node::createRendererAndStyle): Changed to use the helper.
2846
2847 2011-04-14  Adrienne Walker  <enne@google.com>
2848
2849         Reviewed by James Robinson.
2850
2851         [chromium] Tile content and image layers
2852         https://bugs.webkit.org/show_bug.cgi?id=57113
2853
2854         Layers tile by default if any dimension is larger than 512.  Smaller
2855         layers are contained within a single texture but still use the tiler
2856         infrastructure so that there's only one code path.
2857
2858         Remove large layer support from content layers.  Content layers no
2859         longer own a platform canvas--they own a tiler.  Refactor tiler to
2860         allow for better separation of update/upload/paint.  Add rect
2861         parameter to update and draw functions on layers for the layer-space
2862         rect of interest.  This is necessary to know which tiles need to be
2863         drawn.
2864
2865         * platform/graphics/chromium/ContentLayerChromium.cpp:
2866         (WebCore::ContentLayerChromium::ContentLayerChromium):
2867         (WebCore::ContentLayerChromium::~ContentLayerChromium):
2868         (WebCore::ContentLayerPainter::ContentLayerPainter):
2869         (WebCore::ContentLayerPainter::paint):
2870         (WebCore::ContentLayerChromium::paintContentsIfDirty):
2871         (WebCore::ContentLayerChromium::setLayerRenderer):
2872         (WebCore::ContentLayerChromium::tilingTransform):
2873         (WebCore::ContentLayerChromium::visibleLayerRect):
2874         (WebCore::ContentLayerChromium::layerBounds):
2875         (WebCore::ContentLayerChromium::updateLayerSize):
2876         (WebCore::ContentLayerChromium::draw):
2877         (WebCore::ContentLayerChromium::createTilerIfNeeded):
2878         (WebCore::ContentLayerChromium::updateCompositorResources):
2879         (WebCore::ContentLayerChromium::setTilingOption):
2880         (WebCore::ContentLayerChromium::bindContentsTexture):
2881         (WebCore::ContentLayerChromium::unreserveContentsTexture):
2882         (WebCore::ContentLayerChromium::setIsMask):
2883         (WebCore::ContentLayerChromium::dumpLayerProperties):
2884         * platform/graphics/chromium/ContentLayerChromium.h:
2885         (WebCore::ContentLayerChromium::drawsContent):
2886         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
2887         (WebCore::GraphicsLayerChromium::setMaskLayer):
2888         * platform/graphics/chromium/ImageLayerChromium.cpp:
2889         (WebCore::ImageLayerChromium::paintContentsIfDirty):
2890         (WebCore::ImageLayerChromium::updateCompositorResources):
2891         (WebCore::ImageLayerChromium::layerBounds):
2892         (WebCore::ImageLayerChromium::tilingTransform):
2893         * platform/graphics/chromium/ImageLayerChromium.h:
2894         * platform/graphics/chromium/LayerChromium.h:
2895         (WebCore::LayerChromium::invalidateRect):
2896         (WebCore::LayerChromium::paintContentsIfDirty):
2897         (WebCore::LayerChromium::setIsMask):
2898         (WebCore::LayerChromium::draw):
2899         * platform/graphics/chromium/LayerRendererChromium.cpp:
2900         (WebCore::LayerRendererChromium::drawRootLayer):
2901         (WebCore::LayerRendererChromium::drawLayers):
2902         (WebCore::LayerRendererChromium::paintContentsRecursive):
2903         (WebCore::LayerRendererChromium::copyOffscreenTextureToDisplay):
2904         (WebCore::LayerRendererChromium::drawLayer):
2905         (WebCore::LayerRendererChromium::initializeSharedObjects):
2906         (WebCore::LayerRendererChromium::cleanupSharedObjects):
2907         * platform/graphics/chromium/LayerRendererChromium.h:
2908         * platform/graphics/chromium/LayerTilerChromium.cpp:
2909         (WebCore::LayerTilerChromium::setTileSize):
2910         (WebCore::LayerTilerChromium::getSingleTexture):
2911         (WebCore::LayerTilerChromium::invalidateRect):
2912         (WebCore::LayerTilerChromium::update):
2913         (WebCore::LayerTilerChromium::uploadCanvas):
2914         (WebCore::LayerTilerChromium::updateFromPixels):
2915         (WebCore::LayerTilerChromium::draw):
2916         (WebCore::LayerTilerChromium::unreserveTextures):
2917         * platform/graphics/chromium/LayerTilerChromium.h:
2918         (WebCore::LayerTilerChromium::setLayerRenderer):
2919         (WebCore::LayerTilerChromium::skipsDraw):
2920         * platform/graphics/chromium/PlatformCanvas.cpp:
2921         (WebCore::PlatformCanvas::AutoLocker::AutoLocker):
2922         (WebCore::PlatformCanvas::Painter::Painter):
2923         * platform/graphics/chromium/PlatformCanvas.h:
2924         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2925         (WebCore::RenderSurfaceChromium::draw):
2926         * platform/graphics/chromium/RenderSurfaceChromium.h:
2927         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
2928         (WebCore::CCCanvasLayerImpl::draw):
2929         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
2930         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2931         (WebCore::CCHeadsUpDisplay::draw):
2932         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2933         (WebCore::CCLayerImpl::draw):
2934         * platform/graphics/chromium/cc/CCLayerImpl.h:
2935         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
2936         (WebCore::CCPluginLayerImpl::draw):
2937         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
2938         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2939         (WebCore::CCVideoLayerImpl::draw):
2940         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2941
2942 2011-04-14  James Robinson  <jamesr@chromium.org>
2943
2944         Reviewed by Darin Fisher.
2945
2946         [chromium] REGRESSION(83820): Composited scrollbar layers sometimes not positioned when initially creating frame
2947         https://bugs.webkit.org/show_bug.cgi?id=58575
2948
2949         Tell the RenderLayerCompositor to create/destroy composited layers for overflow controls on a FrameView when visibleContentsResized()
2950         is called, not contentsResized() so that we always update layers when adding or removing scrollbars.
2951
2952         Covered by several chromium pixel tests.
2953
2954         * page/FrameView.cpp:
2955         (WebCore::FrameView::contentsResized):
2956         (WebCore::FrameView::visibleContentsResized):
2957
2958 2011-04-07  David Levin  <levin@chromium.org>
2959
2960         Reviewed by Brady Eidson.
2961
2962         Fix some threading issues in IconDatabase.
2963         https://bugs.webkit.org/show_bug.cgi?id=57985
2964
2965         No functionality change so no new tests. It would be very hard to test this, but
2966         I am working on a change for bug 31639 to detect these (which makes layout tests
2967         fail for at least one of these issues).
2968
2969         * loader/icon/IconDatabase.cpp:
2970         (WebCore::IconDatabase::setIconDataForIconURL): Release imageData so that it won't get deref'ed outside of locks.
2971         (WebCore::IconDatabase::readFromDatabase): Ditto.
2972         (WebCore::IconDatabase::writeToDatabase): Acquire m_urlAndIconLock because the SharedBuffer<> data
2973         is used, and this lock seems to be the one which consistently guards it.
2974
2975 2011-04-14  Dmitry Titov  <dimich@chromium.org>
2976
2977         Reviewed by David Levin.
2978
2979         Simplifying Worker termination sequence (removing unnecessary mutex)
2980         https://bugs.webkit.org/show_bug.cgi?id=57090
2981
2982         No new tests. Existing Worker tests should pass.
2983
2984         * bindings/js/JSEventListener.cpp:
2985         (WebCore::JSEventListener::handleEvent):
2986         Check for Terminator-caused exception (or Terminator::shouldTerminate since sometimes
2987         JS might not run significant enough chunk to be terminated by Terminator) and set
2988         the flag to forbid future reentry into JS.
2989
2990         * bindings/js/WorkerScriptController.cpp:
2991         (WebCore::WorkerScriptController::evaluate):
2992         (WebCore::WorkerScriptController::scheduleExecutionTermination):
2993         (WebCore::WorkerScriptController::forbidExecution):
2994         (WebCore::WorkerScriptController::isExecutionForbidden):
2995         * bindings/js/WorkerScriptController.h:
2996         * bindings/v8/WorkerScriptController.cpp:
2997         (WebCore::WorkerScriptController::evaluate):
2998         (WebCore::WorkerScriptController::scheduleExecutionTermination):
2999         (WebCore::WorkerScriptController::forbidExecution):
3000         (WebCore::WorkerScriptController::isExecutionForbidden):
3001         * bindings/v8/WorkerScriptController.h:
3002         (WebCore::WorkerScriptController::proxy):
3003         Symmetrical changes to JSC and V8 WorkerScriptControllers:
3004         - remove Mutex around operations with executionForbidden flag.
3005         - set/check that flag only on Worker thread.
3006         - some renaming in attempt to better reflect what the methods do.
3007
3008         * bindings/v8/V8AbstractEventListener.cpp:
3009         (WebCore::V8AbstractEventListener::handleEvent):
3010         (WebCore::V8AbstractEventListener::invokeEventHandler):
3011         * bindings/v8/WorkerContextExecutionProxy.cpp:
3012         (WebCore::WorkerContextExecutionProxy::evaluate):
3013         Check for v8::TryCatch::CanContinue() and set forbidExecution flag.
3014         This result indicates that TerminateExecution() was in effect - we should
3015         not reenter V8 anymore after that.
3016
3017         * dom/Document.h:
3018         (WebCore::Document::isJSExecutionForbidden):
3019         * dom/MessagePort.cpp:
3020         (WebCore::MessagePort::dispatchMessages):
3021         Stop dispatching messages once the worker context started to close.
3022         Per Workers spec, once WorkerGlobalScope.Close() is called, the next
3023         JS execution does not happen, including onmessage events. Before this
3024         change, Close() was setting the forbidExecution flag, indirectly stopping
3025         events from dispatching.
3026
3027         * dom/ScriptExecutionContext.h:
3028         * workers/WorkerContext.cpp:
3029         (WebCore::WorkerContext::close):
3030         (WebCore::WorkerContext::isJSExecutionForbidden):
3031         * workers/WorkerContext.h:
3032         * workers/WorkerThread.cpp:
3033         (WebCore::WorkerThread::workerThread):
3034         (WebCore::WorkerThread::stop):
3035
3036 2011-04-14  Beth Dakin  <bdakin@apple.com>
3037
3038         Reviewed by Simon Fraser.
3039
3040         https://bugs.webkit.org/show_bug.cgi?id=56493
3041         Drag-scrolling overlay scrollbars thumb in overflow regions does not work
3042         -and corresponding-
3043         <rdar://problem/9112688>
3044
3045         There was an original change to fix this in the normal hit-testing case, but hit 
3046         testing of transformed and/or positioned objects was still broken. The transformed 
3047         case is fixed by sending an OverlayScrollbarSizeRelevancy parameter to 
3048         calculateRects(). Getting positioned objects right is a little trickier. Those need 
3049         to opt into using temporary clip rects during hit testing. To avoid doing that when 
3050         it is not necessary, I added a new bit to ScrollView to track whether there are 
3051         currently overlay scrollbars painted in the view.
3052         * platform/ScrollView.cpp:
3053         (WebCore::ScrollView::ScrollView):
3054         (WebCore::ScrollView::wheelEvent):
3055         * platform/ScrollView.h:
3056         (WebCore::ScrollView::containsScrollableAreaWithOverlayScrollbars):
3057         (WebCore::ScrollView::setContainsScrollableAreaWithOverlayScrollbars):
3058         * rendering/RenderLayer.cpp:
3059         (WebCore::RenderLayer::paintOverflowControls):
3060         (WebCore::RenderLayer::hitTestLayer):
3061         (WebCore::RenderLayer::updateClipRects):
3062         (WebCore::RenderLayer::calculateClipRects):
3063         (WebCore::RenderLayer::parentClipRects):
3064         (WebCore::RenderLayer::backgroundClipRect):
3065         (WebCore::RenderLayer::calculateRects):
3066         * rendering/RenderLayer.h:
3067
3068 2011-04-14  Antti Koivisto  <antti@apple.com>
3069
3070         Reviewed by Oliver Hunt.
3071
3072         REGRESSION(r74107): Including svg format in @font-face rules makes Web Fonts fail to load
3073         https://bugs.webkit.org/show_bug.cgi?id=57766
3074         <rdar://problem/9232183>
3075
3076         Move the knowledge of whether to interpret a font as SVG from CachedFont to CSSFontFaceSource. This way
3077         we can try to interpret the same cached resource in multiple ways.
3078
3079         Test: fast/css/font-face-repeated-url.html
3080
3081         * css/CSSFontFaceSource.cpp:
3082         (WebCore::CSSFontFaceSource::CSSFontFaceSource):
3083         (WebCore::CSSFontFaceSource::getFontData):
3084         * css/CSSFontFaceSource.h:
3085         (WebCore::CSSFontFaceSource::setHasExternalSVGFont):
3086         * css/CSSFontSelector.cpp:
3087         (WebCore::CSSFontSelector::addFontFaceRule):
3088         * loader/cache/CachedFont.cpp:
3089         (WebCore::CachedFont::CachedFont):
3090         (WebCore::CachedFont::ensureCustomFontData):
3091         (WebCore::CachedFont::ensureSVGFontData):
3092
3093             Use TextResourceDecoder correctly.
3094
3095         (WebCore::CachedFont::getSVGFontById):
3096         * loader/cache/CachedFont.h:
3097         * svg/SVGFontFaceUriElement.cpp:
3098         (WebCore::SVGFontFaceUriElement::loadFont):
3099
3100 2011-04-14  Kenneth Russell  <kbr@google.com>
3101
3102         Reviewed by Dimitri Glazkov.
3103
3104         Enable building Web Audio with MKL in Chrome-branded builds
3105         https://bugs.webkit.org/show_bug.cgi?id=58561
3106
3107         Factored out MKL support into a separate GYP file that is
3108         incorporated in Chrome-branded builds. Changed how the FFTFrame
3109         implementations are pulled in and chosen so that all files can be
3110         unconditionally compiled.
3111
3112         Tested with both Chrome-branded build (incorporating MKL) and
3113         Chromium build (building just FFTFrameStub.cpp) on Linux.
3114
3115         * WebCore.gyp/WebCore.gyp:
3116         * platform/audio/fftw/FFTFrameFFTW.cpp:
3117         * platform/audio/mkl/FFTFrameMKL.cpp:
3118
3119 2011-04-14  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
3120
3121         Reviewed by Antonio Gomes.
3122
3123         [Qt] Web Inspector does not highlight elements
3124         https://bugs.webkit.org/show_bug.cgi?id=35125
3125
3126         We should call drawNodeHighlight() just if a highlighted node exists
3127         to avoid do save()/restore() on the Graphics Context unnecessarily.
3128
3129         Added highlightedNode() method to check if we need to call drawNodeHighlight()
3130         and only on this case do save()/restore() on the Graphics Context.
3131
3132         * inspector/InspectorAgent.h:
3133         (WebCore::InspectorAgent::highlightedNode):
3134
3135 2011-04-14  Adrienne Walker  <enne@google.com>
3136
3137         Reviewed by James Robinson.
3138
3139         [chromium] TilingData should return 1 tile when tile size is texture size.
3140         https://bugs.webkit.org/show_bug.cgi?id=58364
3141
3142         * platform/graphics/gpu/TilingData.cpp:
3143         (WebCore::computeNumTiles):
3144
3145 2011-04-14  Andy Estes  <aestes@apple.com>
3146
3147         Reviewed by Dan Bernstein.
3148
3149         REGRESSION (r72141): Acid3 rendering is not pixel perfect.
3150         https://bugs.webkit.org/show_bug.cgi?id=55734
3151         
3152         WebCore should render text with a 0px font size at 0px regardless of
3153         minimum font size settings. This is compatible with other browsers that
3154         have a minimum font size preference and ensures pixel-perfect rendering
3155         on Acid3.
3156
3157         Test: fast/text/zero-font-size.html
3158
3159         * css/CSSStyleSelector.cpp:
3160         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): If
3161         specifiedSize is 0, return specified size regardless of zoom factor or
3162         minimum font size.
3163
3164 2011-04-14  Matthew Delaney  <mdelaney@apple.com>
3165
3166         Reviewed by Simon Fraser.
3167
3168         Have canvas drawImageFromRect just redirect to use drawImage
3169         https://bugs.webkit.org/show_bug.cgi?id=58516
3170
3171         Test: fast/canvas/drawImageFromRect_withToDataURLAsSource.html
3172
3173         * html/canvas/CanvasRenderingContext2D.cpp:
3174         (WebCore::CanvasRenderingContext2D::drawImage):
3175         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
3176         * html/canvas/CanvasRenderingContext2D.h:
3177
3178 2011-04-14  James Robinson  <jamesr@chromium.org>
3179
3180         Reviewed by Simon Fraser.
3181
3182         REGRESSION (r83820): Lots of compositing tests failing on Windows 7 Release (Tests)
3183         https://bugs.webkit.org/show_bug.cgi?id=58535
3184
3185         Change PLATFORM(MAC) guards to !PLATFORM(CHROMIUM) so they apply correctly to the windows build.
3186
3187         * rendering/RenderLayerBacking.cpp:
3188         (WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
3189         (WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
3190         (WebCore::RenderLayerBacking::requiresScrollCornerLayer):
3191         * rendering/RenderLayerCompositor.cpp:
3192         (WebCore::shouldCompositeOverflowControls):
3193
3194 2011-04-14  Jian Li  <jianli@chromium.org>
3195
3196         Reviewed by Darin Fisher.
3197
3198         BlobBuilder should be vendor-prefixed
3199         https://bugs.webkit.org/show_bug.cgi?id=58518
3200
3201         Renamed BlobBuilder to WebKitBlobBuilder.
3202
3203         * Android.derived.jscbindings.mk:
3204         * Android.derived.v8bindings.mk:
3205         * CMakeLists.txt:
3206         * CodeGenerators.pri:
3207         * DerivedSources.cpp:
3208         * DerivedSources.make:
3209         * GNUmakefile.list.am:
3210         * WebCore.gypi:
3211         * WebCore.pro:
3212         * WebCore.vcproj/WebCore.vcproj:
3213         * WebCore.xcodeproj/project.pbxproj:
3214         * fileapi/WebKitBlobBuilder.cpp: Renamed from Source/WebCore/fileapi/BlobBuilder.cpp.
3215         (WebCore::WebKitBlobBuilder::WebKitBlobBuilder):
3216         (WebCore::WebKitBlobBuilder::getBuffer):
3217         (WebCore::WebKitBlobBuilder::append):
3218         (WebCore::WebKitBlobBuilder::getBlob):
3219         * fileapi/WebKitBlobBuilder.h: Renamed from Source/WebCore/fileapi/BlobBuilder.h.
3220         (WebCore::WebKitBlobBuilder::create):
3221         * fileapi/WebKitBlobBuilder.idl: Renamed from Source/WebCore/fileapi/BlobBuilder.idl.
3222         * page/DOMWindow.idl:
3223         * workers/WorkerContext.idl:
3224
3225 2011-04-14  Adam Barth  <abarth@webkit.org>
3226
3227         Remove some trailing whitespace.  I'm making this change to initialize
3228         the SVN credentials on a new commit-queue machine.  I'm sure there's a
3229         better way to do this, but I don't know it.
3230
3231         * dom/Document.cpp:
3232         (WebCore::Document::Document):
3233
3234 2011-04-14  Pratik Solanki  <psolanki@apple.com>
3235
3236         Reviewed by David Kilzer.
3237
3238         Set minimum priority for fast lane connections
3239         https://bugs.webkit.org/show_bug.cgi?id=58353
3240
3241         * WebCore.exp.in:
3242         * platform/mac/WebCoreSystemInterface.h:
3243         * platform/mac/WebCoreSystemInterface.mm:
3244         * platform/network/cf/ResourceRequestCFNet.cpp:
3245         (WebCore::initializeMaximumHTTPConnectionCountPerHost): Call
3246         wkSetHTTPPipeliningMinimumFastLanePriority to allow javascript resources to use the fast
3247         lane connections.
3248
3249 2011-04-14  Kenneth Russell  <kbr@google.com>
3250
3251         Reviewed by Dimitri Glazkov.
3252
3253         Fix Web Audio build on Linux Debug and with stub FFTFrame
3254         https://bugs.webkit.org/show_bug.cgi?id=58555
3255
3256         Built Chromium/Linux in Debug mode to test.
3257
3258         * platform/audio/FFTFrame.cpp:
3259         * platform/audio/FFTFrameStub.cpp:
3260         (WebCore::FFTFrame::initialize):
3261         * webaudio/AudioContext.cpp:
3262         * webaudio/DefaultAudioDestinationNode.cpp:
3263
3264 2011-04-14  Yury Semikhatsky  <yurys@chromium.org>
3265
3266         Reviewed by Pavel Feldman.
3267
3268         [v8] Web Inspector: add initial implementation of WorkerScriptDebugServer
3269         https://bugs.webkit.org/show_bug.cgi?id=58552
3270
3271         * bindings/v8/DebuggerScript.js:
3272         * bindings/v8/WorkerContextExecutionProxy.cpp:
3273         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): each worker context
3274         now have a debug id (similar to frame contexts).
3275         * bindings/v8/WorkerScriptDebugServer.cpp:
3276         (WebCore::retrieveWorkerContext):
3277         (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
3278         (WebCore::WorkerScriptDebugServer::addListener):
3279         (WebCore::WorkerScriptDebugServer::removeListener):
3280         (WebCore::WorkerScriptDebugServer::getDebugListenerForContext):
3281         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause): run message loop until
3282         debugger command is received and execution is resumed.
3283         (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause):
3284         * bindings/v8/WorkerScriptDebugServer.h:
3285         * inspector/WorkerDebuggerAgent.cpp:
3286         (WebCore::WorkerDebuggerAgent::startListeningScriptDebugServer):
3287         (WebCore::WorkerDebuggerAgent::stopListeningScriptDebugServer):
3288
3289 2011-04-14  Jian Li  <jianli@chromium.org>
3290
3291         Reviewed by Darin Fisher.
3292
3293         Add webkit prefix to Blob.slice method and change its semantics to be
3294         like Array.slice
3295         https://bugs.webkit.org/show_bug.cgi?id=58496
3296
3297         Renamed Blob.slice to blob.webkitSlice and made it take start and end
3298         parameters that're like Array.slice.
3299
3300         Test: fast/files/blob-slice-test.html
3301
3302         * fileapi/Blob.cpp:
3303         (WebCore::Blob::webkitSlice):
3304         * fileapi/Blob.h:
3305         * fileapi/Blob.idl:
3306
3307 2011-04-14  Andreas Kling  <kling@webkit.org>
3308
3309         Reviewed by Benjamin Poulain.
3310
3311         [Qt] Height of "Ahem" font differs from all other ports.
3312         https://bugs.webkit.org/show_bug.cgi?id=57954
3313
3314         QFontMetricsF::descent() returns the actual descent minus 1,
3315         to account for the baseline. Add it back to get correct metrics
3316         for WebKit.
3317
3318         QFontMetricsF::leading() may return negative values on some
3319         platforms (those using FreeType), this breaks WebKit's assumption
3320         that lineSpacing >= (ascent + descent), so we work around this in
3321         the same fashion as SimpleFontDataFreeType and SimpleFontDataPango.
3322
3323         This is covered by thousands of layout tests.
3324
3325         * platform/graphics/qt/SimpleFontDataQt.cpp:
3326         (WebCore::SimpleFontData::platformInit):
3327
3328 2011-04-14  Kevin Ollivier  <kevino@theolliviers.com>
3329
3330         [wx] Unreviewed build fixes for wxMSW and wx 2.9.1.1.
3331
3332         * platform/graphics/wx/FontPlatformDataWx.cpp:
3333         (WebCore::FontPlatformData::FontPlatformData):
3334         * platform/wx/FileSystemWx.cpp:
3335         (WebCore::writeToFile):
3336
3337 2011-04-14  Anders Carlsson  <andersca@apple.com>
3338
3339         Fix build.
3340
3341         RuntimeApplicationChecks.h needs to be a private header so WebKit can find it.
3342
3343         * WebCore.xcodeproj/project.pbxproj:
3344
3345 2011-04-14  Pavel Podivilov  <podivilov@chromium.org>
3346
3347         Unreviewed, build fix for r83864.
3348
3349         * inspector/front-end/DOMAgent.js:
3350         (WebInspector.DOMAgent.prototype._childNodeRemoved):
3351
3352 2011-04-14  Alexander Pavlov  <apavlov@chromium.org>
3353
3354         Reviewed by Pavel Feldman.
3355
3356         Web Inspector: Content area highlight does not cover scrollbars
3357         https://bugs.webkit.org/show_bug.cgi?id=58528
3358
3359         * inspector/DOMNodeHighlighter.cpp:
3360         (WebCore::DOMNodeHighlighter::DrawNodeHighlight):
3361
3362 2011-04-14  Pavel Podivilov  <podivilov@chromium.org>
3363
3364         Reviewed by Pavel Feldman.
3365
3366         Web Inspector: re-implement dom breakpoints.
3367         https://bugs.webkit.org/show_bug.cgi?id=57038
3368
3369         * WebCore.gypi:
3370         * WebCore.vcproj/WebCore.vcproj:
3371         * inspector/front-end/BreakpointManager.js: Removed.
3372         * inspector/front-end/BreakpointsSidebarPane.js:
3373         (WebInspector.NativeBreakpointsSidebarPane):
3374         (WebInspector.NativeBreakpointsSidebarPane.prototype._reset):
3375         (WebInspector.XHRBreakpointsSidebarPane.prototype._restoreBreakpoints):
3376         * inspector/front-end/CallStackSidebarPane.js:
3377         (WebInspector.CallStackSidebarPane.prototype.update):
3378         (WebInspector.CallStackSidebarPane.prototype.setStatus):
3379         * inspector/front-end/DOMAgent.js:
3380         (WebInspector.DOMNode):
3381         (WebInspector.DOMAgent.prototype._childNodeRemoved):
3382         * inspector/front-end/DOMBreakpointsSidebarPane.js: Added.
3383         (WebInspector.DOMBreakpointsSidebarPane):
3384         (WebInspector.DOMBreakpointsSidebarPane.prototype.setInspectedURL):
3385         (WebInspector.DOMBreakpointsSidebarPane.prototype.populateNodeContextMenu.toggleBreakpoint):
3386         (WebInspector.DOMBreakpointsSidebarPane.prototype.populateNodeContextMenu):
3387         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage.didPushNodeToFrontend):
3388         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage):
3389         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage.formatters.s):
3390         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage.append):
3391         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage):
3392         (WebInspector.DOMBreakpointsSidebarPane.prototype.nodeRemoved):
3393         (WebInspector.DOMBreakpointsSidebarPane.prototype._removeBreakpointsForNode):
3394         (WebInspector.DOMBreakpointsSidebarPane.prototype._setBreakpoint):
3395         (WebInspector.DOMBreakpointsSidebarPane.prototype._removeBreakpoint):
3396         (WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu.removeBreakpoint):
3397         (WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu):
3398         (WebInspector.DOMBreakpointsSidebarPane.prototype._checkboxClicked):
3399         (WebInspector.DOMBreakpointsSidebarPane.prototype.highlightBreakpoint):
3400         (WebInspector.DOMBreakpointsSidebarPane.prototype.clearBreakpointHighlight):
3401         (WebInspector.DOMBreakpointsSidebarPane.prototype._createBreakpointId):
3402         (WebInspector.DOMBreakpointsSidebarPane.prototype._saveBreakpoints):
3403         (WebInspector.DOMBreakpointsSidebarPane.prototype.restoreBreakpoints):
3404         * inspector/front-end/ElementsPanel.js:
3405         (WebInspector.ElementsPanel):
3406         (WebInspector.ElementsPanel.prototype.show):
3407         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
3408         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes.coalesceCollapsedCrumbs):
3409         * inspector/front-end/ElementsTreeOutline.js:
3410         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
3411         * inspector/front-end/ScriptsPanel.js:
3412         (WebInspector.ScriptsPanel):
3413         (WebInspector.ScriptsPanel.prototype.show):
3414         (WebInspector.ScriptsPanel.prototype._debuggerPaused.didCreateBreakpointHitStatusMessage):
3415         (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation):
3416         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
3417         (WebInspector.ScriptsPanel.prototype._clearInterface):
3418         * inspector/front-end/Settings.js:
3419         (WebInspector.Settings):
3420         (WebInspector.Settings.prototype._set):
3421         * inspector/front-end/WebKit.qrc:
3422         * inspector/front-end/inspector.html:
3423         * inspector/front-end/inspector.js:
3424         (WebInspector.inspectedURLChanged):
3425         * inspector/front-end/utilities.js:
3426         ():
3427
3428 2011-04-14  Satish Sampath  <satish@chromium.org>
3429
3430         Reviewed by Kent Tamura.
3431
3432         Disable speech input for readonly and disabled input fields.
3433         https://bugs.webkit.org/show_bug.cgi?id=58540
3434
3435         Test: fast/speech/input-readonly-and-disabled.html
3436
3437         * html/shadow/TextControlInnerElements.cpp:
3438         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
3439         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
3440
3441 2011-04-14  Ilya Tikhonovsky  <loislo@chromium.org>
3442
3443         Unreviewed. Rollout r83849 and r83857.
3444
3445         * inspector/Inspector.json:
3446         * inspector/InspectorDatabaseAgent.cpp:
3447         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
3448         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
3449         (WebCore::InspectorDatabaseAgent::setFrontend):
3450         (WebCore::InspectorDatabaseAgent::clearFrontend):
3451         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
3452         (WebCore::InspectorDatabaseAgent::executeSQL):
3453         * inspector/InspectorDatabaseAgent.h:
3454         * inspector/front-end/inspector.js:
3455
3456 2011-04-14  Dimitri Glazkov  <dglazkov@chromium.org>
3457
3458         Unreviewed, rolling out r83847.
3459         http://trac.webkit.org/changeset/83847
3460         https://bugs.webkit.org/show_bug.cgi?id=58477
3461
3462         Chromium media controls do use button borders, so this change
3463         is incorrect.
3464
3465         * css/mediaControls.css:
3466         (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
3467         (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
3468         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
3469         (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
3470         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
3471         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
3472         (audio::-webkit-media-c