OLD | NEW |
| 1 2011-06-09 James Robinson <jamesr@chromium.org> |
| 2 |
| 3 Reviewed by Kenneth Russell. |
| 4 |
| 5 [chromium] Scissor rect not set for clipping layers set offscreen |
| 6 https://bugs.webkit.org/show_bug.cgi?id=62339 |
| 7 |
| 8 We set a scissorRect on each layer, but only layers with masksToBounds a
nd their descendants should actually set |
| 9 a scissor. Layers that didn't need to scissor had empty scissorRects.
Unfortunately layers with masksToBounds |
| 10 and their descendants that are scrolled offscreen also end up with an em
pty clipped scissor rect. |
| 11 |
| 12 This patch sets an explicit bit on each layer that should scissor and th
en checks that bit instead of checking |
| 13 for an empty scissor rect at draw time. RenderSurfaceChromiums have dif
ferent requirements for |
| 14 setScissorToRect, so the old behavior is still available with a flag. T
his can probably be cleaned up more. |
| 15 |
| 16 Test: platform/chromium/compositing/scissor-out-of-viewport.html |
| 17 |
| 18 * platform/graphics/chromium/LayerRendererChromium.cpp: |
| 19 (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces): |
| 20 (WebCore::LayerRendererChromium::drawLayer): |
| 21 (WebCore::LayerRendererChromium::setScissorToRect): |
| 22 * platform/graphics/chromium/LayerRendererChromium.h: |
| 23 * platform/graphics/chromium/RenderSurfaceChromium.cpp: |
| 24 (WebCore::RenderSurfaceChromium::draw): |
| 25 * platform/graphics/chromium/cc/CCLayerImpl.cpp: |
| 26 (WebCore::CCLayerImpl::CCLayerImpl): |
| 27 * platform/graphics/chromium/cc/CCLayerImpl.h: |
| 28 (WebCore::CCLayerImpl::setUsesLayerScissor): |
| 29 (WebCore::CCLayerImpl::usesLayerScissor): |
| 30 |
| 31 2011-06-09 Sheriff Bot <webkit.review.bot@gmail.com> |
| 32 |
| 33 Unreviewed, rolling out r88468. |
| 34 http://trac.webkit.org/changeset/88468 |
| 35 https://bugs.webkit.org/show_bug.cgi?id=62408 |
| 36 |
| 37 It broke build if !ENABLE(FULLSCREEN_API) (Requested by Ossy |
| 38 on #webkit). |
| 39 |
| 40 * dom/Element.cpp: |
| 41 (WebCore::adjustForLocalZoom): |
| 42 * dom/Element.h: |
| 43 * html/HTMLMediaElement.cpp: |
| 44 * html/HTMLMediaElement.h: |
| 45 |
| 46 2011-06-09 Kenneth Russell <kbr@google.com> |
| 47 |
| 48 Reviewed by Adam Barth. |
| 49 |
| 50 Disallow use of cross-domain media (images, video) in WebGL |
| 51 https://bugs.webkit.org/show_bug.cgi?id=62257 |
| 52 |
| 53 Updated WebGL implementation to track recent spec updates in this area. |
| 54 |
| 55 Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-c
redentials.html |
| 56 http/tests/security/webgl-remote-read-remote-image-allowed.html |
| 57 http/tests/security/webgl-remote-read-remote-image-blocked-no-cro
ssorigin.html |
| 58 |
| 59 * html/canvas/CanvasRenderingContext.cpp: |
| 60 (WebCore::CanvasRenderingContext::wouldTaintOrigin): |
| 61 (WebCore::CanvasRenderingContext::checkOrigin): |
| 62 * html/canvas/CanvasRenderingContext.h: |
| 63 (WebCore::CanvasRenderingContext::checkOrigin): |
| 64 * html/canvas/WebGLRenderingContext.cpp: |
| 65 (WebCore::WebGLRenderingContext::readPixels): |
| 66 (WebCore::WebGLRenderingContext::texImage2D): |
| 67 (WebCore::WebGLRenderingContext::videoFrameToImage): |
| 68 (WebCore::WebGLRenderingContext::texSubImage2D): |
| 69 * html/canvas/WebGLRenderingContext.h: |
| 70 |
| 71 2011-06-09 Adam Barth <abarth@webkit.org> |
| 72 |
| 73 Reviewed by Eric Seidel. |
| 74 |
| 75 Add an ASSERT to HTMLTreeBuilder |
| 76 https://bugs.webkit.org/show_bug.cgi?id=62403 |
| 77 |
| 78 This ASSERT was useful in investigating a re-entrancy bug. We should |
| 79 keep it. |
| 80 |
| 81 * html/parser/HTMLTreeBuilder.cpp: |
| 82 (WebCore::HTMLTreeBuilder::processEndOfFile): |
| 83 |
| 84 2011-06-09 Dan Bernstein <mitz@apple.com> |
| 85 |
| 86 Reviewed by Darin Adler. |
| 87 |
| 88 Fix a regression from r88478. |
| 89 |
| 90 * platform/graphics/mac/ComplexTextControllerCoreText.cpp: |
| 91 (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCore
Text): Add the runs |
| 92 in reverse order in the RTL case here, since the whole vector is reverse
d by collectComplexTextRuns() |
| 93 afterwards. |
| 94 |
| 95 2011-06-09 Julien Chaffraix <jchaffraix@codeaurora.org> |
| 96 |
| 97 Reviewed by Antti Koivisto. |
| 98 |
| 99 REGRESSION(84329): Stylesheets on some pages do not load |
| 100 https://bugs.webkit.org/show_bug.cgi?id=61400 |
| 101 |
| 102 Test: fast/css/link-disabled-attr.html |
| 103 |
| 104 Fixed r84329: the change did not take into account the fact |
| 105 that HTMLLinkElement did already contain the disabled information |
| 106 and the 2 information were not linked as they should have! |
| 107 |
| 108 The new logic pushes the information to the stylesheet as this |
| 109 is what the spec mandates and what FF is doing. Also it keeps |
| 110 one bit of information (that JS enabled the stylesheet) as it |
| 111 is needed for the recalcStyleSelector logic. |
| 112 |
| 113 * dom/Document.cpp: |
| 114 (WebCore::Document::recalcStyleSelector): s/isDisabled/disabled. |
| 115 |
| 116 * html/HTMLLinkElement.cpp: |
| 117 (WebCore::HTMLLinkElement::HTMLLinkElement): Removed m_disabledState, |
| 118 replaced by m_isEnabledViaScript. |
| 119 (WebCore::HTMLLinkElement::setDisabled): Updated the logic after |
| 120 m_disabledState removal. It also matches the spec by forwarding |
| 121 the disabled state to our stylesheet if we have one. |
| 122 (WebCore::HTMLLinkElement::parseMappedAttribute): Removed harmful |
| 123 handling of the disabledAttr. |
| 124 (WebCore::HTMLLinkElement::process): Updated after m_disabledState remov
al. |
| 125 * html/HTMLLinkElement.h: |
| 126 (WebCore::HTMLLinkElement::isEnabledViaScript): Ditto. |
| 127 (WebCore::HTMLLinkElement::isAlternate): Ditto. |
| 128 |
| 129 2011-06-09 Dan Bernstein <mitz@apple.com> |
| 130 |
| 131 Reviewed by Darin Adler. |
| 132 |
| 133 Simplify ComplexTextController::collectComplexTextRuns() |
| 134 https://bugs.webkit.org/show_bug.cgi?id=62387 |
| 135 |
| 136 No new test, since functionality is unchanged. |
| 137 |
| 138 * platform/graphics/mac/ComplexTextController.cpp: |
| 139 (WebCore::ComplexTextController::collectComplexTextRuns): Always iterate
characters in logical order, |
| 140 then reverse the run vector for RTL. |
| 141 |
| 142 2011-06-09 Dimitri Glazkov <dglazkov@chromium.org> |
| 143 |
| 144 Reviewed by Kent Tamura. |
| 145 |
| 146 Fold isShadowBoundary into isShadowRoot. |
| 147 https://bugs.webkit.org/show_bug.cgi?id=62317 |
| 148 |
| 149 Since there are no longer cases where Node::isShadowBoundary() != Node::
isShadowRoot, we can remove this function. |
| 150 |
| 151 In one case where isShadowBoundary was also tested to find ShadowContent
Elemnt, added a new isContentElement function. |
| 152 |
| 153 Refactoring, covered by existing tests. |
| 154 |
| 155 * css/CSSStyleSelector.cpp: |
| 156 (WebCore::isAtShadowBoundary): Changed to use isShadowRoot. |
| 157 * dom/Element.cpp: |
| 158 (WebCore::Element::isSpellCheckingEnabled): Ditto. |
| 159 * dom/Node.cpp: |
| 160 (WebCore::Node::nonBoundaryShadowTreeRootNode): Ditto. |
| 161 (WebCore::Node::nonShadowBoundaryParentNode): Ditto. |
| 162 * dom/Node.h: |
| 163 (WebCore::Node::isContentElement): Added. |
| 164 * dom/NodeRenderingContext.cpp: |
| 165 (WebCore::NodeRenderingContext::NodeRenderingContext): Changed to use is
ShadowRoot. |
| 166 * dom/Position.cpp: |
| 167 (WebCore::Position::Position): Ditto. |
| 168 * dom/ShadowContentElement.h: |
| 169 (WebCore::ShadowContentElement::isContentElement): Added. |
| 170 * dom/ShadowRoot.cpp: |
| 171 (WebCore::ShadowRoot::hasContentElement): Changed to use isContentElemen
t. |
| 172 * editing/CompositeEditCommand.cpp: |
| 173 (WebCore::CompositeEditCommand::insertNodeAfter): Changed to use isShado
wRoot. |
| 174 * editing/htmlediting.cpp: |
| 175 (WebCore::visiblePositionBeforeNode): Ditto. |
| 176 (WebCore::visiblePositionAfterNode): Ditto. |
| 177 * page/DragController.cpp: |
| 178 (WebCore::asFileInput): Ditto. |
| 179 * rendering/RenderTreeAsText.cpp: |
| 180 (WebCore::nodePosition): Ditto. |
| 181 |
| 182 2011-06-09 Simon Fraser <simon.fraser@apple.com> |
| 183 |
| 184 Reviewed by Darin Adler. |
| 185 |
| 186 Crashes in RenderLayerBacking::paintingGoesToWindow |
| 187 https://bugs.webkit.org/show_bug.cgi?id=61159 |
| 188 |
| 189 Speculative fix for unreproducible crash that can occur when RenderObjec
t::repaintUsingContainer() |
| 190 finds a repaintContainer that is not the RenderView, but that is also no
t |
| 191 composited (for unknown reasons), by checking to see if the layer is |
| 192 compositing before using backing(). An assertion remains to try to catch |
| 193 this in debug builds. |
| 194 |
| 195 * rendering/RenderLayer.cpp: |
| 196 (WebCore::RenderLayer::setBackingNeedsRepaintInRect): |
| 197 |
| 198 2011-06-09 Julien Chaffraix <jchaffraix@webkit.org> |
| 199 |
| 200 Reviewed by Darin Adler. |
| 201 |
| 202 WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash |
| 203 https://bugs.webkit.org/show_bug.cgi?id=62384 |
| 204 |
| 205 Test: fast/css/webkit-keyframes-crash.html |
| 206 |
| 207 * css/WebKitCSSKeyframesRule.cpp: |
| 208 (WebCore::WebKitCSSKeyframesRule::setName): stylesheet() is never garant
eed |
| 209 to return a non-null pointer. Thus null-check here like the rest of the
code. |
| 210 |
| 211 2011-06-09 Julien Chaffraix <jchaffraix@codeaurora.org> |
| 212 |
| 213 Reviewed by David Hyatt. |
| 214 |
| 215 chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes) |
| 216 https://bugs.webkit.org/show_bug.cgi?id=57756 |
| 217 |
| 218 Tests: fast/css/fontMetric-border-radius-null-crash.html |
| 219 fast/css/fontMetric-webkit-border-end-width-null-crash.html |
| 220 |
| 221 * css/CSSStyleSelector.cpp: |
| 222 (WebCore::CSSStyleSelector::styleForElement): Added a call to Font::upda
te |
| 223 so that our FontFallbackList is allocated if we ever need it when applyi
ng our |
| 224 style rules. |
| 225 |
| 226 2011-06-09 Cary Clark <caryclark@google.com> |
| 227 |
| 228 Reviewed by Eric Seidel. |
| 229 |
| 230 Create local CG context for Mac UI elements when Skia is renderer |
| 231 https://bugs.webkit.org/show_bug.cgi?id=62213 |
| 232 |
| 233 When building Mac Chrome using Skia as the WebKit renderer, |
| 234 add state to LocalCurrentGraphicsContext to convert the SkCanvas |
| 235 context passed by WebKit into the CGContext needed by UI |
| 236 rendering. |
| 237 |
| 238 No new tests. The define typo in question is |
| 239 not yet enabled, so this change has no functional |
| 240 impact. |
| 241 |
| 242 * platform/mac/LocalCurrentGraphicsContext.h: |
| 243 Add SkiaBitLocker to create and release the converted CGContext. |
| 244 Add ContextContainer, a class for Skia to create and release |
| 245 the converted CGContext. If Skia is not used, the class has no effect. |
| 246 |
| 247 * platform/mac/LocalCurrentGraphicsContext.mm: |
| 248 (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext): |
| 249 When building with Skia, create the CGContext before passing it on. |
| 250 |
| 251 (WebCore::LocalCurrentGraphicsContext::cgContext): |
| 252 Get the CGContext from the SkiaBitLocker, or the saved context, |
| 253 as appropriate. |
| 254 |
| 255 * rendering/RenderThemeMac.mm: |
| 256 Get the CGContext from Skia conversion or native, as appropriate. |
| 257 Use the LocalCurrentGraphicsContext if there is one. Otherwise, |
| 258 add a ContextContainer to house the SkCanvas to CGContext conversion. |
| 259 |
| 260 (WebCore::RenderThemeMac::paintCapsLockIndicator): |
| 261 (WebCore::RenderThemeMac::paintProgressBar): |
| 262 (WebCore::RenderThemeMac::paintMenuListButtonGradients): |
| 263 (WebCore::RenderThemeMac::paintSliderTrack): |
| 264 (WebCore::RenderThemeMac::paintMediaFullscreenButton): |
| 265 (WebCore::RenderThemeMac::paintMediaMuteButton): |
| 266 (WebCore::RenderThemeMac::paintMediaPlayButton): |
| 267 (WebCore::RenderThemeMac::paintMediaSeekBackButton): |
| 268 (WebCore::RenderThemeMac::paintMediaSeekForwardButton): |
| 269 (WebCore::RenderThemeMac::paintMediaSliderTrack): |
| 270 (WebCore::RenderThemeMac::paintMediaSliderThumb): |
| 271 (WebCore::RenderThemeMac::paintMediaRewindButton): |
| 272 (WebCore::RenderThemeMac::paintMediaReturnToRealtimeButton): |
| 273 (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton): |
| 274 (WebCore::RenderThemeMac::paintMediaControlsBackground): |
| 275 (WebCore::RenderThemeMac::paintMediaCurrentTime): |
| 276 (WebCore::RenderThemeMac::paintMediaTimeRemaining): |
| 277 (WebCore::RenderThemeMac::paintMediaVolumeSliderContainer): |
| 278 (WebCore::RenderThemeMac::paintMediaVolumeSliderTrack): |
| 279 (WebCore::RenderThemeMac::paintMediaVolumeSliderThumb): |
| 280 |
| 281 2011-06-02 Jer Noble <jer.noble@apple.com> |
| 282 |
| 283 Reviewed by Maciej Stachowiak. |
| 284 |
| 285 REGRESSION: Page layout messed up after exiting full screen after video
ends at jerryseinfeld.com |
| 286 https://bugs.webkit.org/show_bug.cgi?id=61911 |
| 287 <rdar://problem/9523017> |
| 288 |
| 289 Test: fullscreen/full-screen-video-offset.html |
| 290 |
| 291 When the video element is taken full-screen in the new element full-scre
en API, return the |
| 292 offset width and height of the placeholder renderer which is filling in
for the full-screen |
| 293 element. To do so, override offsetWidth, Height, Left, and Top from Ele
ment. These are |
| 294 non-virtual functions, so make them virtual. |
| 295 |
| 296 * dom/Element.cpp: |
| 297 (WebCore::Element::adjustForLocalZoom): Made into a class-static functio
n. |
| 298 * dom/Element.h: Made offset functions virtual. |
| 299 * html/HTMLMediaElement.cpp: |
| 300 (WebCore::elementPlaceholder): Added; utility function. |
| 301 (WebCore::HTMLMediaElement::offsetLeft): Added; virtual override of the |
| 302 Element function. Will be called directly via javascript. |
| 303 (WebCore::HTMLMediaElement::offsetTop): Ditto. |
| 304 (WebCore::HTMLMediaElement::offsetWidth): Ditto. |
| 305 (WebCore::HTMLMediaElement::offsetHeight): Ditto. |
| 306 * html/HTMLMediaElement.h: |
| 307 |
| 308 2011-06-09 Dave Tapuska <dtapuska@rim.com> |
| 309 |
| 310 Reviewed by Daniel Bates. |
| 311 |
| 312 PingLoader destructor could dereference 0 if the Resource |
| 313 Handle creation failed. |
| 314 |
| 315 https://bugs.webkit.org/show_bug.cgi?id=62304 |
| 316 |
| 317 * loader/PingLoader.cpp: |
| 318 (WebCore::PingLoader::~PingLoader): |
| 319 |
| 320 2011-06-08 Abhishek Arya <inferno@chromium.org> |
| 321 |
| 322 Reviewed by Ryosuke Niwa. |
| 323 |
| 324 Make indexForVisiblePosition and isSelectableElement static. |
| 325 https://bugs.webkit.org/show_bug.cgi?id=62329 |
| 326 |
| 327 This protects us when converting frame->selection->start() or end() |
| 328 to VisiblePosition which blows away the RenderTextControl from |
| 329 underneath (due to layout update). |
| 330 |
| 331 Test: fast/forms/text-control-selection-crash.html |
| 332 |
| 333 * accessibility/AccessibilityRenderObject.cpp: |
| 334 (WebCore::AccessibilityRenderObject::indexForVisiblePosition): |
| 335 * rendering/RenderTextControl.cpp: |
| 336 (WebCore::RenderTextControl::selectionStart): |
| 337 (WebCore::RenderTextControl::selectionEnd): |
| 338 (WebCore::RenderTextControl::isSelectableElement): |
| 339 (WebCore::RenderTextControl::indexForVisiblePosition): |
| 340 * rendering/RenderTextControl.h: |
| 341 |
| 342 2011-06-09 Ben Murdoch <benm@google.com> |
| 343 |
| 344 Reviewed by Yury Semikhatsky. |
| 345 |
| 346 Build break in ScriptProfile.cpp and inspector disabled. |
| 347 https://bugs.webkit.org/show_bug.cgi?id=62373 |
| 348 |
| 349 No new tests - build fix only. |
| 350 |
| 351 * bindings/v8/ScriptProfile.cpp: Add necessary guards. |
| 352 * bindings/v8/ScriptProfile.h: ditto. |
| 353 |
| 354 2011-06-09 Vsevolod Vlasov <vsevik@chromium.org> |
| 355 |
| 356 Reviewed by Yury Semikhatsky. |
| 357 |
| 358 Web Inspector: Network panel preview tab does not reattach SourceFrame w
hen switching between preview and response tabs. |
| 359 https://bugs.webkit.org/show_bug.cgi?id=62298 |
| 360 |
| 361 * inspector/front-end/ResourcePreviewView.js: |
| 362 (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callba
ck): |
| 363 (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown): |
| 364 |
| 365 2011-06-09 Csaba Osztrogonác <ossy@webkit.org> |
| 366 |
| 367 [Qt][Mac] Speculative buildfix after r88286. |
| 368 |
| 369 * platform/graphics/IntPoint.h: |
| 370 |
| 371 2011-06-09 Mike Lawther <mikelawther@chromium.org> |
| 372 |
| 373 Reviewed by Kent Tamura. |
| 374 |
| 375 Parsing issue with -webkit-calc |
| 376 https://bugs.webkit.org/show_bug.cgi?id=62276 |
| 377 |
| 378 Set the CSSParserString for the calc functions. |
| 379 |
| 380 Test: css3/calc/regression-62276.html |
| 381 |
| 382 * css/CSSParser.cpp: |
| 383 (WebCore::CSSParser::lex): |
| 384 |
| 385 2011-06-09 Robert Hogan <robert@webkit.org> |
| 386 |
| 387 Reviewed by Andreas Kling. |
| 388 |
| 389 Teach Qt about window.internals |
| 390 https://bugs.webkit.org/show_bug.cgi?id=61074 |
| 391 |
| 392 A weakness of the Qt DRT setup is that things like JSContextRef are abst
racted |
| 393 away from the QtWebKit API so we need DumpRenderTreeSupportQt to access
WebCore internals. |
| 394 Since the window.internals object requires JSContextRef we need to imple
ment it in DumpRenderTreeSupportQt |
| 395 where we can access it. DumpRenderTreeSupportQt cannot be compiled outsi
de Qt's WebCore and as it |
| 396 is our only possible route into the WebCoreTestSupport class neither can
the new window.internals plumbing. |
| 397 Likewise we can't put the accessor in WebCoreTestSupport because it woul
d then need to know about QWebFrame |
| 398 and others. The only alternative seems like a compile time guard which w
e would have to teach the bots about. |
| 399 |
| 400 * CodeGenerators.pri: |
| 401 * WebCore.pri: |
| 402 * WebCore.pro: |
| 403 |
| 404 2011-06-08 Mikołaj Małecki <m.malecki@samsung.com> |
| 405 |
| 406 Reviewed by Pavel Feldman. |
| 407 |
| 408 Web Inspector: Crash by buffer overrun crash when serializing inspector
object tree. |
| 409 https://bugs.webkit.org/show_bug.cgi?id=52791 |
| 410 |
| 411 No new tests. The problem can be reproduced by trying to create Inspecto
rValue |
| 412 from 1.0e-100 and call ->toJSONString() on this. |
| 413 |
| 414 * inspector/InspectorValues.cpp: |
| 415 (WebCore::InspectorBasicValue::writeJSON): |
| 416 Added checking the predicted buffer size and choosing exponential format
, or |
| 417 eventually "NaN" if the buffer is too small for decimal format. |
| 418 |
| 419 2011-06-09 Sheriff Bot <webkit.review.bot@gmail.com> |
| 420 |
| 421 Unreviewed, rolling out r88387. |
| 422 http://trac.webkit.org/changeset/88387 |
| 423 https://bugs.webkit.org/show_bug.cgi?id=62368 |
| 424 |
| 425 New tests introduced in 88387 fail on Leopard,GTK,Qt bots |
| 426 (Requested by Ossy on #webkit). |
| 427 |
| 428 * html/canvas/CanvasRenderingContext.cpp: |
| 429 (WebCore::CanvasRenderingContext::checkOrigin): |
| 430 * html/canvas/CanvasRenderingContext.h: |
| 431 * html/canvas/WebGLRenderingContext.cpp: |
| 432 (WebCore::WebGLRenderingContext::readPixels): |
| 433 (WebCore::WebGLRenderingContext::texImage2D): |
| 434 (WebCore::WebGLRenderingContext::videoFrameToImage): |
| 435 (WebCore::WebGLRenderingContext::texSubImage2D): |
| 436 * html/canvas/WebGLRenderingContext.h: |
| 437 |
| 438 2011-06-09 Adam Barth <abarth@webkit.org> |
| 439 |
| 440 Reviewed by Eric Seidel. |
| 441 |
| 442 Running script from attach can remove elements from the stack of open el
ements |
| 443 https://bugs.webkit.org/show_bug.cgi?id=62160 |
| 444 |
| 445 When the tree build runs script synchronously, that script can remove |
| 446 arbitrary elements from the stack of open elements. We need to hold a |
| 447 reference to |parent| in attach instead of rely upon the reference in |
| 448 the stack of open elements. |
| 449 |
| 450 Test: fast/parser/document-write-onload-clear.html |
| 451 |
| 452 * html/parser/HTMLConstructionSite.cpp: |
| 453 (WebCore::HTMLConstructionSite::attach): |
| 454 |
| 455 2011-06-08 Luke Macpherson <macpherson@chromium.org> |
| 456 |
| 457 Reviewed by Eric Seidel. |
| 458 |
| 459 Make CSSPrimitiveValue support cast to EVerticalAlign. |
| 460 https://bugs.webkit.org/show_bug.cgi?id=62356 |
| 461 |
| 462 No new tests / refactoring only. |
| 463 |
| 464 * css/CSSPrimitiveValueMappings.h: |
| 465 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): |
| 466 (WebCore::CSSPrimitiveValue::operator EVerticalAlign): |
| 467 * css/CSSStyleSelector.cpp: |
| 468 (WebCore::CSSStyleSelector::applyProperty): |
| 469 |
| 470 2011-06-08 Justin Novosad <junov@chromium.org> |
| 471 |
| 472 Reviewed by James Robinson. |
| 473 |
| 474 [Chromium] Crash when closing a tab with accelerated 2d canvas |
| 475 https://bugs.webkit.org/show_bug.cgi?id=62324 |
| 476 Upon graphics context destruction, it is important to signal skia |
| 477 to abandon all of its resource handles. This prevents a crash caused |
| 478 by skia attempting to release resources that were in the destroyed |
| 479 graphics context. |
| 480 |
| 481 * platform/graphics/gpu/SharedGraphicsContext3D.cpp: |
| 482 (WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D): |
| 483 |
| 484 2011-06-08 James Robinson <jamesr@chromium.org> |
| 485 |
| 486 Reviewed by Darin Fisher. |
| 487 |
| 488 REGRESSION(88260): 10-50% performance regression across many page cycler
s |
| 489 https://bugs.webkit.org/show_bug.cgi?id=62349 |
| 490 |
| 491 r88260 fixed a font cache resource leak and lowered the inactive font ca
che threshold. The latter caused a |
| 492 significant performance regression across many chromium page cyclers, fo
r example |
| 493 http://build.chromium.org/f/chromium/perf/linux-release-webkit-latest/mo
z/report.html?history=50&rev=88279. |
| 494 |
| 495 This restores the previous inactive font size thresholds to their previo
us values, but retains the font cleanup |
| 496 logic. |
| 497 |
| 498 * platform/graphics/FontCache.cpp: |
| 499 |
| 500 2011-06-08 Hayato Ito <hayato@chromium.org> |
| 501 |
| 502 Reviewed by Dimitri Glazkov. |
| 503 |
| 504 A forward/backward tab traversal now visits focusable elements in a shad
ow root. |
| 505 https://bugs.webkit.org/show_bug.cgi?id=61410 |
| 506 |
| 507 Test: fast/dom/shadow/tab-order-iframe-and-shadow.html |
| 508 |
| 509 Like a iframe element, a shadow host becomes a scope of |
| 510 tabindex. That means all descendant elements in a shadow root are |
| 511 skipped if the host node of the shadow root is not focusable. |
| 512 |
| 513 The patch doesn't affect HTMLInputElement and HTMLTextAreaElement, |
| 514 which uses a shadow root and do extra works in their focus() |
| 515 method. |
| 516 |
| 517 A shadow root's <content> is not considered in this patch. |
| 518 That will be addressed in a following patch. |
| 519 |
| 520 * page/FocusController.cpp: |
| 521 (WebCore::shadowRoot): |
| 522 (WebCore::isTreeScopeOwner): |
| 523 (WebCore::FocusController::deepFocusableNode): |
| 524 (WebCore::FocusController::advanceFocusInDocumentOrder): |
| 525 (WebCore::FocusController::findFocusableNodeAcrossTreeScope): |
| 526 (WebCore::FocusController::findFocusableNode): |
| 527 (WebCore::FocusController::nextFocusableNode): |
| 528 (WebCore::FocusController::previousFocusableNode): |
| 529 (WebCore::FocusController::ownerOfTreeScope): |
| 530 * page/FocusController.h: |
| 531 |
| 532 2011-06-08 Hayato Ito <hayato@chromium.org> |
| 533 |
| 534 Reviewed by Hajime Morita. |
| 535 |
| 536 Makes sure that document.activeElement won't be an element in shadow roo
t. |
| 537 |
| 538 https://bugs.webkit.org/show_bug.cgi?id=61413 |
| 539 |
| 540 Test: fast/dom/shadow/activeelement-should-be-shadowhost.html |
| 541 |
| 542 * html/HTMLDocument.cpp: |
| 543 (WebCore::focusedFrameOwnerElement): |
| 544 (WebCore::HTMLDocument::activeElement): |
| 545 |
| 546 2011-06-08 Kent Tamura <tkent@chromium.org> |
| 547 |
| 548 Reviewed by Dimitri Glazkov. |
| 549 |
| 550 Allow drawing a slider thumb for any nodes. |
| 551 https://bugs.webkit.org/show_bug.cgi?id=62196 |
| 552 |
| 553 RenderObject::node() should provide various information which is |
| 554 necessary for rendering. We don't need to refer the parent renderer. |
| 555 |
| 556 * dom/Node.cpp: |
| 557 (WebCore::Node::focusDe1egate): Added. |
| 558 * dom/Node.h: Added a declaration. |
| 559 * html/shadow/MediaControlElements.cpp: |
| 560 (WebCore::toParentMediaElement): |
| 561 Added an overload of toParentMediaElement() with Node* parameter. |
| 562 * html/shadow/MediaControlElements.h: |
| 563 (WebCore::toParentMediaElement): ditto. |
| 564 * html/shadow/SliderThumbElement.cpp: |
| 565 (WebCore::SliderThumbElement::isEnabledFormControl): |
| 566 Returns the status of the host node. |
| 567 (WebCore::SliderThumbElement::isReadOnlyFormControl): ditto. |
| 568 (WebCore::SliderThumbElement::focusDe1egate): |
| 569 Returns the host node so that RenderTheme::isFocused() returns true. |
| 570 (WebCore::SliderThumbElement::detach): Style nit. |
| 571 (WebCore::SliderThumbElement::hostInput): |
| 572 Make it const because it is called by const functions. |
| 573 * html/shadow/SliderThumbElement.h: |
| 574 - Remove inDragMode() |
| 575 - Update declarations |
| 576 * platform/qt/RenderThemeQt.cpp: |
| 577 (WebCore::RenderThemeQt::paintMediaSliderThumb): |
| 578 Use Node::shadowAncestorNode() instead of RenderObject::parent() to |
| 579 support deeper thumb nodes. |
| 580 * rendering/RenderMediaControlsChromium.cpp: |
| 581 (WebCore::paintMediaSliderThumb): ditto. |
| 582 (WebCore::paintMediaVolumeSliderThumb): Remove isSlider() check. |
| 583 * rendering/RenderSlider.cpp: |
| 584 (WebCore::RenderSlider::inDragMode): |
| 585 SliderThumbElement::inDragMode() was removed, and Node::active() has |
| 586 the same information. |
| 587 * rendering/RenderTheme.cpp: |
| 588 (WebCore::RenderTheme::paint): Remove isSlider() checks. |
| 589 (WebCore::RenderTheme::isFocused): Apply Node::focusDelegate(). |
| 590 * rendering/RenderThemeChromiumLinux.cpp: |
| 591 (WebCore::RenderThemeChromiumLinux::paintSliderThumb): |
| 592 isPressed() is enough. |
| 593 * rendering/RenderThemeChromiumWin.cpp: |
| 594 isEnabled(), isFocused(), and isPressed() are enough. |
| 595 (WebCore::RenderThemeChromiumWin::determineSliderThumbState): |
| 596 (WebCore::RenderThemeChromiumWin::determineClassicState): |
| 597 * rendering/RenderThemeMac.mm: |
| 598 (WebCore::RenderThemeMac::paintSliderThumb): |
| 599 - Remove isSlider() check. |
| 600 - Passing 'o' to udpateFooState functions is enough. |
| 601 - isPressed() is enough. |
| 602 * rendering/RenderThemeSafari.cpp: |
| 603 (WebCore::RenderThemeSafari::paintSliderThumb): |
| 604 We don't need special handling anymore. |
| 605 * rendering/RenderThemeWin.cpp: |
| 606 (WebCore::RenderThemeWin::determineSliderThumbState): |
| 607 isEnabled(), isFocused(), and isPressed() are enough. |
| 608 |
| 609 2011-06-08 Adam Barth <abarth@webkit.org> |
| 610 |
| 611 Reviewed by Eric Seidel. |
| 612 |
| 613 constructTreeFromToken can re-enter parser, causing ASSERTs |
| 614 https://bugs.webkit.org/show_bug.cgi?id=62160 |
| 615 |
| 616 This patch clears the HTMLToken before constructing the tree from the |
| 617 token, putting the HTMLDocumentParser in a good state to be re-entered. |
| 618 |
| 619 Tests: fast/parser/document-write-onload-nesting.html |
| 620 fast/parser/document-write-onload-ordering.html |
| 621 |
| 622 * html/parser/HTMLDocumentParser.cpp: |
| 623 (WebCore::HTMLDocumentParser::pumpTokenizer): |
| 624 * html/parser/HTMLToken.h: |
| 625 (WebCore::HTMLToken::isUninitialized): |
| 626 * html/parser/HTMLTreeBuilder.cpp: |
| 627 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
| 628 |
| 629 2011-06-08 Kent Tamura <tkent@chromium.org> |
| 630 |
| 631 Fix Qt build for r88405. |
| 632 https://bugs.webkit.org/show_bug.cgi?id=62208 |
| 633 |
| 634 * platform/qt/RenderThemeQt.h: |
| 635 |
| 636 2011-06-08 Kent Tamura <tkent@chromium.org> |
| 637 |
| 638 Reviewed by Dimitri Glazkov. |
| 639 |
| 640 Change the argument of RenderTheme::adjustSliderThumbSize(): RenderObjec
t* -> RenderStyle* |
| 641 https://bugs.webkit.org/show_bug.cgi?id=62208 |
| 642 |
| 643 Change the argument type of RenderTheme::adjustSliderThumbSize() and |
| 644 RenderMediaControls::adjustMediaSliderThumbSize() from RenderObject* to
RenderStyle*. |
| 645 |
| 646 Also, each of adjustSliderThumbStyle() overrides calls RenderTheme:: |
| 647 adjustSliderThumbStyle() for future changes. |
| 648 |
| 649 No new tests. This is a refactoring and should not change any behavior. |
| 650 |
| 651 * html/shadow/SliderThumbElement.cpp: |
| 652 (WebCore::RenderSliderThumb::layout): Passing RenderStyle* and remove a
FIXME comment. |
| 653 * platform/efl/RenderThemeEfl.cpp: |
| 654 (WebCore::RenderThemeEfl::adjustSliderThumbStyle): Calls RenderTheme::ad
justSliderThumbStyle(). |
| 655 * platform/gtk/RenderThemeGtk.cpp: |
| 656 (WebCore::RenderThemeGtk::adjustSliderThumbStyle): ditto. |
| 657 (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize): |
| 658 * platform/gtk/RenderThemeGtk.h: |
| 659 * platform/gtk/RenderThemeGtk2.cpp: |
| 660 (WebCore::RenderThemeGtk::adjustSliderThumbSize): |
| 661 * platform/gtk/RenderThemeGtk3.cpp: |
| 662 (WebCore::RenderThemeGtk::adjustSliderThumbSize): |
| 663 * platform/qt/RenderThemeQt.cpp: |
| 664 (WebCore::RenderThemeQt::adjustSliderThumbStyle): ditto. |
| 665 (WebCore::RenderThemeQt::adjustSliderThumbSize): |
| 666 * rendering/RenderMediaControls.cpp: |
| 667 (WebCore::RenderMediaControls::adjustMediaSliderThumbSize): |
| 668 * rendering/RenderMediaControls.h: |
| 669 * rendering/RenderMediaControlsChromium.cpp: |
| 670 (WebCore::RenderMediaControlsChromium::adjustMediaSliderThumbSize): |
| 671 * rendering/RenderMediaControlsChromium.h: |
| 672 * rendering/RenderSlider.cpp: |
| 673 (WebCore::RenderSlider::layout): Passing RenderStyle* and remove a FIXME
comment. |
| 674 * rendering/RenderTheme.cpp: |
| 675 (WebCore::RenderTheme::adjustSliderThumbStyle): Add a comment. |
| 676 (WebCore::RenderTheme::adjustSliderThumbSize): |
| 677 * rendering/RenderTheme.h: |
| 678 * rendering/RenderThemeChromiumLinux.cpp: |
| 679 (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize): |
| 680 * rendering/RenderThemeChromiumLinux.h: |
| 681 * rendering/RenderThemeChromiumMac.h: |
| 682 * rendering/RenderThemeChromiumMac.mm: |
| 683 (WebCore::RenderThemeChromiumMac::adjustMediaSliderThumbSize): |
| 684 * rendering/RenderThemeChromiumSkia.cpp: |
| 685 (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize): |
| 686 * rendering/RenderThemeChromiumSkia.h: |
| 687 * rendering/RenderThemeChromiumWin.cpp: |
| 688 (WebCore::RenderThemeChromiumWin::adjustSliderThumbSize): |
| 689 * rendering/RenderThemeChromiumWin.h: |
| 690 * rendering/RenderThemeMac.h: |
| 691 * rendering/RenderThemeMac.mm: |
| 692 (WebCore::RenderThemeMac::adjustSliderThumbStyle): Calls RenderTheme::ad
justSliderThumbStyle(). |
| 693 (WebCore::RenderThemeMac::adjustSliderThumbSize): |
| 694 (WebCore::RenderThemeMac::adjustMediaSliderThumbSize): |
| 695 * rendering/RenderThemeSafari.cpp: |
| 696 (WebCore::RenderThemeSafari::adjustSliderThumbStyle): Calls RenderTheme:
:adjustSliderThumbStyle(). |
| 697 (WebCore::RenderThemeSafari::adjustSliderThumbSize): |
| 698 * rendering/RenderThemeSafari.h: |
| 699 * rendering/RenderThemeWin.cpp: |
| 700 (WebCore::RenderThemeWin::adjustSliderThumbSize): |
| 701 * rendering/RenderThemeWin.h: |
| 702 * rendering/RenderThemeWinCE.cpp: |
| 703 (WebCore::RenderThemeWinCE::adjustSliderThumbSize): |
| 704 * rendering/RenderThemeWinCE.h: |
| 705 |
| 706 2011-06-08 Brian Salomon <bsalomon@google.com> |
| 707 |
| 708 Reviewed by James Robinson. |
| 709 |
| 710 Avoid always binding FBO 0 implicitly when deleting FBO in DrawingBuffer
code because it invalidates Ganesh's cache of the current FBO. |
| 711 https://bugs.webkit.org/show_bug.cgi?id=62318 |
| 712 |
| 713 Chromium-only crash |
| 714 Failures takes multiple seconds to occur, relying on JS garbage-collecti
on to occur |
| 715 http://www.hotbazooka.com/privatejoe-large |
| 716 |
| 717 * platform/graphics/gpu/DrawingBuffer.cpp: |
| 718 (WebCore::DrawingBuffer::clear): |
| 719 |
| 720 2011-06-08 Emil A Eklund <eae@chromium.org> |
| 721 |
| 722 Reviewed by Eric Seidel. |
| 723 |
| 724 RenderEmbeddedObject::getReplacementTextGeometry |
| 725 https://bugs.webkit.org/show_bug.cgi?id=62313 |
| 726 |
| 727 Replace the last use of tx, ty with IntPoint. |
| 728 |
| 729 Covered by existing tests. |
| 730 |
| 731 * platform/graphics/FloatRect.h: |
| 732 (WebCore::FloatRect::move): |
| 733 (WebCore::FloatRect::moveBy): |
| 734 * rendering/RenderEmbeddedObject.cpp: |
| 735 (WebCore::RenderEmbeddedObject::paintReplaced): |
| 736 (WebCore::RenderEmbeddedObject::getReplacementTextGeometry): |
| 737 (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator): |
| 738 * rendering/RenderEmbeddedObject.h: |
| 739 |
| 740 2011-06-08 Tim Horton <timothy_horton@apple.com> |
| 741 |
| 742 Reviewed by Ryosuke Niwa. |
| 743 |
| 744 Use correct CFURLStorageSessionRef definition on Leopard, as |
| 745 we created an inconsistency in const-ness between |
| 746 WebCoreSystemInterface.h and these two files in the case |
| 747 of Leopard only. |
| 748 https://bugs.webkit.org/show_bug.cgi?id=62223 |
| 749 |
| 750 * platform/network/ResourceHandle.h: |
| 751 * platform/network/cf/ResourceRequest.h: |
| 752 |
1 2011-06-08 Sailesh Agrawal <sail@chromium.org> | 753 2011-06-08 Sailesh Agrawal <sail@chromium.org> |
2 | 754 |
3 Reviewed by Mihai Parparita. | 755 Reviewed by Mihai Parparita. |
4 | 756 |
5 Chromium Mac: Enable overlay scrollbars | 757 Chromium Mac: Enable overlay scrollbars |
6 https://bugs.webkit.org/show_bug.cgi?id=59756 | 758 https://bugs.webkit.org/show_bug.cgi?id=59756 |
7 | 759 |
8 Sync ScrollbarThemeChromiumMac.mm/.h with ScrollbarThemeMac.mm to pick u
p support for overlay scrollbars. The only changes are renaming ScrollbarThemeMa
c to ScrollbarThemeChromiumMac and using runtime checks instead of #ifdef's. | 760 Sync ScrollbarThemeChromiumMac.mm/.h with ScrollbarThemeMac.mm to pick u
p support for overlay scrollbars. The only changes are renaming ScrollbarThemeMa
c to ScrollbarThemeChromiumMac and using runtime checks instead of #ifdef's. |
9 | 761 |
10 No new tests, since this code is only enabled on future versions of Mac
OS X. | 762 No new tests, since this code is only enabled on future versions of Mac
OS X. |
(...skipping 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2781 fast/viewport/viewport-45.html fails in GTK+/Qt | 3533 fast/viewport/viewport-45.html fails in GTK+/Qt |
2782 https://bugs.webkit.org/show_bug.cgi?id=47481 | 3534 https://bugs.webkit.org/show_bug.cgi?id=47481 |
2783 | 3535 |
2784 computeViewportAttributes does many math operations with float point ari
thmetic | 3536 computeViewportAttributes does many math operations with float point ari
thmetic |
2785 and in some cases there is loss of precision making tests have incorrect
values. | 3537 and in some cases there is loss of precision making tests have incorrect
values. |
2786 | 3538 |
2787 * dom/ViewportArguments.cpp: | 3539 * dom/ViewportArguments.cpp: |
2788 (WebCore::computeViewportAttributes): | 3540 (WebCore::computeViewportAttributes): |
2789 | 3541 |
2790 == Rolled over to ChangeLog-2011-06-04 == | 3542 == Rolled over to ChangeLog-2011-06-04 == |
OLD | NEW |