c185910b7fb6b002fd89c209cf64dc2ff3d093cd
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-08-03  Dan Bernstein  <mitz@apple.com>
2
3         FontCache::getFontData() does not set the familyIndex to cAllFamiliesScanned if the last font is a custom font
4         https://bugs.webkit.org/show_bug.cgi?id=65597
5
6         Reviewed by Simon Fraser.
7
8         No test added because behavior is unchanged, but this saves a call to getFontData().
9
10         * platform/graphics/FontCache.cpp:
11         (WebCore::FontCache::getFontData): Eliminated early return inside the loop, allowing execution
12         to continue and familyIndex to be set.
13
14 2011-08-03  Ryosuke Niwa  <rniwa@webkit.org>
15
16         Add RenderedPosition
17         https://bugs.webkit.org/show_bug.cgi?id=65221
18
19         Reviewed by Hajime Morita.
20
21         Add the skeleton for RenderedPosition and use it in rootBoxForLine.
22
23         * CMakeLists.txt:
24         * GNUmakefile.list.am:
25         * WebCore.gypi:
26         * WebCore.pro:
27         * WebCore.vcproj/WebCore.vcproj:
28         * WebCore.xcodeproj/project.pbxproj:
29         * editing/EditingAllInOne.cpp:
30         * editing/RenderedPosition.cpp: Added.
31         (WebCore::RenderedPosition::RenderedPosition):
32         * editing/RenderedPosition.h: Added.
33         (WebCore::RenderedPosition::isNull):
34         (WebCore::RenderedPosition::rootBox):
35         (WebCore::RenderedPosition::RenderedPosition):
36         * editing/visible_units.cpp:
37         (WebCore::startPositionForLine):
38         (WebCore::endPositionForLine):
39         (WebCore::logicalStartPositionForLine):
40         (WebCore::logicalEndPositionForLine):
41
42 2011-08-03  Roland Steiner  <rolandsteiner@chromium.org>
43
44         [V8] V8CSSRuleCustom.cpp: not all enum values are listed in switch statement
45         https://bugs.webkit.org/show_bug.cgi?id=65598
46
47         Reviewed by Dimitri Glazkov.
48
49         Added UNKNOWN_RULE to the switch statement.
50
51         No new tests. (No semantic change)
52
53         * bindings/v8/custom/V8CSSRuleCustom.cpp:
54         (WebCore::toV8):
55
56 2011-08-03  Pavel Feldman  <pfeldman@google.com>
57
58         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
59         https://bugs.webkit.org/show_bug.cgi?id=65510
60
61         Reviewed by Yury Semikhatsky.
62
63         * WebCore.exp.in:
64         * WebCore.order:
65         * inspector/DOMNodeHighlighter.cpp:
66         (WebCore::DOMNodeHighlighter::drawRectHighlight):
67         * inspector/DOMNodeHighlighter.h:
68         * inspector/Inspector.json:
69         * inspector/InspectorController.cpp:
70         (WebCore::InspectorController::drawHighlight):
71         * inspector/InspectorController.h:
72         * inspector/InspectorDOMAgent.cpp:
73         (WebCore::InspectorDOMAgent::highlightRect):
74         (WebCore::InspectorDOMAgent::hideHighlight):
75         (WebCore::InspectorDOMAgent::drawHighlight):
76         * inspector/InspectorDOMAgent.h:
77         * inspector/front-end/ResourcesPanel.js:
78         (WebInspector.FrameTreeElement.prototype.onselect):
79         (WebInspector.FrameTreeElement.prototype.set hovered):
80         * inspector/front-end/TimelinePanel.js:
81         (WebInspector.TimelinePanel):
82         (WebInspector.TimelinePanel.prototype._mouseOut):
83         (WebInspector.TimelinePanel.prototype._mouseMove):
84         (WebInspector.TimelinePanel.prototype._highlightRect):
85         (WebInspector.TimelinePanel.prototype._hideRectHighlight):
86         * inspector/front-end/inspector.js:
87         (WebInspector.highlightDOMNode):
88
89 2011-08-03  Pavel Feldman  <pfeldman@google.com>
90
91         Web Inspector: make text in popover selectable + make popover re-appear faster.
92         https://bugs.webkit.org/show_bug.cgi?id=65603
93
94         Reviewed by Yury Semikhatsky.
95
96         * inspector/front-end/Popover.js:
97         (WebInspector.PopoverHelper.prototype.setTimeout):
98         (WebInspector.PopoverHelper.prototype._mouseMove):
99         (WebInspector.PopoverHelper.prototype._handleMouseAction):
100         * inspector/front-end/popover.css:
101         (.popover .content):
102
103 2011-08-03  Vsevolod Vlasov  <vsevik@chromium.org>
104
105         Web Inspector: Console scroll position should be saved when switching panels.
106         https://bugs.webkit.org/show_bug.cgi?id=65607
107
108         Reviewed by Pavel Feldman.
109
110         * inspector/front-end/ConsoleView.js:
111         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
112         (WebInspector.ConsoleView.prototype.get scrollLeft):
113         (WebInspector.ConsoleView.prototype.set scrollLeft):
114         (WebInspector.ConsoleView.prototype.get scrollTop):
115         (WebInspector.ConsoleView.prototype.set scrollTop):
116         * inspector/front-end/Drawer.js:
117         (WebInspector.Drawer.prototype.show):
118         (WebInspector.Drawer.prototype._endStatusBarDragging):
119         (WebInspector.Drawer.prototype.get scrollLeft):
120         (WebInspector.Drawer.prototype.set scrollLeft):
121         (WebInspector.Drawer.prototype.get scrollTop):
122         (WebInspector.Drawer.prototype.set scrollTop):
123
124 2011-08-03  Philippe Normand  <pnormand@igalia.com>
125
126         libsoup-CRITICAL **: soup_message_io_pause: assertion `io != NULL' failed
127         https://bugs.webkit.org/show_bug.cgi?id=64263
128
129         Reviewed by Martin Robinson.
130
131         Avoid any operation on not yet started messages and completed messages.
132
133         * platform/network/ResourceHandleInternal.h:
134         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
135         * platform/network/soup/ResourceHandleSoup.cpp:
136         (WebCore::finishedCallback):
137         (WebCore::startHTTPRequest):
138         (WebCore::ResourceHandle::platformSetDefersLoading):
139
140 2011-08-03  Jeremy Moskovich  <jeremy@chromium.org>
141
142         [Chromium] Fix OOP font loading to work on 10.6.6 and above.
143         https://bugs.webkit.org/show_bug.cgi?id=65543
144
145         In 10.6.6 the function used to get the unique ID for an NSFont in the 
146         renderer was changed so it fails in the sandbox (it now tries to access
147         the on-disk font file). In order to work around this, we get the font
148         ID from the browser process.
149
150         To speed things up, we introduce 2 levels of caching in WebKit. A font
151         name cache where we can perform a quick lookup without the need for the
152         font id and a font id cache which we can only lookup in after getting
153         the unique ID from the browser process.
154
155         Reviewed by Kenneth Russell.
156
157         No new tests since this is not readily testable.
158
159         * platform/chromium/PlatformBridge.h:
160         * platform/graphics/chromium/CrossProcessFontLoading.h:
161         * platform/graphics/chromium/CrossProcessFontLoading.mm:
162         (WebCore::MemoryActivatedFont::create):
163         (WebCore::MemoryActivatedFont::MemoryActivatedFont):
164         (WebCore::MemoryActivatedFont::~MemoryActivatedFont):
165
166 2011-08-03  Hayato Ito  <hayato@chromium.org>
167
168         Make EventDispatchMediator RefCounted.
169         https://bugs.webkit.org/show_bug.cgi?id=65529
170
171         Reviewed by Hajime Morita.
172
173         Make EventDispatchMediator RefCounted so that it can be enqueued into a
174         ScopedEventQueue and called later.
175         A necessary change for ScopedEventQueue should be addressed in another patch.
176
177         This is a minor update of r92256, which failed on chromium win builds.
178
179         No changes to functionality so no new tests.
180
181         * dom/Event.cpp:
182         (WebCore::EventDispatchMediator::create):
183         * dom/Event.h:
184         * dom/EventDispatcher.cpp:
185         (WebCore::EventDispatcher::dispatchEvent):
186         * dom/EventDispatcher.h:
187         * dom/KeyboardEvent.cpp:
188         (WebCore::KeyboardEventDispatchMediator::create):
189         * dom/KeyboardEvent.h:
190         * dom/MouseEvent.cpp:
191         (WebCore::MouseEventDispatchMediator::create):
192         * dom/MouseEvent.h:
193         * dom/Node.cpp:
194         (WebCore::Node::dispatchEvent):
195         (WebCore::Node::dispatchKeyEvent):
196         (WebCore::Node::dispatchMouseEvent):
197         (WebCore::Node::dispatchWheelEvent):
198         * dom/WheelEvent.cpp:
199         (WebCore::WheelEventDispatchMediator::create):
200         * dom/WheelEvent.h:
201
202 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
203
204         Web Inspector: remove Node parameter from the InspectorClient::highlight
205         https://bugs.webkit.org/show_bug.cgi?id=65549
206
207         Reviewed by Yury Semikhatsky.
208
209         * inspector/InspectorClient.h:
210         * inspector/InspectorDOMAgent.cpp:
211         (WebCore::InspectorDOMAgent::highlight):
212         * loader/EmptyClients.h:
213         (WebCore::EmptyInspectorClient::highlight):
214
215 2011-08-03  Antti Koivisto  <antti@apple.com>
216
217         https://bugs.webkit.org/show_bug.cgi?id=65599
218         Image loads should trigger didFirstVisuallyNonEmptyLayout more easily
219
220         Reviewed by Dan Bernstein.
221
222         Tweak the heuristic pixel count so logo-sized images trigger didFirstVisuallyNonEmptyLayout.
223
224         * page/FrameView.h:
225         (WebCore::FrameView::incrementVisuallyNonEmptyPixelCount):
226
227 2011-08-03  Takashi Toyoshima  <toyoshim@chromium.org>
228
229         WebSocket: Could not handle zero length text frame.
230         https://bugs.webkit.org/show_bug.cgi?id=65592
231
232         Reviewed by Kent Tamura.
233
234         Test: http/tests/websocket/tests/hybi/zero-length-text.html
235
236         * websockets/WebSocketChannel.cpp:
237         (WebCore::WebSocketChannel::processFrame):
238
239 2011-08-02  Pratik Solanki  <psolanki@apple.com>
240
241         Crash in ResourceResponse::platformCompare() with USE(CFNETWORK)
242         https://bugs.webkit.org/show_bug.cgi?id=65584
243
244         Reviewed by David Kilzer.
245
246         * platform/network/cf/ResourceResponseCFNet.cpp:
247         (WebCore::ResourceResponse::platformCompare): Don't call CFEqual with 0 as an argument.
248
249 2011-08-02  Takashi Toyoshima  <toyoshim@chromium.org>
250
251         WebSocket: Should be closed by receiving invalid continuation frame.
252
253         https://bugs.webkit.org/show_bug.cgi?id=65527
254
255         Reviewed by Kent Tamura.
256
257         Test: http/tests/websocket/tests/hybi/invalid-continuation.html
258
259         * websockets/WebSocketChannel.cpp:
260         (WebCore::WebSocketChannel::processFrame):
261
262 2011-08-02  Sheriff Bot  <webkit.review.bot@gmail.com>
263
264         Unreviewed, rolling out r92256.
265         http://trac.webkit.org/changeset/92256
266         https://bugs.webkit.org/show_bug.cgi?id=65593
267
268         Causing tons of crashes on the chromium win bots (Requested by
269         jamesr on #webkit).
270
271         * dom/Event.cpp:
272         * dom/Event.h:
273         * dom/EventDispatcher.cpp:
274         (WebCore::EventDispatcher::dispatchEvent):
275         * dom/EventDispatcher.h:
276         * dom/KeyboardEvent.cpp:
277         * dom/KeyboardEvent.h:
278         * dom/MouseEvent.cpp:
279         * dom/MouseEvent.h:
280         * dom/Node.cpp:
281         (WebCore::Node::dispatchEvent):
282         (WebCore::Node::dispatchKeyEvent):
283         (WebCore::Node::dispatchMouseEvent):
284         (WebCore::Node::dispatchWheelEvent):
285         * dom/WheelEvent.cpp:
286         * dom/WheelEvent.h:
287
288 2011-08-02  Hayato Ito  <hayato@chromium.org>
289
290         Make EventDispatchMediator RefCounted.
291         https://bugs.webkit.org/show_bug.cgi?id=65529
292
293         Reviewed by Dimitri Glazkov.
294
295         Make EventDispatchMediator RefCounted so that it can be enqueued into a
296         ScopedEventQueue and called later.
297         A necessary change for ScopedEventQueue should be addressed in another patch.
298
299         No changes to functionality so no new tests.
300
301         * dom/Event.cpp:
302         (WebCore::EventDispatchMediator::create):
303         * dom/Event.h:
304         * dom/EventDispatcher.cpp:
305         (WebCore::EventDispatcher::dispatchEvent):
306         * dom/EventDispatcher.h:
307         * dom/KeyboardEvent.cpp:
308         (WebCore::KeyboardEventDispatchMediator::create):
309         * dom/KeyboardEvent.h:
310         * dom/MouseEvent.cpp:
311         (WebCore::MouseEventDispatchMediator::create):
312         * dom/MouseEvent.h:
313         * dom/Node.cpp:
314         (WebCore::Node::dispatchEvent):
315         (WebCore::Node::dispatchKeyEvent):
316         (WebCore::Node::dispatchMouseEvent):
317         (WebCore::Node::dispatchWheelEvent):
318         * dom/WheelEvent.cpp:
319         (WebCore::WheelEventDispatchMediator::create):
320         * dom/WheelEvent.h:
321
322 2011-08-02  David Reveman  <reveman@chromium.org>
323
324         [Chromium] Use edge-distance method for layer anti-aliasing.
325         https://bugs.webkit.org/show_bug.cgi?id=64942
326
327         Reviewed by James Robinson.
328
329         Use an edge distance based method instead of the current linear
330         filtering method for producing anti-aliased edges on 3D transformed
331         layers. This removes the outer border handling from TilingData as
332         it's no longer needed for anti-aliasing.
333
334         Tests: platform/chromium/compositing/tiny-layer-rotated.html (existing)
335                platform/chromium/compositing/huge-layer-rotated.html (existing)
336                compositing/images/content-image-change.html (existing)
337                TilingDataTest in webkit_unit_tests
338
339         * platform/graphics/chromium/LayerRendererChromium.cpp:
340         (WebCore::screenMatrix):
341         (WebCore::LayerRendererChromium::drawLayers):
342         (WebCore::LayerRendererChromium::setDrawViewportRect):
343         (WebCore::LayerRendererChromium::tilerProgramAA):
344         (WebCore::LayerRendererChromium::tilerProgramSwizzleAA):
345         * platform/graphics/chromium/LayerRendererChromium.h:
346         (WebCore::LayerRendererChromium::windowMatrix):
347         * platform/graphics/chromium/LayerTilerChromium.cpp:
348         (WebCore::LayerTilerChromium::setTileSize):
349         (WebCore::LayerTilerChromium::tileLayerRect):
350         (WebCore::LayerTilerChromium::invalidateRect):
351         (WebCore::LayerTilerChromium::prepareToUpdate):
352         (WebCore::LayerTilerChromium::updateRect):
353         (WebCore::LayerTilerChromium::draw):
354         (WebCore::LayerTilerChromium::growLayerToContain):
355         (WebCore::LayerTilerChromium::drawTiles):
356         * platform/graphics/chromium/LayerTilerChromium.h:
357         * platform/graphics/chromium/ShaderChromium.cpp:
358         (WebCore::VertexShaderTile::VertexShaderTile):
359         (WebCore::VertexShaderTile::init):
360         (WebCore::VertexShaderTile::getShaderString):
361         (WebCore::FragmentTexAlphaAABinding::FragmentTexAlphaAABinding):
362         (WebCore::FragmentTexAlphaAABinding::init):
363         (WebCore::FragmentShaderRGBATexAlphaAA::getShaderString):
364         (WebCore::FragmentShaderRGBATexSwizzleAlphaAA::getShaderString):
365         * platform/graphics/chromium/ShaderChromium.h:
366         (WebCore::VertexShaderTile::vertexTexTransformLocation):
367         (WebCore::FragmentTexAlphaAABinding::alphaLocation):
368         (WebCore::FragmentTexAlphaAABinding::samplerLocation):
369         (WebCore::FragmentTexAlphaAABinding::fragmentTexTransformLocation):
370         (WebCore::FragmentTexAlphaAABinding::edgeLocation):
371         * platform/graphics/chromium/TiledLayerChromium.cpp:
372         (WebCore::TiledLayerChromium::TiledLayerChromium):
373         (WebCore::TiledLayerChromium::updateTileSizeAndTilingOption):
374         (WebCore::TiledLayerChromium::createTilerIfNeeded):
375         (WebCore::TiledLayerChromium::setIsMask):
376         * platform/graphics/chromium/TiledLayerChromium.h:
377         * platform/graphics/gpu/TilingData.cpp:
378         (WebCore::computeNumTiles):
379         (WebCore::TilingData::tileXIndexFromSrcCoord):
380         (WebCore::TilingData::tileYIndexFromSrcCoord):
381         (WebCore::TilingData::tileSizeX):
382         (WebCore::TilingData::tileSizeY):
383         (WebCore::TilingData::intersectDrawQuad):
384         (WebCore::TilingData::textureOffset):
385         * platform/graphics/gpu/TilingData.h:
386
387 2011-08-01  David Levin  <levin@chromium.org>
388
389         Add asserts to RefCounted to make sure ref/deref happens on the right thread.
390         https://bugs.webkit.org/show_bug.cgi?id=31639
391
392         Reviewed by Dmitry Titov.
393
394         No new functionality exposed so no new tests. (The change is basically adding
395         more testing.)
396
397         * ForwardingHeaders/wtf/ThreadRestrictionVerifier.h: Added.
398         * loader/icon/IconDatabase.cpp:
399         (WebCore::IconDatabase::defaultIcon): Set the mutex which does the guarding of the variable.
400         (WebCore::IconDatabase::setIconDataForIconURL): Ditto.
401         (WebCore::IconDatabase::getOrCreateIconRecord): Ditto.
402         (WebCore::IconDatabase::readFromDatabase): Ditto.
403
404 2011-08-02  Luke Macpherson   <macpherson@chromium.org>
405
406         Clean up value clampling in CSSStyleSelector and CSSPrimitiveValue.
407         https://bugs.webkit.org/show_bug.cgi?id=65441
408
409         Reviewed by Simon Fraser.
410
411         No new tests / refactoring only.
412
413         * css/CSSPrimitiveValue.h:
414         (WebCore::CSSPrimitiveValue::getFloatValue):
415         Implement in terms of the new templated getValue().
416         (WebCore::CSSPrimitiveValue::getIntValue):
417         Implement in terms of the new templated getValue().
418         (WebCore::CSSPrimitiveValue::getValue):
419         Templated getValue that works for all numeric types.
420
421         * css/CSSStyleSelector.cpp:
422         (WebCore::CSSStyleSelector::applyProperty):
423         Use getValue<short> instead of rolling-your-own clamp to short.
424
425 2011-08-02  Julien Chaffraix  <jchaffraix@webkit.org>
426
427         RenderObject::computeRectForRepaint and clippedOverflowRectForRepaint should be const
428         https://bugs.webkit.org/show_bug.cgi?id=65494
429
430         Reviewed by Darin Adler.
431
432         No new tests, const-ness change only.
433
434         * rendering/RenderObject.h:
435         (WebCore::RenderObject::absoluteClippedOverflowRect):
436         (WebCore::RenderObject::computeAbsoluteRepaintRect):
437         Made those 2 const as they call a const method now.
438
439         * rendering/RenderInline.cpp:
440         (WebCore::RenderInline::clippedOverflowRectForRepaint): Use a const RenderObject* for iterating as
441         this is const.
442
443         * rendering/RenderBlock.cpp:
444         (WebCore::RenderBlock::rectWithOutlineForRepaint):
445         * rendering/RenderBlock.h:
446         * rendering/RenderBox.cpp:
447         (WebCore::RenderBox::clippedOverflowRectForRepaint):
448         (WebCore::RenderBox::computeRectForRepaint):
449         * rendering/RenderBox.h:
450         * rendering/RenderInline.cpp:
451         (WebCore::RenderInline::clippedOverflowRectForRepaint):
452         (WebCore::RenderInline::rectWithOutlineForRepaint):
453         (WebCore::RenderInline::computeRectForRepaint):
454         * rendering/RenderInline.h:
455         * rendering/RenderObject.cpp:
456         (WebCore::RenderObject::rectWithOutlineForRepaint):
457         (WebCore::RenderObject::clippedOverflowRectForRepaint):
458         (WebCore::RenderObject::computeRectForRepaint):
459         * rendering/RenderReplaced.cpp:
460         (WebCore::RenderReplaced::clippedOverflowRectForRepaint):
461         * rendering/RenderReplaced.h:
462         * rendering/RenderTableCell.cpp:
463         (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
464         (WebCore::RenderTableCell::computeRectForRepaint):
465         * rendering/RenderTableCell.h:
466         * rendering/RenderTableCol.cpp:
467         (WebCore::RenderTableCol::clippedOverflowRectForRepaint):
468         * rendering/RenderTableCol.h:
469         * rendering/RenderTableRow.cpp:
470         (WebCore::RenderTableRow::clippedOverflowRectForRepaint):
471         * rendering/RenderTableRow.h:
472         * rendering/RenderText.cpp:
473         (WebCore::RenderText::clippedOverflowRectForRepaint):
474         * rendering/RenderText.h:
475         * rendering/RenderView.cpp:
476         (WebCore::RenderView::computeRectForRepaint):
477         * rendering/RenderView.h:
478         * rendering/svg/RenderSVGForeignObject.cpp:
479         (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
480         (WebCore::RenderSVGForeignObject::computeRectForRepaint):
481         * rendering/svg/RenderSVGForeignObject.h:
482         * rendering/svg/RenderSVGGradientStop.h:
483         (WebCore::RenderSVGGradientStop::clippedOverflowRectForRepaint):
484         * rendering/svg/RenderSVGHiddenContainer.h:
485         (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
486         * rendering/svg/RenderSVGInline.cpp:
487         (WebCore::RenderSVGInline::clippedOverflowRectForRepaint):
488         (WebCore::RenderSVGInline::computeRectForRepaint):
489         * rendering/svg/RenderSVGInline.h:
490         * rendering/svg/RenderSVGModelObject.cpp:
491         (WebCore::RenderSVGModelObject::clippedOverflowRectForRepaint):
492         (WebCore::RenderSVGModelObject::computeRectForRepaint):
493         * rendering/svg/RenderSVGModelObject.h:
494         * rendering/svg/RenderSVGRoot.cpp:
495         (WebCore::RenderSVGRoot::clippedOverflowRectForRepaint):
496         (WebCore::RenderSVGRoot::computeRectForRepaint):
497         * rendering/svg/RenderSVGRoot.h:
498         * rendering/svg/RenderSVGText.cpp:
499         (WebCore::RenderSVGText::clippedOverflowRectForRepaint):
500         (WebCore::RenderSVGText::computeRectForRepaint):
501         * rendering/svg/RenderSVGText.h:
502         * rendering/svg/SVGRenderSupport.cpp:
503         (WebCore::SVGRenderSupport::clippedOverflowRectForRepaint):
504         (WebCore::SVGRenderSupport::computeRectForRepaint):
505         * rendering/svg/SVGRenderSupport.h:
506         Updated the following method's signature to use a const object.
507
508 2011-08-02  Jeffrey Pfau  <jpfau@apple.com>
509
510         Add namespace prefix support in XML tokenizer
511         https://bugs.webkit.org/show_bug.cgi?id=65578
512
513         Reviewed by Adam Barth.
514
515         This also changes markup debug printing to print to stderr instead of stdout
516
517         * xml/parser/MarkupTokenBase.h:
518         (WebCore::MarkupTokenBase::printString):
519         * xml/parser/XMLToken.h:
520         (WebCore::XMLToken::XMLDeclarationData::XMLDeclarationData):
521         (WebCore::XMLToken::clear):
522         (WebCore::XMLToken::appendToName):
523         (WebCore::XMLToken::name):
524         (WebCore::XMLToken::target):
525         (WebCore::XMLToken::data):
526         (WebCore::XMLToken::prefix):
527         (WebCore::XMLToken::xmlDeclarationData):
528         (WebCore::XMLToken::endPrefix):
529         (WebCore::XMLToken::hasPrefix):
530         (WebCore::XMLToken::endAttributePrefix):
531         (WebCore::XMLToken::attributeHasPrefix):
532         (WebCore::XMLToken::printAttrs):
533         (WebCore::XMLToken::print):
534         * xml/parser/XMLTokenizer.cpp:
535         (WebCore::XMLTokenizer::nextToken):
536
537 2011-08-02  Zhenyao Mo  <zmo@google.com>
538
539         Unreviewed, rolling out r92238.
540         http://trac.webkit.org/changeset/92238
541         https://bugs.webkit.org/show_bug.cgi?id=65555
542
543         fail fast/events/scrollbar-double-click.html on Mac
544
545         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
546         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
547         * platform/chromium/ScrollbarThemeChromiumMac.h:
548         * platform/chromium/ScrollbarThemeChromiumMac.mm:
549         (WebCore::ScrollbarThemeChromiumMac::registerScrollbar):
550         (WebCore::ScrollbarThemeChromiumMac::setNewPainterForScrollbar):
551         (WebCore::toScrollbarPainterKnobStyle):
552         (WebCore::ScrollbarThemeChromiumMac::paint):
553
554 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
555
556         Remove LegacyDefaultOptionalArguments flag from History.idl
557         https://bugs.webkit.org/show_bug.cgi?id=65572
558
559         Reviewed by Adam Barth.
560
561         No new tests, all existing tests pass.
562
563         * page/History.idl:
564
565 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
566
567         Remove LegacyDefaultOptionalArguments flag from WebKitAnimationList.idl
568         https://bugs.webkit.org/show_bug.cgi?id=65571
569
570         Reviewed by Adam Barth.
571
572         No new tests, all existing tests pass.
573
574         * page/WebKitAnimationList.idl:
575
576 2011-08-02  James Robinson  <jamesr@chromium.org>
577
578         [chromium] Decouple layer visibility calculations from render surfaces / computed draw transforms
579         https://bugs.webkit.org/show_bug.cgi?id=58840
580
581         Reviewed by Kenneth Russell.
582
583         This decouples the layer visibility related calculations from the LayerChromium and CCLayerImpl trees.  This is
584         done by making LayerRendererChromium's "calculate the world" function (renamed
585         calculateDrawTransformsAndVisibility()) a templated, free function that can operate on either LayerChromium +
586         RenderSurfaceChromium pairs or on CCLayerImpl + CCRenderSurface pairs and invoking it twice, once before
587         painting and once before drawing.  Before painting, these calculations are used to determine which layers are
588         potentially visible and should be painted, which depends on the calculated opacity, render surface bounds, and
589         draw transforms.  Before drawing, these calculations are used to figure out everything needed to draw.
590
591         RenderSurfaceChromium is now used just for visibility calculations when painting.  CCRenderSurfaceChromium is
592         responsible for actually drawing the render surfaces.
593
594         This does mean that in the current implementation the second calculations are redundant, but in the future this
595         won't be the case since the pre-draw time calculations might be influenced by animations or gestures.  I've
596         added some traces to try to monitor if this math is a significant amount of the per-frame computation.  Note
597         that layer sorting only happens on the CCLayerImpl tree and the layer sort algorithm is the most expensive part
598         of the calculations currently.
599
600         This removes all of the weak back/forward pointers between LayerChromium and CCLayerImpls, the trees are now
601         truly decoupled.
602
603         Covered by compositing/ tests.
604
605         * WebCore.gypi:
606         * platform/graphics/chromium/CanvasLayerChromium.cpp:
607         (WebCore::CanvasLayerChromium::createCCLayerImpl):
608         * platform/graphics/chromium/LayerChromium.cpp:
609         (WebCore::LayerChromium::LayerChromium):
610         (WebCore::LayerChromium::~LayerChromium):
611         (WebCore::LayerChromium::createCCLayerImpl):
612         (WebCore::LayerChromium::createRenderSurface):
613         (WebCore::LayerChromium::descendantsDrawsContent):
614         * platform/graphics/chromium/LayerChromium.h:
615         (WebCore::LayerChromium::setUsesLayerScissor):
616         (WebCore::LayerChromium::usesLayerScissor):
617         (WebCore::LayerChromium::clearRenderSurface):
618         (WebCore::LayerChromium::renderSurface):
619         (WebCore::LayerChromium::drawOpacity):
620         (WebCore::LayerChromium::setDrawOpacity):
621         (WebCore::LayerChromium::scissorRect):
622         (WebCore::LayerChromium::setScissorRect):
623         (WebCore::LayerChromium::targetRenderSurface):
624         (WebCore::LayerChromium::setTargetRenderSurface):
625         (WebCore::LayerChromium::drawTransform):
626         (WebCore::LayerChromium::setDrawTransform):
627         (WebCore::LayerChromium::drawableContentRect):
628         (WebCore::LayerChromium::setDrawableContentRect):
629         * platform/graphics/chromium/LayerRendererChromium.cpp:
630         (WebCore::LayerRendererChromium::updateLayers):
631         (WebCore::LayerRendererChromium::drawLayers):
632         (WebCore::LayerRendererChromium::paintLayerContents):
633         (WebCore::LayerRendererChromium::drawLayersInternal):
634         (WebCore::LayerRendererChromium::updateCompositorResources):
635         (WebCore::LayerRendererChromium::setCompositeOffscreen):
636         (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
637         (WebCore::LayerRendererChromium::useRenderSurface):
638         (WebCore::LayerRendererChromium::drawLayer):
639         (WebCore::LayerRendererChromium::initializeSharedObjects):
640         (WebCore::LayerRendererChromium::renderSurfaceProgram):
641         (WebCore::LayerRendererChromium::renderSurfaceMaskProgram):
642         (WebCore::LayerRendererChromium::dumpRenderSurfaces):
643         * platform/graphics/chromium/LayerRendererChromium.h:
644         * platform/graphics/chromium/PluginLayerChromium.cpp:
645         (WebCore::PluginLayerChromium::createCCLayerImpl):
646         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
647         (WebCore::RenderSurfaceChromium::RenderSurfaceChromium):
648         (WebCore::RenderSurfaceChromium::~RenderSurfaceChromium):
649         * platform/graphics/chromium/RenderSurfaceChromium.h:
650         (WebCore::RenderSurfaceChromium::clearLayerList):
651         (WebCore::RenderSurfaceChromium::layerList):
652         (WebCore::RenderSurfaceChromium::setMaskLayer):
653         * platform/graphics/chromium/TiledLayerChromium.cpp:
654         (WebCore::TiledLayerChromium::createCCLayerImpl):
655         (WebCore::TiledLayerChromium::tilingTransform):
656         * platform/graphics/chromium/TreeSynchronizer.cpp:
657         (WebCore::TreeSynchronizer::synchronizeTreeRecursive):
658         * platform/graphics/chromium/VideoLayerChromium.cpp:
659         (WebCore::VideoLayerChromium::createCCLayerImpl):
660         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
661         (WebCore::CCCanvasLayerImpl::CCCanvasLayerImpl):
662         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
663         (WebCore::CCCanvasLayerImpl::create):
664         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
665         (WebCore::CCLayerImpl::CCLayerImpl):
666         (WebCore::CCLayerImpl::~CCLayerImpl):
667         (WebCore::CCLayerImpl::createRenderSurface):
668         (WebCore::CCLayerImpl::bindContentsTexture):
669         * platform/graphics/chromium/cc/CCLayerImpl.h:
670         (WebCore::CCLayerImpl::create):
671         (WebCore::CCLayerImpl::renderSurface):
672         (WebCore::CCLayerImpl::targetRenderSurface):
673         (WebCore::CCLayerImpl::setTargetRenderSurface):
674         * platform/graphics/chromium/cc/CCLayerSorter.cpp:
675         (WebCore::CCLayerSorter::createGraphNodes):
676         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
677         (WebCore::CCPluginLayerImpl::CCPluginLayerImpl):
678         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
679         (WebCore::CCPluginLayerImpl::create):
680         * platform/graphics/chromium/cc/CCRenderSurface.cpp: Copied from Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.cpp.
681         (WebCore::CCRenderSurface::CCRenderSurface):
682         (WebCore::CCRenderSurface::~CCRenderSurface):
683         (WebCore::CCRenderSurface::cleanupResources):
684         (WebCore::CCRenderSurface::layerRenderer):
685         (WebCore::CCRenderSurface::drawableContentRect):
686         (WebCore::CCRenderSurface::prepareContentsTexture):
687         (WebCore::CCRenderSurface::releaseContentsTexture):
688         (WebCore::CCRenderSurface::drawSurface):
689         (WebCore::CCRenderSurface::draw):
690         (WebCore::CCRenderSurface::name):
691         (WebCore::writeIndent):
692         (WebCore::CCRenderSurface::dumpSurface):
693         (WebCore::CCRenderSurface::owningLayerId):
694         * platform/graphics/chromium/cc/CCRenderSurface.h: Copied from Source/WebCore/platform/graphics/chromium/RenderSurfaceChromium.h.
695         (WebCore::CCRenderSurface::contentRectCenter):
696         (WebCore::CCRenderSurface::drawOpacity):
697         (WebCore::CCRenderSurface::setDrawOpacity):
698         (WebCore::CCRenderSurface::setDrawTransform):
699         (WebCore::CCRenderSurface::drawTransform):
700         (WebCore::CCRenderSurface::setReplicaDrawTransform):
701         (WebCore::CCRenderSurface::replicaDrawTransform):
702         (WebCore::CCRenderSurface::setOriginTransform):
703         (WebCore::CCRenderSurface::originTransform):
704         (WebCore::CCRenderSurface::setScissorRect):
705         (WebCore::CCRenderSurface::scissorRect):
706         (WebCore::CCRenderSurface::setContentRect):
707         (WebCore::CCRenderSurface::contentRect):
708         (WebCore::CCRenderSurface::setSkipsDraw):
709         (WebCore::CCRenderSurface::skipsDraw):
710         (WebCore::CCRenderSurface::clearLayerList):
711         (WebCore::CCRenderSurface::layerList):
712         (WebCore::CCRenderSurface::setMaskLayer):
713         (WebCore::CCRenderSurface::contentsTexture):
714         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
715         (WebCore::CCTiledLayerImpl::CCTiledLayerImpl):
716         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
717         (WebCore::CCTiledLayerImpl::create):
718         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
719         (WebCore::CCVideoLayerImpl::CCVideoLayerImpl):
720         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
721         (WebCore::CCVideoLayerImpl::create):
722
723 2011-08-02  Luke Macpherson   <macpherson@chromium.org>
724
725         Implement CSSPropertyWebkitTextCombine, CSSPropertyWebkitTextEmphasisPosition and CSSPropertyWebkitTextEmphasisStyle in CSSStyleApplyProperty.
726         https://bugs.webkit.org/show_bug.cgi?id=65517
727
728         Reviewed by Dimitri Glazkov.
729
730         No new tests. Just refactoring and moving code around.
731
732         * css/CSSStyleApplyProperty.cpp:
733         Added class ApplyPropertyTextEmphasisStyle to handle the special TextEmphasisStyle logic.
734         (WebCore::ApplyPropertyTextEmphasisStyle::applyInheritValue):
735         (WebCore::ApplyPropertyTextEmphasisStyle::applyInitialValue):
736         (WebCore::ApplyPropertyTextEmphasisStyle::applyValue):
737         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
738         Added initializations for CSSPropertyWebkitTextCombine, CSSPropertyWebkitTextEmphasisPosition, CSSPropertyWebkitTextEmphasisStyle.
739         * css/CSSStyleSelector.cpp:
740         (WebCore::CSSStyleSelector::applyProperty):
741         Remove existing implementations.
742
743 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
744
745         Remove LegacyDefaultOptionalArguments flag from SpeechInputResultList.idl
746         https://bugs.webkit.org/show_bug.cgi?id=65570
747
748         Reviewed by Adam Barth.
749
750         No new tests, all existing tests pass
751
752         * page/SpeechInputResultList.idl:
753
754 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
755
756         Remove LegacyDefaultOptionalArguments flag from EventSource.idl
757         https://bugs.webkit.org/show_bug.cgi?id=65568
758
759         Reviewed by Adam Barth.
760
761         No new tests, all existing tests pass.
762
763         * page/EventSource.idl:
764
765 2011-08-02  Gavin Peters  <gavinp@chromium.org>
766
767         fail earlier to track down null CachedScript execution
768         https://bugs.webkit.org/show_bug.cgi?id=65563
769
770         Over in http://code.google.com/p/chromium/issues/detail?id=75604 I can't reproduce the problem.  Careful reading of the code hasn't led me
771         to an obvious cause either.  This patch should cause failure earlier, and lead to better stacks.  I'll watch Chrome Canary's crash
772         uploads carefully, and remove this CRASH() (and fix the underlying problem) once I understand it.
773
774         Reviewed by Alexey Proskuryakov.
775
776         No new tests, as my goal here is to get telemetry on a bug that I cannot reproduce.
777
778         * dom/ScriptRunner.cpp:
779         (WebCore::ScriptRunner::queueScriptForExecution):
780
781 2011-08-02  Sailesh Agrawal  <sail@chromium.org>
782
783         Chromium: Update forked ScrollbarThemeChromiumMac.mm
784         https://bugs.webkit.org/show_bug.cgi?id=65555
785
786         Merge recent changes to ScrollbarThemeMac.mm to ScrollbarThemeChromiumMac.mm.
787
788         Reviewed by James Robinson.
789
790         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
791         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
792         (wkScrollbarPainterSetEnabled):
793         * platform/chromium/ScrollbarThemeChromiumMac.h:
794         (WebCore::ScrollbarThemeChromiumMac::maxOverlapBetweenPages):
795         * platform/chromium/ScrollbarThemeChromiumMac.mm:
796         (WebCore::ScrollbarThemeChromiumMac::registerScrollbar):
797         (WebCore::ScrollbarThemeChromiumMac::setNewPainterForScrollbar):
798         (WebCore::toScrollbarPainterKnobStyle):
799         (WebCore::ScrollbarThemeChromiumMac::updateScrollbarOverlayStyle):
800         (WebCore::ScrollbarThemeChromiumMac::updateEnabledState):
801         (WebCore::ScrollbarThemeChromiumMac::paint):
802
803 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
804
805         Remove LegacyDefaultOptionalArguments flag from SVG IDL files
806         https://bugs.webkit.org/show_bug.cgi?id=65337
807
808         Reviewed by Nikolas Zimmermann.
809
810         No new tests, all existing tests pass.
811
812         * svg/ElementTimeControl.idl:
813         * svg/SVGAnimationElement.idl:
814         * svg/SVGDocument.idl:
815         * svg/SVGElementInstance.idl:
816         * svg/SVGElementInstanceList.idl:
817         * svg/SVGException.idl:
818         * svg/SVGFEDropShadowElement.idl:
819         * svg/SVGFEGaussianBlurElement.idl:
820         * svg/SVGFEMorphologyElement.idl:
821         * svg/SVGFilterElement.idl:
822         * svg/SVGLocatable.idl:
823         * svg/SVGMarkerElement.idl:
824         * svg/SVGPathElement.idl:
825         * svg/SVGSVGElement.idl:
826         * svg/SVGStylable.idl:
827         * svg/SVGStyleElement.idl:
828         * svg/SVGTests.idl:
829         * svg/SVGTextContentElement.idl:
830
831 2011-08-02  Mark Pilgrim  <pilgrim@chromium.org>
832
833         Remove LegacyDefaultOptionalArguments flag from CSS IDL files
834         https://bugs.webkit.org/show_bug.cgi?id=65341
835
836         Reviewed by Adam Barth.
837
838         No new tests. All existing tests pass.
839
840         * css/CSSMediaRule.idl:
841         * css/CSSPrimitiveValue.idl:
842         * css/CSSRuleList.idl:
843         * css/CSSStyleDeclaration.idl:
844         * css/CSSStyleSheet.idl:
845         * css/CSSValueList.idl:
846         * css/MediaList.idl:
847         * css/MediaQueryList.idl:
848         * css/MediaQueryListListener.idl:
849         * css/StyleMedia.idl:
850         * css/StyleSheetList.idl:
851         * css/WebKitCSSKeyframesRule.idl:
852         * css/WebKitCSSMatrix.idl:
853
854 2011-08-02  Robert Kroeger  <rjkroege@chromium.org>
855
856         [chromium] Layering violations in gesture recognizer
857         https://bugs.webkit.org/show_bug.cgi?id=65044
858
859         Reviewed by Adam Barth.
860
861         Divided the gesture recognizer up to correct a layering
862         violation by moving gesture implementation from it to
863         EventHandler::handleGestureEvent so that the gesture recognizer
864         could simply be an engine for generating gesture events from
865         touch events.
866
867         * dom/WheelEvent.cpp:
868         (WebCore::WheelEvent::WheelEvent):
869         (WebCore::WheelEvent::initWheelEvent):
870         * dom/WheelEvent.h:
871         Added symbolic contstant for tick multiplier.
872         * page/EventHandler.cpp:
873         (WebCore::EventHandler::EventHandler):
874         Removed construction of gesture recognizer.
875         (WebCore::EventHandler::handleGestureEvent):
876         Extended for new gesture events added in this patch.
877         (WebCore::EventHandler::handleTouchEvent):
878         Removed call into gesture recognizer.
879         * page/EventHandler.h:
880         * page/FrameView.cpp:
881         (WebCore::FrameView::reset):
882         Removed code to reset gesture recognizer.
883         * platform/PlatformGestureEvent.h:
884         (WebCore::PlatformGestureEvent::PlatformGestureEvent):
885         (WebCore::PlatformGestureEvent::deltaX):
886         (WebCore::PlatformGestureEvent::deltaY):
887         (WebCore::PlatformGestureEvent::shiftKey):
888         (WebCore::PlatformGestureEvent::ctrlKey):
889         (WebCore::PlatformGestureEvent::altKey):
890         (WebCore::PlatformGestureEvent::metaKey):
891         Added additional gesture types and parameters.
892         * platform/PlatformGestureRecognizer.h:
893         * platform/chromium/FramelessScrollView.h:
894         Added support for displatching gesture and touch events.
895         * platform/chromium/GestureRecognizerChromium.cpp:
896         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
897         (WebCore::InnerGestureRecognizer::reset):
898         (WebCore::InnerGestureRecognizer::constructClickGestureEvent):
899         (WebCore::InnerGestureRecognizer::processTouchEventForGestures):
900         Removed all depedencies on EventHandler. Instead, create gesture
901         events from touch event stream.
902         (WebCore::InnerGestureRecognizer::constructScrollGesture):
903         (WebCore::touchDown):
904         (WebCore::noGesture):
905         (WebCore::click):
906         (WebCore::isClickOrScroll):
907         (WebCore::inScroll):
908         (WebCore::GestureRecognizerChromium::processTouchEventForGestures):
909         (WebCore::GestureRecognizerChromium::reset):
910         * platform/chromium/GestureRecognizerChromium.h:
911         * platform/chromium/PopupMenuChromium.cpp:
912         Added support to handle touch events and gesture events.
913         (WebCore::PopupContainer::handleTouchEvent):
914         (WebCore::PopupContainer::handleGestureEvent):
915         (WebCore::PopupListBox::handleTouchEvent):
916         (WebCore::PopupListBox::handleGestureEvent):
917         * platform/chromium/PopupMenuChromium.h:
918         * platform/mac/ScrollAnimatorMac.mm:
919         (WebCore::ScrollAnimatorMac::handleGestureEvent):
920         Ignores the newly added gesture event types.
921
922 2011-08-01  Michael Saboff  <msaboff@apple.com>
923
924         Virtual copying of FastMalloc allocated memory causes madvise MADV_FREE_REUSABLE errors
925         https://bugs.webkit.org/show_bug.cgi?id=65502
926
927         Reviewed by Anders Carlsson.
928
929         Change the vm_copy in PurgeableBuffer::create to be a memcpy.  The
930         vm_copy causes the process to have additional references to the same
931         memory region.  These additional reference caused madvise(MADV_FREE_REUSABLE)
932         to fail when it encountered such pages.
933
934         No tests added this is a resource defect and not a functional issue.
935
936         * platform/mac/PurgeableBufferMac.cpp:
937         (WebCore::PurgeableBuffer::create):
938
939 2011-08-02  Stephen White  <senorblanco@chromium.org>
940
941         [Chromium] Remove an unnecessary readback during accelerated 
942         canvas-to-canvas draws.
943         https://bugs.webkit.org/show_bug.cgi?id=65560
944
945         Reviewed by James Robinson.
946
947         No new tests.  (Printing has few tests, sadly.)
948
949         * platform/graphics/skia/ImageBufferSkia.cpp:
950         (WebCore::ImageBuffer::draw):
951         Revert most of the changes to this file from
952         http://trac.webkit.org/changeset/91870, except for the call which makes
953         the source context current, so that the readPixels() still works.
954
955
956 2011-08-02  Filip Pizlo  <fpizlo@apple.com>
957
958         JSC GC is far too conservative about growing the heap size, particularly
959         on desktop platforms
960         https://bugs.webkit.org/show_bug.cgi?id=65438
961
962         Reviewed by Oliver Hunt.
963
964         No change in behavior, thus no new tests.
965         
966         Pass the LargeHeap hint to JSGlobalData when creating the JSC runtime
967         instance corresponding to non-worker JS code.
968
969         * bindings/js/JSDOMWindowBase.cpp:
970         (WebCore::JSDOMWindowBase::commonJSGlobalData):
971
972 2011-08-02  Van Lam  <vanlam@google.com>
973
974         --webkit-visual-word: ctrl-arrow is not able to reach the boundary of line
975         https://bugs.webkit.org/show_bug.cgi?id=61346
976
977         Reviewed by Ryosuke Niwa.
978
979         When collecintg word boundaries in a box, explicitly check if the box
980         is at the end of line (so it should contain the end-of-line position)
981         and collect the end-of-line position.
982
983         * editing/visible_units.cpp:
984         (WebCore::isBoxVisuallyLastInLine):
985         (WebCore::appendPositionAtLogicalEndOfLine):
986         (WebCore::collectWordBreaksInBoxInsideBlockWithSameDirectionality):
987         (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality):
988
989 2011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
990
991         Web Inspector: Should save scroll positions for network panel Response and Preview tabs.
992         https://bugs.webkit.org/show_bug.cgi?id=65557
993
994         Reviewed by Pavel Feldman.
995
996         * inspector/front-end/NetworkItemView.js:
997         (WebInspector.ResourceContentView.prototype.get innerView):
998         (WebInspector.ResourceContentView.prototype.set innerView):
999         (WebInspector.ResourceContentView.prototype.hide):
1000         * inspector/front-end/ResourcePreviewView.js:
1001         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1002         * inspector/front-end/ResourceResponseView.js:
1003         (WebInspector.ResourceResponseView.prototype.contentLoaded):
1004
1005 2011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
1006
1007         Web Inspector: Remove initator column for JSC, fix network resource initiator tests.
1008         https://bugs.webkit.org/show_bug.cgi?id=65534
1009
1010         Reviewed by Pavel Feldman.
1011
1012         * inspector/front-end/NetworkPanel.js:
1013         (WebInspector.NetworkLogView.prototype._createTable):
1014         (WebInspector.NetworkLogView.prototype.switchToDetailedView):
1015         (WebInspector.NetworkLogView.prototype.switchToBriefView):
1016         (WebInspector.NetworkLogView.prototype._toggleGridMode):
1017         (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
1018         (WebInspector.NetworkDataGridNode.prototype.createCells):
1019         (WebInspector.NetworkDataGridNode.prototype.refreshResource):
1020         * inspector/front-end/Settings.js:
1021
1022 2011-08-02  Vsevolod Vlasov  <vsevik@chromium.org>
1023
1024         Web Inspector: SourceFrame should store saved scroll positions in View.
1025         https://bugs.webkit.org/show_bug.cgi?id=65472
1026
1027         Reviewed by Pavel Feldman.
1028
1029         * inspector/front-end/ResourcesPanel.js:
1030         (WebInspector.FrameResourceTreeElement.prototype._recreateSourceView):
1031         * inspector/front-end/ScriptsPanel.js:
1032         (WebInspector.ScriptsPanel.prototype._sourceFileChanged):
1033         * inspector/front-end/SourceFrame.js:
1034         (WebInspector.SourceFrame.prototype.show):
1035         (WebInspector.SourceFrame.prototype.hide):
1036         (WebInspector.SourceFrame.prototype.get scrollLeft):
1037         (WebInspector.SourceFrame.prototype.set scrollLeft):
1038         (WebInspector.SourceFrame.prototype.get scrollTop):
1039         (WebInspector.SourceFrame.prototype.set scrollTop):
1040         * inspector/front-end/View.js:
1041         (WebInspector.View.prototype._innerShow):
1042         (WebInspector.View.prototype._innerHide):
1043         (WebInspector.View.prototype.detach):
1044         (WebInspector.View.prototype.storeScrollPositions):
1045         (WebInspector.View.prototype.inheritScrollPositionsFromView):
1046         (WebInspector.View.prototype.restoreScrollPositions):
1047
1048 2011-08-02  Jeff Miller  <jeffm@apple.com>
1049
1050         Move WTF_USE_AVFOUNDATION from JavaScriptCore/wtf/platform.h to WebCore/config.h
1051         https://bugs.webkit.org/show_bug.cgi?id=65552
1052         
1053         Since this is a WebCore feature, there's no need to define it in JavaScriptCore/wtf/platform.h.
1054
1055         Reviewed by Adam Roben.
1056
1057         No change in functionality, so new tests.
1058
1059         * config.h: Added WTF_USE_AVFOUNDATION.
1060
1061 2011-08-02  Alexandru Chiculita  <achicu@adobe.com>
1062
1063         Split RenderBlock::layoutRunsAndFloats into multiple methods
1064         https://bugs.webkit.org/show_bug.cgi?id=65376
1065
1066         Extracted layoutRunsAndFloatsInRange, linkToEndLineIfNeeded and repaintDirtyFloats methods and moved
1067         most of the locals to LineLayoutState.
1068
1069         Reviewed by David Hyatt.
1070
1071         No new tests needed because it is just refactoring existing code.
1072
1073         * rendering/RenderBlock.h:
1074         * rendering/RenderBlockLineLayout.cpp:
1075         (WebCore::LineLayoutState::LineLayoutState):
1076         (WebCore::LineLayoutState::endLineMatched):
1077         (WebCore::LineLayoutState::setEndLineMatched):
1078         (WebCore::LineLayoutState::checkForFloatsFromLastLine):
1079         (WebCore::LineLayoutState::setCheckForFloatsFromLastLine):
1080         (WebCore::LineLayoutState::lineInfo):
1081         (WebCore::LineLayoutState::endLineLogicalTop):
1082         (WebCore::LineLayoutState::setEndLineLogicalTop):
1083         (WebCore::LineLayoutState::endLine):
1084         (WebCore::LineLayoutState::setEndLine):
1085         (WebCore::LineLayoutState::lastFloat):
1086         (WebCore::LineLayoutState::setLastFloat):
1087         (WebCore::LineLayoutState::floats):
1088         (WebCore::LineLayoutState::floatIndex):
1089         (WebCore::LineLayoutState::setFloatIndex):
1090         (WebCore::RenderBlock::layoutRunsAndFloats):
1091         (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
1092         (WebCore::RenderBlock::linkToEndLineIfNeeded):
1093         (WebCore::RenderBlock::repaintDirtyFloats):
1094         (WebCore::RenderBlock::layoutInlineChildren):
1095         (WebCore::RenderBlock::determineStartPosition):
1096         (WebCore::RenderBlock::determineEndPosition):
1097         (WebCore::RenderBlock::matchedEndLine):
1098
1099 2011-08-02  Nat Duca  <nduca@chromium.org>
1100
1101         [chromium] Remove resizeOnscreenContent from LRC. It can be derived.
1102         https://bugs.webkit.org/show_bug.cgi?id=65519
1103
1104         Reviewed by James Robinson.
1105
1106         * platform/graphics/chromium/LayerRendererChromium.cpp:
1107         (WebCore::LayerRendererChromium::setViewport):
1108         * platform/graphics/chromium/LayerRendererChromium.h:
1109
1110 2011-08-02  Nico Weber  <thakis@chromium.org>
1111
1112         [chromium] Fix unresolved symbols error when linking to libwebkit.dylib
1113         https://bugs.webkit.org/show_bug.cgi?id=65498
1114
1115         Reviewed by Dimitri Glazkov.
1116
1117         * WebCore.gyp/mac/adjust_visibility.sh:
1118
1119 2011-08-02  Mihnea Ovidenie  <mihnea@adobe.com>
1120
1121         hover then un-hover makes state change
1122         https://bugs.webkit.org/show_bug.cgi?id=56401
1123
1124         Reviewed by David Hyatt.
1125
1126         When a 'before' pseudo-element is re-added, we should check whether the insertion point is an anonymous
1127         block with inline children. If it is, then we should change the insertion point to the first child of the
1128         anonymous block, otherwise the 'before' pseudo-element ends up in a different block. We choose the insertion
1129         point to be the first child only if the anonymous block has children, otherwise the before element ends up
1130         in a wrong block.
1131
1132         Tests: fast/dynamic/hover-before-position-after-style-change.html
1133                fast/dynamic/hover-before-position-after-style-change2.html
1134
1135         * rendering/RenderObjectChildList.cpp:
1136         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
1137
1138 2011-08-02  Andreas Kling  <kling@webkit.org>
1139
1140         [Qt] Simplify Path::translate() implementation.
1141         https://bugs.webkit.org/show_bug.cgi?id=65540
1142
1143         Reviewed by Benjamin Poulain.
1144
1145         * platform/graphics/qt/PathQt.cpp:
1146         (WebCore::Path::translate):
1147
1148 2011-07-30  Pavel Podivilov  <podivilov@chromium.org>
1149
1150         Web Inspector: merge FormattedSourceFile into SourceFile.
1151         https://bugs.webkit.org/show_bug.cgi?id=65411
1152
1153         Reviewed by Pavel Feldman.
1154
1155         Prepare for splitting SourceFile into RawSourceCode and UISourceCode:
1156          * merge FormattedSourceFile into SourceFile
1157          * rename SourceFile to RawSourceCode
1158          * hide formatter worker lazy creation in ScriptFormatter
1159
1160         * inspector/front-end/DebuggerPresentationModel.js:
1161         (WebInspector.DebuggerPresentationModel):
1162         (WebInspector.DebuggerPresentationModel.prototype._scriptLocationToUILocation):
1163         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
1164         (WebInspector.DebuggerPresentationModel.prototype._addScript):
1165         * inspector/front-end/ScriptFormatter.js:
1166         (WebInspector.ScriptFormatter):
1167         (WebInspector.ScriptFormatter.prototype._didFormatContent):
1168         (WebInspector.ScriptFormatter.prototype.get _worker):
1169         * inspector/front-end/SourceFile.js:
1170         (WebInspector.RawSourceCode):
1171         (WebInspector.RawSourceCode.prototype.setFormatted):
1172         (WebInspector.RawSourceCode.prototype.createSourceMappingIfNeeded.didRequestContent):
1173         (WebInspector.RawSourceCode.prototype.createSourceMappingIfNeeded):
1174         (WebInspector.RawSourceCode.prototype._didRequestContent.didFormatContent):
1175         (WebInspector.RawSourceCode.prototype._didRequestContent):
1176         (WebInspector.RawSourceCode.prototype._invokeRequestContentCallbacks):
1177
1178 2011-08-02  Mihnea Ovidenie  <mihnea@adobe.com>
1179
1180         [CSSRegions]Fix build after changeset 92106
1181         https://bugs.webkit.org/show_bug.cgi?id=65539
1182
1183         Reviewed by Adam Roben.
1184
1185         No new tests since it is just a build fix.
1186
1187         * css/CSSStyleSelector.cpp:
1188         (WebCore::CSSStyleSelector::applyProperty):
1189
1190 2011-08-01  Vsevolod Vlasov  <vsevik@chromium.org>
1191
1192         Web Inspector: [REGRESSION] Console evaluations leading to resource loading cause errors.
1193         https://bugs.webkit.org/show_bug.cgi?id=65466
1194
1195         Reviewed by Pavel Feldman.
1196
1197         Test: http/tests/inspector/network/network-initiator-from-console.html
1198
1199         * inspector/front-end/NetworkPanel.js:
1200         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
1201
1202 2011-08-02  Alexander Pavlov  <apavlov@chromium.org>
1203
1204         Web Inspector: img[width=90] or align attributes shouldnt be shown above element.style block (as they have lower specificity)
1205         https://bugs.webkit.org/show_bug.cgi?id=65514
1206
1207         Reviewed by Pavel Feldman.
1208
1209         * inspector/front-end/StylesSidebarPane.js:
1210
1211 2011-08-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1212
1213         [EFL] Add fullscreen button to media control UI.
1214         https://bugs.webkit.org/show_bug.cgi?id=64428
1215
1216         Implement paintMediaFullscreenButton and emit fullscreen signal.
1217
1218         Reviewed by Antonio Gomes.
1219
1220         * platform/efl/RenderThemeEfl.cpp:
1221         (WebCore::RenderThemeEfl::edjeGroupFromFormType):
1222         (WebCore::RenderThemeEfl::emitMediaButtonSignal):
1223         (WebCore::RenderThemeEfl::paintMediaFullscreenButton):
1224         * platform/efl/RenderThemeEfl.h:
1225
1226 2011-08-01  Andrey Kosyakov  <caseq@chromium.org>
1227
1228         Web Inspector: [Extensions API] webInspector.inspectedPage.reload() is broken
1229         https://bugs.webkit.org/show_bug.cgi?id=65476
1230
1231         - fixed webInspector.inspectedWindow.reload(), brought tests back.
1232         - removed redundant setting of user agent in FrameLoader::loadResourceSynchronously()
1233
1234         Reviewed by Yury Semikhatsky.
1235
1236         Test: http/tests/inspector/extensions-useragent.html
1237
1238         * inspector/front-end/ExtensionServer.js:
1239         (WebInspector.ExtensionServer.prototype._onReload):
1240         * loader/FrameLoader.cpp:
1241         (WebCore::FrameLoader::loadResourceSynchronously):
1242
1243 2011-08-02  Pavel Feldman  <pfeldman@chromium.org>
1244
1245         Not reviewed: fixing inspector tests.
1246
1247         * inspector/front-end/ScriptsPanel.js:
1248         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect):
1249
1250 2011-08-02  Pavel Feldman  <pfeldman@google.com>
1251
1252         Not reviewed: one line inspector style change.
1253
1254         * inspector/front-end/networkLogView.css:
1255         (.network-error-row, .network-error-row .network-cell-subtitle):
1256
1257 2011-08-02  Amruth Raj  <amruthraj@motorola.com>
1258
1259         Custom cursors cause the WebProcess to crash
1260         https://bugs.webkit.org/show_bug.cgi?id=64802
1261
1262         Reviewed by Martin Robinson.
1263
1264         * WebCore.exp.in:
1265
1266 2011-08-02  Pavel Feldman  <pfeldman@google.com>
1267
1268         Web Inspector: _normalizeEventTypes (via console's monitorEvents) doesnt handle all events like 'search' and other atypical ones.
1269         https://bugs.webkit.org/show_bug.cgi?id=65468
1270
1271         Reviewed by Yury Semikhatsky.
1272
1273         * inspector/InjectedScriptSource.js:
1274
1275 2011-08-02  Pavel Feldman  <pfeldman@google.com>
1276
1277         Web Inspector: 404/errors should get a RED visual treatment so easier to identify.
1278         https://bugs.webkit.org/show_bug.cgi?id=65471
1279
1280         Reviewed by Yury Semikhatsky.
1281
1282         * inspector/front-end/NetworkPanel.js:
1283         (WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):
1284         * inspector/front-end/networkLogView.css:
1285         (.network-error-cell):
1286
1287 2011-08-02  Pavel Feldman  <pfeldman@google.com>
1288
1289         Web Inspector: arrow is a pain to click in console. Drive-by selection reset fix.
1290         https://bugs.webkit.org/show_bug.cgi?id=65467
1291
1292         Reviewed by Yury Semikhatsky.
1293
1294         * inspector/front-end/ConsoleView.js:
1295         (WebInspector.ConsoleView.prototype._messagesClicked):
1296         * inspector/front-end/ObjectPropertiesSection.js:
1297         (WebInspector.ObjectPropertyTreeElement):
1298         * inspector/front-end/inspector.css:
1299         (.properties-tree li):
1300         (.properties-tree li.parent::before):
1301         * inspector/front-end/treeoutline.js:
1302         (TreeElement.treeElementToggled):
1303
1304 2011-08-01  Pavel Feldman  <pfeldman@google.com>
1305
1306         Web Inspector: button + "New style rule"
1307         https://bugs.webkit.org/show_bug.cgi?id=65409
1308
1309         Reviewed by Yury Semikhatsky.
1310
1311         Test: inspector/styles/styles-add-new-rule.html
1312
1313         * inspector/front-end/StylesSidebarPane.js:
1314         (WebInspector.StylesSidebarPane):
1315         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
1316
1317 2011-08-01  Luke Macpherson   <macpherson@chromium.org>
1318
1319         Don't set m_fontDirty when setting zoom unless zoom has actually changed
1320         https://bugs.webkit.org/show_bug.cgi?id=65092
1321
1322         Reviewed by Darin Adler.
1323
1324         No new tests as no functionality changed - this is an optimization that
1325         should be logically equivalent to the current code.
1326
1327         The intent here is to avoid setting m_fontDirty unless the fornt information is actually dirty.
1328
1329         * css/CSSStyleSelector.cpp:
1330         (WebCore::CSSStyleSelector::styleForDocument):
1331         (WebCore::CSSStyleSelector::applyProperty):
1332         Use setZoom and setEffectiveZoom wrapper functions.
1333         * css/CSSStyleSelector.h:
1334         (WebCore::CSSStyleSelector::setZoom):
1335         Wrapper for m_style->setZoom() that automatically updates m_fontDirty.
1336         (WebCore::CSSStyleSelector::setEffectiveZoom):
1337         Wrapper for m_style->setEffectiveZoom that automatically updates m_fontDirty.
1338         * page/animation/AnimationBase.cpp:
1339         (WebCore::AnimationBase::ensurePropertyMap):
1340         Use 
1341         * rendering/style/RenderStyle.h:
1342         (WebCore::InheritedFlags::setZoom):
1343         Return true only if underlying values change.
1344         (WebCore::InheritedFlags::setZoomWithoutReturnValue):
1345         Return void to match function pointer type where required.
1346         (WebCore::InheritedFlags::setEffectiveZoom):
1347         Return true only if underlying values change.
1348
1349 2011-08-01  Jean-luc Brouillet  <jeanluc@chromium.org>
1350
1351         Removing old source files in gyp files that slow build
1352         https://bugs.webkit.org/show_bug.cgi?id=65503
1353
1354         Reviewed by Adam Barth.
1355
1356         A number of stale files are listed in the gyp files. These slow the
1357         build on Visual Studio 2010. Removing them.
1358
1359         * WebCore.gypi:
1360
1361 2011-08-01  Bradley Nelson  <bradnelson@chromium.org>
1362
1363         Shard webcore_remaining for msvs official builds
1364
1365         https://bugs.webkit.org/show_bug.cgi?id=65475
1366
1367         Reviewed by Darin Fisher.
1368
1369         webcore_remaining has consistently exceeded Visual Studio 2008's
1370         capacity to link when link time code generation is turned on (full
1371         release builds).  This has been dealt with the past by carving off
1372         larger and larger pieces of webcore_remaining (ie webcore_html,
1373         webcore_renderer etc).
1374         A new option has been added to gyp to automate this sharding:
1375         'msvs_shard': SHARD_COUNT,
1376         Targets marked in this way will be built in several pieces
1377         (target_0, target_1...).
1378         Since the resulting project is less comprehensible in the IDE (and
1379         since the linking limitation only afflicts official builds), this
1380         option is only needed for those builds.
1381         This patch shards webcore_remaining into 10 parts for official builds.
1382
1383         * WebCore.gyp/WebCore.gyp:
1384
1385 2011-08-01  Alice Boxhall  <aboxhall@chromium.org>
1386
1387         WAI-ARIA textbox role should be AXTextArea for aria-multiline=true, AXTextField for aria-multiline=false
1388         https://bugs.webkit.org/show_bug.cgi?id=65451
1389
1390         Reviewed by Chris Fleizach.
1391
1392         * accessibility/AccessibilityRenderObject.cpp:
1393         (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
1394
1395 2011-08-01  srikumar bonda  <srikumar.b@gmail.com>
1396
1397         Use threadsafeCopy() API when using Database Directory path variable 
1398         https://bugs.webkit.org/show_bug.cgi?id=65436
1399
1400         Reviewed by David Levin.
1401
1402         Use threadsafeCopy() API while using m_databaseDirectoryPath string variable
1403         when the databaseGuard lock hasn't been taken in DatabaseTracker class. 
1404         This is just a safety fix.
1405
1406         No changes to functionality so no new tests.
1407
1408         * storage/DatabaseTracker.cpp:
1409         (WebCore::DatabaseTracker::trackerDatabasePath):
1410         (WebCore::DatabaseTracker::deleteOrigin):
1411
1412 2011-08-01  Michael Nordman  <michaeln@google.com>
1413
1414         [Chromium] WebSQLDatabase version handling is broken in multi-process browsers.
1415         https://bugs.webkit.org/show_bug.cgi?id=65486
1416
1417         The WebCore::AbstractDatabase class maintains a global in-memory map of
1418         the version numbers associated with open database files, but that map is
1419         not reliable in a multi-process system like Chrome. So instead of relying
1420         on the cached values in that map, we read the value from the database (and
1421         update the cached value) where possible. There are two edge cases where that's
1422         not possible because the scriptable interface requires synchronous access
1423         to the version: the .version attribute getter and the .openDatabase() method.
1424         In those cases, we have no choice but to use the potentially stale cached value.
1425
1426         Reviewed by Darin Fisher.
1427
1428         No new tests. Existing layout tests cover the version handling functionality.
1429
1430         * storage/AbstractDatabase.cpp:
1431         (WebCore::AbstractDatabase::version):
1432         (WebCore::AbstractDatabase::performOpenAndVerify):
1433         (WebCore::AbstractDatabase::getVersionFromDatabase):
1434         (WebCore::AbstractDatabase::setVersionInDatabase):
1435         (WebCore::AbstractDatabase::setExpectedVersion):
1436         (WebCore::AbstractDatabase::getCachedVersion):
1437         (WebCore::AbstractDatabase::setCachedVersion):
1438         (WebCore::AbstractDatabase::getActualVersionForTransaction):
1439         * storage/AbstractDatabase.h:
1440         (WebCore::AbstractDatabase::expectedVersion):
1441         * storage/ChangeVersionWrapper.cpp:
1442         (WebCore::ChangeVersionWrapper::handleCommitFailedAfterPostflight):
1443         * storage/ChangeVersionWrapper.h:
1444         * storage/Database.cpp:
1445         (WebCore::Database::openDatabase):
1446         * storage/DatabaseSync.cpp:
1447         (WebCore::DatabaseSync::openDatabaseSync):
1448         (WebCore::DatabaseSync::changeVersion):
1449         * storage/SQLTransaction.cpp:
1450         (WebCore::SQLTransaction::SQLTransaction):
1451         (WebCore::SQLTransaction::executeSQL):
1452         (WebCore::SQLTransaction::openTransactionAndPreflight):
1453         (WebCore::SQLTransaction::runCurrentStatement):
1454         (WebCore::SQLTransaction::postflightAndCommit):
1455         * storage/SQLTransaction.h:
1456         * storage/SQLTransactionSync.cpp:
1457         (WebCore::SQLTransactionSync::SQLTransactionSync):
1458         (WebCore::SQLTransactionSync::executeSQL):
1459         (WebCore::SQLTransactionSync::begin):
1460         * storage/SQLTransactionSync.h:
1461
1462 2011-08-01  Tim Horton  <timothy_horton@apple.com>
1463
1464         Severe shadow repaint issues with SVGText elements
1465         https://bugs.webkit.org/show_bug.cgi?id=63648
1466         <rdar://problem/7632269>
1467
1468         Reviewed by Darin Adler.
1469
1470         Make SVG elements which inherit from RenderSVGBlock take text-shadow
1471         overflow into account when determining whether or not they should draw
1472
1473         Test: svg/custom/repaint-shadow.svg
1474
1475         * rendering/RenderBox.h:
1476         (WebCore::RenderBox::visualOverflowRect):
1477         * rendering/svg/RenderSVGBlock.cpp:
1478         (WebCore::RenderSVGBlock::visualOverflowRect):
1479         * rendering/svg/RenderSVGBlock.h:
1480
1481 2011-08-01  Zhenyao Mo  <zmo@google.com>
1482
1483         Unreviewed, rolling out r92022.
1484         http://trac.webkit.org/changeset/92022
1485         https://bugs.webkit.org/show_bug.cgi?id=65203
1486
1487         try to see if this is causing a bunch of browser tests failues
1488         on win bots - will recommit if not
1489
1490         * platform/graphics/chromium/FontChromiumWin.cpp:
1491         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::TransparencyAwareFontPainter):
1492         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::init):
1493         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
1494         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
1495         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::TransparencyAwareGlyphPainter):
1496         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::~TransparencyAwareGlyphPainter):
1497         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
1498         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::hdc):
1499         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::TransparencyAwareUniscribePainter):
1500         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::~TransparencyAwareUniscribePainter):
1501         (WebCore::drawGlyphsWin):
1502         (WebCore::Font::drawComplexText):
1503         * platform/graphics/chromium/UniscribeHelper.cpp:
1504         (WebCore::UniscribeHelper::draw):
1505         * platform/graphics/skia/PlatformContextSkia.cpp:
1506         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
1507         * platform/graphics/skia/PlatformContextSkia.h:
1508         * platform/graphics/skia/SkiaFontWin.cpp:
1509         (WebCore::windowsCanHandleDrawTextShadow):
1510         (WebCore::windowsCanHandleTextDrawing):
1511         (WebCore::windowsCanHandleTextDrawingWithoutShadow):
1512         * platform/graphics/skia/SkiaFontWin.h:
1513
1514 2011-08-01  Scott Graham  <scottmg@chromium.org>
1515
1516         REGRESSION (r39725?): Resources removed from document can not be freed
1517         until the document is deleted
1518         https://bugs.webkit.org/show_bug.cgi?id=61006
1519
1520         Reviewed by Antti Koivisto.
1521
1522         Upon completing a load start a Timer to iterate through
1523         CachedResourceLoader's m_documentResources map to check for any items
1524         that have only one reference (thus being the reference in the map
1525         itself). The map should really be weak, but because the
1526         CachedResourceHandle achieves bookkeeping work in addition to
1527         reference counting, this is a simpler and more localized way to free
1528         the used memory while maintaining the other behaviour (when
1529         CachedResource is used as proxy).
1530
1531         With this patch the testcase at
1532         https://bugs.webkit.org/attachment.cgi?id=93850 should no longer
1533         consume 400MB of ram on load. Test added for crash discovered in
1534         previous revision, but no tests for memory usage.
1535
1536         Test: http/tests/inspector/network/disabled-cache-crash.html
1537
1538         * WebCore.exp.in:
1539         * loader/cache/CachedResource.h:
1540         (WebCore::CachedResource::hasOneHandle):
1541         * loader/cache/CachedResourceLoader.cpp:
1542         (WebCore::CachedResourceLoader::CachedResourceLoader):
1543         (WebCore::CachedResourceLoader::loadDone):
1544         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
1545         * loader/cache/CachedResourceLoader.h:
1546         * testing/Internals.cpp:
1547         (WebCore::Internals::disableMemoryCache):
1548         * testing/Internals.h:
1549         * testing/Internals.idl:
1550
1551 2011-08-01  Jochen Eisinger  <jochen@chromium.org>
1552
1553         Never override the policy URL on form submissions.
1554         https://bugs.webkit.org/show_bug.cgi?id=61809
1555
1556         Reviewed by Adam Barth.
1557
1558         Tests: http/tests/security/cookies/third-party-cookie-blocking-main-frame.html
1559                http/tests/security/cookies/third-party-cookie-blocking-user-action.html
1560                http/tests/security/cookies/third-party-cookie-blocking.html
1561
1562         * loader/FrameLoader.cpp:
1563         (WebCore::FrameLoader::loadURL):
1564         (WebCore::FrameLoader::addExtraFieldsToSubresourceRequest):
1565         (WebCore::FrameLoader::addExtraFieldsToMainResourceRequest):
1566         (WebCore::FrameLoader::addExtraFieldsToRequest):
1567         (WebCore::FrameLoader::loadPostRequest):
1568         (WebCore::FrameLoader::loadDifferentDocumentItem):
1569         * loader/FrameLoader.h:
1570
1571
1572 2011-08-01  Ryosuke Niwa  <rniwa@webkit.org>
1573
1574         Update comment added in r92139 per Darin's suggestion.
1575
1576         * css/CSSStyleSelector.cpp:
1577         (WebCore::CSSStyleSelector::styleForElement):
1578
1579 2011-08-01  Ryosuke Niwa  <rniwa@webkit.org>
1580
1581         Search field in designMode causes a crash
1582         https://bugs.webkit.org/show_bug.cgi?id=65362
1583
1584         Reviewed by Dimitri Glazkov.
1585
1586         The crashed was caused by editing code inadvertently deleting search and cancel buttons in the design mode.
1587         Fixed the bug by avoid inheriting user-modify property from the shadow host.
1588
1589         Test: editing/input/search-field-crash-in-designmode.html
1590
1591         * css/CSSStyleSelector.cpp:
1592         (WebCore::isAtShadowBoundary): Moved.
1593         (WebCore::CSSStyleSelector::styleForElement): Overrides -webkit-user-modify by the initial value after m_style
1594         inherited the values from m_parentStyle but before applying matched rules.
1595         * dom/Node.cpp:
1596         (WebCore::Node::rendererIsEditable): Ignore page's editability inside a shadow DOM.
1597
1598 2011-08-01  Marco Peereboom  <marco@peereboom.us>
1599
1600         [Soup] Set default max-conns to a more sane default value and fix comment 
1601         https://bugs.webkit.org/show_bug.cgi?id=65335
1602
1603         Reviewed by Martin Robinson.
1604
1605         Rigged the xxxterm web browser and validated that the default values were set properly.
1606
1607         * platform/network/soup/ResourceHandleSoup.cpp:
1608         (WebCore::ResourceHandle::defaultSession):
1609
1610 2011-07-28  Abhishek Arya  <inferno@chromium.org>
1611
1612         Regression(82144): Crash in TrailingObjects::updateMidpointsForTrailingBoxes
1613         https://bugs.webkit.org/show_bug.cgi?id=65137
1614
1615         Fix the looping condition to prevent trailingSpaceMidpoint from becoming negative.
1616
1617         Reviewed by Dave Hyatt.
1618
1619         Test: fast/block/update-midpoints-for-trailing-boxes-crash.html
1620
1621         * rendering/RenderBlockLineLayout.cpp:
1622         (WebCore::TrailingObjects::updateMidpointsForTrailingBoxes):
1623
1624 2011-08-01  Benjamin Poulain  <benjamin@webkit.org>
1625
1626         [Qt] OpenGLShims does not build on ARM
1627         https://bugs.webkit.org/show_bug.cgi?id=65465
1628
1629         Reviewed by Noam Rosenthal.
1630
1631         Fix the build with OpenGL ES 2:
1632         -lookupOpenGLFunctionAddress() was defined but not used for OpenGL ES.
1633         -glBlitFramebuffer() and glRenderbufferStorageMultisample() are not part of the specification.
1634         When those are available as platform extension, the extension has been added.
1635         -GLchar is not defined on some platform. The patch adds the same typedef as the official definition
1636         to avoid conflicts.
1637
1638         * platform/graphics/cairo/OpenGLShims.cpp:
1639         (lookupOpenGLFunctionAddress):
1640         (WebCore::initializeOpenGLShims):
1641         * platform/graphics/cairo/OpenGLShims.h:
1642
1643 2011-08-01  Yury Semikhatsky  <yurys@chromium.org>
1644
1645         Unreviewed. Trivial fix for inspector/debugger/debugger-completions-on-call-frame.html after r92122.
1646
1647         * inspector/front-end/ConsoleView.js:
1648
1649 2011-08-01  Hayato Ito  <hayato@chromium.org>
1650
1651         Add support for getting an element in shadow root by its id into a window.internals object.
1652         https://bugs.webkit.org/show_bug.cgi?id=64587
1653
1654         Reviewed by Hajime Morita.
1655
1656         Test: fast/dom/shadow/get-element-by-id-in-shadow-root.html
1657
1658         * WebCore.exp.in:
1659         * testing/Internals.cpp:
1660         (WebCore::Internals::getElementByIdInShadowRoot):
1661         * testing/Internals.h:
1662         * testing/Internals.idl:
1663
1664 2011-07-15  Hayato Ito  <hayato@chromium.org>
1665
1666         Add support for retrieving an element in TreeScope by id to window.internals object.
1667         https://bugs.webkit.org/show_bug.cgi?id=64587
1668
1669         Reviewed by Hajime Morita.
1670
1671         Test: fast/dom/shadow/get-element-by-id-in-shadow.html
1672
1673         * WebCore.exp.in:
1674         * testing/Internals.cpp:
1675         (WebCore::Internals::getElementByIdInTreeScope):
1676         * testing/Internals.h:
1677         * testing/Internals.idl:
1678
1679 2011-08-01  Yury Semikhatsky  <yurys@chromium.org>
1680
1681         Web Inspector: typing an expression in an iframe leads to multiple "Unsafe JavaScript attempt to access frame..." errors
1682         https://bugs.webkit.org/show_bug.cgi?id=65457
1683
1684         Console completions are now done using evaluation which returns a JSON object with all property names rather than a remote
1685         object. Also Runtime.evaluate and Runtime.callFunctionOn commands were extended with an optional parameter that allows to
1686         get result as JSON value.
1687
1688         Reviewed by Pavel Feldman.
1689
1690         Test: http/tests/inspector/console-cd-completions.html
1691
1692         * inspector/InjectedScript.cpp:
1693         (WebCore::InjectedScript::evaluate):
1694         (WebCore::InjectedScript::callFunctionOn):
1695         * inspector/InjectedScript.h:
1696         * inspector/InjectedScriptSource.js:
1697         (.):
1698         ():
1699         * inspector/Inspector.json:
1700         * inspector/InspectorRuntimeAgent.cpp:
1701         (WebCore::asBool):
1702         (WebCore::InspectorRuntimeAgent::evaluate):
1703         (WebCore::InspectorRuntimeAgent::callFunctionOn):
1704         * inspector/InspectorRuntimeAgent.h:
1705         * inspector/front-end/ConsoleView.js:
1706         (WebInspector.ConsoleView.prototype._completions.evaluated.getCompletions):
1707         (WebInspector.ConsoleView.prototype._completions.evaluated):
1708         (WebInspector.ConsoleView.prototype._completions.receivedPropertySet):
1709         (WebInspector.ConsoleView.prototype._completions):
1710         (WebInspector.ConsoleView.prototype.evalInInspectedWindow):
1711         * inspector/front-end/RemoteObject.js:
1712         (WebInspector.RemoteObject):
1713         (WebInspector.RemoteObject.prototype.callFunction):
1714         (WebInspector.RemoteObject.prototype.callFunctionJSON):
1715         * inspector/front-end/WatchExpressionsSidebarPane.js:
1716         (WebInspector.WatchExpressionsSection.prototype.update):
1717
1718 2011-08-01  Mihnea Ovidenie  <mihnea@adobe.com>
1719
1720         BORDER attribute with the object tag, using percentage values not working.
1721         https://bugs.webkit.org/show_bug.cgi?id=65176
1722
1723         Reviewed by Hajime Morita.
1724
1725         When border presentational attribute for object element has % in it, it should be parsed using HTML parser rules.
1726
1727         Test: fast/borders/border-width-percent.html
1728
1729         * html/HTMLElement.cpp:
1730         (WebCore::HTMLElement::parseBorderWidthAttribute):
1731         * html/HTMLElement.h:
1732         * html/HTMLImageElement.cpp:
1733         * html/HTMLObjectElement.cpp:
1734         (WebCore::HTMLObjectElement::parseMappedAttribute):
1735
1736 2011-08-01  Yuta Kitamura  <yutak@chromium.org>
1737
1738         WebSocket: Receive URL and subprotocol in WebSocketChannel::connect()
1739         https://bugs.webkit.org/show_bug.cgi?id=65367
1740
1741         Reviewed by Kent Tamura.
1742
1743         To implement multiple subprotocols support (bug 65247), WebSocket::connect() will need to validate
1744         the value of subprotocols after constructing WebSocketChannel, because the result depends on which
1745         WebSocket protocol is used, which is obtained from WebSocketChannel::useHixie76Protocol(). This
1746         means the subprotocol value will not be available at the time of WebSocketChannel construction.
1747
1748         This change moves URL and subprotocol arguments in WebSocketChannel constructor to
1749         WebSocketChannel::connect(), which allows WebSocket::connect() function to check the subprotocol
1750         value before the actual connection is established.
1751
1752         Relocating URL argument is technically not necessary, but seemed legitimate in terms of functional
1753         correspondence between WebSocket and WebSocketChannel (constructor versus connect()).
1754
1755         No change in behavior, thus no new tests.
1756
1757         * websockets/ThreadableWebSocketChannel.cpp:
1758         Remove "url" and "protocol" arguments from constructor and add them in connect().
1759         (WebCore::ThreadableWebSocketChannel::create):
1760         * websockets/ThreadableWebSocketChannel.h:
1761         * websockets/WebSocket.cpp:
1762         (WebCore::WebSocket::connect):
1763         * websockets/WebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
1764         (WebCore::WebSocketChannel::WebSocketChannel):
1765         (WebCore::WebSocketChannel::connect):
1766         InspectorInstrumentation::didCreateWebSocket() call was moved to connect() because it needs URL.
1767         This does not change behavior, because connect() is guaranteed to be called immediately after
1768         WebSocketChannel is constructed.
1769         * websockets/WebSocketChannel.h:
1770         (WebCore::WebSocketChannel::create):
1771         * websockets/WorkerThreadableWebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
1772         (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
1773         (WebCore::WorkerThreadableWebSocketChannel::connect):
1774         (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
1775         (WebCore::WorkerThreadableWebSocketChannel::Peer::connect):
1776         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
1777         (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
1778         (WebCore::WorkerThreadableWebSocketChannel::mainThreadConnect):
1779         (WebCore::WorkerThreadableWebSocketChannel::Bridge::connect):
1780         * websockets/WorkerThreadableWebSocketChannel.h:
1781         (WebCore::WorkerThreadableWebSocketChannel::create):
1782         (WebCore::WorkerThreadableWebSocketChannel::Peer::create):
1783         (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
1784
1785 2011-08-01  Luke Macpherson   <macpherson@chromium.org>
1786
1787         Add iterator to CSSValueList
1788         https://bugs.webkit.org/show_bug.cgi?id=65297
1789
1790         Reviewed by Darin Adler.
1791
1792         No new tests / refactoring only.
1793
1794         * css/CSSPrimitiveValue.h:
1795         (WebCore::CSSPrimitiveValue::isLength):
1796         Add shorthand to determine if this primitive value is a length.
1797         * css/CSSStyleSelector.cpp:
1798         Use CSSValueListIterator throughout.
1799         (WebCore::CSSStyleSelector::applyProperty):
1800         (WebCore::CSSStyleSelector::applyPageSizeProperty):
1801         (WebCore::CSSStyleSelector::createTransformOperations):
1802         * css/CSSValueList.cpp:
1803         (WebCore::CSSValueList::copy):
1804         Use itemWithoutBoundsCheck() instead of item().
1805         * css/CSSValueList.h:
1806         Add CSSValueListIterator and CSSValueListInspector class definitions.
1807         (WebCore::CSSValueList::item)
1808         Provide inline definition of item.
1809         (WebCore::CSSValueListIterator::CSSValueListIterator):
1810         (WebCore::CSSValueListIterator::hasMore):
1811         Return true if there are more values to consume, including the current value.
1812         (WebCore::CSSValueListIterator::value):
1813         Return the value at the current position.
1814         (WebCore::CSSValueListIterator::next):
1815         Move the iterator forward to the next item.
1816         (WebCore::CSSValueListIterator::index):
1817         Return the current position in the list.
1818         (WebCore::CSSValueListInspector::item):
1819         Return the item at a given index.
1820         (WebCore::CSSValueListInspector::first):
1821         Return the first item in the list.
1822         (WebCore::CSSValueListInspector::second):
1823         Return the second item in the list.
1824         (WebCore::CSSValueListInspector::length):
1825         Return the size of the underlying list.
1826
1827 2011-08-01  Pavel Feldman  <pfeldman@google.com>
1828
1829         Web Inspector: group scripts by folder in the scripts selector.
1830         https://bugs.webkit.org/show_bug.cgi?id=65321
1831
1832         Reviewed by Yury Semikhatsky.
1833
1834         Test: inspector/debugger/scripts-sorting.html
1835
1836         * inspector/front-end/ScriptsPanel.js:
1837         (WebInspector.ScriptsPanel.prototype._sourceFileAdded.get if):
1838         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect.insertOrdered.optionCompare):
1839         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect.insertOrdered):
1840         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect):
1841         (WebInspector.ScriptsPanel.prototype._folderAndDisplayNameForScriptURL):
1842         (WebInspector.ScriptsPanel.prototype.reset):
1843         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
1844
1845 2011-07-28  Pavel Feldman  <pfeldman@google.com>
1846
1847         Web Inspector: [protocol] methods where all parameters are optional should not require empty params object.
1848         https://bugs.webkit.org/show_bug.cgi?id=65331
1849
1850         Reviewed by Yury Semikhatsky.
1851
1852         * inspector/CodeGeneratorInspector.pm:
1853         (generateBackendFunction):
1854         (generateArgumentGetters):
1855
1856 2011-08-01  Adam Barth  <abarth@webkit.org>
1857
1858         application/json MIME type shouldn't cause warnings in <script> tags
1859         https://bugs.webkit.org/show_bug.cgi?id=65448
1860
1861         Reviewed by Pavel Feldman.
1862
1863         This patch stops the web inspector from logging a ton of spam warnings
1864         when a web page uses a JSONP service (which points script tags at
1865         application/json resources).
1866
1867         * inspector/front-end/inspector.js:
1868         (WebInspector.reset):
1869
1870 2011-08-01  Yuta Kitamura  <yutak@chromium.org>
1871
1872         WebSocket: Rename SocketStreamHandleClient member functions
1873         https://bugs.webkit.org/show_bug.cgi?id=65374
1874
1875         Reviewed by Kent Tamura.
1876
1877         Rename SocketStreamHandleClient member functions to avoid conflict of the names of
1878         FileReaderLoaderClient functions.
1879
1880         No change in behavior, thus no new tests are added.
1881
1882         * platform/network/SocketStreamHandleClient.h:
1883         (WebCore::SocketStreamHandleClient::didOpenSocketStream):
1884         (WebCore::SocketStreamHandleClient::didCloseSocketStream):
1885         (WebCore::SocketStreamHandleClient::didReceiveSocketStreamData):
1886         (WebCore::SocketStreamHandleClient::didFailSocketStream):
1887         * platform/network/brew/SocketStreamHandleBrew.cpp:
1888         (WebCore::SocketStreamHandlePrivate::socketConnected):
1889         (WebCore::SocketStreamHandlePrivate::socketReadyRead):
1890         (WebCore::SocketStreamHandlePrivate::socketClosed):
1891         (WebCore::SocketStreamHandlePrivate::socketError):
1892         * platform/network/cf/SocketStreamHandleCFNet.cpp:
1893         (WebCore::SocketStreamHandle::addCONNECTCredentials):
1894         (WebCore::SocketStreamHandle::readStreamCallback):
1895         (WebCore::SocketStreamHandle::writeStreamCallback):
1896         (WebCore::SocketStreamHandle::reportErrorToClient):
1897         (WebCore::SocketStreamHandle::platformClose):
1898         * platform/network/qt/SocketStreamHandleQt.cpp:
1899         (WebCore::SocketStreamHandlePrivate::socketConnected):
1900         (WebCore::SocketStreamHandlePrivate::socketReadyRead):
1901         (WebCore::SocketStreamHandlePrivate::socketClosedCallback):
1902         (WebCore::SocketStreamHandlePrivate::socketErrorCallback):
1903         * platform/network/soup/SocketStreamHandleSoup.cpp:
1904         (WebCore::SocketStreamHandle::connected):
1905         (WebCore::SocketStreamHandle::readBytes):
1906         (WebCore::SocketStreamHandle::platformSend):
1907         (WebCore::SocketStreamHandle::platformClose):
1908         * websockets/WebSocketChannel.cpp:
1909         (WebCore::WebSocketChannel::didOpenSocketStream):
1910         (WebCore::WebSocketChannel::didCloseSocketStream):
1911         (WebCore::WebSocketChannel::didReceiveSocketStreamData):
1912         (WebCore::WebSocketChannel::didFailSocketStream):
1913         (WebCore::WebSocketChannel::resumeTimerFired):
1914         * websockets/WebSocketChannel.h:
1915
1916 2011-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1917
1918         Unreviewed, rolling out r92094.
1919         http://trac.webkit.org/changeset/92094
1920         https://bugs.webkit.org/show_bug.cgi?id=65443
1921
1922         Triggered many asserts (Requested by abarth on #webkit).
1923
1924         * dom/EventDispatcher.cpp:
1925         (WebCore::EventDispatcher::dispatchEvent):
1926
1927 2011-07-31  Dominic Cooney  <dominicc@chromium.org>
1928
1929         Event target set to null post event dispatch
1930         https://bugs.webkit.org/show_bug.cgi?id=63934
1931
1932         Reviewed by Dimitri Glazkov.
1933
1934         Test: fast/events/event-target-reset.html
1935
1936         * dom/EventDispatcher.cpp:
1937         (WebCore::EventDispatcher::dispatchEvent): Reset target to outermost
1938         shadow host.
1939
1940 2011-07-31  Sam Weinig  <sam@webkit.org>
1941
1942         REGRESSION: getBoundingClientRect() method of Range incorrectly returns null for collapsed Range
1943         https://bugs.webkit.org/show_bug.cgi?id=65324
1944
1945         Reviewed by Ryosuke Niwa.
1946
1947         Update to more closely match the spec.
1948
1949         * dom/Range.cpp:
1950         (WebCore::Range::getClientRects):
1951         Return an empty ClientRectList instead of null when the range is empty.
1952
1953         (WebCore::Range::getBoundingClientRect):
1954         Always return a ClientRect, even for an empty bounding rect.
1955
1956 2011-07-29  Ryosuke Niwa  <rniwa@webkit.org>
1957
1958         [HTML5] Implement the selectionDirection property on input and textarea
1959         https://bugs.webkit.org/show_bug.cgi?id=60403
1960
1961         Reviewed by Darin Adler.
1962
1963         Implements selectionDirection property as specified in HTML5 section 4.10.20:
1964         http://www.whatwg.org/specs/web-apps/current-work/#textFieldSelection
1965
1966         selectionDirection is a property on input and textarea elements, which, on getting returns either "none",
1967         "forward", or "backward" corresponding to the current selection direction, and on setting, modifies
1968         the direction of the current selection. When selection doesn't exist or direction is unknown, "none"
1969         is returned on getting. Setting the property value to neither of above values will result in setting "none".
1970
1971         This patch also adds the optional third argument, direction, to setSelectionRange.
1972
1973         Test: fast/forms/selection-direction.html
1974               fast/forms/selection-wrongtype.html
1975
1976         * bindings/js/JSHTMLInputElementCustom.cpp:
1977         (WebCore::JSHTMLInputElement::selectionDirection): Added.
1978         (WebCore::JSHTMLInputElement::setSelectionDirection): Added.
1979         (WebCore::JSHTMLInputElement::setSelectionRange): Processes the third argument.
1980         * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
1981         (WebCore::V8HTMLInputElement::selectionDirectionAccessorGetter): Added.
1982         (WebCore::V8HTMLInputElement::selectionDirectionAccessorSetter): Added.
1983         (WebCore::V8HTMLInputElement::setSelectionRangeCallback): Processes the third argument.
1984         * html/HTMLTextAreaElement.cpp:
1985         (WebCore::HTMLTextAreaElement::updateFocusAppearance): Calls hasCachedSelection.
1986         * html/HTMLInputElement.cpp:
1987         (WebCore::HTMLInputElement::updateFocusAppearance): Ditto.
1988         (WebCore::HTMLInputElement::setValue): Calls cacheSelection with SelectionHasNoDirection.
1989         * html/HTMLTextAreaElement.idl: Added selectionDirection and the third argument to setSelectionRange.
1990         * html/HTMLInputElement.idl: Ditto.
1991         * html/HTMLTextFormControlElement.cpp:
1992         (WebCore::HTMLTextFormControlElement::HTMLTextFormControlElement): Initializes
1993         m_cachedSelectionDirection.
1994         (WebCore::HTMLTextFormControlElement::setSelectionStart): Calls setSelectionRange.
1995         (WebCore::HTMLTextFormControlElement::setSelectionEnd): Ditto.
1996         (WebCore::HTMLTextFormControlElement::setSelectionDirection): Added.
1997         (WebCore::HTMLTextFormControlElement::select): Calls setSelectionRange with SelectionHasNoDirection.
1998         (WebCore::HTMLTextFormControlElement::setSelectionRange): Added the version that takes direction
1999         string as the third argument, which calls the version that takes two ints and TextFieldSelectionDirection.
2000         (WebCore::HTMLTextFormControlElement::selectionStart): Calls hasCachedSelection.
2001         (WebCore::HTMLTextFormControlElement::selectionEnd): Ditto.
2002         (WebCore::directionString): Added.
2003         (WebCore::HTMLTextFormControlElement::selectionDirection): Added.
2004         (WebCore::HTMLTextFormControlElement::computeSelectionDirection): Added.
2005         (WebCore::HTMLTextFormControlElement::selection): Calls hasCachedSelection.
2006         (WebCore::HTMLTextFormControlElement::restoreCachedSelection): Calls setSelectionRange.
2007         (WebCore::HTMLTextFormControlElement::selectionChanged): Calls cacheSelection.
2008         * html/HTMLTextFormControlElement.h:
2009         (WebCore::HTMLTextFormControlElement::cacheSelection): Takes TextFieldSelectionDirection.
2010         (WebCore::HTMLTextFormControlElement::hasCachedSelection): Extracted from hasCachedSelectionStart;
2011         cacheSelection is the only function that modifies m_cacheSelectionStart and m_cacheSelectionEnd
2012         and none of its callers ever set one of them be -1 so they are always both -1 or both non-negative.
2013         Thus, having two separate functions for m_cacheSelectionStart and m_cacheSelectionEnd was redundant.
2014
2015 2011-07-31  Daniel Bates  <dbates@webkit.org>
2016
2017         [GTK] Remove unused variable coreChild in WebCore::getChildForTable()
2018         https://bugs.webkit.org/show_bug.cgi?id=65427
2019
2020         This variable was unused when it was initially added in <http://trac.webkit.org/changeset/89660> (bug #62718)
2021         and it is unused today. We should remove it. This will also resolve a compiler warning.
2022
2023         Reviewed by Xan Lopez.
2024
2025         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2026         (getChildForTable):
2027
2028 2011-07-30  Daniel Bates  <dbates@webkit.org>
2029
2030         Fix the WinCairo Debug build after <http://trac.webkit.org/changeset/91914>
2031         (https://bugs.webkit.org/show_bug.cgi?id=64744)
2032
2033         * WebCore.vcproj/WebCore.vcproj: Remove ContextShadowCairo.cpp from the build since this
2034           file was deleted in <http://trac.webkit.org/changeset/91914>.
2035
2036 2011-07-30  Daniel Bates  <dbates@webkit.org>
2037
2038         Fix the Chromium Linux Release Flexbot build after <http://trac.webkit.org/changeset/92004>
2039         (https://bugs.webkit.org/show_bug.cgi?id=65342)
2040
2041         * rendering/RenderFlexibleBox.cpp:
2042         (WebCore::RenderFlexibleBox::layoutBlock): Update the definition of RenderFlexibleBox::layoutBlock()
2043         to be consistent with its declaration in RenderFlexibleBox.h; Add argument layoutPass of type BlockLayoutPass.
2044
2045 2011-07-30  Adam Barth  <abarth@webkit.org>
2046
2047         Update run-bindings-tests results after
2048         http://trac.webkit.org/changeset/92068
2049
2050         * bindings/scripts/test/JS/JSTestCallback.cpp:
2051
2052 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
2053
2054         Remove inclusion of MainThread.h from Threading.h
2055         https://bugs.webkit.org/show_bug.cgi?id=65081
2056
2057         Reviewed by Darin Adler.
2058
2059         Add missing include statements for MainThread.
2060
2061         * bindings/js/DOMWrapperWorld.cpp:
2062         * bindings/js/JSDOMWindowBase.cpp:
2063         * bindings/scripts/CodeGeneratorJS.pm:
2064         (GenerateCallbackImplementation):
2065         * bindings/v8/DOMDataStore.cpp:
2066         * bindings/v8/DOMWrapperWorld.cpp:
2067         * bindings/v8/V8Binding.cpp:
2068         * bindings/v8/V8DOMMap.cpp:
2069         * bindings/v8/V8DOMWrapper.h:
2070         * dom/EventTarget.cpp:
2071         * fileapi/LocalFileSystem.cpp:
2072         * loader/CrossOriginPreflightResultCache.cpp:
2073         * loader/ResourceLoadScheduler.cpp:
2074         * loader/WorkerThreadableLoader.cpp:
2075         * loader/appcache/ApplicationCacheGroup.cpp:
2076         * page/DOMWindow.cpp:
2077         * page/History.cpp:
2078         * page/SecurityOrigin.cpp:
2079         * page/mac/EventHandlerMac.mm:
2080         * platform/MIMETypeRegistry.cpp:
2081         * platform/ThreadGlobalData.cpp:
2082         * platform/ThreadTimers.cpp:
2083         * platform/TreeShared.h:
2084         * platform/audio/HRTFDatabaseLoader.cpp:
2085         * platform/graphics/Font.cpp:
2086         * platform/graphics/FontFallbackList.h:
2087         * platform/graphics/FontFastPath.cpp:
2088         * platform/graphics/Image.cpp:
2089         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2090         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
2091         * platform/graphics/cg/ImageBufferCG.cpp:
2092         * platform/graphics/chromium/LayerRendererChromium.cpp:
2093         * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp:
2094         * platform/mac/LocalizedStringsMac.mm:
2095         * platform/mac/SharedBufferMac.mm:
2096         * platform/network/BlobResourceHandle.cpp:
2097         * platform/network/cf/DNSCFNet.cpp:
2098         * platform/network/cf/LoaderRunLoopCF.cpp:
2099         * platform/text/LocalizedNumberICU.cpp:
2100         * platform/text/TextEncodingRegistry.cpp:
2101         * platform/text/mac/LocalizedNumberMac.mm:
2102         * platform/win/LocalizedStringsWin.cpp:
2103         * storage/LocalStorageThread.cpp:
2104         * storage/StorageAreaImpl.cpp:
2105         * storage/StorageAreaSync.cpp:
2106         * storage/StorageNamespaceImpl.cpp:
2107         * storage/StorageSyncManager.cpp:
2108         * webaudio/AsyncAudioDecoder.cpp:
2109         * webaudio/AudioBufferSourceNode.cpp:
2110         * webaudio/AudioContext.h
2111         * webaudio/AudioContext.cpp:
2112         * webaudio/AudioNode.cpp:
2113         * webaudio/ConvolverNode.cpp:
2114         * webaudio/OfflineAudioDestinationNode.cpp:
2115         * webaudio/RealtimeAnalyser.cpp:
2116         * webaudio/WaveShaperNode.cpp:
2117         * websockets/WorkerThreadableWebSocketChannel.cpp:
2118         * workers/WorkerMessagingProxy.cpp:
2119
2120 2011-07-30  Enrica Casucci  <enrica@apple.com>
2121
2122         REGRESSION: culledInlineAbsoluteRects needs to translate a 0,0 point to absolute
2123         coordinates so that the top left position is accurate.
2124         https://bugs.webkit.org/show_bug.cgi?id=65419
2125         <rdar://problem/9408862>
2126
2127         This patch fixes a regression introduced in r83075.
2128         Make sure that culledInlineAbsoluteRects still does
2129         a translation of a 0,0 point to absolute coordinates so that the top left position is
2130         accurate.
2131         This code path could not be tested via JavaScript. The patch
2132         extends the Internals object to be able to test this case.
2133
2134         Reviewed by Dan Bernstein.
2135
2136         Test: fast/inline/skipped-whitespace-boundingBox.html
2137
2138         * WebCore.exp.in: Added some exports.
2139         * rendering/RenderInline.cpp:
2140         (WebCore::RenderInline::culledInlineAbsoluteRects):
2141         * testing/Internals.cpp:
2142         (WebCore::Internals::boundingBox):
2143         * testing/Internals.h:
2144         * testing/Internals.idl:
2145
2146 2011-07-26  Pavel Podivilov  <podivilov@chromium.org>
2147
2148         Web Inspector: move location conversion functions to SourceFile.
2149         https://bugs.webkit.org/show_bug.cgi?id=65185
2150
2151         Reviewed by Pavel Feldman.
2152
2153         Test: inspector/debugger/source-file.html
2154
2155         * inspector/front-end/DebuggerPresentationModel.js:
2156         (WebInspector.DebuggerPresentationModel.prototype._scriptLocationToUILocation.didCreateSourceMapping):
2157         (WebInspector.DebuggerPresentationModel.prototype._scriptLocationToUILocation):
2158         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation.didCreateSourceMapping):
2159         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
2160         * inspector/front-end/SourceFile.js:
2161         (WebInspector.SourceFile.prototype.rawLocationToUILocation):
2162         (WebInspector.SourceFile.prototype.uiLocationToRawLocation):
2163         (WebInspector.SourceFile.prototype._scriptForRawLocation):
2164         (WebInspector.SourceFile.prototype.createSourceMappingIfNeeded):
2165         (WebInspector.FormattedSourceFile.prototype.createSourceMappingIfNeeded):
2166         (WebInspector.FormattedSourceFile.prototype._didRequestContent):
2167
2168 2011-07-29  Rob Buis  <rbuis@rim.com>
2169
2170         URL references are completely broken in SVG
2171         https://bugs.webkit.org/show_bug.cgi?id=63283
2172
2173         Reviewed by Nikolas Zimmermann.
2174
2175         Change SVGURIElement::getTarget to be more strict about iri resolving and make it serve as a central
2176         place to resolve a iri to a SVGElement. The iri can be same-document or external, for now we only handle
2177         the former, the latter will be handled in bug 65344.
2178         Accept as same-document if the iri combined with the base uri equals the document url (ignoring
2179         the fragment identifier). For convenience a method is added to lookup the element, if found.
2180
2181         Tests: svg/custom/external-paintserver-reference.svg
2182                svg/custom/linking-base-external-reference.xhtml
2183                svg/custom/uri-reference-handling.svg
2184
2185         * css/CSSCursorImageValue.cpp:
2186         (WebCore::resourceReferencedByCursorElement):
2187         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
2188         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
2189         * css/CSSFontFaceSource.cpp:
2190         (WebCore::CSSFontFaceSource::getFontData):
2191         * css/CSSFontSelector.h:
2192         (WebCore::CSSFontSelector::document):
2193         * css/SVGCSSStyleSelector.cpp:
2194         (WebCore::CSSStyleSelector::applySVGProperty):
2195         * rendering/svg/RenderSVGTextPath.cpp:
2196         (WebCore::RenderSVGTextPath::layoutPath):
2197         * rendering/svg/SVGResources.cpp:
2198         (WebCore::targetReferenceFromResource):
2199         (WebCore::paintingResourceFromSVGPaint):
2200         * svg/SVGAltGlyphElement.cpp:
2201         (WebCore::SVGAltGlyphElement::hasValidGlyphElements):
2202         * svg/SVGFEImageElement.cpp:
2203         (WebCore::SVGFEImageElement::requestImageResource):
2204         (WebCore::SVGFEImageElement::build):
2205         * svg/SVGGlyphRefElement.cpp:
2206         (WebCore::SVGGlyphRefElement::hasValidGlyphElement):
2207         * svg/SVGLinearGradientElement.cpp:
2208         (WebCore::SVGLinearGradientElement::collectGradientAttributes):
2209         * svg/SVGMPathElement.cpp:
2210         (WebCore::SVGMPathElement::pathElement):
2211         * svg/SVGPaint.cpp:
2212         (WebCore::SVGPaint::matchesTargetURI):
2213         * svg/SVGPatternElement.cpp:
2214         (WebCore::SVGPatternElement::collectPatternAttributes):
2215         * svg/SVGRadialGradientElement.cpp:
2216         (WebCore::SVGRadialGradientElement::collectGradientAttributes):
2217         * svg/SVGTRefElement.cpp:
2218         (WebCore::SVGTRefElement::updateReferencedText):
2219         (WebCore::SVGTRefElement::svgAttributeChanged):
2220         (WebCore::SVGTRefElement::buildPendingResource):
2221         * svg/SVGTextPathElement.cpp:
2222         (WebCore::SVGTextPathElement::insertedIntoDocument):
2223         * svg/SVGURIReference.cpp:
2224         (WebCore::SVGURIReference::fragmentIdentifierFromIRIString):
2225         (WebCore::SVGURIReference::targetElementFromIRIString):
2226         * svg/SVGURIReference.h:
2227         * svg/SVGUseElement.cpp:
2228         (WebCore::SVGUseElement::buildPendingResource):
2229         (WebCore::SVGUseElement::hasCycleUseReferencing):
2230         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
2231         * svg/animation/SVGSMILElement.cpp:
2232         (WebCore::SVGSMILElement::targetElement):
2233
2234 2011-07-29  James Simonsen  <simonjam@chromium.org>
2235
2236         Remove zipcar.com site specific hack added in r87361
2237         https://bugs.webkit.org/show_bug.cgi?id=65405
2238
2239         Reviewed by Adam Barth.
2240
2241         * html/HTMLScriptElement.cpp:
2242         (WebCore::HTMLScriptElement::insertedIntoDocument):
2243
2244 2011-07-29  James Robinson  <jamesr@chromium.org>
2245
2246         [chromium] Reorder functions in LayerRendererChromium.cpp to make bug 58840 easier to review
2247         https://bugs.webkit.org/show_bug.cgi?id=65354
2248
2249         Reviewed by Kenneth Russell.
2250
2251         This moves a few function definitions in LayerRendererChromium around to make the patch on bug 58840 easier to
2252         review.  In that patch, updatePropertiesAndRenderSurfaces() becomes a templated free function instead of a
2253         member function, so it has to be near the top of the .cpp.
2254
2255         * platform/graphics/chromium/LayerRendererChromium.cpp:
2256         (WebCore::calculateVisibleRect):
2257         (WebCore::isScaleOrTranslation):
2258         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
2259         (WebCore::LayerRendererChromium::updateLayers):
2260
2261 2011-07-29  Jeff Miller  <jeffm@apple.com>
2262
2263         Work-in-progress on Adopt AVCF media back end on Windows
2264         https://bugs.webkit.org/show_bug.cgi?id=65400
2265         <rdar://problem/9083559>
2266         
2267         Prepare WebCore.vcproj to support AVCF media back end on Windows.
2268
2269         Reviewed by Darin Adler.
2270
2271         No changes to functionality so no new tests.
2272
2273         * WebCore.vcproj/WebCore.vcproj: Added MediaPlayerPrivateAVFoundation and MediaPlayerPrivateAVFoundationCF sources.
2274         * WebCore.vcproj/WebCoreMediaQT.vsprops: Added additional include directories and dleay load DLLs for AVCF.
2275         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp: Added, just a stub for now.
2276         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.h: Added, just a stub for now.
2277
2278 2011-07-29  Jeff Miller  <jeffm@apple.com>
2279
2280         Work-in-progress on Adopt AVCF media back end on Windows
2281         https://bugs.webkit.org/show_bug.cgi?id=65400
2282         <rdar://problem/9083559>
2283         
2284         Make MediaPlayerPrivateAVFoundation::setDelayCallbacks() const and make the ivars
2285         it references mutable so other const member functions can call it.
2286
2287         Reviewed by Darin Adler.
2288
2289         No changes to functionality so no new tests.
2290
2291         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2292         (WebCore::MediaPlayerPrivateAVFoundation::setDelayCallbacks):
2293         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2294
2295 2011-07-29  Zhenyao Mo  <zmo@google.com>
2296
2297         Unreviewed, rolling out r92011.
2298         http://trac.webkit.org/changeset/92011
2299         https://bugs.webkit.org/show_bug.cgi?id=65044
2300
2301         break chromium win build
2302
2303         * dom/WheelEvent.cpp:
2304         (WebCore::WheelEvent::WheelEvent):
2305         (WebCore::WheelEvent::initWheelEvent):
2306         * dom/WheelEvent.h:
2307         * page/EventHandler.cpp:
2308         (WebCore::EventHandler::EventHandler):
2309         (WebCore::EventHandler::handleGestureEvent):
2310         (WebCore::EventHandler::handleTouchEvent):
2311         (WebCore::EventHandler::resetGestureRecognizer):
2312         * page/EventHandler.h:
2313         * page/FrameView.cpp:
2314         (WebCore::FrameView::reset):
2315         * platform/PlatformGestureEvent.h:
2316         * platform/PlatformGestureRecognizer.h:
2317         * platform/ScrollAnimatorWin.cpp:
2318         * platform/chromium/FramelessScrollView.h:
2319         * platform/chromium/GestureRecognizerChromium.cpp:
2320         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
2321         (WebCore::InnerGestureRecognizer::reset):
2322         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
2323         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
2324         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
2325         (WebCore::touchDown):
2326         (WebCore::noGesture):
2327         (WebCore::click):
2328         (WebCore::isClickOrScroll):
2329         (WebCore::inScroll):
2330         * platform/chromium/GestureRecognizerChromium.h:
2331         (WebCore::GestureRecognizerChromium::reset):
2332         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
2333         * platform/chromium/PopupMenuChromium.cpp:
2334         * platform/chromium/PopupMenuChromium.h:
2335         * platform/mac/ScrollAnimatorMac.mm:
2336         (WebCore::ScrollAnimatorMac::handleGestureEvent):
2337
2338 2011-07-29  Adrienne Walker  <enne@google.com>
2339
2340         [chromium] Only force slow scrolling for iframes under --force-compositing-mode
2341         https://bugs.webkit.org/show_bug.cgi?id=65394
2342
2343         Reviewed by James Robinson.
2344
2345         The previous code introduced by r91591 made composited frames as well
2346         as non-composited subframes go down the slow scrolling path.  Adjust
2347         the check to use ownerElement to test for subframe and use
2348         hasCompositedContent() which is a more correct test for compositing
2349         than isEnclosedInCompositingLayer.
2350
2351         * page/FrameView.cpp:
2352         (WebCore::FrameView::useSlowRepaints):
2353
2354 2011-07-29  Emil A Eklund  <eae@chromium.org>
2355
2356         -webkit-marquee with anonymous node causes segmentation fault in Node::document
2357         https://bugs.webkit.org/show_bug.cgi?id=64693
2358
2359         Reviewed by Simon Fraser.
2360
2361         Test: fast/css/webkit-marquee-anonymous-node-crash.html
2362
2363         * rendering/RenderLayer.cpp:
2364         (WebCore::RenderLayer::scrollTo):
2365         Add null check as renderer()->node() is null for anonymous nodes.
2366
2367 2011-07-29  Mike Reed  <reed@google.com>
2368
2369         [skia] never draw with GDI, so that all text can be gpu-accelerated
2370         https://bugs.webkit.org/show_bug.cgi?id=65203
2371
2372         Reviewed by Kenneth Russell.
2373
2374         * platform/graphics/chromium/FontChromiumWin.cpp:
2375         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::TransparencyAwareFontPainter):
2376         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::TransparencyAwareGlyphPainter):
2377         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
2378         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::TransparencyAwareUniscribePainter):
2379         (WebCore::drawGlyphsWin):
2380         (WebCore::Font::drawComplexText):
2381         * platform/graphics/chromium/UniscribeHelper.cpp:
2382         (WebCore::UniscribeHelper::draw):
2383         * platform/graphics/skia/PlatformContextSkia.cpp:
2384         * platform/graphics/skia/PlatformContextSkia.h:
2385         * platform/graphics/skia/SkiaFontWin.cpp:
2386         * platform/graphics/skia/SkiaFontWin.h:
2387
2388 2011-07-29  Sam Weinig  <sam@webkit.org>
2389
2390         Move Region code from WebKit2 to WebCore
2391         https://bugs.webkit.org/show_bug.cgi?id=65392
2392
2393         Reviewed by David Hyatt.
2394
2395         * CMakeLists.txt:
2396         * GNUmakefile.list.am:
2397         * WebCore.gypi:
2398         * WebCore.pro:
2399         * WebCore.vcproj/WebCore.vcproj:
2400         * WebCore.xcodeproj/project.pbxproj:
2401         Update project files.
2402
2403         * WebCore.exp.in:
2404         Update exports.
2405
2406         * platform/graphics/Region.cpp: Copied from Source/WebKit2/Platform/Region.cpp.
2407         * platform/graphics/Region.h: Copied from Source/WebKit2/Platform/Region.h.
2408         Add files.
2409
2410 2011-07-29  Robert Kroeger  <rjkroege@chromium.org>
2411
2412         [chromium] Layering violations in gesture recognizer
2413         https://bugs.webkit.org/show_bug.cgi?id=65044
2414
2415         Reviewed by Adam Barth.
2416
2417         Divided the gesture recognizer up to correct a layering
2418         violation by moving gesture implementation from it to
2419         EventHandler::handleGestureEvent so that the gesture recognizer
2420         could simply be an engine for generating gesture events from
2421         touch events.
2422
2423         * dom/WheelEvent.cpp:
2424         (WebCore::WheelEvent::WheelEvent):
2425         (WebCore::WheelEvent::initWheelEvent):
2426         * dom/WheelEvent.h:
2427         Added symbolic contstant for tick multiplier.
2428         * page/EventHandler.cpp:
2429         (WebCore::EventHandler::EventHandler):
2430         Removed construction of gesture recognizer.
2431         (WebCore::EventHandler::handleGestureEvent):
2432         Extended for new gesture events added in this patch.
2433         (WebCore::EventHandler::handleTouchEvent):
2434         Removed call into gesture recognizer.
2435         * page/EventHandler.h:
2436         * page/FrameView.cpp:
2437         (WebCore::FrameView::reset):
2438         Removed code to reset gesture recognizer.
2439         * platform/PlatformGestureEvent.h:
2440         (WebCore::PlatformGestureEvent::PlatformGestureEvent):
2441         (WebCore::PlatformGestureEvent::deltaX):
2442         (WebCore::PlatformGestureEvent::deltaY):
2443         (WebCore::PlatformGestureEvent::shiftKey):
2444         (WebCore::PlatformGestureEvent::ctrlKey):
2445         (WebCore::PlatformGestureEvent::altKey):
2446         (WebCore::PlatformGestureEvent::metaKey):
2447         Added additional gesture types and parameters.
2448         * platform/PlatformGestureRecognizer.h:
2449         * platform/ScrollAnimatorWin.cpp:
2450         (WebCore::ScrollAnimatorWin::handleGestureEvent):
2451         Added missing method needed to fix the build on windows.
2452         * platform/chromium/FramelessScrollView.h:
2453         Added support for displatching gesture and touch events.
2454         * platform/chromium/GestureRecognizerChromium.cpp:
2455         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
2456         (WebCore::InnerGestureRecognizer::reset):
2457         (WebCore::InnerGestureRecognizer::constructClickGestureEvent):
2458         (WebCore::InnerGestureRecognizer::processTouchEventForGestures):
2459         Removed all depedencies on EventHandler. Instead, create gesture
2460         events from touch event stream.
2461         (WebCore::InnerGestureRecognizer::constructScrollGesture):
2462         (WebCore::touchDown):
2463         (WebCore::noGesture):
2464         (WebCore::click):
2465         (WebCore::isClickOrScroll):
2466         (WebCore::inScroll):
2467         (WebCore::GestureRecognizerChromium::processTouchEventForGestures):
2468         (WebCore::GestureRecognizerChromium::reset):
2469         * platform/chromium/GestureRecognizerChromium.h:
2470         * platform/chromium/PopupMenuChromium.cpp:
2471         Added support to handle touch events and gesture events.
2472         (WebCore::PopupContainer::handleTouchEvent):
2473         (WebCore::PopupContainer::handleGestureEvent):
2474         (WebCore::PopupListBox::handleTouchEvent):
2475         (WebCore::PopupListBox::handleGestureEvent):
2476         * platform/chromium/PopupMenuChromium.h:
2477         * platform/mac/ScrollAnimatorMac.mm:
2478         (WebCore::ScrollAnimatorMac::handleGestureEvent):
2479         Ignores the newly added gesture event types.
2480
2481 2011-07-29  Eric Carlson  <eric.carlson@apple.com>
2482
2483         Load delegate not consulted before loading some poster images
2484         https://bugs.webkit.org/show_bug.cgi?id=65270
2485
2486         Reviewed by Joseph Pecoraro.
2487
2488         * html/HTMLVideoElement.cpp:
2489         (WebCore::HTMLVideoElement::setDisplayMode): Don't ask a load delegate if it is OK to 
2490             load an empty poster url.
2491
2492 2011-07-29  Jeff Miller  <jeffm@apple.com>
2493
2494         Re-sort one more file in the WebCore project with Visual Studio.
2495
2496         * WebCore.vcproj/WebCore.vcproj:
2497
2498 2011-07-29  Jeff Miller  <jeffm@apple.com>
2499
2500         Re-sort the WebCore project with Visual Studio after recent changes that I assume were done by manually editing the XML.
2501
2502         * WebCore.vcproj/WebCore.vcproj:
2503
2504 2011-07-29  Dan Bernstein  <mitz@apple.com>
2505
2506         Added the regional indicator symbols to the set of codepoints that force use of the complex text code path.
2507
2508         Fixes <rdar://problem/9864578> Regional indicator symbols do not combine into national flags
2509         https://bugs.webkit.org/show_bug.cgi?id=65380
2510
2511         Reviewed by Anders Carlsson.
2512
2513         Test: fast/text/regional-indicator-symobls.html
2514
2515         * platform/graphics/Font.cpp:
2516         (WebCore::Font::codePath): Added handling of surrogate pairs, which returns Complex for characters in
2517         the range U+1F1E6..U+1F1FF.
2518
2519 2011-07-28  David Hyatt  <hyatt@apple.com>
2520
2521         https://bugs.webkit.org/show_bug.cgi?id=65342
2522
2523         Add support for positioned floats being placed into a RenderBlock's FloatingObject list and for
2524         correct propagation of those floating objects into descendants.
2525
2526         Reviewed by Sam Weinig.
2527
2528         * rendering/RenderBlock.cpp:
2529         (WebCore::RenderBlock::layoutBlock):
2530         The positioned float layout algorithm is 2-pass. You lay out without the positioned objects, and then
2531         once they have been placed, you lay out again and use that placement to determine the float positions.
2532         layoutBlock now has an extra parameter to indicate which layout pass you are in.
2533         
2534         (WebCore::RenderBlock::addOverflowFromFloats):
2535         Don't add overflow from positioned floats ever, since the positioning overflow function takes care of that
2536         already.
2537
2538         (WebCore::RenderBlock::layoutBlockChild):
2539         Include positioned floats in the lowestFloatLogicalBottom we look at so that overhang is computed properly.
2540
2541         (WebCore::RenderBlock::simplifiedLayout):
2542         If layoutPositionedObjects indicates that a positioned float moved, then we can't do simplified layout. Bail
2543         instead and do a full layout.
2544
2545         (WebCore::RenderBlock::positionedFloatsNeedRelayout):
2546         Helper for layoutBlock in order to bypass the 2-pass model if we can detect that none of the positioned objects
2547         will actually need to lay out again. This allows incremental layout to not always fault back to 2-pass as normal
2548         flow content streams in.
2549
2550         (WebCore::RenderBlock::layoutPositionedObjects):
2551         Modified to return a boolean indicating whether a positioned float got a layout. If so, we will lay out again
2552         once our positioned objects are placed.
2553
2554         (WebCore::RenderBlock::insertFloatingObject):
2555         insertFloatingObject can now handle positioned objects being inserted.
2556
2557         (WebCore::RenderBlock::positionNewFloats):
2558         positionNewFloats doesn't attempt to position this new type of float. It only handles left/right floats.
2559
2560         (WebCore::RenderBlock::addPositionedFloats):
2561         Helper to add in the floating objects for positioned floats. This is used instead of positionNewFloats and
2562         just walks the positioned objects instead.
2563
2564         (WebCore::RenderBlock::clearFloats):
2565         clearFloats now handles adding in positioned floats if the layout pass says they should be included.
2566
2567         (WebCore::RenderBlock::marginLogicalLeftForChild):
2568         (WebCore::RenderBlock::marginLogicalRightForChild):
2569         New helpers used by addPositionedFloats.
2570     
2571         (WebCore::RenderBlock::FloatingObjects::clear):
2572         (WebCore::RenderBlock::FloatingObjects::increaseObjectsCount):
2573         (WebCore::RenderBlock::FloatingObjects::decreaseObjectsCount):
2574         Make sure the object count tracking handles positioned floats as well as left/right floats.
2575     
2576         * rendering/RenderBlock.h:
2577         (WebCore::RenderBlock::logicalLeftForChild):
2578         New helper used by addPositionedFloats.
2579
2580         (WebCore::RenderBlock::FloatingObject::FloatingObject):
2581         Change the constructor to take the RenderStyle enum. This makes the construction simpler.
2582
2583         (WebCore::RenderBlock::hasPositionedFloats):
2584         A bit tracks whether or not a block has positioned floats in its positioned objects list.
2585
2586         (WebCore::RenderBlock::hasOverhangingFloats):
2587         Modified to include positioned floats.
2588
2589         (WebCore::RenderBlock::lowestFloatLogicalBottom):
2590         This function excludes positioned floats by default, so that places that - for example - expand to
2591         encompass their lowestFloatLogicalBottom won't accidentally expand to encompass positioned objects.
2592
2593         (WebCore::RenderBlock::lowestFloatLogicalBottomIncludingPositionedFloats):
2594         A new function that includes positioned floats for callers that care.
2595
2596         (WebCore::RenderBlock::FloatingObjects::FloatingObjects):
2597         (WebCore::RenderBlock::FloatingObjects::hasPositionedObjects):
2598         The object count tracking for positioned floats within a block's FloatingObjects list.
2599
2600         * rendering/RenderBox.cpp:
2601         (WebCore::RenderBox::updateBoxModelInfoFromStyle):
2602         Make sure isFloating is set even if isPositioned is also set for the positioned float case.
2603
2604         * rendering/RenderDeprecatedFlexibleBox.cpp:
2605         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
2606         Modified to do the extra layout pass if needed.
2607
2608 2011-07-29  Scott Byer  <scottbyer@chromium.org>
2609
2610         Scroll animation refinements.
2611         https://bugs.webkit.org/show_bug.cgi?id=65154
2612
2613         Reviewed by Adam Barth.
2614
2615         Fix scroll animation bugs when scrolling to the ends of a document. Smooth over slow event repeat rates
2616         better. Fix tests to allow for unit testing of scrolling up and not just down.
2617
2618         Additional unit tests added to ScrollAnimatorNoneTest:
2619         ScrollQuadraticSmoothed, ScrollLotsQuadraticSmoothed, ScrollDownToBumper, ScrollUpToBumper
2620
2621         * platform/ScrollAnimatorNone.cpp:
2622         (WebCore::ScrollAnimatorNone::Parameters::Parameters):
2623         (WebCore::ScrollAnimatorNone::PerAxisData::updateDataFromParameters):
2624         (WebCore::ScrollAnimatorNone::scroll):
2625         * platform/ScrollAnimatorNone.h:
2626
2627 2011-07-29  Samuel White  <samuel_white@apple.com>
2628
2629         Add the ability to search the AccessibilityObject cache
2630         https://bugs.webkit.org/show_bug.cgi?id=64994
2631         
2632         To support searching the AccessibilityObject cache, we first need to
2633         implement a minimal set of functions that will allow AccessibilityObjects
2634         to be identified when searching using common search criteria. The additional
2635         functions below complement the existing identification functionality already
2636         available and together provide a basic working set to build search on top of.
2637         Additionally, the blockquoteLevel function has been moved into the AccessibilityObject
2638         class to make it available to all platforms.
2639
2640         Reviewed by Chris Fleizach.
2641
2642         New tests will be included in the following patch that will also implement
2643         basic search functionality.
2644
2645         * accessibility/AccessibilityObject.cpp:
2646         (WebCore::AccessibilityObject::isBlockquote):
2647         (WebCore::AccessibilityObject::isLandmark):
2648         (WebCore::AccessibilityObject::hasMisspelling):
2649         (WebCore::AccessibilityObject::blockquoteLevel):
2650         * accessibility/AccessibilityObject.h:
2651         (WebCore::AccessibilityObject::isUnvisited):
2652         (WebCore::AccessibilityObject::hasBoldFont):
2653         (WebCore::AccessibilityObject::hasItalicFont):
2654         (WebCore::AccessibilityObject::hasPlainText):
2655         (WebCore::AccessibilityObject::hasSameFont):
2656         (WebCore::AccessibilityObject::hasSameFontColor):
2657         (WebCore::AccessibilityObject::hasSameStyle):
2658         (WebCore::AccessibilityObject::hasStaticText):
2659         (WebCore::AccessibilityObject::hasUnderline):
2660         (WebCore::AccessibilityObject::tableLevel):
2661         * accessibility/AccessibilityRenderObject.cpp:
2662         (WebCore::AccessibilityRenderObject::isUnvisited):
2663         (WebCore::AccessibilityRenderObject::hasBoldFont):
2664         (WebCore::AccessibilityRenderObject::hasItalicFont):
2665         (WebCore::AccessibilityRenderObject::hasPlainText):
2666         (WebCore::AccessibilityRenderObject::hasSameFont):
2667         (WebCore::AccessibilityRenderObject::hasSameFontColor):
2668         (WebCore::AccessibilityRenderObject::hasSameStyle):
2669         (WebCore::AccessibilityRenderObject::hasUnderline):
2670         * accessibility/AccessibilityRenderObject.h:
2671         * accessibility/AccessibilityTable.cpp:
2672         (WebCore::AccessibilityTable::tableLevel):
2673         * accessibility/AccessibilityTable.h:
2674         * accessibility/mac/AccessibilityObjectWrapper.mm:
2675         (AXAttributeStringSetBlockquoteLevel):
2676         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
2677
2678 2011-07-29  Zeng Huiqing  <huiqing.zeng@intel.com>
2679
2680         Avoid calling animation timer updates while the page is loading
2681         https://bugs.webkit.org/show_bug.cgi?id=64851
2682
2683         Reviewed by Simon Fraser.
2684
2685         There is no need to update the animation timer for a RenderObject that has not yet been inserted into the render tree, or that doesn't have animations. Our tests show that this improves page loading by up to 3x on pages with a large number of transitionable objects.
2686
2687         * page/animation/AnimationController.cpp:
2688         (WebCore::AnimationController::updateAnimations):
2689
2690 2011-07-29  Anders Carlsson  <andersca@apple.com>
2691
2692         Pass the HTTP referrer header for URLs loaded by plug-ins
2693         https://bugs.webkit.org/show_bug.cgi?id=65379
2694         <rdar://problem/9822116>
2695
2696         Reviewed by Sam Weinig.
2697
2698         Export a symbol needed by WebKit2.
2699
2700         * WebCore.exp.in:
2701
2702 2011-07-28  Leandro Gracia Gil  <leandrogracia@chromium.org>
2703
2704         Fix speech input icon rect on RTL directions.
2705         https://bugs.webkit.org/show_bug.cgi?id=65333
2706
2707         Reviewed by Tony Gentilcore.
2708
2709         No new tests. This is used by platforms, not WebCore, and
2710         the base functionality is not changed but only the failing cases.
2711
2712         * html/shadow/TextControlInnerElements.cpp:
2713         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
2714
2715 2011-07-29  Kent Tamura  <tkent@chromium.org>
2716
2717         Make the ExceptionCode argument of Element::setShadowPseudoId() ASSERT_NO_EXCEPTION by default
2718         https://bugs.webkit.org/show_bug.cgi?id=65363
2719
2720         Reviewed by Hajime Morita.
2721
2722         No new tests. Cleanup-only.
2723
2724         * dom/Element.h: Make the ExceptionCode argument ASSERT_NO_EXCEPTION by default.
2725         * html/ColorInputType.cpp:
2726         (WebCore::ColorInputType::createShadowSubtree): Remove the ExceptionCode argument and ASSERT(!ec).
2727         * html/HTMLTextAreaElement.cpp:
2728         (WebCore::HTMLTextAreaElement::updatePlaceholderText): ditto.
2729         * html/RangeInputType.cpp:
2730         (WebCore::RangeInputType::createShadowSubtree): ditto.
2731         * html/TextFieldInputType.cpp:
2732         (WebCore::TextFieldInputType::createShadowSubtree): ditto.
2733         (WebCore::TextFieldInputType::updatePlaceholderText): ditto.
2734         * html/ValidationMessage.cpp:
2735         (WebCore::ValidationMessage::buildBubbleTree): ditto.
2736
2737 2011-07-28  Luke Macpherson   <macpherson@chromium.org>
2738
2739         Remove remaining uses of CSSPrimitiveValue::computeLengthIntForLength()
2740         https://bugs.webkit.org/show_bug.cgi?id=64919
2741
2742         Reviewed by Darin Adler.
2743
2744         No new tests / cleanup only.
2745
2746         * css/CSSPrimitiveValue.cpp:
2747         (WebCore::CSSPrimitiveValue::computeLength):
2748         Remove implementation of computeLengthIntForLength()
2749         * css/CSSPrimitiveValue.h:
2750         Remove definition of computeLengthIntForLength()
2751         * css/CSSStyleApplyProperty.cpp:
2752         (WebCore::ApplyPropertyLength::applyValue):
2753         Remove use of computeLengthIntForLength()
2754         * css/CSSStyleSelector.cpp:
2755         (WebCore::CSSStyleSelector::applyProperty):
2756         Remove use of computeLengthIntForLength()
2757         * platform/Length.h:
2758         (WebCore::Length::setQuirk):
2759         Adds the ability to set the m_quirk member variable after construction.
2760
2761 2011-07-28  Anders Carlsson  <andersca@apple.com>
2762
2763         Unreviewed, rolling out r88601. (Requested by Sam Weinig).
2764         http://trac.webkit.org/changeset/88601
2765         https://bugs.webkit.org/show_bug.cgi?id=62230
2766
2767         Caused a regression, see https://bugs.webkit.org/show_bug.cgi?id=64378
2768
2769         * dom/StyledElement.cpp:
2770         * dom/StyledElement.h:
2771         * html/HTMLBodyElement.cpp:
2772         (WebCore::HTMLBodyElement::parseMappedAttribute):
2773         (WebCore::HTMLBodyElement::insertedIntoDocument):
2774         (WebCore::HTMLBodyElement::didMoveToNewOwnerDocument):
2775         * html/HTMLBodyElement.h:
2776
2777 2011-07-28  Justin Schuh  <jschuh@chromium.org>
2778
2779         Simplify createCanonicalUUIDString implementation.
2780         https://bugs.webkit.org/show_bug.cgi?id=65157
2781
2782         All ports support OS_RANDOMNESS, so better to have one implementation.
2783
2784         Reviewed by Adam Barth.
2785
2786         Change covered by existing tests.
2787
2788         * platform/UUID.cpp:
2789         (WebCore::createCanonicalUUIDString):
2790
2791 2011-07-28  Devdatta Deshpande  <pwjd73@motorola.com>
2792
2793         Fixed gif animation dependency on system time
2794         https://bugs.webkit.org/show_bug.cgi?id=64996
2795
2796         Reviewed by James Robinson.
2797
2798         Test: Load WebCore/manual-tests/animated-gif-looping.html
2799         Change system time to a time in past
2800
2801         * platform/graphics/BitmapImage.cpp:
2802         (WebCore::BitmapImage::startAnimation): Bitmap animation is now based
2803         on monotonicallyIncreasingTime instead of currentTime
2804
2805 2011-07-28  Luke Zarko  <lukezarko@gmail.com>
2806
2807         V8 should correctly serialize Boolean, Number and String objects.
2808
2809         https://bugs.webkit.org/show_bug.cgi?id=65286
2810
2811         Reviewed by David Levin.
2812         
2813         New APIs were exposed to allow V8 to correctly serialize Boolean, Number and String objects, as well as detect certain native errors as required by the HTML5 Structured Clone algorithm (http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#safe-passing-of-structured-data). SerializedScriptValue should make use of these APIs.
2814
2815         - Checks for and serializes Boolean, Number and String objects.
2816         - Checks for native errors and aborts should a script attempt to serialize them.
2817         - Small name change to clear up the code: m_objectReferenceStack => m_openCompositeReferenceStack
2818
2819         Tests: fast/dom/Window/window-postmessage-clone.html
2820                fast/loader/stateobjects/pushstate-object-types.html
2821
2822         * bindings/v8/SerializedScriptValue.cpp:
2823         (WebCore::V8ObjectMap::Writer::writeBooleanObject):
2824         (WebCore::V8ObjectMap::Writer::writeStringObject):
2825         (WebCore::V8ObjectMap::Writer::writeNumberObject):
2826         (WebCore::V8ObjectMap::Serializer::writeStringObject):
2827         (WebCore::V8ObjectMap::Serializer::writeNumberObject):
2828         (WebCore::V8ObjectMap::Serializer::writeBooleanObject):
2829         (WebCore::V8ObjectMap::Serializer::doSerialize):
2830         (WebCore::V8ObjectMap::Reader::read):
2831         (WebCore::V8ObjectMap::Reader::readStringObject):
2832         (WebCore::V8ObjectMap::Reader::readNumberObject):
2833         (WebCore::V8ObjectMap::Deserializer::deserialize):
2834         (WebCore::V8ObjectMap::Deserializer::openComposite):
2835         (WebCore::V8ObjectMap::Deserializer::closeComposite):
2836
2837 2011-07-28  Adam Barth  <abarth@webkit.org>
2838
2839         Old code about empty security origins could use a bath
2840         https://bugs.webkit.org/show_bug.cgi?id=64735
2841
2842         Reviewed by Dimitri Glazkov.
2843
2844         This patch cleans up some old code related to empty security origins.
2845         It also removes some dodgy code that seems wrong.
2846
2847         Test: http/tests/security/inactive-document-with-empty-security-origin.html
2848
2849         * bindings/generic/BindingSecurityBase.cpp:
2850         (WebCore::BindingSecurityBase::canAccess):
2851         * page/SecurityOrigin.cpp:
2852         (WebCore::SecurityOrigin::isEmpty):
2853         (WebCore::SecurityOrigin::isSecureTransitionTo):
2854         (WebCore::SecurityOrigin::toString):
2855
2856 2011-07-28  Vsevolod Vlasov  <vsevik@chromium.org>
2857
2858         Web Inspector: [REGRESSION] Inspected tab crashes if navigated with inspector open and there are watch expressions added.
2859         https://bugs.webkit.org/show_bug.cgi?id=65322
2860
2861         Reviewed by Pavel Feldman.
2862
2863         * inspector/InspectorController.cpp:
2864         * inspector/InspectorRuntimeAgent.cpp:
2865         (WebCore::InspectorRuntimeAgent::evaluate):
2866         * inspector/InspectorRuntimeAgent.h:
2867         * inspector/WorkerInspectorController.cpp:
2868
2869 2011-07-28  Mihnea Ovidenie  <mihnea@adobe.com>
2870
2871         [CSSRegions]Add basic RenderRegion support
2872         https://bugs.webkit.org/show_bug.cgi?id=64689
2873
2874         Reviewed by David Hyatt.
2875
2876         This patch introduces the RenderRegion object.
2877         A RenderObject that takes its content from a "named" flow will become a RenderRegion, an element that is used to display the content from a RenderFlowThread.
2878         A RenderRegion that is marked to take its content from a non existing flow, will have its content disconnected from the normal flow.
2879
2880         Tests: fast/regions/region-element-display-restriction.html
2881                fast/regions/region-element-dynamic-attach-flow.html
2882                fast/regions/region-element-dynamic-detach-flow.html
2883                fast/regions/render-region-renderer.html
2884
2885         * WebCore.vcproj/WebCore.vcproj:
2886         * WebCore.xcodeproj/project.pbxproj:
2887         * dom/Node.cpp:
2888         (WebCore::Node::diff):
2889         * rendering/RenderObject.cpp:
2890         (WebCore::RenderObject::createObject):
2891         * rendering/RenderObject.h:
2892         (WebCore::RenderObject::isRenderRegion):
2893         * rendering/RenderRegion.cpp: Added.
2894         (WebCore::RenderRegion::RenderRegion):
2895         (WebCore::RenderRegion::~RenderRegion):
2896         (WebCore::RenderRegion::layout):
2897         (WebCore::RenderRegion::paint):
2898         * rendering/RenderRegion.h: Added.
2899         (WebCore::RenderRegion::isRenderRegion):
2900         (WebCore::RenderRegion::renderName):
2901         (WebCore::toRenderRegion):
2902         * rendering/style/RenderStyle.cpp:
2903         (WebCore::RenderStyle::diff):
2904
2905 2011-07-28  Marco Peereboom  <marco@peereboom.us>
2906
2907         [Soup] Cannot override default max-conns and max-conns-per-host Soup Session settings
2908         https://bugs.webkit.org/show_bug.cgi?id=64355
2909         Default max-conns and max-conns-per-host are set at "first contact" with
2910         a site instead of at creation time.  This results in values being
2911         overwritten if they are set prior to said "first contact"; which is the
2912         most likely (or only) scenario.
2913
2914         Reviewed by Martin Robinson.
2915
2916         No new tests.  Rigged libsoup and xxxterm web browser to diagnose the
2917         issue and validate the patch.
2918
2919         * platform/network/soup/ResourceHandleSoup.cpp:
2920         (WebCore::ensureSessionIsInitialized): No longer ininitalize connection limits.
2921         (WebCore::ResourceHandle::defaultSession): Initialize connection limits here instead.
2922
2923 2011-07-28  Brady Eidson  <beidson@apple.com>
2924
2925         https://bugs.webkit.org/show_bug.cgi?id=65323
2926         r91931 causes NOTREACHED to be hit via StorageTracker
2927
2928         Change the meaning of the "has been initialized" flag to "needs initialization", and only set it to true
2929         if the ::initializeTracker() method has been called.
2930
2931         Reviewed by Sam Weinig.
2932
2933         * storage/StorageTracker.cpp:
2934         (WebCore::StorageTracker::initializeTracker): Set m_needsInitialization to true since the calling WebKit port expects full
2935           initialization instead of a dummy tracker.
2936         (WebCore::StorageTracker::internalInitialize):
2937         (WebCore::StorageTracker::tracker): Only initialize the tracker if it was created in the above initializeTracker().
2938         (WebCore::StorageTracker::StorageTracker):
2939         * storage/StorageTracker.h:
2940
2941 2011-07-28  David Kilzer  <ddkilzer@apple.com>
2942
2943         <http://webkit.org/b/65289> Remove GeolocationPositionCache
2944
2945         Reviewed by Adam Barth.
2946
2947         * CMakeLists.txt: Remove references to GeolocationPositionCache.
2948         * GNUmakefile.list.am: Ditto.
2949         * WebCore.gypi: Ditto.
2950         * WebCore.order: Ditto.
2951         * WebCore.pro: Ditto.
2952         * WebCore.vcproj/WebCore.vcproj: Ditto.
2953         * WebCore.xcodeproj/project.pbxproj: Ditto.
2954
2955         * page/Geolocation.cpp: Switch from using m_positionCache to
2956         m_cachedPosition.
2957         (WebCore::Geolocation::makeCachedPositionCallbacks):
2958         (WebCore::Geolocation::haveSuitableCachedPosition):
2959         (WebCore::Geolocation::positionChangedInternal):
2960         * page/Geolocation.h: Remove PositionCacheWrapper and replace
2961         with RefPtr<Geoposition>.
2962         * page/GeolocationPositionCache.cpp: Removed.
2963         * page/GeolocationPositionCache.h: Removed.
2964
2965 2011-07-28  Dan Bernstein  <mitz@apple.com>
2966
2967         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
2968
2969         Reviewed by Darin Adler.
2970
2971         * WebCore.exp.in: Exported wkGetVerticalGlyphsForCharacters.
2972         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
2973         (WebCore::GlyphPage::fill): Use wkGetVerticalGlyphsForCharacters. If it returns false, proceed
2974         with the existing, slower method of getting vertical glyphs.
2975         * platform/mac/WebCoreSystemInterface.h:
2976         * platform/mac/WebCoreSystemInterface.mm:
2977
2978 2011-07-28  Brady Eidson  <beidson@apple.com>
2979
2980         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
2981         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
2982
2983         Move the heavy lifting done in StorageTracker::initializeTracker() until when the global tracker is actually
2984         accessed, therefore deferring it until a web page actually uses LocalStorage or the app uses the API.
2985
2986         Reviewed by Maciej Stachowiak.
2987
2988         No new tests. (Not possible to test this API implementation detail)
2989
2990         * WebCore.exp.in:
2991
2992         * storage/StorageAreaImpl.cpp:
2993         (WebCore::StorageAreaImpl::StorageAreaImpl): Access the global StorageTracker to indicate that a web page
2994           is actually using the storage APIs.
2995
2996         * storage/StorageTracker.cpp:
2997         (WebCore::StorageTracker::initializeTracker): Moved the potentially hefty work from here...
2998         (WebCore::StorageTracker::internalInitialize): ...to here.
2999         (WebCore::StorageTracker::tracker): If the global tracker hasn't had internalInitialize() called, do so.
3000         (WebCore::StorageTracker::StorageTracker):
3001         * storage/StorageTracker.h:
3002
3003 2011-07-28  Carlos Garcia Campos  <cgarcia@igalia.com>
3004
3005         [GTK] Copy and paste is broken in WebKit2
3006         https://bugs.webkit.org/show_bug.cgi?id=65252
3007
3008         Reviewed by Martin Robinson.
3009
3010         Use gtk_clipboard_get_for_display() instead of
3011         gtk_widget_get_clipboard(), using the the default display when
3012         there's no page client widget, which is the case of WebKit2.
3013
3014         * platform/gtk/PasteboardHelper.cpp:
3015         (WebCore::displayFromFrame): Return the display of the current
3016         frame widget or the default display if there's no widget.
3017         (WebCore::PasteboardHelper::getClipboard):
3018         (WebCore::PasteboardHelper::getPrimarySelectionClipboard):
3019
3020 2011-07-28  Vsevolod Vlasov  <vsevik@chromium.org>
3021
3022         Web Inspector: Add resource initiator column to network panel.
3023         https://bugs.webkit.org/show_bug.cgi?id=65105
3024
3025         Reviewed by Pavel Feldman.
3026
3027         Test: http/tests/inspector/network/network-initiator.html
3028
3029         * English.lproj/localizedStrings.js:
3030         * dom/Document.cpp:
3031         (WebCore::Document::scheduleStyleRecalc):
3032         * inspector/Inspector.json:
3033         * inspector/InspectorInstrumentation.cpp:
3034         (WebCore::InspectorInstrumentation::willRecalculateStyleImpl):
3035         (WebCore::InspectorInstrumentation::didRecalculateStyleImpl):
3036         (WebCore::InspectorInstrumentation::didScheduleStyleRecalculationImpl):
3037         * inspector/InspectorInstrumentation.h:
3038         (WebCore::InspectorInstrumentation::didScheduleStyleRecalculation):
3039         * inspector/InspectorResourceAgent.cpp:
3040         (WebCore::InspectorResourceAgent::willSendRequest):
3041         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
3042         (WebCore::InspectorResourceAgent::willRecalculateStyle):
3043         (WebCore::InspectorResourceAgent::didRecalculateStyle):
3044         (WebCore::InspectorResourceAgent::didScheduleStyleRecalculation):
3045         (WebCore::InspectorResourceAgent::buildInitiatorObject):
3046         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
3047         * inspector/InspectorResourceAgent.h:
3048         * inspector/front-end/NetworkManager.js:
3049         (WebInspector.NetworkDispatcher.prototype.requestWillBeSent):
3050         (WebInspector.NetworkDispatcher.prototype.resourceLoadedFromMemoryCache):
3051         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
3052         (WebInspector.NetworkDispatcher.prototype._createResource):
3053         * inspector/front-end/NetworkPanel.js:
3054         (WebInspector.NetworkLogView.prototype._createTable):
3055         (WebInspector.NetworkLogView.prototype._createSortingFunctions):
3056         (WebInspector.NetworkLogView.prototype.switchToDetailedView):
3057         (WebInspector.NetworkLogView.prototype.switchToBriefView):
3058         (WebInspector.NetworkLogView.prototype._toggleGridMode):
3059         (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
3060         (WebInspector.NetworkDataGridNode.prototype.createCells):
3061         (WebInspector.NetworkDataGridNode.prototype.refreshResource):
3062         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
3063         (WebInspector.NetworkDataGridNode.InitiatorComparator):
3064         * inspector/front-end/networkLogView.css:
3065         (.initiator-column a):
3066
3067 2011-07-28  Rob Buis  <rbuis@rim.com>
3068
3069         Use styling test from ietestcenter fails
3070         https://bugs.webkit.org/show_bug.cgi?id=62147 
3071
3072         Reviewed by Nikolas Zimmermann.
3073
3074         Make sure CSS selectors are applied to the DOM tree referenced by <use>, not the internal shadow tree. In order to quickly
3075         find the corresponding DOM tree element store this info in SVGElementRareData. 
3076
3077         Test: svg/W3C-SVG-1.1-SE/struct-use-11-f.svg
3078
3079         * rendering/svg/SVGShadowTreeElements.cpp:
3080         (WebCore::SVGShadowTreeContainerElement::styleForRenderer):
3081         * rendering/svg/SVGShadowTreeElements.h:
3082         * svg/SVGElement.cpp:
3083         (WebCore::SVGElement::correspondingElement):
3084         (WebCore::SVGElement::setCorrespondingElement):
3085         (WebCore::SVGElement::styleForRenderer):
3086         * svg/SVGElement.h:
3087         * svg/SVGElementInstance.cpp:
3088         (WebCore::SVGElementInstance::invalidateAllInstancesOfElement):
3089         * svg/SVGElementRareData.h:
3090         (WebCore::SVGElementRareData::SVGElementRareData):
3091         (WebCore::SVGElementRareData::correspondingElement):
3092         (WebCore::SVGElementRareData::setCorrespondingElement):
3093         * svg/SVGStyledElement.cpp:
3094         (WebCore::SVGStyledElement::removedFromDocument):
3095         * svg/SVGUseElement.cpp:
3096         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
3097         * svg/SVGUseElement.h:
3098
3099 2011-07-28  Denis Oliver Kropp  <dok@directfb.org>
3100
3101         This fixes build without video enabled.
3102         https://bugs.webkit.org/show_bug.cgi?id=65084
3103
3104         Reviewed by Philippe Normand.
3105
3106         Test with --disable-video.
3107
3108         * dom/EventDispatcher.cpp:
3109         (WebCore::EventDispatcher::determineDispatchBehavior):
3110
3111 2011-07-28  Yuta Kitamura  <yutak@chromium.org>
3112
3113         WebSocket: Pass the value of useHixie76Protocol flag to WebSocket object
3114         https://bugs.webkit.org/show_bug.cgi?id=65250
3115
3116         Reviewed by Alexey Proskuryakov.
3117
3118         Add useHixie76Protocol() method to WebSocketChannel and its family. To implement hybi-specific
3119         attributes in WebSocket object, WebSocket class needs to be able to get the value of
3120         useHixie76Protocol flag of WebSocketChannel.
3121
3122         If the WebSocket object is created in a worker thread, the flag value must be obtained from
3123         WebSocketChannel which resides in the loader thread (through WorkerThreadableWebSocketChannel).
3124         Since the value does not change after creation of WebSocketChannel, it can be cached in
3125         the worker thread.
3126
3127         There is no change in behavior, thus no new tests.
3128
3129         * websockets/ThreadableWebSocketChannel.h:
3130         * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
3131         (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
3132         (WebCore::ThreadableWebSocketChannelClientWrapper::useHixie76Protocol):
3133         (WebCore::ThreadableWebSocketChannelClientWrapper::setUseHixie76Protocol):
3134         * websockets/ThreadableWebSocketChannelClientWrapper.h:
3135         * websockets/WebSocketChannel.cpp:
3136         (WebCore::WebSocketChannel::useHixie76Protocol):
3137         * websockets/WebSocketChannel.h:
3138         * websockets/WorkerThreadableWebSocketChannel.cpp:
3139         (WebCore::WorkerThreadableWebSocketChannel::useHixie76Protocol):
3140         (WebCore::WorkerThreadableWebSocketChannel::Peer::useHixie76Protocol):
3141         (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
3142         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
3143         * websockets/WorkerThreadableWebSocketChannel.h:
3144
3145 2011-07-28  Rob Buis  <rbuis@rim.com>
3146
3147         REGRESSION (r91125): Google Drawings is broken
3148         https://bugs.webkit.org/show_bug.cgi?id=65257
3149
3150         Reviewed by Darin Adler.
3151
3152         Only consider zero-length path rendering code path when a stroke is defined.
3153
3154         Test: svg/custom/zero-path-square-cap-rendering2.svg
3155
3156         * rendering/svg/RenderSVGPath.cpp:
3157         (WebCore::RenderSVGPath::shouldStrokeZeroLengthSubpath):
3158
3159 2011-07-22  Martin Robinson  <mrobinson@igalia.com>
3160
3161         [Cairo] Switch from ContextShadow to ShadowBlur
3162         https://bugs.webkit.org/show_bug.cgi?id=64744
3163
3164         Use ShadowBlur in the Cairo backend instead of ContextShadow. This allows us
3165         to share shadowing code with Qt and Mac ports and to correct some broken
3166         shadow rendering.
3167
3168         Reviewed by Dirk Schulze.
3169
3170         * CMakeLists.txt: Remove ContextShadow from the build.
3171         * CMakeListsEfl.txt: Ditto.
3172         * GNUmakefile.list.am: Add ShadowBlur source files and remove ContextShadow
3173         source files.
3174         * platform/graphics/GraphicsContext.cpp:Add #ifdefs to support ShadowBlur for Cairo.
3175         * platform/graphics/GraphicsContext.h: Remove Cairo ContextShadow code.
3176         * platform/graphics/ShadowBlur.cpp:
3177         (WebCore::ShadowBlur::drawInsetShadowWithTiling): Since the ShadowBlur is a property
3178         of the GraphicsContext, we cannot clear the GraphicsContext shadow until we have
3179         finished using properties like m_offset. If we clear the GrahpicsContext shadow
3180         before using these properties, they will be zero when we try to use them.
3181         (WebCore::ShadowBlur::drawRectShadowWithTiling):Ditto.
3182         (WebCore::ShadowBlur::drawLayerPieces): Ditto.
3183         (WebCore::ShadowBlur::beginShadowLayer):Cairo is the first port to keep ShadowBlur
3184         as a persistent property of GraphicsContext and use drawRectShadow and drawInsetShadow.
3185         Thus, we must manually clear the cached tiling values so that ShadowBlur does not
3186         try to reuse the scratch buffer for rectangular shadows after using beginShadowLayer
3187         and endShadowLayer.
3188         (WebCore::ShadowBlur::mustUseShadowBlur): Moved this method from the Qt port to
3189         this cross-platform location.
3190         * platform/graphics/ShadowBlur.h: Added new method declaration.
3191         * platform/graphics/cairo/ContextShadowCairo.cpp: Removed.
3192         * platform/graphics/cairo/FontCairo.cpp: Switched to using ShadowBlur.
3193         (WebCore::drawGlyphsShadow):Ditto.
3194         * platform/graphics/cairo/GraphicsContextCairo.cpp: Switch to using ShadowBlur.
3195         (WebCore::drawPathShadow): ShadowBlur has slightly different semantics than
3196         ContextShadow. When filling the shadow layer, we do not need to use the fill
3197         alpha. We also need to restore the Cairo path to the target context after
3198         endShadowLayer as it destroys the current path.
3199         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h: Switch to using ShadowBlur.
3200         * platform/graphics/cairo/ImageCairo.cpp: Ditto.
3201         * platform/graphics/cairo/PlatformContextCairo.cpp:
3202         (WebCore::PlatformContextCairo::drawSurfaceToContext):Ditto.
3203         (WebCore::PlatformContextCairo::prepareForStroking): Add a mode ignoring alpha.
3204         * platform/graphics/cairo/PlatformContextCairo.h: Ditto.
3205         (WebCore::PlatformContextCairo::shadowBlur):Added.
3206         * platform/graphics/gtk/FontGtk.cpp: Update to use ShadowBlur.
3207         * platform/graphics/qt/GraphicsContextQt.cpp: Switch to using the new version of mustUseShadowBlur.
3208
3209 2011-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3210
3211         [EFL] Add dummy NotificationPresenterClientEfl
3212         https://bugs.webkit.org/show_bug.cgi?id=64064
3213
3214         Add two files to CMakeLists.txt for HTML5 Notification.
3215
3216         Reviewed by Antonio Gomes.
3217
3218         * CMakeLists.txt:
3219
3220 2011-07-27  Ryosuke Niwa  <rniwa@webkit.org>
3221
3222         Calling window.find immediately after mutating the document crashes WebKit.
3223         https://bugs.webkit.org/show_bug.cgi?id=65296
3224
3225         Reviewed by Darin Adler.
3226
3227         Don't forget to layout first.
3228
3229         Test: editing/text-iterator/find-after-mutation.html
3230
3231         * editing/TextIterator.cpp:
3232         (WebCore::findPlainText):
3233
3234 2011-07-27  Ben Wells  <benwells@chromium.org>
3235
3236         Remove skia special case for outline rendering code
3237         https://bugs.webkit.org/show_bug.cgi?id=65295
3238
3239         Reviewed by James Robinson.
3240
3241         The fix for bug 58999 (outlines with alpha channels showed artifacts in the corners) was
3242         excluded from skia builds until bug 61369 (skia drawConvexPoly didn't pay attention to
3243         shouldAntialias) was fixed. That bug is fixed so now the #if's can be removed.
3244
3245         * rendering/RenderInline.cpp:
3246         (WebCore::RenderInline::paintOutline):
3247         * rendering/RenderObject.cpp:
3248         (WebCore::RenderObject::paintOutline):
3249
3250 2011-07-27  Adam Barth  <abarth@webkit.org>
3251
3252         Crypto.idl doesn't need legacy optional arguments
3253         https://bugs.webkit.org/show_bug.cgi?id=65298
3254
3255         Reviewed by Darin Adler.
3256
3257         This API is relatively new and useless to call without its only argument.
3258
3259         * page/Crypto.idl:
3260
3261 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
3262
3263         Remove operator new from JSCell
3264         https://bugs.webkit.org/show_bug.cgi?id=64999
3265
3266         Reviewed by Oliver Hunt.
3267
3268         No new tests.
3269
3270         Removed the implementation of operator new in JSCell, so any further uses
3271         will not successfully link.  Also removed any remaining uses of operator new.
3272
3273         * bridge/c/CRuntimeObject.h:
3274         (JSC::Bindings::CRuntimeObject::create):
3275         * bridge/c/c_instance.cpp:
3276         (JSC::Bindings::CInstance::newRuntimeObject):
3277         (JSC::Bindings::CRuntimeMethod::create):
3278         (JSC::Bindings::CRuntimeMethod::CRuntimeMethod):
3279         (JSC::Bindings::CInstance::getMethod):
3280         * bridge/jni/jsc/JavaInstanceJSC.cpp:
3281         (JavaInstance::newRuntimeObject):
3282         (JavaRuntimeMethod::create):
3283         (JavaRuntimeMethod::JavaRuntimeMethod):
3284         (JavaInstance::getMethod):
3285         * bridge/jni/jsc/JavaRuntimeObject.h:
3286         (JSC::Bindings::JavaRuntimeObject::create):
3287         * bridge/objc/ObjCRuntimeObject.h:
3288         (JSC::Bindings::ObjCRuntimeObject::create):
3289         * bridge/objc/objc_class.mm:
3290         (JSC::Bindings::ObjcClass::fallbackObject):
3291         * bridge/objc/objc_instance.mm:
3292         (ObjcInstance::newRuntimeObject):
3293         (ObjCRuntimeMethod::create):
3294         (ObjCRuntimeMethod::ObjCRuntimeMethod):
3295         (ObjcInstance::getMethod):
3296         * bridge/objc/objc_runtime.h:
3297         (JSC::Bindings::ObjcFallbackObjectImp::create):
3298
3299 2011-07-27  Vsevolod Vlasov  <vsevik@chromium.org>
3300
3301         Web Inspector: Network panel sidebar should have width saved in preferences when resource is selected.
3302         https://bugs.webkit.org/show_bug.cgi?id=65256
3303
3304         Reviewed by Pavel Feldman.
3305
3306         * inspector/front-end/NetworkPanel.js:
3307         (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
3308         (WebInspector.NetworkPanel.prototype.restoreSidebarWidth):
3309         (WebInspector.NetworkPanel.prototype._showResource):
3310         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
3311         (WebInspector.NetworkPanel.prototype._toggleViewingResourceMode):
3312         * inspector/front-end/Panel.js:
3313         (WebInspector.Panel.prototype.show):
3314         (WebInspector.Panel.prototype.preferredSidebarWidth):
3315         (WebInspector.Panel.prototype.get restoreSidebarWidth):
3316
3317 2011-07-27  Vsevolod Vlasov  <vsevik@chromium.org>
3318
3319         Web Inspector: [REGRESSION] [Chromium] Opening link in new tab does not work properly.
3320         https://bugs.webkit.org/show_bug.cgi?id=65279
3321
3322         Reviewed by Pavel Feldman.
3323
3324         * inspector/InspectorPageAgent.cpp:
3325         (WebCore::InspectorPageAgent::open):
3326
3327 2011-07-27  Adam Klein  <adamk@chromium.org>
3328
3329         [V8] Remove unused m_isWeak member of V8AbstractEventListener
3330         https://bugs.webkit.org/show_bug.cgi?id=65273
3331
3332         Reviewed by Adam Barth.
3333
3334         m_isWeak is set to true in the constructor and never changed,
3335         so the one if statement that tests it always executes; the
3336         code has been updated to make this clear.
3337
3338         No behavior change, thus no tests.
3339
3340         * bindings/v8/V8AbstractEventListener.cpp:
3341         (WebCore::V8AbstractEventListener::V8AbstractEventListener):
3342         (WebCore::V8AbstractEventListener::setListenerObject):
3343         * bindings/v8/V8AbstractEventListener.h:
3344
3345 2011-07-27  Fady Samuel  <fsamuel@chromium.org>
3346
3347         Popups on Chromium now check the minimum row height set through the Chromium WebKit API when
3348         computing the height of a row in a popup listbox.
3349         https://bugs.webkit.org/show_bug.cgi?id=64897
3350
3351         Reviewed by Darin Fisher.
3352
3353         No new tests.
3354
3355         * platform/chromium/PopupMenuChromium.cpp:
3356         (WebCore::PopupListBox::getRowHeight):
3357         * platform/chromium/PopupMenuChromium.h:
3358         (WebCore::PopupMenuChromium::minimumRowHeight):
3359         (WebCore::PopupMenuChromium::setMinimumRowHeight):
3360
3361 2011-07-27  MORITA Hajime  <morrita@google.com>
3362
3363         Inconsistent state of TreeScope reference.
3364         https://bugs.webkit.org/show_bug.cgi?id=65235
3365         
3366         The tree scope pointers on shadow tree nodes didn't cleared.
3367         even when the tree scope (shadow root) is destroyed.
3368         This change clear these poitners before detaching the shadow root.
3369
3370         Reviewed by Dimitri Glazkov.
3371
3372         Test: fast/dom/shadow/tree-scope-crash.html
3373
3374         * dom/Element.cpp:
3375         (WebCore::Element::removeShadowRoot):
3376
3377 2011-07-27  Rachel Blum  <groby@chromium.org>
3378
3379         Implement sizes attribute for link tag from HTML5
3380         https://bugs.webkit.org/show_bug.cgi?id=37674
3381
3382         Reviewed by Dimitri Glazkov.
3383
3384         Test: fast/dom/icon-size-property.html
3385
3386         * WebCore.gypi:
3387         * WebCore.pro:
3388         * bindings/js/JSHTMLLinkElementCustom.cpp:
3389         (WebCore::JSHTMLLinkElement::sizes):
3390         (WebCore::JSHTMLLinkElement::setSizes):
3391         * bindings/v8/custom/V8HTMLLinkElementCustom.cpp: Added.
3392         (WebCore::V8HTMLLinkElement::sizesAccessorGetter):
3393         (WebCore::V8HTMLLinkElement::sizesAccessorSetter):
3394         * html/HTMLAttributeNames.in:
3395         * html/HTMLLinkElement.cpp:
3396         (WebCore::HTMLLinkElement::HTMLLinkElement):
3397         (WebCore::HTMLLinkElement::parseMappedAttribute):
3398         (WebCore::HTMLLinkElement::sizes):
3399         (WebCore::HTMLLinkElement::setSizes):
3400         * html/HTMLLinkElement.h:
3401         * html/HTMLLinkElement.idl:
3402
3403 2011-07-27  Pratik Solanki  <psolanki@apple.com>
3404
3405         Incorrect arguments passed to LOG statement
3406         https://bugs.webkit.org/show_bug.cgi?id=65293
3407
3408         Reviewed by Oliver Hunt.
3409
3410         * platform/network/mac/ResourceHandleMac.mm:
3411         (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]):
3412
3413 2011-07-27  Levi Weintraub  <leviw@chromium.org>
3414
3415         Switch transform operations to FloatSize
3416         https://bugs.webkit.org/show_bug.cgi?id=64301
3417
3418         Reviewed by Simon Fraser.
3419
3420         Changing TransformOperation and its progeny to operate on FloatSizes instead of IntSizes.
3421
3422         * platform/graphics/transforms/IdentityTransformOperation.h:
3423         (WebCore::IdentityTransformOperation::apply):
3424         * platform/graphics/transforms/Matrix3DTransformOperation.cpp:
3425         (WebCore::Matrix3DTransformOperation::blend):
3426         * platform/graphics/transforms/Matrix3DTransformOperation.h:
3427         (WebCore::Matrix3DTransformOperation::apply):
3428         * platform/graphics/transforms/MatrixTransformOperation.cpp:
3429         (WebCore::MatrixTransformOperation::blend):
3430         * platform/graphics/transforms/MatrixTransformOperation.h:
3431         (WebCore::MatrixTransformOperation::apply):
3432         * platform/graphics/transforms/PerspectiveTransformOperation.h:
3433         (WebCore::PerspectiveTransformOperation::apply):
3434         * platform/graphics/transforms/RotateTransformOperation.h:
3435         (WebCore::RotateTransformOperation::apply):
3436         * platform/graphics/transforms/ScaleTransformOperation.h:
3437         (WebCore::ScaleTransformOperation::apply):
3438         * platform/graphics/transforms/SkewTransformOperation.h:
3439         (WebCore::SkewTransformOperation::apply):
3440         * platform/graphics/transforms/TransformOperation.h:
3441         * platform/graphics/transforms/TransformOperations.h:
3442         (WebCore::TransformOperations::apply):
3443         * platform/graphics/transforms/TranslateTransformOperation.h:
3444         (WebCore::TranslateTransformOperation::x):
3445         (WebCore::TranslateTransformOperation::y):
3446         (WebCore::TranslateTransformOperation::z):
3447         (WebCore::TranslateTransformOperation::apply):
3448
3449 2011-07-27  Levi Weintraub  <leviw@chromium.org>
3450
3451         unicode-bidi:-webkit-plaintext does not work on <textarea>
3452         https://bugs.webkit.org/show_bug.cgi?id=65074
3453
3454         Reviewed by Ryosuke Niwa.
3455
3456         Fixing unicode-bidi style propagation into text control shadow trees.
3457
3458         Test: fast/text/international/unicode-bidi-plaintext-in-textarea.html
3459
3460         * rendering/RenderTextControl.cpp:
3461         (WebCore::RenderTextControl::adjustInnerTextStyle):
3462
3463 2011-07-27  Eric Carlson  <eric.carlson@apple.com>
3464
3465         Load delegate not consulted before loading some poster images
3466         https://bugs.webkit.org/show_bug.cgi?id=65270
3467
3468         Reviewed by Darin Adler.
3469
3470         Test: media/video-poster-blocked-by-willsendrequest.html
3471
3472         * html/HTMLVideoElement.cpp:
3473         (WebCore::HTMLVideoElement::setDisplayMode): Don't ask media engine to set poster if
3474             willLoadMediaElementURL returns false.
3475
3476 2011-07-27  Stephen White  <senorblanco@chromium.org>
3477
3478         Fix for printing with accelerated <canvas>
3479         https://bugs.webkit.org/show_bug.cgi?id=62406
3480
3481         Reviewed by James Robinson.
3482
3483         The platform-independent side of this should be covered by existing
3484         tests.  Printing itself in Chrome has few tests, sadly.  :(
3485
3486         * html/HTMLCanvasElement.cpp:
3487         (WebCore::HTMLCanvasElement::paint):
3488         * platform/graphics/skia/ImageBufferSkia.cpp:
3489         (WebCore::ImageBuffer::draw):
3490
3491 2011-07-25  Mihai Parparita  <mihaip@chromium.org>
3492