Changeset 83736 in webkit


Ignore:
Timestamp:
Apr 13, 2011 7:58:55 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-13 Ben Taylor <bentaylor.solx86@gmail.com>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=57337

Work around a bug in ternary opertions in the Solaris Studio
12/12.1/12.2 compilers, using an if clause.

  • dom/NodeRenderStyle.h: (WebCore::Node::renderStyle):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83733 r83736  
     12011-04-13  Ben Taylor  <bentaylor.solx86@gmail.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=57337
     6
     7        Work around a bug in ternary opertions in the Solaris Studio
     8        12/12.1/12.2 compilers, using an if clause.
     9
     10        * dom/NodeRenderStyle.h:
     11        (WebCore::Node::renderStyle):
     12
    1132011-04-13  Brian Salomon  <bsalomon@google.com>
    214
  • trunk/Source/WebCore/dom/NodeRenderStyle.h

    r36461 r83736  
    3434inline RenderStyle* Node::renderStyle() const
    3535{
    36     return m_renderer ? m_renderer->style() : nonRendererRenderStyle();
     36    // Using a ternary here confuses the Solaris Studio 12/12.1/12.2 compilers:
     37    // Bug is CR 6569194, "Problem with question operator binding in inline function"
     38    if (m_renderer)
     39        return m_renderer->style();
     40    return nonRendererRenderStyle();
    3741}
    3842
Note: See TracChangeset for help on using the changeset viewer.