2011-06-08 Chris Rogers <crogers@google.com>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-06-08  Chris Rogers  <crogers@google.com>
2
3         Reviewed by Kenneth Russell.
4
5         Implement BiquadFilterNode for filter types: LOWPASS, HIGHPASS, BANDPASS, LOWSHELF, HIGHSHELF, PEAKING, NOTCH, ALLPASS
6         https://bugs.webkit.org/show_bug.cgi?id=62078
7
8         No new tests since audio API is not yet implemented.
9
10         * DerivedSources.make:
11         * WebCore.gypi:
12         * WebCore.xcodeproj/project.pbxproj:
13         * platform/audio/Biquad.cpp:
14         (WebCore::Biquad::Biquad):
15         (WebCore::Biquad::reset):
16         (WebCore::Biquad::setLowpassParams):
17         (WebCore::Biquad::setHighpassParams):
18         (WebCore::Biquad::setNormalizedCoefficients):
19         (WebCore::Biquad::setLowShelfParams):
20         (WebCore::Biquad::setHighShelfParams):
21         (WebCore::Biquad::setPeakingParams):
22         (WebCore::Biquad::setAllpassParams):
23         (WebCore::Biquad::setNotchParams):
24         (WebCore::Biquad::setBandpassParams):
25         (WebCore::Biquad::setZeroPolePairs):
26         (WebCore::Biquad::setAllpassPole):
27         * platform/audio/Biquad.h:
28         * webaudio/AudioContext.cpp:
29         (WebCore::AudioContext::createBiquadFilter):
30         (WebCore::AudioContext::createLowPass2Filter):
31         (WebCore::AudioContext::createHighPass2Filter):
32         * webaudio/AudioContext.h:
33         * webaudio/AudioContext.idl:
34         * webaudio/AudioNode.h:
35         * webaudio/BiquadDSPKernel.cpp:
36         (WebCore::BiquadDSPKernel::process):
37         * webaudio/BiquadFilterNode.cpp: Added.
38         (WebCore::BiquadFilterNode::BiquadFilterNode):
39         * webaudio/BiquadFilterNode.h: Added.
40         (WebCore::BiquadFilterNode::create):
41         (WebCore::BiquadFilterNode::type):
42         (WebCore::BiquadFilterNode::setType):
43         (WebCore::BiquadFilterNode::frequency):
44         (WebCore::BiquadFilterNode::q):
45         (WebCore::BiquadFilterNode::gain):
46         (WebCore::BiquadFilterNode::biquadProcessor):
47         * webaudio/BiquadFilterNode.idl: Added.
48         * webaudio/BiquadProcessor.cpp:
49         (WebCore::BiquadProcessor::BiquadProcessor):
50         * webaudio/BiquadProcessor.h:
51         (WebCore::BiquadProcessor::setType):
52         * webaudio/HighPass2FilterNode.cpp:
53         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
54         * webaudio/LowPass2FilterNode.cpp:
55         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
56
57 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
58
59         Reviewed by Kenneth Rohde Christiansen.
60
61         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
62         https://bugs.webkit.org/show_bug.cgi?id=61694
63
64         No new tests, code path is not activated yet.
65
66         * WebCore.xcodeproj/project.pbxproj: Changed the TransformOperation subclassed from "project" to "private"
67
68 2011-06-08  Tom Sepez  <tsepez@chromium.org>
69
70         Reviewed by Adam Barth.
71
72         Cause checks for insecure content blocking policy to callback to client.
73         https://bugs.webkit.org/show_bug.cgi?id=61946
74         Tests: platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html
75                platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html
76                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html
77                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html
78
79         * loader/FrameLoader.cpp:
80         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
81         (WebCore::FrameLoader::checkIfRunInsecureContent):
82         * loader/FrameLoaderClient.h:
83         (WebCore::FrameLoaderClient::allowDisplayingInsecureContent):
84         (WebCore::FrameLoaderClient::allowRunningInsecureContent):
85
86 2011-06-08  Kevin Ollivier  <kevino@theolliviers.com>
87
88         [wx] Build fix after introduction of FontCache::ShouldRetain
89
90         * platform/graphics/wx/FontCacheWx.cpp:
91         (WebCore::FontCache::getFontDataForCharacters):
92
93 2011-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
94
95         Unreviewed, rolling out r88365.
96         http://trac.webkit.org/changeset/88365
97         https://bugs.webkit.org/show_bug.cgi?id=62301
98
99         windows bots broken (Requested by loislo_ on #webkit).
100
101         * inspector/InspectorValues.cpp:
102         (WebCore::InspectorBasicValue::writeJSON):
103
104 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
105
106         Reviewed by Pavel Feldman.
107
108         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
109         https://bugs.webkit.org/show_bug.cgi?id=52791
110
111         No new tests. The problem can be reproduced by trying to create InspectorValue
112         from 1.0e-100 and call ->toJSONString() on this.
113
114         * inspector/InspectorValues.cpp:
115         (WebCore::InspectorBasicValue::writeJSON):
116         Added checking the predicted buffer size and choosing exponential format, or
117         eventually "NaN" if the buffer is too small for decimal format.
118
119 2011-06-08  Nico Weber  <thakis@chromium.org>
120
121         Reviewed by Darin Adler.
122
123         Fix a ?: precedence error in ScrollbarThemeMac and ScrollbarThemeChromium
124         https://bugs.webkit.org/show_bug.cgi?id=62295
125
126         This was found by a new warning recently added to clang's -Wparentheses
127
128         * platform/chromium/ScrollbarThemeChromiumMac.mm:
129         (WebCore::ScrollbarThemeChromiumMac::backButtonRect):
130         * platform/mac/ScrollbarThemeMac.mm:
131         (WebCore::ScrollbarThemeMac::backButtonRect):
132
133 2011-06-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
134
135         Reviewed by Andreas Kling.
136
137         [Qt] Remove dead code from our JSC bridge
138         https://bugs.webkit.org/show_bug.cgi?id=62287
139
140         The m_defaultMethod member is not used since r36848 and QtMethod
141         was replaced by QtRuntimeMethod and subclasses in r29729.
142
143         * bridge/qt/qt_instance.cpp:
144         (JSC::Bindings::QtInstance::removeCachedMethod):
145         (JSC::Bindings::QtInstance::visitAggregate):
146         * bridge/qt/qt_instance.h:
147         * bridge/qt/qt_runtime.h:
148
149 2011-06-08  Ryan Sleevi  <rsleevi@chromium.org>
150
151         Reviewed by Tony Chang.
152
153         Suppress C++0x compat warnings when compiling Chromium port with GCC 4.6
154
155         Compiling Chromium port under GCC 4.6 produces warnings about nullptr
156         https://bugs.webkit.org/show_bug.cgi?id=62242
157
158         * WebCore.gyp/WebCore.gyp:
159
160 2011-05-25  Xiaomei Ji  <xji@chromium.org>
161
162         Reviewed by Ryosuke Niwa.
163
164         --webkit-visual-word does not work well in words separated by multiple spaces
165         https://bugs.webkit.org/show_bug.cgi?id=61324
166
167         Remove positionBeforeNextWord and positionAfterPreviousWord short-cuts. They try to find the
168         right word boundary (before the space or after the space) by using previousWordPosition and
169         nextWordPosition. But they assume words are separated by single space and are not correct 
170         for words separated by multiple spaces and words not separated by space.
171
172         Consider positionBeforeNextWord() for example, 
173
174         First, it checks whether the current position is after the current word by checking current
175         position's previousWordPosition's nextWordPosition is the same as current position, which is
176         wrong for words separated by multiple spaces. For example, given words A and B separated by 
177         3 continuous spaces "A   B", position "A|", "A |", and "A  |" should all be considered as 
178         position after current word. But for position "A |", its previousWordPosition's 
179         nextWordPosition is position "A|", which is different from its current position, so the
180         current position is not considered as a position after current word, consequently,
181         instead of returning the right position as "A   |B", positionBeforeNextWord returns the
182         position before next next word, as "A   B |C". Similar happens for position "A  |".
183
184         Second, given 3 Chinese words "ABC" that are not segmented by space, when cursor is at 
185         "A|BC", positionBeforeNextWord() returns the same position after calling current position's
186         nextWordPosition's previousWordPosition. It should returns position "AB|C".
187
188         For those cases, we will have to collect all the word breaks inside the box and look for
189         the one at left or right of current position.
190
191         * editing/visible_units.cpp:
192         (WebCore::leftWordPosition):
193         (WebCore::rightWordPosition):
194
195 2011-06-08  Greg Simon  <gregsimon@chromium.org>
196
197         Reviewed by Dimitri Glazkov.
198
199         Control Indexeddb backends from LayoutTestController
200         https://bugs.webkit.org/show_bug.cgi?id=61000
201
202         Test: storage/indexeddb/migrate-basics.html
203
204         * storage/IDBBackingStore.h:
205         * storage/IDBFactoryBackendImpl.cpp:
206         (WebCore::IDBFactoryBackendImpl::open):
207         (WebCore::IDBFactoryBackendImpl::migrate):
208         * storage/IDBFactoryBackendImpl.h:
209         * storage/IDBFactoryBackendInterface.h:
210         * storage/IDBLevelDBBackingStore.cpp:
211         (WebCore::IDBLevelDBBackingStore::backingStoreExists):
212         * storage/IDBLevelDBBackingStore.h:
213         (WebCore::IDBLevelDBBackingStore::backingStoreType):
214         * storage/IDBSQLiteBackingStore.cpp:
215         (WebCore::IDBSQLiteBackingStore::backingStoreExists):
216         * storage/IDBSQLiteBackingStore.h:
217         (WebCore::IDBSQLiteBackingStore::backingStoreType):
218
219 2011-06-08  Dmitry Lomov  <dslomov@google.com>
220
221         Reviewed by Adam Barth.
222
223         https://bugs.webkit.org/show_bug.cgi?id=62164
224         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
225         This functionality is untested and unused:
226         This is an old code from Lockers-based implementation of WebWorkers in
227         V8 bindings, to make sure that DOM objects are released on the right thread
228         even though GC could have happened on any thread. It is currently unused (since
229         current model is one worker per process) and is being removed because new implementation
230         of WebWorkers will be using V8 isolates.
231
232         * WebCore.gypi:
233         * WebCore.pro:
234         * bindings/v8/ChildThreadDOMData.cpp: Removed.
235         * bindings/v8/ChildThreadDOMData.h: Removed.
236         * bindings/v8/DOMData.cpp:
237         (WebCore::DOMData::DOMData):
238         (WebCore::DOMData::getCurrent):
239         (WebCore::DOMData::getMainThreadStore):
240         * bindings/v8/DOMData.h:
241         (WebCore::DOMData::getStore):
242         (WebCore::DOMData::getCurrentMainThreadStore):
243         (WebCore::DOMData::handleWeakObject):
244         * bindings/v8/DOMDataStore.cpp:
245         (WebCore::DOMDataStore::DOMDataStore):
246         (WebCore::DOMDataStore::~DOMDataStore):
247         (WebCore::DOMDataStore::weakNodeCallback):
248         * bindings/v8/DOMDataStore.h:
249         * bindings/v8/MainThreadDOMData.cpp: Removed.
250         * bindings/v8/MainThreadDOMData.h: Removed.
251         * bindings/v8/V8DOMMap.cpp:
252         (WebCore::getDOMDataStore):
253         (WebCore::removeAllDOMObjects):
254         (WebCore::visitDOMNodes):
255         (WebCore::visitDOMObjects):
256         (WebCore::visitActiveDOMObjects):
257         (WebCore::visitDOMSVGElementInstances):
258         * bindings/v8/V8DOMMap.h:
259         * bindings/v8/V8GCController.cpp:
260         (WebCore::V8GCController::gcPrologue):
261         (WebCore::V8GCController::gcEpilogue):
262         * bindings/v8/WorkerScriptController.cpp:
263         (WebCore::WorkerScriptController::~WorkerScriptController):
264
265 2011-06-08  Yael Aharon  <yael.aharon@nokia.com>
266
267         Reviewed by Andreas Kling.
268
269         [Qt] Build fix for building QtWebKit inside of Qt.
270         https://bugs.webkit.org/show_bug.cgi?id=62280
271
272         Remove CONFIG=staticlib, because it causes the configure script to add -lwebcore
273         into QtWebKit.prl.
274
275         No new tests, as this is just a build fix.
276
277         * WebCore.pri:
278
279 2011-06-08  Vsevolod Vlasov  <vsevik@chromium.org>
280
281         Reviewed by Pavel Feldman.
282
283         Web Inspector: Render non-document HTML resources as HTML
284         https://bugs.webkit.org/show_bug.cgi?id=58886
285
286         * English.lproj/localizedStrings.js:
287         * WebCore.gypi:
288         * WebCore.vcproj/WebCore.vcproj:
289         * inspector/front-end/NetworkItemView.js:
290         (WebInspector.NetworkItemView):
291         * inspector/front-end/Resource.js:
292         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
293         (WebInspector.Resource.prototype.hasErrorStatusCode):
294         * inspector/front-end/ResourceHTMLView.js: Added.
295         (WebInspector.ResourceHTMLView):
296         (WebInspector.ResourceHTMLView.prototype.hasContent):
297         (WebInspector.ResourceHTMLView.prototype.show):
298         (WebInspector.ResourceHTMLView.prototype.hide):
299         (WebInspector.ResourceHTMLView.prototype._createIFrame):
300         * inspector/front-end/ResourcePreviewView.js: Added.
301         (WebInspector.ResourcePreviewView):
302         (WebInspector.ResourcePreviewView.prototype.hasContent):
303         (WebInspector.ResourcePreviewView.prototype.show):
304         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
305         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
306         (WebInspector.ResourcePreviewView.prototype._createInnerView):
307         * inspector/front-end/Settings.js:
308         (WebInspector.Settings):
309         * inspector/front-end/WebKit.qrc:
310         * inspector/front-end/inspector.css:
311         (.resource-view.html iframe):
312         * inspector/front-end/inspector.html:
313
314 2011-05-18  Pavel Podivilov  <podivilov@chromium.org>
315
316         Reviewed by Yury Semikhatsky.
317
318         Web Inspector: hide script location to ui location conversion details from ScriptsPanel.
319         https://bugs.webkit.org/show_bug.cgi?id=61035
320
321         * inspector/front-end/DebuggerPresentationModel.js:
322         (WebInspector.DebuggerPresentationModel.prototype.sourceFileForScriptURL):
323         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation.didRequestSourceMapping):
324         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation):
325         * inspector/front-end/ScriptsPanel.js:
326         (WebInspector.ScriptsPanel.prototype.showAnchorLocation.didGetUILocation):
327         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
328
329 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
330
331         Reviewed by Tony Gentilcore.
332
333         StreamEvent
334
335         Media Stream PeerConnection API: adding StreamEvent class
336         https://bugs.webkit.org/show_bug.cgi?id=61537
337
338         Tests for the Media Stream API will be provided by the bug 56587.
339
340         * CMakeLists.txt:
341         * CodeGenerators.pri:
342         * DerivedSources.cpp:
343         * DerivedSources.make:
344         * GNUmakefile.list.am:
345         * WebCore.gypi:
346         * WebCore.pro:
347         * WebCore.vcproj/WebCore.vcproj:
348         * WebCore.xcodeproj/project.pbxproj:
349         * bindings/js/JSEventCustom.cpp:
350         (WebCore::toJS):
351         * bindings/v8/custom/V8EventCustom.cpp:
352         (WebCore::toV8):
353         * dom/DOMAllInOne.cpp:
354         * dom/Event.cpp:
355         (WebCore::Event::isStreamEvent):
356         * dom/Event.h:
357         * dom/StreamEvent.cpp: Added.
358         (WebCore::StreamEvent::create):
359         (WebCore::StreamEvent::StreamEvent):
360         (WebCore::StreamEvent::~StreamEvent):
361         (WebCore::StreamEvent::initStreamEvent):
362         (WebCore::StreamEvent::stream):
363         * dom/StreamEvent.h: Added.
364         (WebCore::StreamEvent::isStreamEvent):
365         * dom/StreamEvent.idl: Added.
366
367 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
368
369         Reviewed by Tony Gentilcore.
370
371         Media Stream API: integrate the Track List objects into the existing code.
372         https://bugs.webkit.org/show_bug.cgi?id=60205
373
374         Tests for the Media Stream API will be provided by the bug 56587.
375
376         * dom/ExclusiveTrackList.cpp:
377         (WebCore::ExclusiveTrackList::select):
378         (WebCore::ExclusiveTrackList::trackFailed):
379         * dom/ExclusiveTrackList.h:
380         * dom/GeneratedStream.cpp:
381         (WebCore::GeneratedStream::create):
382         (WebCore::GeneratedStream::GeneratedStream):
383         (WebCore::GeneratedStream::streamEnded):
384         (WebCore::GeneratedStream::audioTracks):
385         (WebCore::GeneratedStream::videoTracks):
386         (WebCore::GeneratedStream::stop):
387         * dom/GeneratedStream.h:
388         * dom/GeneratedStream.idl:
389         * dom/MultipleTrackList.cpp:
390         (WebCore::MultipleTrackList::trackFailed):
391         (WebCore::MultipleTrackList::enable):
392         (WebCore::MultipleTrackList::disable):
393         * dom/MultipleTrackList.h:
394         * dom/Stream.h:
395         * dom/TrackList.cpp:
396         (WebCore::TrackList::clear):
397         (WebCore::TrackList::associateStream):
398         (WebCore::TrackList::associatedStreamLabel):
399         (WebCore::TrackList::trackFailed):
400         (WebCore::TrackList::scriptExecutionContext):
401         * dom/TrackList.h:
402         * page/MediaStreamClient.h:
403         * page/MediaStreamController.cpp:
404         (WebCore::MediaStreamController::enableAudioTrack):
405         (WebCore::MediaStreamController::disableAudioTrack):
406         (WebCore::MediaStreamController::selectVideoTrack):
407         (WebCore::MediaStreamController::streamGenerated):
408         (WebCore::MediaStreamController::audioTrackFailed):
409         (WebCore::MediaStreamController::videoTrackFailed):
410         * page/MediaStreamController.h:
411         * page/MediaStreamFrameController.cpp:
412         (WebCore::MediaStreamFrameController::unregister):
413         (WebCore::MediaStreamFrameController::enterDetachedState):
414         (WebCore::MediaStreamFrameController::disconnectFrame):
415         (WebCore::MediaStreamFrameController::enableAudioTrack):
416         (WebCore::MediaStreamFrameController::disableAudioTrack):
417         (WebCore::MediaStreamFrameController::selectVideoTrack):
418         (WebCore::MediaStreamFrameController::streamGenerated):
419         (WebCore::MediaStreamFrameController::audioTrackFailed):
420         (WebCore::MediaStreamFrameController::videoTrackFailed):
421         * page/MediaStreamFrameController.h:
422         (WebCore::MediaStreamFrameController::ClientBase::isGenericClient):
423         (WebCore::MediaStreamFrameController::GenericClient::GenericClient):
424         (WebCore::MediaStreamFrameController::GenericClient::~GenericClient):
425         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
426         (WebCore::MediaStreamFrameController::GenericClient::unregister):
427
428 2011-06-08  Pavel Podivilov  <podivilov@chromium.org>
429
430         Reviewed by Yury Semikhatsky.
431
432         Web Inspector: [REGRESSION] breakpoints are not persisted.
433         https://bugs.webkit.org/show_bug.cgi?id=62273
434
435         * inspector/front-end/Settings.js:
436
437 2011-06-08  Alexander Pavlov  <apavlov@chromium.org>
438
439         Reviewed by Yury Semikhatsky.
440
441         Web Inspector: node selection is slow in the Elements panel.
442         https://bugs.webkit.org/show_bug.cgi?id=60813
443
444         Schedule full style updates rather than request all node styles from the backend immediately.
445
446         * inspector/front-end/StylesSidebarPane.js:
447         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
448         (WebInspector.StylesSidebarPane.prototype.update):
449
450 2011-06-08  Andreas Kling  <andreas.kling@nokia.com>
451
452         Reviewed by Laszlo Gombos.
453
454         [Symbian] Float{32,64}Array and Int16Array fail to build.
455         https://bugs.webkit.org/show_bug.cgi?id=62219
456
457         For some reason, RVCT 2.x is moaning about "class member designated by
458         a using-declaration must be visible in a direct base class".
459         Apply same fix as r69122 and r76592.
460
461         * html/canvas/Float32Array.h:
462         (WebCore::Float32Array::set):
463         * html/canvas/Float64Array.h:
464         (WebCore::Float64Array::set):
465         * html/canvas/Int16Array.h:
466         (WebCore::Int16Array::set):
467
468 2011-06-08  Syed Idris Shah  <syed.idris-shah@nokia.com>
469
470         Reviewed by Andreas Kling.
471
472         [Qt] GL_POINT_SPRITE and GL_VERTEX_PROGRAM_POINT_SIZE should be enabled for desktop WebGL
473         https://bugs.webkit.org/show_bug.cgi?id=61945
474
475         For OpenGL ES we do not need these features. 
476         These features are available via shaders in OpenGL ES. But for desktop WebGL using QtWebKit they should be enabled.
477
478         LayoutTests/fast/canvas/webgl/point-size.html
479
480         * platform/graphics/qt/GraphicsContext3DQt.cpp:
481         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
482
483 2011-06-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
484
485         Unreviewed. Fix style error.
486
487         * platform/efl/RenderThemeEfl.cpp:
488         * platform/efl/RenderThemeEfl.h:
489
490 2011-06-08  Hironori Bono  <hbono@chromium.org>
491
492         Reviewed by Brent Fulgham.
493
494         Add SpellCheck API
495         https://bugs.webkit.org/show_bug.cgi?id=59693
496
497         This change adds two SpellCheck API functions (addSpellcheckRange and
498         removeSpellcheckRange) and one attribute (spellcheckRange) discussed in
499         the public-webapps ML. This change is currently available only on Chromium.
500
501         Tests: editing/spelling/spellcheck-api-pixel.html
502                editing/spelling/spellcheck-api.html
503
504         * WebCore.gypi:
505         * bindings/generic/RuntimeEnabledFeatures.cpp:
506         * bindings/generic/RuntimeEnabledFeatures.h:
507         (WebCore::RuntimeEnabledFeatures::spellCheckAPIEnabled):
508         (WebCore::RuntimeEnabledFeatures::setSpellCheckAPIEnabled):
509         * dom/DocumentMarker.h:
510         (WebCore::DocumentMarker::length):
511         * dom/DocumentMarkerController.cpp:
512         (WebCore::DocumentMarkerController::userSpellingMarkersForNode):
513         (WebCore::DocumentMarkerController::addUserSpellingMarker):
514         (WebCore::DocumentMarkerController::removeUserSpellingMarker):
515         (WebCore::DocumentMarkerController::userSpellingNode):
516         * dom/DocumentMarkerController.h:
517         * html/HTMLDivElement.cpp:
518         (WebCore::HTMLDivElement::spellcheckRanges):
519         (WebCore::HTMLDivElement::addSpellcheckRange):
520         (WebCore::HTMLDivElement::removeSpellcheckRange):
521         * html/HTMLDivElement.h:
522         * html/HTMLDivElement.idl:
523         * html/HTMLInputElement.cpp:
524         (WebCore::HTMLInputElement::spellcheckRanges):
525         (WebCore::HTMLInputElement::addSpellcheckRange):
526         (WebCore::HTMLInputElement::removeSpellcheckRange):
527         * html/HTMLInputElement.h:
528         * html/HTMLInputElement.idl:
529         * html/HTMLTextAreaElement.cpp:
530         (WebCore::HTMLTextAreaElement::spellcheckRanges):
531         (WebCore::HTMLTextAreaElement::addSpellcheckRange):
532         (WebCore::HTMLTextAreaElement::removeSpellcheckRange):
533         * html/HTMLTextAreaElement.h:
534         * html/HTMLTextAreaElement.idl:
535         * html/SpellcheckRange.cpp: Added.
536         (WebCore::SpellcheckRange::SpellcheckRange):
537         (WebCore::SpellcheckRange::~SpellcheckRange):
538         * html/SpellcheckRange.h: Added.
539         (WebCore::SpellcheckRange::create):
540         (WebCore::SpellcheckRange::start):
541         (WebCore::SpellcheckRange::length):
542         (WebCore::SpellcheckRange::suggestions):
543         (WebCore::SpellcheckRange::options):
544         * html/SpellcheckRange.idl: Added.
545         * html/SpellcheckRangeList.cpp: Added.
546         (WebCore::SpellcheckRangeList::SpellcheckRangeList):
547         (WebCore::SpellcheckRangeList::~SpellcheckRangeList):
548         (WebCore::SpellcheckRangeList::item):
549         * html/SpellcheckRangeList.h: Added.
550         (WebCore::SpellcheckRangeList::create):
551         (WebCore::SpellcheckRangeList::isEmpty):
552         (WebCore::SpellcheckRangeList::clear):
553         (WebCore::SpellcheckRangeList::append):
554         (WebCore::SpellcheckRangeList::remove):
555         (WebCore::SpellcheckRangeList::length):
556         * html/SpellcheckRangeList.idl: Added.
557         * rendering/InlineTextBox.cpp:
558         (WebCore::textCheckingLineStyleForMarkerType):
559         (WebCore::InlineTextBox::paintDocumentMarkers):
560
561 2011-06-07  Andrey Kosyakov  <caseq@chromium.org>
562
563         Reviewed by Pavel Feldman.
564
565         Web Inspector: remove shadow dom inspection from Elements panel by default.
566         https://bugs.webkit.org/show_bug.cgi?id=62188
567
568         This reverts r85751
569
570         * dom/Element.cpp:
571         (WebCore::Element::ensureShadowRoot):
572         (WebCore::Element::removeShadowRoot):
573         * inspector/Inspector.json:
574         * inspector/InspectorDOMAgent.cpp:
575         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
576         (WebCore::InspectorDOMAgent::buildObjectForNode):
577         (WebCore::InspectorDOMAgent::didInsertDOMNode):
578         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
579         * inspector/InspectorDOMAgent.h:
580         * inspector/front-end/DOMAgent.js:
581         (WebInspector.DOMNode):
582         (WebInspector.DOMNode.prototype._renumber):
583         (WebInspector.DOMAgent.prototype._bindNodes):
584         (WebInspector.DOMAgent.prototype.querySelectorAll):
585         (WebInspector.DOMDispatcher.prototype.searchResults):
586         * inspector/front-end/ElementsPanel.js:
587         (WebInspector.ElementsPanel):
588         (WebInspector.ElementsPanel.prototype._attributesUpdated):
589         (WebInspector.ElementsPanel.prototype._characterDataModified):
590         (WebInspector.ElementsPanel.prototype._nodeInserted):
591         (WebInspector.ElementsPanel.prototype._nodeRemoved):
592         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
593         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
594         * inspector/front-end/ElementsTreeOutline.js:
595         (WebInspector.ElementsTreeElement):
596         (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
597         (WebInspector.ElementsTreeElement.prototype._updateChildren):
598         ():
599         * inspector/front-end/inspector.css:
600         * inspector/front-end/utilities.js:
601         (Element.prototype.query):
602
603 2011-06-08  Mark Rowe  <mrowe@apple.com>
604
605         Fix the build.
606
607         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
608         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged):
609         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
610
611 2011-06-07  Keishi Hattori  <keishi@webkit.org>
612
613         Reviewed by Kent Tamura.
614
615         Rename HTMLInputElement::m_value to m_valueIfDirty
616         https://bugs.webkit.org/show_bug.cgi?id=61990
617
618         No new tests because no behavior change.
619
620         * html/HTMLInputElement.cpp: Replaced m_value with m_valueIfDirty.
621         (WebCore::HTMLInputElement::tooLong):
622         (WebCore::HTMLInputElement::updateType):
623         (WebCore::HTMLInputElement::parseMappedAttribute):
624         (WebCore::HTMLInputElement::copyNonAttributeProperties):
625         (WebCore::HTMLInputElement::value):
626         (WebCore::HTMLInputElement::setValue):
627         (WebCore::HTMLInputElement::setValueFromRenderer):
628         (WebCore::HTMLInputElement::updateValueIfNeeded):
629         * html/HTMLInputElement.h: Renamed m_value to m_valueIfDirty.
630         (WebCore::HTMLInputElement::hasDirtyValue): Added. Returns the dirty value flag.
631
632 2011-06-07  Ian Henderson  <ianh@apple.com>
633
634         Reviewed by Dan Bernstein.
635
636         (CG) Sub-image drawing clips unnecessarily
637         https://bugs.webkit.org/show_bug.cgi?id=62258
638
639         If destRect completely encompasses the adjustedDestRect into which we
640         draw, clipping to destRect will do nothing.  Skip the call to
641         CGContextClipToRect in this case.
642
643         * platform/graphics/cg/ImageCG.cpp:
644         (WebCore::BitmapImage::draw):
645
646 2011-06-07  Emil A Eklund  <eae@chromium.org>
647
648         Reviewed by Eric Seidel.
649
650         Convert nodeAtPoint to IntPoint
651         https://bugs.webkit.org/show_bug.cgi?id=62145
652
653         Convert nodeAtPoint to take an IntPoint instead of a pair of ints for the
654         accumulated offset.
655
656         Covered by existing tests.
657
658         * platform/graphics/FloatPoint.h:
659         (WebCore::FloatPoint::moveBy):
660         Add moveBy(IntPoint) method
661         
662         * rendering/EllipsisBox.cpp:
663         (WebCore::EllipsisBox::nodeAtPoint):
664         * rendering/EllipsisBox.h:
665         * rendering/InlineBox.cpp:
666         (WebCore::InlineBox::nodeAtPoint):
667         * rendering/InlineBox.h:
668         * rendering/InlineFlowBox.cpp:
669         (WebCore::InlineFlowBox::nodeAtPoint):
670         * rendering/InlineFlowBox.h:
671         * rendering/InlineTextBox.cpp:
672         (WebCore::InlineTextBox::nodeAtPoint):
673         * rendering/InlineTextBox.h:
674         * rendering/RenderBlock.cpp:
675         (WebCore::RenderBlock::nodeAtPoint):
676         (WebCore::RenderBlock::hitTestContents):
677         * rendering/RenderBlock.h:
678         * rendering/RenderBox.cpp:
679         (WebCore::RenderBox::nodeAtPoint):
680         * rendering/RenderBox.h:
681         * rendering/RenderFrameSet.cpp:
682         (WebCore::RenderFrameSet::nodeAtPoint):
683         * rendering/RenderFrameSet.h:
684         * rendering/RenderImage.cpp:
685         (WebCore::RenderImage::nodeAtPoint):
686         * rendering/RenderImage.h:
687         * rendering/RenderInline.cpp:
688         (WebCore::RenderInline::nodeAtPoint):
689         * rendering/RenderInline.h:
690         * rendering/RenderLineBoxList.cpp:
691         (WebCore::RenderLineBoxList::hitTest):
692         * rendering/RenderListBox.cpp:
693         (WebCore::RenderListBox::nodeAtPoint):
694         * rendering/RenderListBox.h:
695         * rendering/RenderObject.cpp:
696         (WebCore::RenderObject::hitTest):
697         * rendering/RenderObject.h:
698         * rendering/RenderTable.cpp:
699         (WebCore::RenderTable::nodeAtPoint):
700         * rendering/RenderTable.h:
701         * rendering/RenderTableRow.cpp:
702         (WebCore::RenderTableRow::nodeAtPoint):
703         * rendering/RenderTableRow.h:
704         * rendering/RenderTableSection.cpp:
705         (WebCore::RenderTableSection::nodeAtPoint):
706         * rendering/RenderTableSection.h:
707         * rendering/RenderText.h:
708         (WebCore::RenderText::nodeAtPoint):
709         * rendering/RenderTextControlMultiLine.cpp:
710         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
711         * rendering/RenderTextControlMultiLine.h:
712         * rendering/RenderTextControlSingleLine.cpp:
713         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
714         * rendering/RenderTextControlSingleLine.h:
715         * rendering/RenderWidget.cpp:
716         (WebCore::RenderWidget::nodeAtPoint):
717         * rendering/RenderWidget.h:
718         * rendering/RootInlineBox.cpp:
719         (WebCore::RootInlineBox::nodeAtPoint):
720         * rendering/RootInlineBox.h:
721         * rendering/svg/RenderSVGForeignObject.cpp:
722         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
723         (WebCore::RenderSVGForeignObject::nodeAtPoint):
724         * rendering/svg/RenderSVGForeignObject.h:
725         * rendering/svg/RenderSVGModelObject.cpp:
726         (WebCore::RenderSVGModelObject::nodeAtPoint):
727         * rendering/svg/RenderSVGModelObject.h:
728         * rendering/svg/RenderSVGRoot.cpp:
729         (WebCore::RenderSVGRoot::nodeAtPoint):
730         * rendering/svg/RenderSVGRoot.h:
731         * rendering/svg/RenderSVGText.cpp:
732         (WebCore::RenderSVGText::nodeAtFloatPoint):
733         (WebCore::RenderSVGText::nodeAtPoint):
734         * rendering/svg/RenderSVGText.h:
735
736 2011-06-07  Yi Shen  <yi.4.shen@nokia.com>
737
738         Reviewed by Simon Hausmann.
739
740         [Qt] Fix the error code for media resource failures when using QtMobility
741         https://bugs.webkit.org/show_bug.cgi?id=55901
742
743         To indicate the media resource failures, set the network state to
744         MediaPlayer::FormatError when receives QMediaPlayer::InvalidMedia or
745         QMediaPlayer::ResourceError.
746
747         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
748         (WebCore::MediaPlayerPrivateQt::updateStates):
749
750 2011-06-07  Emil A Eklund  <eae@chromium.org>
751
752         Reviewed by Eric Seidel.
753
754         Change RenderBlock::hitTestFloats to IntPoint
755         https://bugs.webkit.org/show_bug.cgi?id=62176
756
757         Covered by existing tests.
758
759         * rendering/RenderBlock.cpp:
760         (WebCore::RenderBlock::nodeAtPoint):
761         (WebCore::RenderBlock::hitTestFloats):
762         (WebCore::RenderBlock::hitTestColumns):
763         * rendering/RenderBlock.h:
764
765 2011-06-07  Tim Horton  <timothy_horton@apple.com>
766
767         Reviewed by Alexey Proskuryakov.
768
769         Use correct CFURLStorageSessionRef definition on Snow Leopard
770         https://bugs.webkit.org/show_bug.cgi?id=62223
771
772         * platform/mac/WebCoreSystemInterface.h:
773         * platform/network/ResourceHandle.h:
774         * platform/network/cf/ResourceRequest.h:
775
776 2011-06-07  Emil A Eklund  <eae@chromium.org>
777
778         Reviewed by Eric Seidel.
779
780         Change RenderBlock::hitTestColumns to IntPoint
781         https://bugs.webkit.org/show_bug.cgi?id=62172
782
783         Covered by existing tests.
784
785         * rendering/RenderBlock.cpp:
786         (WebCore::RenderBlock::nodeAtPoint):
787         (WebCore::RenderBlock::hitTestColumns):
788         * rendering/RenderBlock.h:
789
790 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
791
792         Reviewed by Darin Adler.
793
794         Opacity transition doesn't work while content property is set.
795         https://bugs.webkit.org/show_bug.cgi?id=59301
796         
797         StyleRareNonInheritedData's copy constructor omitted to copy
798         the m_content data, which caused us to detach and re-attach the renderer
799         at the start of the transition, thereby killing the transition.
800         
801         Fix by making StyleRareNonInheritedData's copy ctor do the right thing.
802
803         Test: transitions/transition-on-element-with-content.html
804
805         * rendering/style/ContentData.h:
806         * rendering/style/ContentData.cpp:
807         (WebCore::ContentData::clone): New method to do a deep clone. (Can't use a copy
808         ctor because of the subclasses.)
809         * rendering/style/CounterDirectives.h: Pack the data members to save space.
810         Add a clone() function for the HashMap.
811         * rendering/style/CounterDirectives.cpp:
812         (WebCore::clone): Make a new HashMap and copy the contents over.
813         * rendering/style/StyleRareNonInheritedData.cpp:
814         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): Copy
815         the content and counter directives over.
816         (WebCore::StyleRareNonInheritedData::operator==): Rather than just comparing
817         for pointer equality, do a correct check for m_counterDirectives equality.
818         (WebCore::StyleRareNonInheritedData::counterDataEquivalent):
819         * rendering/style/StyleRareNonInheritedData.h:
820
821 2011-06-07  Robert Kroeger  <rjkroege@chromium.org>
822
823         Reviewed by Adam Barth.
824
825         [chromium] Add a basic gesture recognizer to the Chromium platform
826         https://bugs.webkit.org/show_bug.cgi?id=54417
827
828         Adds a basic gesture recognizer to the Chromium platform. Adds an entry
829         point to the GestureRecognizer to reset any internal state on a page reset.
830         Resetting the gesture recognizer on page load is necesary for reliable
831         layout test execution and improves gesture recognizer operational
832         robustness.
833
834         Added an additional constructor to permit building a synthetic
835         PlatformWheelEvent.
836
837         Small modifications to the PlatformGestureRecognizer as required to
838         implement the simple Chromium platform gesture recognizer.
839
840         Tests: fast/events/touch/touch-gesture-click.html
841
842         * WebCore.gypi:
843         * page/EventHandler.cpp:
844         (WebCore::EventHandler::resetGestureRecognizer):
845         * page/EventHandler.h:
846         * page/FrameView.cpp:
847         (WebCore::FrameView::reset):
848         * platform/PlatformGestureRecognizer.h:
849         * platform/PlatformWheelEvent.h:
850         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
851         * platform/chromium/GestureRecognizerChromium.cpp: Added.
852         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
853         (WebCore::InnerGestureRecognizer::reset):
854         (WebCore::InnerGestureRecognizer::~InnerGestureRecognizer):
855         (WebCore::InnerGestureRecognizer::addEdgeFunction):
856         (WebCore::InnerGestureRecognizer::isInClickTimeWindow):
857         (WebCore::InnerGestureRecognizer::isInsideManhattanSquare):
858         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
859         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
860         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
861         (WebCore::InnerGestureRecognizer::updateValues):
862         (WebCore::InnerGestureRecognizer::signature):
863         (WebCore::touchDown):
864         (WebCore::noGesture):
865         (WebCore::click):
866         (WebCore::isClickOrScroll):
867         (WebCore::inScroll):
868         (WebCore::PlatformGestureRecognizer::create):
869         (WebCore::PlatformGestureRecognizer::PlatformGestureRecognizer):
870         (WebCore::PlatformGestureRecognizer::~PlatformGestureRecognizer):
871         (WebCore::GestureRecognizerChromium::GestureRecognizerChromium):
872         (WebCore::GestureRecognizerChromium::~GestureRecognizerChromium):
873         * platform/chromium/GestureRecognizerChromium.h: Added.
874         (WebCore::InnerGestureRecognizer::setState):
875         (WebCore::InnerGestureRecognizer::state):
876         (WebCore::GestureRecognizerChromium::reset):
877         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
878
879 2011-06-07  No'am Rosenthal  <noam.rosenthal@nokia.com>
880
881         Reviewed by Andreas Kling.
882
883         [Texmap][Qt] Enable TextureMapper by default
884         https://bugs.webkit.org/show_bug.cgi?id=61740
885
886         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
887         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
888
889         No new functionality so no new tests.
890
891         * WebCore.pri:
892         * WebCore.pro:
893         * platform/graphics/qt/GraphicsContext3DQt.cpp:
894         * platform/graphics/qt/TextureMapperQt.cpp:
895         (WebCore::TextureMapper::create):
896
897 2011-06-07  Emil A Eklund  <eae@chromium.org>
898
899         Reviewed by Eric Seidel.
900
901         Convert RenderBox::absoluteRects to IntPoint
902         https://bugs.webkit.org/show_bug.cgi?id=62130
903
904         Covered by existing tests.
905
906         * dom/Node.cpp:
907         (WebCore::Node::hasNonEmptyBoundingBox):
908         * rendering/InlineBox.h:
909         (WebCore::InlineBox::size):
910         * rendering/RenderBlock.cpp:
911         (WebCore::RenderBlock::absoluteRects):
912         * rendering/RenderBlock.h:
913         * rendering/RenderBox.cpp:
914         (WebCore::RenderBox::absoluteRects):
915         * rendering/RenderBox.h:
916         * rendering/RenderInline.cpp:
917         (WebCore::RenderInline::absoluteRects):
918         * rendering/RenderInline.h:
919         * rendering/RenderObject.cpp:
920         (WebCore::RenderObject::absoluteBoundingBoxRect):
921         * rendering/RenderObject.h:
922         (WebCore::RenderObject::absoluteRects):
923         * rendering/RenderText.cpp:
924         (WebCore::RenderText::absoluteRects):
925         * rendering/RenderText.h:
926         * rendering/RenderView.cpp:
927         (WebCore::RenderView::absoluteRects):
928         * rendering/RenderView.h:
929         * rendering/svg/RenderSVGBlock.cpp:
930         (WebCore::RenderSVGBlock::absoluteRects):
931         * rendering/svg/RenderSVGBlock.h:
932         * rendering/svg/RenderSVGModelObject.cpp:
933         (WebCore::RenderSVGModelObject::absoluteRects):
934         * rendering/svg/RenderSVGModelObject.h:
935
936 2011-06-07  Kent Tamura  <tkent@chromium.org>
937
938         Reviewed by Andreas Kling.
939
940         [Qt] RenderThemeQt::adjustSliderThumbSize() should not refer to the parent style.
941         https://bugs.webkit.org/show_bug.cgi?id=62207
942
943         * css/mediaControlsQt.css: Add comments.
944         (audio::-webkit-media-controls-timeline):
945         (video::-webkit-media-controls-timeline):
946         (audio::-webkit-media-controls-volume-slider):
947         (video::-webkit-media-controls-volume-slider):
948         * platform/qt/RenderThemeQt.cpp: Use fixed values to avoid referring to o->parent().
949         (WebCore::RenderThemeQt::adjustSliderThumbSize):
950
951 2011-06-07  Sailesh Agrawal  <sail@chromium.org>
952
953         Reviewed by Mihai Parparita.
954
955         Chromium Mac: Fork ScrollAnimatorMac to ScrollAnimatorChromiumMac for overlay scrollbar support
956         https://bugs.webkit.org/show_bug.cgi?id=59753
957
958         No new tests. Just forking ScrollAnimatorMac to ScrollAnimatorChromiumMac.
959
960         * WebCore.gyp/WebCore.gyp: Added IntPointMac.mm. This is used by some functions in ScrollAnimatorChromiumMac. Also added filters for conflicting class names in ScrollAnimatorChromiumMac.
961         * WebCore.gypi: Added ScrollAnimatorChromiumMac.h/mm.
962         * platform/ScrollAnimator.cpp: Extended the #ifdef around ScrollAnimator::create() so that the chromium version will be created.
963         * platform/chromium/ScrollAnimatorChromiumMac.h: Added.
964         (WebCore::ScrollAnimatorChromiumMac::setIsDrawingIntoLayer):
965         (WebCore::ScrollAnimatorChromiumMac::isDrawingIntoLayer):
966         (WebCore::ScrollAnimatorChromiumMac::haveScrolledSincePageLoad):
967         * platform/chromium/ScrollAnimatorChromiumMac.mm: Added. Forked from ScrollAnimatorMac and replaced all instances of ScrollAnimatorMac with ScrollAnimatorChromiumMac and ScrollbarThemeMac with ScrollbarThemeChromiumMac. Removed the ENABLE(SMOOTH_SCROLLING) around the file. Stubbed out ScrollAnimatorChromiumMac::scroll() if smooth scrolling is disabled.
968         (abs):
969         (-[ScrollAnimationHelperDelegate initWithScrollAnimator:WebCore::]):
970         (-[ScrollAnimationHelperDelegate scrollAnimatorDestroyed]):
971         (-[ScrollAnimationHelperDelegate bounds]):
972         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
973         (-[ScrollAnimationHelperDelegate _pixelAlignProposedScrollPosition:]):
974         (-[ScrollAnimationHelperDelegate convertSizeToBase:]):
975         (-[ScrollAnimationHelperDelegate convertSizeFromBase:]):
976         (-[ScrollAnimationHelperDelegate convertSizeToBacking:]):
977         (-[ScrollAnimationHelperDelegate convertSizeFromBacking:]):
978         (-[ScrollAnimationHelperDelegate superview]):
979         (-[ScrollAnimationHelperDelegate documentView]):
980         (-[ScrollAnimationHelperDelegate window]):
981         (-[ScrollAnimationHelperDelegate _recursiveRecomputeToolTips]):
982         (-[ScrollbarPainterControllerDelegate initWithScrollAnimator:WebCore::]):
983         (-[ScrollbarPainterControllerDelegate scrollAnimatorDestroyed]):
984         (-[ScrollbarPainterControllerDelegate contentAreaRectForScrollerImpPair:]):
985         (-[ScrollbarPainterControllerDelegate inLiveResizeForScrollerImpPair:]):
986         (-[ScrollbarPainterControllerDelegate mouseLocationInContentAreaForScrollerImpPair:]):
987         (-[ScrollbarPainterControllerDelegate scrollerImpPair:convertContentPoint:toScrollerImp:]):
988         (-[ScrollbarPainterControllerDelegate scrollerImpPair:setContentAreaNeedsDisplayInRect:]):
989         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
990         (-[ScrollbarPartAnimation initWithScrollbarPainter:part:WebCore::scrollAnimator:WebCore::animateAlphaTo:duration:]):
991         (-[ScrollbarPartAnimation setCurrentProgress:]):
992         (-[ScrollbarPartAnimation scrollAnimatorDestroyed]):
993         (-[ScrollbarPainterDelegate initWithScrollAnimator:WebCore::]):
994         (-[ScrollbarPainterDelegate cancelAnimations]):
995         (-[ScrollbarPainterDelegate convertRectToBacking:]):
996         (-[ScrollbarPainterDelegate convertRectFromBacking:]):
997         (-[ScrollbarPainterDelegate layer]):
998         (-[ScrollbarPainterDelegate setUpAnimation:scrollerPainter:part:WebCore::animateAlphaTo:duration:]):
999         (-[ScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]):
1000         (-[ScrollbarPainterDelegate scrollerImp:animateTrackAlphaTo:duration:]):
1001         (-[ScrollbarPainterDelegate scrollerImp:overlayScrollerStateChangedTo:]):
1002         (-[ScrollbarPainterDelegate scrollAnimatorDestroyed]):
1003         (WebCore::ScrollAnimator::create):
1004         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
1005         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
1006         (WebCore::ScrollAnimatorChromiumMac::scroll):
1007         (WebCore::ScrollAnimatorChromiumMac::scrollToOffsetWithoutAnimation):
1008         (WebCore::ScrollAnimatorChromiumMac::adjustScrollXPositionIfNecessary):
1009         (WebCore::ScrollAnimatorChromiumMac::adjustScrollYPositionIfNecessary):
1010         (WebCore::ScrollAnimatorChromiumMac::adjustScrollPositionIfNecessary):
1011         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
1012         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaX):
1013         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaY):
1014         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
1015         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
1016         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
1017         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
1018         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
1019         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
1020         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
1021         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
1022         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
1023         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
1024         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
1025         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
1026         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
1027         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
1028         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
1029         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
1030         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
1031         (WebCore::elasticDeltaForTimeDelta):
1032         (WebCore::elasticDeltaForReboundDelta):
1033         (WebCore::reboundDeltaForElasticDelta):
1034         (WebCore::scrollWheelMultiplier):
1035         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
1036         (WebCore::ScrollAnimatorChromiumMac::handleGestureEvent):
1037         (WebCore::ScrollAnimatorChromiumMac::pinnedInDirection):
1038         (WebCore::ScrollAnimatorChromiumMac::allowsVerticalStretching):
1039         (WebCore::ScrollAnimatorChromiumMac::allowsHorizontalStretching):
1040         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
1041         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
1042         (WebCore::ScrollAnimatorChromiumMac::endScrollGesture):
1043         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
1044         (WebCore::roundTowardZero):
1045         (WebCore::roundToDevicePixelTowardZero):
1046         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
1047         (WebCore::ScrollAnimatorChromiumMac::startScrollbarPaintTimer):
1048         (WebCore::ScrollAnimatorChromiumMac::scrollbarPaintTimerIsActive):
1049         (WebCore::ScrollAnimatorChromiumMac::stopScrollbarPaintTimer):
1050         (WebCore::ScrollAnimatorChromiumMac::initialScrollbarPaintTimerFired):
1051         (WebCore::ScrollAnimatorChromiumMac::setVisibleScrollerThumbRect):
1052         * platform/graphics/IntPoint.h: Exposed NSPoint conversion routines to chromium mac.
1053
1054 2011-06-07  Sam Weinig  <sam@webkit.org>
1055
1056         Reviewed by Anders Carlsson.
1057
1058         Remove repeated IPC traffic from SetRenderTreeSize message
1059         https://bugs.webkit.org/show_bug.cgi?id=62244
1060
1061         * WebCore.xcodeproj/project.pbxproj:
1062         Make RenderArena.h private so it can be called from WebKit2.
1063
1064         * loader/FrameLoaderClient.h:
1065         (WebCore::FrameLoaderClient::dispatchDidLayout):
1066         Added.
1067
1068         * page/ChromeClient.h:
1069         Remove setRenderTreeSize.
1070
1071         * page/FrameView.cpp:
1072         (WebCore::FrameView::performPostLayoutTasks):
1073         Call dispatchDidLayout for all frames instead of calling setRenderTreeSize
1074         for the main frame.
1075
1076 2011-06-07  Emil A Eklund  <eae@chromium.org>
1077
1078         Reviewed by Eric Seidel.
1079
1080         Change RenderBlock::hitTestContents to IntPoint
1081         https://bugs.webkit.org/show_bug.cgi?id=62170
1082
1083         Covered by existing tests.
1084
1085         * rendering/RenderBlock.cpp:
1086         (WebCore::RenderBlock::nodeAtPoint):
1087         (WebCore::RenderBlock::hitTestColumns):
1088         (WebCore::RenderBlock::hitTestContents):
1089         * rendering/RenderBlock.h:
1090
1091 2011-06-07  Jer Noble  <jer.noble@apple.com>
1092
1093         Reviewed by Eric Carlson.
1094
1095         Video with poster attribute will not display new frames when scrubbing.
1096         https://bugs.webkit.org/show_bug.cgi?id=62036
1097
1098         Remove our "detection" about the end of a scrub now that there is an explicit seek completion
1099         handler available in AVFoundation.  Move what we used to do upon detection in timeChanged()
1100         into seekCompleted().
1101
1102         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1103         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged): 
1104         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
1105
1106 2011-06-07  James Simonsen  <simonjam@chromium.org>
1107
1108         Unreviewed, build fix, missing files from r88274.
1109
1110         * bindings/v8/ChildThreadDOMData.cpp: Added.
1111         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
1112         (WebCore::ChildThreadDOMData::getStore):
1113         * bindings/v8/ChildThreadDOMData.h: Added.
1114         * bindings/v8/MainThreadDOMData.cpp: Added.
1115         (WebCore::MainThreadDOMData::MainThreadDOMData):
1116         (WebCore::MainThreadDOMData::getCurrent):
1117         (WebCore::MainThreadDOMData::getMainThreadStore):
1118         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
1119         * bindings/v8/MainThreadDOMData.h: Added.
1120         (WebCore::MainThreadDOMData::getStore):
1121
1122 2011-06-07  Abhishek Arya  <inferno@chromium.org>
1123
1124         Reviewed by Dan Bernstein.
1125
1126         Replicate WidthIterator.cpp fix from r88139.
1127         https://bugs.webkit.org/show_bug.cgi?id=62238
1128
1129         No new tests. Covered by existing layout tests on XP debug bots.
1130
1131         * platform/graphics/win/UniscribeController.cpp:
1132         (WebCore::UniscribeController::advance):
1133
1134 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1135
1136         Unreviewed, rolling out r88221, r88224, and r88231.
1137         http://trac.webkit.org/changeset/88221
1138         http://trac.webkit.org/changeset/88224
1139         http://trac.webkit.org/changeset/88231
1140         https://bugs.webkit.org/show_bug.cgi?id=62233
1141
1142         assert failure on chromium linux debug (Requested by simonjam
1143         on #webkit).
1144
1145         * WebCore.gypi:
1146         * WebCore.pro:
1147         * bindings/v8/ChildThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1148         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
1149         (WebCore::ChildThreadDOMData::getStore):
1150         * bindings/v8/ChildThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1151         * bindings/v8/DOMData.cpp:
1152         (WebCore::DOMData::DOMData):
1153         (WebCore::DOMData::getCurrent):
1154         * bindings/v8/DOMData.h:
1155         (WebCore::DOMData::owningThread):
1156         (WebCore::DOMData::handleWeakObject):
1157         * bindings/v8/DOMDataStore.cpp:
1158         (WebCore::DOMDataStore::DOMDataStore):
1159         (WebCore::DOMDataStore::~DOMDataStore):
1160         (WebCore::DOMDataStore::allStoresMutex):
1161         (WebCore::DOMDataStore::weakNodeCallback):
1162         * bindings/v8/DOMDataStore.h:
1163         * bindings/v8/MainThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1164         (WebCore::MainThreadDOMData::MainThreadDOMData):
1165         (WebCore::MainThreadDOMData::getCurrent):
1166         (WebCore::MainThreadDOMData::getMainThreadStore):
1167         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
1168         * bindings/v8/MainThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1169         (WebCore::MainThreadDOMData::getStore):
1170         * bindings/v8/V8DOMMap.cpp:
1171         (WebCore::getDOMDataStore):
1172         (WebCore::removeAllDOMObjectsInCurrentThread):
1173         (WebCore::visitDOMNodesInCurrentThread):
1174         (WebCore::visitDOMObjectsInCurrentThread):
1175         (WebCore::visitActiveDOMObjectsInCurrentThread):
1176         (WebCore::visitDOMSVGElementInstancesInCurrentThread):
1177         * bindings/v8/V8DOMMap.h:
1178         * bindings/v8/V8GCController.cpp:
1179         (WebCore::V8GCController::gcPrologue):
1180         (WebCore::V8GCController::gcEpilogue):
1181         * bindings/v8/WorkerScriptController.cpp:
1182         (WebCore::WorkerScriptController::~WorkerScriptController):
1183
1184 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
1185
1186         Reviewed by Dave Hyatt.
1187
1188         Clean up ContentData
1189         https://bugs.webkit.org/show_bug.cgi?id=62185
1190
1191         ContentData did manual ref()/deref() and had a lot of awkward
1192         code from using a union to store data.
1193         
1194         Clean this up by adding ContentData subclasses for different
1195         content types, which are then able to use RefPtr and OwnPtr
1196         as appropriate.
1197
1198         * css/CSSComputedStyleDeclaration.cpp:
1199         (WebCore::contentToCSSValue): Cast to different ContentData types as
1200         appropriate.
1201
1202         * css/CSSStyleSelector.cpp: 
1203         (WebCore::CSSStyleSelector::loadPendingImages): Cast to ImageContentData, and do some
1204         const gyrations.
1205
1206         * html/HTMLBRElement.cpp:
1207         (WebCore::HTMLBRElement::createRenderer): Use hasContent().
1208         * html/HTMLFrameSetElement.cpp:
1209         (WebCore::HTMLFrameSetElement::createRenderer): Ditto
1210         * html/HTMLImageElement.cpp:
1211         (WebCore::HTMLImageElement::createRenderer): Ditto
1212         * rendering/RenderObject.cpp:
1213         (WebCore::RenderObject::createObject): Cast to ImageContentData.
1214         * rendering/RenderObjectChildList.cpp:
1215         (WebCore::RenderObjectChildList::updateBeforeAfterContent): Cast to different ContentData types as
1216         appropriate.
1217
1218         * rendering/style/ContentData.h:
1219         (WebCore::ContentData::~ContentData):
1220         (WebCore::ContentData::isCounter):
1221         (WebCore::ContentData::isImage):
1222         (WebCore::ContentData::isQuote):
1223         (WebCore::ContentData::isText):
1224         (WebCore::ContentData::next):
1225         (WebCore::ContentData::setNext):
1226         (WebCore::ImageContentData::image):
1227         (WebCore::ImageContentData::setImage):
1228         (WebCore::ImageContentData::ImageContentData):
1229         (WebCore::ImageContentData::type):
1230         (WebCore::ImageContentData::isImage):
1231         (WebCore::TextContentData::text):
1232         (WebCore::TextContentData::setText):
1233         (WebCore::TextContentData::TextContentData):
1234         (WebCore::TextContentData::type):
1235         (WebCore::TextContentData::isText):
1236         (WebCore::CounterContentData::counter):
1237         (WebCore::CounterContentData::setCounter):
1238         (WebCore::CounterContentData::CounterContentData):
1239         (WebCore::CounterContentData::type):
1240         (WebCore::CounterContentData::isCounter):
1241         (WebCore::QuoteContentData::quote):
1242         (WebCore::QuoteContentData::setQuote):
1243         (WebCore::QuoteContentData::QuoteContentData):
1244         (WebCore::QuoteContentData::type):
1245         (WebCore::QuoteContentData::isQuote):
1246         Add subclasses for different content types, which are created
1247         via overloaded create() methods on the base class.
1248
1249         * rendering/style/ContentData.cpp:
1250         (WebCore::ContentData::create):
1251         (WebCore::operator==): Test for type equality, followed by comparing data.
1252         (WebCore::operator!=):
1253
1254         * rendering/style/RenderStyle.cpp:
1255         (WebCore::RenderStyle::clearContent):
1256         (WebCore::RenderStyle::appendContent): 
1257         (WebCore::RenderStyle::setContent): Replace the overly complex prepareToSetContent()
1258         code with code that either appends, or replaces the content.
1259         This loses an optimization where the existing ContentData object could get reused,
1260         but this seems to be rarely hit in practice.
1261         * rendering/style/RenderStyle.h:
1262         (WebCore::InheritedFlags::hasContent): Convenience method.
1263         * rendering/style/StyleRareNonInheritedData.cpp:
1264         (WebCore::StyleRareNonInheritedData::contentDataEquivalent): Test
1265         that the pointers are non-null, then use the != operator.
1266         * rendering/style/StyleRareNonInheritedData.h: ContentData is a class now.
1267
1268 2011-06-07  Brian Weinstein  <bweinstein@apple.com>
1269
1270         Build fix after r88260.
1271
1272         * platform/graphics/win/FontCacheWin.cpp:
1273         (WebCore::FontCache::getFontDataForCharacters): Update to use enum instead of bool.
1274         * platform/graphics/wince/FontCacheWinCE.cpp:
1275
1276 2011-06-07  Rob Buis  <rbuis@rim.com>
1277
1278         Reviewed by Dirk Schulze.
1279
1280         stroke-dasharray does not handle "none"
1281         https://bugs.webkit.org/show_bug.cgi?id=62203
1282
1283         Use the initial strokeDashArray style for stroke-dasharray="none" to apply to SVGRenderStyle rather than bailing out.
1284
1285         Tests: svg/W3C-SVG-1.1-SE/styling-css-04-f.svg
1286                svg/custom/invalid-dasharray.svg
1287
1288         * css/SVGCSSStyleSelector.cpp:
1289         (WebCore::CSSStyleSelector::applySVGProperty):
1290
1291 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1292
1293         Unreviewed, rolling out r88259 and r88263.
1294         http://trac.webkit.org/changeset/88259
1295         http://trac.webkit.org/changeset/88263
1296         https://bugs.webkit.org/show_bug.cgi?id=62228
1297
1298         broke builds (Requested by rniwa on #webkit).
1299
1300         * platform/mac/WebCoreSystemInterface.h:
1301         * platform/network/ResourceHandle.h:
1302         * platform/network/cf/ResourceRequest.h:
1303
1304 2011-06-07  Emil A Eklund  <eae@chromium.org>
1305
1306         Reviewed by Eric Seidel.
1307
1308         Switch ContainerNode to use IntPoint
1309         https://bugs.webkit.org/show_bug.cgi?id=61893
1310
1311         Covered by existing tests.
1312
1313         * dom/ContainerNode.cpp:
1314         (WebCore::ContainerNode::getUpperLeftCorner):
1315         (WebCore::ContainerNode::getLowerRightCorner):
1316         (WebCore::ContainerNode::getRect):
1317         Change to use maxX/maxY instead of x+width/y+height
1318         
1319         * platform/graphics/FloatPoint.h:
1320         (WebCore::FloatPoint::move):
1321         (WebCore::FloatPoint::moveBy):
1322         (WebCore::FloatPoint::expandedTo):
1323         Add move, moveBy and expandedTo mirroring the IntPoint implementation of the same.
1324
1325 2011-06-07  Ryosuke Niwa  <rniwa@webkit.org>
1326
1327         Speculative build fix after r88259.
1328
1329         * platform/network/cf/ResourceRequest.h:
1330
1331 2011-06-07  Michael Saboff  <msaboff@apple.com>
1332
1333         Reviewed by Geoffrey Garen.
1334
1335         Need to enable font cache purging in MemoryPressureHandler
1336         https://bugs.webkit.org/show_bug.cgi?id=62060
1337
1338         Improve memory usage under pressure.
1339         Added call to fontCache()->purgeInactiveFontData() in 
1340         MemoryPressureHandler::respondToMemoryPressure().  Added protection to 
1341         MemoryPressureHandler::install() being called multiple times.
1342
1343         No new tests as funtionality wasn't changed.
1344
1345         * platform/MemoryPressureHandler.cpp:
1346         (WebCore::MemoryPressureHandler::MemoryPressureHandler):
1347         * platform/MemoryPressureHandler.h:
1348         * platform/mac/MemoryPressureHandlerMac.mm:
1349         (WebCore::MemoryPressureHandler::install):
1350         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
1351
1352 2011-06-07  Michael Saboff  <msaboff@apple.com>
1353
1354         Reviewed by Geoffrey Garen.
1355
1356         Fonts returned by FontCache::getFontDataForCharacters() are never released
1357         https://bugs.webkit.org/show_bug.cgi?id=61875
1358
1359         This change allows fonts allocated as system fallback fonts to be 
1360         released.  Previously, the reference counts for these fonts grew 
1361         without bound.  This is implemented as an auto release class that wraps
1362         accesses to the cache for system fallback fonts. All such accesses are
1363         via the method FontCache::getFontDataForCharacters. The new class is
1364         called FontCachePurgePreventer. When such an object exists, it protects
1365         these fonts from deletion.
1366
1367         Most accesses to the font cache still use the reference counting
1368         implemented by FontCache::getCacheFontData() and 
1369         FontCache::releaseFontData() and that operation is not affected by
1370         this change.
1371
1372         Added local scoped instance of FontCachePurgePreventer to wrap code
1373         that directly or indirectly accesses fonts via getFontDataForCharacters.
1374         Did a few other miscellaneous bug fixes and changes to allow system
1375         fallback fonts to be pruned from the GlyphPageTree. Changed the
1376         calls to getFontData in the platform specific versions of
1377         Fontcache::getFontDataForCharacters to not increment the reference
1378         count.  Moved the purge font check
1379         outside of FontCache::getCachedFontData() into a separate method, 
1380         purgeInactiveFontDataIfNeeded() since almost all calls to 
1381         getCachedFontData() now happen when purging is not allowed.
1382         purgeInactiveFontDataIfNeeded is invoked in enablePurging() when
1383         m_purgePreventCount is 0.
1384
1385         No new test as the functionality has not changed. Improved font life
1386         cycle management.
1387
1388         * WebCore.exp.in: Added FontCache::purgeInactiveFontDataIfNeeded().
1389         * html/canvas/CanvasRenderingContext2D.cpp:
1390         (WebCore::CanvasRenderingContext2D::measureText):
1391         (WebCore::CanvasRenderingContext2D::drawTextInternal):
1392         Wrapped code accessing fallback fonts with local 
1393         FontCachePurgePreventer in these methods.
1394
1395         * page/FrameView.cpp:
1396         (WebCore::FrameView::layout):
1397         (WebCore::FrameView::paintContents):
1398         Wrapped code accessing fallback fonts with local 
1399         FontCachePurgePreventer in these methods.
1400
1401         * platform/graphics/FontCache.cpp:
1402         (WebCore::FontCache::FontCache):
1403         (WebCore::FontCache::getCachedFontData):
1404         Moved purge check to new method since it likely can't happen here.
1405         (WebCore::FontCache::releaseFontData):
1406         (WebCore::FontCache::purgeInactiveFontDataIfNeeded):
1407         (WebCore::FontCache::purgeInactiveFontData):
1408         Made purging conditional on m_purgePreventCount.  Now some fonts
1409         in the cache are reference counted while other can be purged 
1410         outside of code wrapped by in scope FontCachePurgePreventer objects.
1411
1412         * platform/graphics/FontCache.h:
1413         (WebCore::FontCache::disablePurging):
1414         (WebCore::FontCache::enablePurging):
1415         (WebCore::FontCachePurgePreventer::FontCachePurgePreventer):
1416         (WebCore::FontCachePurgePreventer::~FontCachePurgePreventer):
1417         Added new simple purge prevention wrapper class and methods
1418         that it calls in FontCache actually prevent purging.  The
1419         simple methods inlined to reduce overhead.
1420
1421         * platform/graphics/FontFastPath.cpp:
1422         (WebCore::Font::glyphDataForCharacter): Update level in 
1423         glyph page tree for system fallback fonts so pruning works.
1424
1425         * platform/graphics/GlyphPage.h:
1426         (WebCore::GlyphPage::clearForFontData): New method used for pruning
1427         * platform/graphics/GlyphPageTreeNode.cpp:
1428         (WebCore::GlyphPageTreeNode::pruneFontData):
1429         Now we prune system fallback fonts.
1430
1431         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
1432         (WebCore::FontCache::getFontDataForCharacters):
1433         * platform/graphics/freetype/FontCacheFreeType.cpp:
1434         (WebCore::FontCache::getFontDataForCharacters):
1435         * platform/graphics/haiku/FontCacheHaiku.cpp:
1436         (WebCore::FontCache::getFontDataForCharacters):
1437         * platform/graphics/mac/FontCacheMac.mm:
1438         (WebCore::FontCache::getFontDataForCharacters):
1439         * platform/graphics/qt/FontCacheQt.cpp:
1440         (WebCore::FontCache::getFontDataForCharacters):
1441         * platform/graphics/win/FontCacheWin.cpp:
1442         (WebCore::FontCache::getFontDataForCharacters):
1443         * platform/graphics/wince/FontCacheWinCE.cpp:
1444         * platform/graphics/wx/FontCacheWx.cpp:
1445         (WebCore::FontCache::getFontDataForCharacters):
1446         Changed the calls to getFontData() to not increment the reference
1447         count. The caller of this getFontDataForCharacters() (currently only
1448         Font::glyphDataForCharacter() in fontFastPath.cpp) and it's callers
1449         don't attempt to release the returned fonts so we use the purge
1450         protection described above.
1451
1452         * rendering/InlineTextBox.cpp:
1453         (WebCore::InlineTextBox::selectionRect):
1454         (WebCore::InlineTextBox::offsetForPosition):
1455         (WebCore::InlineTextBox::positionForOffset):
1456         Wrapped code accessing fallback fonts with local
1457         FontCachePurgePreventer in these methods.
1458
1459         * rendering/RenderImage.cpp:
1460         (WebCore::RenderImage::setImageSizeForAltText):
1461         Wrapped code accessing fallback fonts with local
1462         FontCachePurgePreventer in this method.
1463
1464         * rendering/RenderListBox.cpp:
1465         (WebCore::RenderListBox::updateFromElement):
1466         (WebCore::RenderListBox::paintItemForeground):
1467         Wrapped code accessing fallback fonts with local
1468         FontCachePurgePreventer in these methods
1469
1470         * rendering/svg/SVGInlineTextBox.cpp:
1471         (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
1472         Wrapped code accessing fallback fonts with local
1473         FontCachePurgePreventer in this method.
1474
1475 2011-06-07  Tim Horton  <timothy_horton@apple.com>
1476
1477         Reviewed by Alexey Proskuryakov.
1478
1479         Use correct CFURLStorageSessionRef definition on Snow Leopard
1480         https://bugs.webkit.org/show_bug.cgi?id=62223
1481
1482         * platform/mac/WebCoreSystemInterface.h:
1483         * platform/network/ResourceHandle.h:
1484         * platform/network/cf/ResourceRequest.h:
1485
1486 2011-06-07  Alok Priyadarshi  <alokp@chromium.org>
1487
1488         Reviewed by Stephen White.
1489
1490         [chromium] PlatformContextSkia leaks SkDeviceFactory
1491         https://bugs.webkit.org/show_bug.cgi?id=62163
1492
1493         Valgrind tests should have caught this.
1494
1495         * platform/graphics/skia/PlatformContextSkia.cpp:
1496         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
1497
1498 2011-06-07  Emil A Eklund  <eae@chromium.org>
1499
1500         Reviewed by Eric Seidel.
1501
1502         Convert RenderTextControl::hitInnerTextElement to IntPoint
1503         https://bugs.webkit.org/show_bug.cgi?id=62167
1504
1505         Covered by existing tests.
1506
1507         * rendering/RenderTextControl.cpp:
1508         (WebCore::RenderTextControl::hitInnerTextElement):
1509         * rendering/RenderTextControl.h:
1510         * rendering/RenderTextControlMultiLine.cpp:
1511         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
1512         * rendering/RenderTextControlSingleLine.cpp:
1513         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
1514
1515 2011-06-07  Levi Weintraub  <leviw@chromium.org>
1516
1517         Reviewed by Eric Seidel.
1518
1519         Switch paint to use IntPoint
1520         https://bugs.webkit.org/show_bug.cgi?id=62177
1521
1522         Flipping the switch on the remaining paint functions to have them all
1523         use IntPoint for the paint offset instead of tx/ty.
1524
1525         No new tests since this is just refactoring.
1526
1527         * page/FrameView.cpp:
1528         (WebCore::FrameView::paintScrollCorner):
1529         * rendering/InlineBox.cpp:
1530         (WebCore::InlineBox::paint):
1531         * rendering/RenderBlock.cpp:
1532         (WebCore::RenderBlock::paint):
1533         (WebCore::RenderBlock::paintContents):
1534         (WebCore::RenderBlock::paintChildren):
1535         (WebCore::RenderBlock::paintFloats):
1536         * rendering/RenderBlock.h:
1537         * rendering/RenderBox.cpp:
1538         (WebCore::RenderBox::paint):
1539         * rendering/RenderBox.h:
1540         * rendering/RenderBoxModelObject.cpp:
1541         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
1542         * rendering/RenderDetailsMarker.cpp:
1543         (WebCore::RenderDetailsMarker::paint):
1544         * rendering/RenderDetailsMarker.h:
1545         * rendering/RenderEmbeddedObject.cpp:
1546         (WebCore::RenderEmbeddedObject::paint):
1547         * rendering/RenderEmbeddedObject.h:
1548         * rendering/RenderFrameSet.cpp:
1549         (WebCore::RenderFrameSet::paint):
1550         * rendering/RenderFrameSet.h:
1551         * rendering/RenderImage.cpp:
1552         (WebCore::RenderImage::paint):
1553         * rendering/RenderImage.h:
1554         * rendering/RenderInline.cpp:
1555         (WebCore::RenderInline::paint):
1556         * rendering/RenderInline.h:
1557         * rendering/RenderLayer.cpp:
1558         (WebCore::RenderLayer::paintScrollCorner):
1559         (WebCore::RenderLayer::paintResizer):
1560         (WebCore::RenderLayer::paintLayer):
1561         * rendering/RenderLayerBacking.cpp:
1562         (WebCore::RenderLayerBacking::paintIntoLayer):
1563         * rendering/RenderLineBoxList.cpp:
1564         (WebCore::RenderLineBoxList::paint):
1565         * rendering/RenderLineBoxList.h:
1566         * rendering/RenderListItem.cpp:
1567         (WebCore::RenderListItem::paint):
1568         * rendering/RenderListItem.h:
1569         * rendering/RenderListMarker.cpp:
1570         (WebCore::RenderListMarker::paint):
1571         * rendering/RenderListMarker.h:
1572         * rendering/RenderObject.cpp:
1573         (WebCore::RenderObject::paint):
1574         * rendering/RenderObject.h:
1575         * rendering/RenderReplaced.cpp:
1576         (WebCore::RenderReplaced::paint):
1577         * rendering/RenderReplaced.h:
1578         * rendering/RenderReplica.cpp:
1579         (WebCore::RenderReplica::paint):
1580         * rendering/RenderReplica.h:
1581         * rendering/RenderScrollbar.cpp:
1582         (WebCore::RenderScrollbar::paintPart):
1583         * rendering/RenderScrollbarPart.cpp:
1584         (WebCore::RenderScrollbarPart::paintIntoRect):
1585         * rendering/RenderScrollbarPart.h:
1586         * rendering/RenderTable.cpp:
1587         (WebCore::RenderTable::paint):
1588         (WebCore::RenderTable::paintObject):
1589         * rendering/RenderTable.h:
1590         * rendering/RenderTableCell.cpp:
1591         (WebCore::RenderTableCell::paint):
1592         * rendering/RenderTableCell.h:
1593         * rendering/RenderTableRow.cpp:
1594         (WebCore::RenderTableRow::paint):
1595         * rendering/RenderTableRow.h:
1596         * rendering/RenderTableSection.cpp:
1597         (WebCore::RenderTableSection::paint):
1598         (WebCore::RenderTableSection::paintCell):
1599         * rendering/RenderTableSection.h:
1600         * rendering/RenderText.h:
1601         (WebCore::RenderText::paint):
1602         * rendering/RenderTextControlSingleLine.cpp:
1603         (WebCore::RenderTextControlSingleLine::paint):
1604         * rendering/RenderTextControlSingleLine.h:
1605         * rendering/RenderView.cpp:
1606         (WebCore::RenderView::paint):
1607         * rendering/RenderView.h:
1608         * rendering/RenderWidget.cpp:
1609         (WebCore::RenderWidget::paint):
1610         * rendering/RenderWidget.h:
1611         * rendering/mathml/RenderMathMLBlock.cpp:
1612         (WebCore::RenderMathMLBlock::paint):
1613         * rendering/mathml/RenderMathMLBlock.h:
1614         * rendering/mathml/RenderMathMLFraction.cpp:
1615         (WebCore::RenderMathMLFraction::paint):
1616         * rendering/mathml/RenderMathMLFraction.h:
1617         * rendering/mathml/RenderMathMLRoot.cpp:
1618         (WebCore::RenderMathMLRoot::paint):
1619         * rendering/mathml/RenderMathMLRoot.h:
1620         * rendering/mathml/RenderMathMLSquareRoot.cpp:
1621         (WebCore::RenderMathMLSquareRoot::paint):
1622         * rendering/mathml/RenderMathMLSquareRoot.h:
1623         * rendering/svg/RenderSVGContainer.cpp:
1624         (WebCore::RenderSVGContainer::paint):
1625         * rendering/svg/RenderSVGContainer.h:
1626         * rendering/svg/RenderSVGForeignObject.cpp:
1627         (WebCore::RenderSVGForeignObject::paint):
1628         * rendering/svg/RenderSVGForeignObject.h:
1629         * rendering/svg/RenderSVGHiddenContainer.cpp:
1630         (WebCore::RenderSVGHiddenContainer::paint):
1631         * rendering/svg/RenderSVGHiddenContainer.h:
1632         * rendering/svg/RenderSVGImage.cpp:
1633         (WebCore::RenderSVGImage::paint):
1634         * rendering/svg/RenderSVGImage.h:
1635         * rendering/svg/RenderSVGPath.cpp:
1636         (WebCore::RenderSVGPath::paint):
1637         * rendering/svg/RenderSVGPath.h:
1638         * rendering/svg/RenderSVGResourceMarker.cpp:
1639         (WebCore::RenderSVGResourceMarker::draw):
1640         * rendering/svg/RenderSVGRoot.cpp:
1641         (WebCore::RenderSVGRoot::paint):
1642         * rendering/svg/RenderSVGRoot.h:
1643         * rendering/svg/RenderSVGText.cpp:
1644         (WebCore::RenderSVGText::paint):
1645         * rendering/svg/RenderSVGText.h:
1646         * rendering/svg/SVGImageBufferTools.cpp:
1647         (WebCore::SVGImageBufferTools::renderSubtreeToImageBuffer):
1648
1649 2011-06-07  Young Han Lee  <joybro@company100.net>
1650
1651         Reviewed by Kenneth Rohde Christiansen.
1652
1653         [Texmap][Qt] Accelerated animation is not paused properly.
1654         https://bugs.webkit.org/show_bug.cgi?id=61446
1655
1656         The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.
1657
1658         Test: animations/play-state-paused.html
1659
1660         * platform/graphics/texmap/TextureMapperNode.cpp:
1661         (WebCore::TextureMapperNode::syncCompositingStateSelf):
1662         (WebCore::TextureMapperNode::hasOpacityAnimation):
1663         (WebCore::TextureMapperNode::hasTransformAnimation):
1664         * platform/graphics/texmap/TextureMapperNode.h:
1665
1666 2011-06-07  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
1667
1668         Reviewed by Antonio Gomes.
1669
1670         [EFL] Remove Ecore_X bits from PlatformScreenEfl
1671         https://bugs.webkit.org/show_bug.cgi?id=61649
1672
1673         Remove the need for Ecore_X and some X calls by always using
1674         new functions available in EFL to get the screen size.
1675
1676         No new tests since the same functionality are done inside EFL now.
1677
1678         * platform/efl/PlatformScreenEfl.cpp:
1679         (WebCore::screenRect):
1680
1681 2011-06-07  Carlos Garcia Campos  <cgarcia@igalia.com>
1682
1683         Reviewed by Martin Robinson.
1684
1685         [GTK] Move moduleMixesGtkSymbols() from PluginPackage to PluginView
1686         https://bugs.webkit.org/show_bug.cgi?id=62200
1687
1688         In WebKit2 PluginPackage is used by the UI process to load plugins
1689         in order to get information about them, but it doesn't use any GTK
1690         symbol. So the UI process should be able to load plugins even when
1691         building with GTK3, but we should not allow the plugin view to use
1692         the plugin if it mixes GTK2 and GTK3 symbols.
1693
1694         * plugins/PluginPackage.h:
1695         (WebCore::PluginPackage::module): New method to return the
1696         platform module.
1697         * plugins/gtk/PluginPackageGtk.cpp:
1698         (WebCore::PluginPackage::load): Remove moduleMixesGtkSymbols().
1699         * plugins/gtk/PluginViewGtk.cpp:
1700         (WebCore::PluginView::updatePluginWidget): Check whether plugin
1701         was successfully loaded before trying to create the drawable.
1702         (WebCore::PluginView::paint): Return early if plugin didn't start
1703         or was not successfully loaded.
1704         (WebCore::PluginView::handleKeyboardEvent): Ditto.
1705         (WebCore::PluginView::handleMouseEvent): Ditto.
1706         (WebCore::PluginView::handleFocusInEvent): Ditto.
1707         (WebCore::PluginView::handleFocusOutEvent): Ditto.
1708         (WebCore::moduleMixesGtkSymbols):
1709         (WebCore::PluginView::platformStart): Check whether module is
1710         mixing GTK+ 2 and GTK+ 3 symbols.
1711
1712 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1713
1714         Unreviewed, rolling out r88238.
1715         http://trac.webkit.org/changeset/88238
1716         https://bugs.webkit.org/show_bug.cgi?id=62216
1717
1718         Broke a couple of inspector tests (Requested by apavlov on
1719         #webkit).
1720
1721         * inspector/front-end/StylesSidebarPane.js:
1722         (WebInspector.StylesSidebarPane.prototype.update):
1723
1724 2011-06-07  Dinu Jacob  <dinu.jacob@nokia.com>
1725
1726         Reviewed by Dimitri Glazkov.
1727
1728         Inform ChromeClient touch events are not needed by the webpage when navigating away from the page instead of in both Document:detach/CachedFrame
1729         https://bugs.webkit.org/show_bug.cgi?id=61543
1730
1731         Inform chrome client that touch events are not needed by the webpage 
1732         when navigating away from the page only once to avoid the flag being 
1733         overwritten later if a page is removed from the page cache
1734
1735         * dom/Document.cpp:
1736         (WebCore::Document::detach):
1737         * history/CachedFrame.cpp:
1738         (WebCore::CachedFrame::CachedFrame):
1739         * loader/FrameLoader.cpp:
1740         (WebCore::FrameLoader::transitionToCommitted):
1741
1742 2011-06-07  Alexander Pavlov  <apavlov@chromium.org>
1743
1744         Reviewed by Yury Semikhatsky.
1745
1746         Web Inspector: node selection is slow in the Elements panel.
1747         https://bugs.webkit.org/show_bug.cgi?id=60813
1748
1749         Schedule full style updates rather than request all node styles from the backend immediately.
1750
1751         * inspector/front-end/StylesSidebarPane.js:
1752         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
1753         (WebInspector.StylesSidebarPane.prototype.update):
1754
1755 2011-06-07  Yury Semikhatsky  <yurys@chromium.org>
1756
1757         Reviewed by Pavel Feldman.
1758
1759         Web Inspector: remove duplicate breakpoints from localStorage
1760         https://bugs.webkit.org/show_bug.cgi?id=62206
1761
1762         Perform one-time breakpoint storage cleanup to get rid of duplicate breakpoints in
1763         case when settings version is less than 1. 
1764
1765         * inspector/front-end/Settings.js:
1766         (WebInspector.Settings):
1767         (WebInspector.Settings.prototype._set):
1768         (WebInspector.Settings.prototype._migrateSettings.splitObjects):
1769         (WebInspector.Settings.prototype._migrateSettings.removeDuplicateObjects):
1770         (WebInspector.Settings.prototype._migrateSettings):
1771
1772 2011-06-03  Yury Semikhatsky  <yurys@chromium.org>
1773
1774         Reviewed by Pavel Feldman.
1775
1776         [Chromium] Web Inspector: correctly handle disconnect from worker when script execution is paused
1777         https://bugs.webkit.org/show_bug.cgi?id=62019
1778
1779         Dispatch disconnecFrontend message in debugger task mode to make sure
1780         it is processed even if execution is paused.
1781
1782         * bindings/v8/WorkerScriptDebugServer.cpp:
1783         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause):
1784         (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause):
1785         * bindings/v8/WorkerScriptDebugServer.h:
1786
1787 2011-06-07  Felician Marton  <marton.felician.zoltan@stud.u-szeged.hu>
1788
1789         Reviewed by Nikolas Zimmermann.
1790
1791         SVG animation beginElement() does not restart the animation after endElement().
1792         https://bugs.webkit.org/show_bug.cgi?id=43452
1793
1794         Test: svg/animations/animate-endElement-beginElement.html
1795
1796         Calling beginElement() after calling endElement() previously does not restarted the animation when animation
1797         element's end attribute doesn't contains a bigger value than the current animation time.
1798
1799         * svg/animation/SVGSMILElement.cpp:
1800         (WebCore::SVGSMILElement::findInstanceTime):
1801
1802 2011-06-07  Naoki Takano  <takano.naoki@gmail.com>
1803
1804         Reviewed by Kent Tamura.
1805
1806         [Chromium] Click event is not fired for a menulist <select>
1807         https://bugs.webkit.org/show_bug.cgi?id=60563
1808
1809         Tests: SelectItemEventFire, SelectItemKeyEvent, SelectItemRemoveSelectOnChange and SelectItemRemoveSelectOnChange in webkit_unit_tests.
1810
1811         * platform/chromium/PopupMenuChromium.cpp:
1812         (WebCore::PopupContainer::showPopup): Set m_focusedNode from m_frameView.
1813         (WebCore::PopupListBox::handleMouseReleaseEvent): Call dispatchMouseEvent to forward the event only if select popup.
1814         (WebCore::PopupListBox::acceptIndex): Change to return accepted or not.
1815
1816 2011-06-07  Andras Becsi  <abecsi@webkit.org>
1817
1818         Reviewed by Yury Semikhatsky.
1819  
1820         REGRESSION(r88221): "Chromium debug compilation broken".
1821         https://bugs.webkit.org/show_bug.cgi?id=62197
1822
1823         No new tests needed.
1824
1825         * bindings/v8/V8GCController.cpp: Also rename call-sites.
1826         (WebCore::V8GCController::gcPrologue):
1827         (WebCore::V8GCController::gcEpilogue):
1828
1829 2011-06-07  MORITA Hajime  <morrita@google.com>
1830
1831         Unreviewed, rolling out r88212 and r88219.
1832         http://trac.webkit.org/changeset/88212
1833         http://trac.webkit.org/changeset/88219
1834         https://bugs.webkit.org/show_bug.cgi?id=57439
1835
1836         Tests get timeout at Snow Leopard
1837
1838         * css/html.css:
1839         (html:focus, body:focus, input[readonly]:focus):
1840         * rendering/RenderWidget.cpp:
1841         (WebCore::RenderWidget::paint):
1842
1843 2011-06-07  Andras Becsi  <abecsi@webkit.org>
1844
1845         Rubber-stamped by Csaba Osztrogonác.
1846
1847         [Qt][V8] Fix the build after 88221.
1848
1849         No new tests needed.
1850
1851         * WebCore.pro: Remove non-existing files.
1852         * bindings/v8/V8DOMMap.cpp: 
1853         (WebCore::removeAllDOMObjects): Also rename the definition of the function.
1854
1855 2011-06-06  Dmitry Lomov  <dslomov@google.com>
1856
1857         Reviewed by Adam Barth.
1858
1859         https://bugs.webkit.org/show_bug.cgi?id=62164
1860         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
1861         This functionality is untested and unused:
1862         This is an old code from Lockers-based implementation of WebWorkers in
1863         V8 bindings, to make sure that DOM objects are released on the right thread
1864         even though GC could have happened on any thread. It is currently unused (since
1865         current model is one worker per process) and is being removed because new implementation
1866         of WebWorkers will be using V8 isolates.
1867
1868         * WebCore.gypi:
1869         * bindings/v8/ChildThreadDOMData.cpp: Removed.
1870         * bindings/v8/ChildThreadDOMData.h: Removed.
1871         * bindings/v8/DOMData.cpp:
1872         (WebCore::DOMData::DOMData):
1873         (WebCore::DOMData::getCurrent):
1874         (WebCore::DOMData::getMainThreadStore):
1875         * bindings/v8/DOMData.h:
1876         (WebCore::DOMData::getStore):
1877         (WebCore::DOMData::getCurrentMainThreadStore):
1878         (WebCore::DOMData::handleWeakObject):
1879         * bindings/v8/DOMDataStore.cpp:
1880         (WebCore::DOMDataStore::DOMDataStore):
1881         (WebCore::DOMDataStore::~DOMDataStore):
1882         (WebCore::DOMDataStore::weakNodeCallback):
1883         * bindings/v8/DOMDataStore.h:
1884         * bindings/v8/MainThreadDOMData.cpp: Removed.
1885         * bindings/v8/MainThreadDOMData.h: Removed.
1886         * bindings/v8/V8DOMMap.cpp:
1887         (WebCore::getDOMDataStore):
1888         (WebCore::visitDOMNodes):
1889         (WebCore::visitDOMObjects):
1890         (WebCore::visitActiveDOMObjects):
1891         (WebCore::visitDOMSVGElementInstances):
1892         * bindings/v8/V8DOMMap.h:
1893         * bindings/v8/V8GCController.cpp:
1894         (WebCore::V8GCController::gcPrologue):
1895         (WebCore::V8GCController::gcEpilogue):
1896         * bindings/v8/WorkerScriptController.cpp:
1897         (WebCore::WorkerScriptController::~WorkerScriptController):
1898
1899 2011-06-06  Nico Weber  <thakis@chromium.org>
1900
1901         Reviewed by Adam Barth.
1902
1903         [chromium] Make VideoFrameChromium's destructor virtual
1904         https://bugs.webkit.org/show_bug.cgi?id=62186
1905
1906         This fixes a real bug, since WebMediaPlayerClientImpl::putCurrentFrame
1907         deletes a VideoFrameChromium subclass type through this interface
1908         class, causing ~VideoFrameChromiumImpl's destructor not to run.
1909         (VideoFrameChroimumImpl happens to not have a destructor or any
1910         non-POD member variables, so it's more a latent bug.)
1911
1912         * platform/graphics/chromium/VideoFrameChromium.cpp:
1913         (WebCore::VideoFrameChromium::~VideoFrameChromium):
1914         * platform/graphics/chromium/VideoFrameChromium.h:
1915
1916 2011-06-06  Simon Fraser  <simon.fraser@apple.com>
1917
1918         Reviewed by Sammy Weinig.
1919
1920         Remove some unnecessary includes from AnimationBase.cpp
1921         https://bugs.webkit.org/show_bug.cgi?id=62183
1922
1923         * page/animation/AnimationBase.cpp:
1924
1925 2011-06-06  Kent Tamura  <tkent@chromium.org>
1926
1927         Unreviewed, a crash fix by a roll out.
1928
1929         REGRESSION(r87980): Null pointer dereference in RenderTextControl::setInnerText()
1930         https://bugs.webkit.org/show_bug.cgi?id=62116
1931
1932         Roll out the WebCore part of r87980.
1933
1934         * html/SearchInputType.cpp:
1935         (WebCore::SearchInputType::SearchInputType):
1936         (WebCore::SearchInputType::createShadowSubtree):
1937         (WebCore::SearchInputType::destroyShadowSubtree):
1938         * html/SearchInputType.h:
1939         (WebCore::SearchInputType::innerBlockElement):
1940         (WebCore::SearchInputType::resultsButtonElement):
1941         (WebCore::SearchInputType::cancelButtonElement):
1942         * html/TextFieldInputType.cpp:
1943         (WebCore::TextFieldInputType::TextFieldInputType):
1944         (WebCore::TextFieldInputType::createShadowSubtree):
1945         (WebCore::TextFieldInputType::destroyShadowSubtree):
1946         * html/TextFieldInputType.h:
1947         (WebCore::TextFieldInputType::innerTextElement):
1948         (WebCore::TextFieldInputType::innerSpinButtonElement):
1949         (WebCore::TextFieldInputType::speechButtonElement):
1950         (WebCore::TextFieldInputType::setInnerTextElement):
1951         (WebCore::TextFieldInputType::setSpeechButtonElement):
1952         * html/shadow/TextControlInnerElements.cpp:
1953         * html/shadow/TextControlInnerElements.h:
1954
1955 2011-06-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
1956
1957         Reviewed by Simon Fraser.
1958
1959         Allow copying of KeyframeValueList.
1960         https://bugs.webkit.org/show_bug.cgi?id=62171
1961
1962         Make a deep copy of KeyframeValueList, copying each of the keyframes with a virtual clone() function.
1963
1964         No new functionality so no new tests.
1965
1966         * platform/graphics/GraphicsLayer.h:
1967         (WebCore::FloatAnimationValue::clone):
1968         (WebCore::TransformAnimationValue::TransformAnimationValue):
1969         (WebCore::TransformAnimationValue::clone):
1970         (WebCore::TransformAnimationValue::value):
1971         (WebCore::KeyframeValueList::KeyframeValueList):
1972
1973 2011-06-06  Simon Fraser  <simon.fraser@apple.com>
1974
1975         Reviewed by Dan Bernstein.
1976
1977         Incorrect rounding of color values during transitions
1978         https://bugs.webkit.org/show_bug.cgi?id=62141
1979         
1980         When blending integers, round to the nearest integer, instead of always rounding down.
1981
1982         Test: transitions/color-transition-rounding.html
1983
1984         * page/animation/AnimationBase.cpp:
1985         (WebCore::blendFunc):
1986
1987 2011-06-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1988
1989         Unreviewed, rolling out r88202.
1990         http://trac.webkit.org/changeset/88202
1991         https://bugs.webkit.org/show_bug.cgi?id=62182
1992
1993         This broke the mac clang bot (Requested by koz__ on #webkit).
1994
1995         * dom/Node.cpp:
1996         (WebCore::Node::hasNonEmptyBoundingBox):
1997         * rendering/InlineBox.h:
1998         * rendering/RenderBlock.cpp:
1999         (WebCore::RenderBlock::absoluteRects):
2000         * rendering/RenderBlock.h:
2001         * rendering/RenderBox.cpp:
2002         (WebCore::RenderBox::absoluteRects):
2003         * rendering/RenderBox.h:
2004         * rendering/RenderInline.cpp:
2005         (WebCore::RenderInline::absoluteRects):
2006         * rendering/RenderInline.h:
2007         * rendering/RenderObject.cpp:
2008         (WebCore::RenderObject::absoluteBoundingBoxRect):
2009         * rendering/RenderObject.h:
2010         (WebCore::RenderObject::absoluteRects):
2011         * rendering/RenderText.cpp:
2012         (WebCore::RenderText::absoluteRects):
2013         * rendering/RenderText.h:
2014         * rendering/RenderView.cpp:
2015         (WebCore::RenderView::absoluteRects):
2016         * rendering/RenderView.h:
2017
2018 2011-06-06  Noel Gordon  <noel.gordon@gmail.com>
2019
2020         Reviewed by Hajime Morita.
2021
2022         Draw CSS outline style for render widgets: iframe, embed, object, applet.
2023         https://bugs.webkit.org/show_bug.cgi?id=57439
2024
2025         Draw CSS outlines for render widgets: iframe, embed, object, applet. These elements can
2026         be focused (via clicks or tabIndex) but should not have a visible focus ring by default.
2027
2028         Tests: fast/replaced/no-focus-ring-embed-1.html
2029                fast/replaced/no-focus-ring-embed-2.html
2030                fast/replaced/no-focus-ring-iframe.html
2031                fast/replaced/no-focus-ring-object-1.html
2032                fast/replaced/no-focus-ring-object-2.html
2033                fast/replaced/outline-replaced-elements.html
2034
2035         * css/html.css:
2036         (applet:focus, embed:focus, iframe:focus, object:focus):  Default to no focus ring.
2037         * rendering/RenderWidget.cpp:
2038         (WebCore::RenderWidget::paint): Paint the render widget CSS outline style.
2039
2040 2011-06-06  MORITA Hajime  <morrita@google.com>
2041
2042         Reviewed by Kent Tamura.
2043
2044         Assertion fails in TextCheckingHelper by right-clicking on <input type=search>
2045         https://bugs.webkit.org/show_bug.cgi?id=61991
2046
2047         Added a guard bofore TextCheckingHelper construction sites.
2048
2049         Test: editing/spelling/spellcheck-input-search-crash.html
2050
2051         * editing/Editor.cpp:
2052         (WebCore::Editor::isSelectionUngrammatical):
2053         (WebCore::Editor::guessesForUngrammaticalSelection):
2054         (WebCore::Editor::guessesForMisspelledOrUngrammaticalSelection):
2055
2056 2011-06-06  Emil A Eklund  <eae@chromium.org>
2057
2058         Reviewed by Eric Seidel.
2059
2060         Update RenderBlock::paint to use IntPoint internally
2061         https://bugs.webkit.org/show_bug.cgi?id=62140
2062
2063         Covered by existing tests.
2064
2065         * rendering/RenderBlock.cpp:
2066         (WebCore::RenderBlock::paint):
2067
2068 2011-06-06  Emil A Eklund  <eae@chromium.org>
2069
2070         Reviewed by Eric Seidel.
2071
2072         Convert RenderBox::absoluteRects to IntPoint
2073         https://bugs.webkit.org/show_bug.cgi?id=62130
2074
2075         Covered by existing tests.
2076
2077         * dom/Node.cpp:
2078         (WebCore::Node::hasNonEmptyBoundingBox):
2079         * rendering/RenderBlock.cpp:
2080         (WebCore::RenderBlock::absoluteRects):
2081         * rendering/RenderBlock.h:
2082         * rendering/RenderBox.cpp:
2083         (WebCore::RenderBox::absoluteRects):
2084         * rendering/RenderBox.h:
2085         * rendering/RenderInline.cpp:
2086         (WebCore::RenderInline::absoluteRects):
2087         * rendering/RenderInline.h:
2088         * rendering/RenderObject.cpp:
2089         (WebCore::RenderObject::absoluteBoundingBoxRect):
2090         * rendering/RenderObject.h:
2091         (WebCore::RenderObject::absoluteRects):
2092         * rendering/RenderText.cpp:
2093         (WebCore::RenderText::absoluteRects):
2094         * rendering/RenderText.h:
2095         * rendering/RenderView.cpp:
2096         (WebCore::RenderView::absoluteRects):
2097         * rendering/RenderView.h:
2098
2099 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2100
2101         Reviewed by Eric Seidel.
2102
2103         Switch shouldPaint to use IntPoint
2104         https://bugs.webkit.org/show_bug.cgi?id=62158
2105
2106         Switching shouldPaint to take an IntPoint representing the paint offset instead
2107         of a pair of ints.
2108
2109         No new tests as this is simple refactoring.
2110
2111         * rendering/RenderReplaced.cpp:
2112         (WebCore::RenderReplaced::paint):
2113         (WebCore::RenderReplaced::shouldPaint):
2114         * rendering/RenderReplaced.h:
2115         * rendering/RenderWidget.cpp:
2116         (WebCore::RenderWidget::paint):
2117
2118 2011-06-06  James Simonsen  <simonjam@chromium.org>
2119
2120         Reviewed by James Robinson.
2121
2122         Add monotonicallyIncreasingTime() to get monotonically increasing time
2123         https://bugs.webkit.org/show_bug.cgi?id=37743
2124
2125         * platform/chromium/SystemTimeChromium.cpp:
2126         (WebCore::monotonicallyIncreasingTime): Add primitive monotonicallyIncreasingTime() which just wraps currentTime().
2127
2128 2011-06-06  Emil A Eklund  <eae@chromium.org>
2129
2130         Reviewed by Eric Seidel.
2131
2132         Convert RenderBox::pushContentsClip to IntPoint
2133         https://bugs.webkit.org/show_bug.cgi?id=62133
2134
2135         Covered by existing tests.
2136
2137         * rendering/RenderBlock.cpp:
2138         (WebCore::Covered by existing tests.RenderBlock::paint):
2139         * rendering/RenderBox.cpp:
2140         (WebCore::RenderBox::pushContentsClip):
2141         * rendering/RenderBox.h:
2142         * rendering/RenderTable.cpp:
2143         (WebCore::RenderTable::paint):
2144         * rendering/RenderTableSection.cpp:
2145         (WebCore::RenderTableSection::paint):
2146
2147 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2148
2149         Reviewed by Eric Seidel.
2150
2151         Switch InlineFlowBox::paintMask to use IntPoint
2152         https://bugs.webkit.org/show_bug.cgi?id=62156
2153
2154         Switching InlineFlowBox::paintMask to take an IntPoint representing the paint
2155         offset instead of a pair of ints.
2156
2157         No new tests as this is simple refactoring.
2158
2159         * rendering/InlineFlowBox.cpp:
2160         (WebCore::InlineFlowBox::paint):
2161         (WebCore::InlineFlowBox::paintMask):
2162         * rendering/InlineFlowBox.h:
2163
2164 2011-06-06  Emil A Eklund  <eae@chromium.org>
2165
2166         Reviewed by Eric Seidel.
2167
2168         Convert hitTest to IntPoint
2169         https://bugs.webkit.org/show_bug.cgi?id=62144
2170
2171         Covered by existing tests.
2172
2173         * rendering/InlineBox.cpp:
2174         (WebCore::InlineBox::nodeAtPoint):
2175         * rendering/RenderBlock.cpp:
2176         (WebCore::RenderBlock::hitTestFloats):
2177         (WebCore::RenderBlock::hitTestContents):
2178         * rendering/RenderInline.cpp:
2179         (WebCore::RenderInline::nodeAtPoint):
2180         * rendering/RenderLayer.cpp:
2181         (WebCore::RenderLayer::hitTestContents):
2182         * rendering/RenderLayer.h:
2183         (WebCore::RenderLayer::renderBoxLocation):
2184         (WebCore::RenderLayer::renderBoxX):
2185         (WebCore::RenderLayer::renderBoxY):
2186         * rendering/RenderLineBoxList.cpp:
2187         (WebCore::RenderLineBoxList::hitTest):
2188         * rendering/RenderLineBoxList.h:
2189         * rendering/RenderObject.cpp:
2190         (WebCore::RenderObject::hitTest):
2191         * rendering/RenderObject.h:
2192
2193 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2194
2195         Reviewed by Eric Seidel.
2196
2197         Switch paintScrollbar to use IntPoint
2198         https://bugs.webkit.org/show_bug.cgi?id=62151
2199
2200         Switching paintScrollbar to use IntPoint instead of a pair of ints.
2201
2202         No new tests since this is simple refactoring.
2203
2204         * rendering/RenderListBox.cpp:
2205         (WebCore::RenderListBox::paintObject):
2206         (WebCore::RenderListBox::paintScrollbar):
2207         * rendering/RenderListBox.h:
2208
2209 2011-06-06  Daniel Cheng  <dcheng@chromium.org>
2210
2211         Reviewed by Tony Chang.
2212
2213         [chromium] Delete dead clipboard code.
2214         https://bugs.webkit.org/show_bug.cgi?id=62113
2215
2216         No new tests since this change only deleted unused code.
2217
2218         * WebCore.gypi:
2219         * platform/chromium/ChromiumDataObjectLegacy.cpp: Removed.
2220         * platform/chromium/ChromiumDataObjectLegacy.h: Removed.
2221         * platform/chromium/ReadableDataObject.cpp: Removed.
2222         * platform/chromium/ReadableDataObject.h: Removed.
2223         * platform/chromium/WritableDataObject.cpp: Removed.
2224         * platform/chromium/WritableDataObject.h: Removed.
2225
2226 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2227
2228         Reviewed by Eric Seidel.
2229
2230         Switch paintOutline, paintContinuationOutlines, and paintOutlineForLine to use IntPoint
2231         https://bugs.webkit.org/show_bug.cgi?id=62137
2232
2233         Switching paintOutline, paintContinuationOutlines, and paintOutlineForLine to take an IntPoint
2234         representing the paint offset instead of a pair of ints.
2235
2236         No new tests as this is simple refactoring.
2237
2238         * rendering/RenderBlock.cpp:
2239         (WebCore::RenderBlock::paintObject):
2240         (WebCore::RenderBlock::paintContinuationOutlines):
2241         * rendering/RenderBlock.h:
2242         * rendering/RenderInline.cpp:
2243         (WebCore::RenderInline::paintOutline):
2244         (WebCore::RenderInline::paintOutlineForLine):
2245         * rendering/RenderInline.h:
2246         * rendering/RenderLineBoxList.cpp:
2247         (WebCore::RenderLineBoxList::paint):
2248
2249 2011-06-06  Emil A Eklund  <eae@chromium.org>
2250
2251         Reviewed by Eric Seidel.
2252
2253         Convert RenderBox::popContentsClip to IntPoint
2254         https://bugs.webkit.org/show_bug.cgi?id=62132
2255
2256         Covered by existing tests.
2257
2258         * rendering/RenderBlock.cpp:
2259         (WebCore::RenderBlock::paint):
2260         * rendering/RenderBox.cpp:
2261         (WebCore::RenderBox::popContentsClip):
2262         * rendering/RenderBox.h:
2263         * rendering/RenderTable.cpp:
2264         (WebCore::RenderTable::paint):
2265         * rendering/RenderTableSection.cpp:
2266         (WebCore::RenderTableSection::paint):
2267
2268 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2269
2270         Reviewed by Eric Seidel.
2271
2272         Remove tx/ty offset from selectionRect
2273         https://bugs.webkit.org/show_bug.cgi?id=62146
2274
2275         Removing unused offset parameters from selectionRect.
2276
2277         No new tests since this is just cleanup.
2278
2279         * rendering/EllipsisBox.cpp:
2280         (WebCore::EllipsisBox::selectionRect):
2281         * rendering/EllipsisBox.h:
2282         * rendering/InlineTextBox.cpp:
2283         (WebCore::InlineTextBox::selectionRect):
2284         * rendering/InlineTextBox.h:
2285         * rendering/RenderText.cpp:
2286         (WebCore::RenderText::absoluteRectsForRange):
2287         (WebCore::ellipsisRectForBox):
2288         (WebCore::RenderText::absoluteQuadsForRange):
2289         (WebCore::RenderText::selectionRectForRepaint):
2290         * rendering/svg/RenderSVGInlineText.cpp:
2291         (WebCore::RenderSVGInlineText::localCaretRect):
2292         * rendering/svg/SVGInlineTextBox.cpp:
2293         (WebCore::SVGInlineTextBox::selectionRect):
2294         * rendering/svg/SVGInlineTextBox.h:
2295
2296 2011-06-06  Paul Kinlan  <paulkinlan@google.com>
2297
2298         Reviewed by Jeremy Orlow.
2299
2300         Let developers call createEvent("PopStateEvent"), previously it wasn't
2301         exposed and threw an exeception. 
2302         https://bugs.webkit.org/show_bug.cgi?id=62099
2303
2304         * WebCore/dom/Document.cpp:
2305         * WebCore/dom/PopStateEvent.cpp:
2306         * WebCore/dom/PopStateEvent.h:
2307
2308 2011-06-03  Levi Weintraub  <leviw@chromium.org>
2309
2310         Reviewed by Eric Seidel.
2311
2312         Switch paintSelection to use IntPoint
2313         https://bugs.webkit.org/show_bug.cgi?id=62059
2314
2315         Switching paintSelection to use an IntPoint to represent the paint offset
2316         instead of a pair of ints.
2317
2318         No new tests since this is simple refactoring.
2319
2320         * rendering/EllipsisBox.cpp:
2321         (WebCore::EllipsisBox::paint):
2322         (WebCore::EllipsisBox::paintSelection):
2323         * rendering/EllipsisBox.h:
2324         * rendering/RenderBlock.cpp:
2325         (WebCore::RenderBlock::paintObject):
2326         (WebCore::RenderBlock::paintSelection):
2327         * rendering/RenderBlock.h:
2328
2329 2011-06-06  Emil A Eklund  <eae@chromium.org>
2330
2331         Reviewed by Eric Seidel.
2332
2333         Convert RenderBox::clipRect to IntPoint
2334         https://bugs.webkit.org/show_bug.cgi?id=62045
2335
2336         Covered by existing tests.
2337
2338         * rendering/RenderBox.cpp:
2339         (WebCore::RenderBox::clipRect):
2340         * rendering/RenderBox.h:
2341         * rendering/RenderLayer.cpp:
2342         (WebCore::RenderLayer::calculateClipRects):
2343         (WebCore::RenderLayer::calculateRects):
2344         (WebCore::RenderLayer::repaintBlockSelectionGaps):
2345         * rendering/RenderLayerBacking.cpp:
2346         (WebCore::clipBox):
2347
2348 2011-06-06  Peter Kasting  <pkasting@google.com>
2349
2350         Reviewed by Antonio Gomes.
2351
2352         Remove unnecessary args from scroll functions.
2353         https://bugs.webkit.org/show_bug.cgi?id=61648
2354
2355         No behavior change, so no tests.
2356
2357         * WebCore.exp.in:
2358         * WebCore.order:
2359         * dom/Element.cpp:
2360         (WebCore::Element::scrollIntoView):
2361         (WebCore::Element::scrollIntoViewIfNeeded):
2362         * editing/FrameSelection.cpp:
2363         (WebCore::FrameSelection::revealSelection):
2364         * page/EventHandler.cpp:
2365         (WebCore::EventHandler::handleMousePressEvent):
2366         * page/FrameView.cpp:
2367         (WebCore::FrameView::scrollToAnchor):
2368         * rendering/RenderBox.cpp:
2369         (WebCore::RenderBox::canBeScrolledAndHasScrollableArea):
2370         (WebCore::RenderBox::canBeProgramaticallyScrolled):
2371         * rendering/RenderBox.h:
2372         * rendering/RenderLayer.cpp:
2373         (WebCore::RenderLayer::scrollRectToVisible):
2374         (WebCore::RenderLayer::autoscroll):
2375         * rendering/RenderLayer.h:
2376         * rendering/RenderListBox.h:
2377         (WebCore::RenderListBox::canBeProgramaticallyScrolled):
2378         * rendering/RenderTextControl.h:
2379         (WebCore::RenderTextControl::canBeProgramaticallyScrolled):
2380
2381 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2382
2383         Reviewed by Eric Seidel.
2384
2385         Switch paintContents, paintColumnContents, paintColumnRules, and paintSelection to use IntPoint
2386         https://bugs.webkit.org/show_bug.cgi?id=62134
2387
2388         Switching paintContents, paintColumnContents, paintColumnRules, and paintSelection to take an
2389         IntPoint representing the paint offset instead of a pair of ints.
2390
2391         No new tests as this simple refactoring.
2392
2393         * rendering/RenderBlock.cpp:
2394         (WebCore::RenderBlock::paintColumnRules):
2395         (WebCore::RenderBlock::paintColumnContents):
2396         (WebCore::RenderBlock::paintContents):
2397         (WebCore::RenderBlock::paintObject):
2398         (WebCore::RenderBlock::paintSelection):
2399         * rendering/RenderBlock.h:
2400
2401 2011-06-06  Yael Aharon  <yael.aharon@nokia.com>
2402
2403         Reviewed by Eric Seidel.
2404
2405         Inline elements are wrapped prematurely with non-zero border, margin or padding.
2406         https://bugs.webkit.org/show_bug.cgi?id=60459
2407
2408         When an inline element has a right border/margin/padding and it has more than one descendant with no siblings,
2409         the width of the right border/margin/padding should be included in line breaking calculation only once,
2410         and not for each descendant.
2411
2412         Test: fast/inline/inline-wrap-with-parent-padding.html
2413
2414         * rendering/RenderBlockLineLayout.cpp:
2415         (WebCore::RenderBlock::LineBreaker::nextLineBreak):
2416
2417 2011-06-06  Shishir Agrawal  <shishir@chromium.org>
2418
2419         Reviewed by Tony Gentilcore.
2420
2421         Add a "prerender" state for page visibility.
2422         https://bugs.webkit.org/show_bug.cgi?id=62062
2423
2424         * page/PageVisibilityState.cpp:
2425         (WebCore::pageVisibilityStateString):
2426         * page/PageVisibilityState.h:
2427
2428 2011-06-06  Cary Clark  <caryclark@google.com>
2429
2430         Reviewed by Eric Seidel.
2431
2432         Fix typo in CachedFont.cpp #define
2433         https://bugs.webkit.org/show_bug.cgi?id=62127
2434
2435         No new tests. The define typo in question is
2436         not yet enabled, so this change has no functional
2437         impact.
2438
2439         * loader/cache/CachedFont.cpp:
2440         change SKIA_MAC_ON_CHROME to SKIA_ON_MAC_CHROME
2441
2442 2011-06-03  Levi Weintraub  <leviw@chromium.org>
2443
2444         Reviewed by Eric Seidel.
2445
2446         Switch paintFloats, paintChildren, and paintEllipsisBoxes to use IntPoint
2447         https://bugs.webkit.org/show_bug.cgi?id=62058
2448
2449         Switching paintFloats, paintChildren, and paintEllipsisBoxes to take IntPoints representing
2450         their paint offsets instead of pairs of ints.
2451
2452         No new tests since this is simple refactoring.
2453
2454         * rendering/RenderBlock.cpp:
2455         (WebCore::RenderBlock::paintColumnContents):
2456         (WebCore::RenderBlock::paintContents):
2457         (WebCore::RenderBlock::paintChildren):
2458         (WebCore::RenderBlock::paintObject):
2459         (WebCore::RenderBlock::paintFloats):
2460         (WebCore::RenderBlock::paintEllipsisBoxes):
2461         * rendering/RenderBlock.h:
2462
2463 2011-06-06  Steve Block  <steveblock@google.com>
2464
2465         Reviewed by Yury Semikhatsky.
2466
2467         Use of ENABLE(INSPECTOR) is inconsistent
2468         https://bugs.webkit.org/show_bug.cgi?id=62118
2469
2470         Correctly guard implementation of ScriptProfiler.
2471
2472         No new tests, build fix only.
2473
2474         * bindings/v8/ScriptProfiler.cpp:
2475         (WebCore::ScriptProfiler::initialize):
2476
2477 2011-06-04  Dominic Cooney  <dominicc@chromium.org>
2478
2479         Reviewed by Dimitri Glazkov.
2480
2481         Add WebCoreTestSupport project.
2482         https://bugs.webkit.org/show_bug.cgi?id=61076
2483
2484         * WebCore.vcproj/WebCoreCommon.vsprops:
2485         * WebCore.vcproj/WebCoreTestSupport.vcproj: Added.
2486         * WebCore.vcproj/copyForwardingHeaders.cmd: Copy WebCoreTestSupport.h.
2487
2488 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
2489
2490         Reviewed by Kent Tamura.
2491
2492         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
2493         https://bugs.webkit.org/show_bug.cgi?id=61628
2494
2495         This patch modifies only the build system. Therefore,
2496         there are no new tests.
2497
2498         * Configurations/FeatureDefines.xcconfig:
2499
2500 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
2501
2502         Reviewed by Kent Tamura.
2503
2504         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
2505         https://bugs.webkit.org/show_bug.cgi?id=61631
2506         
2507         This patch modifies only the build system. Therefore,
2508         there are no new tests.
2509
2510         * Configurations/FeatureDefines.xcconfig:
2511
2512 2011-06-03  Hans Wennborg  <hans@chromium.org>
2513
2514         Reviewed by Tony Gentilcore.
2515
2516         IndexedDB: Clean-up function prototypes in IDBLevelDBBackingStore.cpp
2517         https://bugs.webkit.org/show_bug.cgi?id=62013
2518
2519         Clean up the prototypes for cursor open functions by introducing the
2520         CursorOptions struct.
2521
2522         Just clean-up, no new functionality so no new tests.
2523
2524         * storage/IDBLevelDBBackingStore.cpp:
2525         (WebCore::CursorOptions::CursorImplCommon::CursorImplCommon):
2526         (WebCore::CursorOptions::CursorImplCommon::firstSeek):
2527         (WebCore::CursorOptions::CursorImplCommon::continueFunction):
2528         (WebCore::CursorOptions::ObjectStoreCursorImpl::create):
2529         (WebCore::CursorOptions::ObjectStoreCursorImpl::ObjectStoreCursorImpl):
2530         (WebCore::CursorOptions::IndexKeyCursorImpl::create):
2531         (WebCore::CursorOptions::IndexKeyCursorImpl::IndexKeyCursorImpl):
2532         (WebCore::CursorOptions::IndexCursorImpl::create):
2533         (WebCore::CursorOptions::IndexCursorImpl::IndexCursorImpl):
2534         (WebCore::IDBLevelDBBackingStore::openObjectStoreCursor):
2535         (WebCore::IDBLevelDBBackingStore::openIndexKeyCursor):
2536         (WebCore::IDBLevelDBBackingStore::openIndexCursor):
2537
2538 2011-06-06  Mustafizur Rahaman  <mustaf.here@gmail.com>
2539
2540         Reviewed by Darin Adler.
2541
2542         Fix LayoutTests/canvas/philip/tests/2d.composite.operation.highlight.html
2543         https://bugs.webkit.org/show_bug.cgi?id=48290
2544         
2545         "highlight" is not a valid globalComposite operation
2546         as per http://www.w3.org/TR/2011/WD-2dcontext-20110525/#compositing
2547         Therefore, removed the option from the source code.
2548         
2549         Tests: No new tests required.
2550         LayoutTests\canvas\philip\tests\2d.composite.operation.highlight.html can be used for testing.
2551
2552         * css/CSSPrimitiveValueMappings.h:
2553         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2554         (WebCore::CSSPrimitiveValue::operator CompositeOperator):
2555         * platform/graphics/GraphicsTypes.cpp:
2556         * platform/graphics/GraphicsTypes.h:
2557         * platform/graphics/cairo/CairoUtilities.cpp:
2558         (WebCore::toCairoOperator):
2559         * platform/graphics/cg/GraphicsContextCG.cpp:
2560         (WebCore::GraphicsContext::setPlatformCompositeOperation):
2561         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2562         (WebCore::SharedGraphicsContext3D::applyCompositeOperator):
2563         * platform/graphics/openvg/PainterOpenVG.cpp:
2564         (WebCore::PlatformPainterState::applyBlending):
2565         * platform/graphics/qt/GraphicsContextQt.cpp:
2566         (WebCore::toQtCompositionMode):
2567         * platform/graphics/skia/SkiaUtils.cpp:
2568
2569 2011-06-04  Abhishek Arya  <inferno@chromium.org>
2570
2571         Reviewed by Kent Tamura.
2572
2573         Add some asserts for array boundary checks in TextRun. Fix
2574         an integer issue in linux text controller code.
2575         https://bugs.webkit.org/show_bug.cgi?id=62085
2576
2577         Testing ComplexTextControllerLinux change requires a testcase
2578         > 32 kb which is not feasible. All other changes are tested by
2579         existing layouttests.
2580
2581         * platform/graphics/TextRun.h:
2582         (WebCore::TextRun::operator[]): add assert.
2583         (WebCore::TextRun::data): add assert.
2584         * platform/graphics/WidthIterator.cpp:
2585         (WebCore::WidthIterator::advance): bail early and prevent access
2586         to one byte across the text run boundary.
2587         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
2588         (WebCore::ComplexTextController::getNormalizedTextRun): wrong
2589         int16 vs int comparison.
2590         * rendering/svg/SVGTextRunRenderingContext.cpp:
2591         (WebCore::SVGTextRunWalker::walk): bail early when from and to
2592         is outside the text run boundary. this hit easily after adding
2593         the assert when from = to = end and read in run.data(from). 
2594
2595 2011-06-05  Kent Tamura  <tkent@chromium.org>
2596
2597         Reviewed by Dimitri Glazkov.
2598
2599         Rolling out r84528.
2600         http://trac.webkit.org/changeset/84528
2601         https://bugs.webkit.org/show_bug.cgi?id=62100
2602
2603         It made several problems on elements with new shadow DOM.
2604
2605         * dom/Element.cpp:
2606         (WebCore::Element::copyNonAttributeProperties):
2607
2608 2011-06-05  Igor Oliveira  <igor.oliveira@openbossa.org>
2609
2610         Reviewed by Kenneth Rohde Christiansen.
2611
2612         fast/viewport/viewport-45.html fails in GTK+/Qt
2613         https://bugs.webkit.org/show_bug.cgi?id=47481
2614
2615         computeViewportAttributes does many math operations with float point arithmetic
2616         and in some cases there is loss of precision making tests have incorrect values.
2617
2618         * dom/ViewportArguments.cpp:
2619         (WebCore::computeViewportAttributes):
2620
2621 == Rolled over to ChangeLog-2011-06-04 ==