Changeset 164831 in webkit


Ignore:
Timestamp:
Feb 27, 2014 2:55:44 PM (10 years ago)
Author:
Simon Fraser
Message:

Crash tapping on play button on video on iOS
https://bugs.webkit.org/show_bug.cgi?id=129452

Reviewed by Benjamin Poulain.

node->computedStyle() can return null. Just use
renderer->style() to get the tap highlight color.

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::tapHighlightAtPosition):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r164830 r164831  
     12014-02-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Crash tapping on play button on video on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=129452
     5
     6        Reviewed by Benjamin Poulain.
     7       
     8        node->computedStyle() can return null. Just use
     9        renderer->style() to get the tap highlight color.
     10
     11        * WebProcess/WebPage/ios/WebPageIOS.mm:
     12        (WebKit::WebPage::tapHighlightAtPosition):
     13
    1142014-02-27  Brian Burg  <bburg@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm

    r164776 r164831  
    368368    if (renderer) {
    369369        renderer->absoluteQuads(quads);
    370         Color highlightColor = node->computedStyle()->tapHighlightColor();
     370        Color highlightColor = renderer->style().tapHighlightColor();
    371371        if (!node->document().frame()->isMainFrame()) {
    372372            FrameView* view = node->document().frame()->view();
Note: See TracChangeset for help on using the changeset viewer.