Changeset 176070 in webkit


Ignore:
Timestamp:
Nov 13, 2014 12:53:03 AM (10 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

[EFL] Unexpected crashes in layout test after r175953
https://bugs.webkit.org/show_bug.cgi?id=138652

Reviewed by Csaba Osztrogonác.

In r175953, it set reusableNodeIndex value with m_partCache's size(). It causes
out of bound index crash because the reusableNodeIndex is Vector object.

No new test. This patch is to fix broken tests related to widgets on EFL port.

  • platform/efl/RenderThemeEfl.cpp:

(WebCore::RenderThemeEfl::getThemePartFromCache): Need to set reusableNodeIndex with "size() - 1".

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176069 r176070  
     12014-11-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        [EFL] Unexpected crashes in layout test after r175953
     4        https://bugs.webkit.org/show_bug.cgi?id=138652
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        In r175953, it set reusableNodeIndex value with m_partCache's size(). It causes
     9        out of bound index crash because the reusableNodeIndex is Vector object.
     10
     11        No new test. This patch is to fix broken tests related to widgets on EFL port.
     12
     13        * platform/efl/RenderThemeEfl.cpp:
     14        (WebCore::RenderThemeEfl::getThemePartFromCache): Need to set reusableNodeIndex with "size() - 1".
     15
    1162014-11-13  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp

    r176010 r176070  
    252252    // the last item of the list.
    253253    if (!reusableNodeIndex)
    254         reusableNodeIndex = m_partCache.size();
     254        reusableNodeIndex = m_partCache.size() - 1;
    255255
    256256    ThemePartCacheEntry* reusedEntry = m_partCache[reusableNodeIndex].get();
Note: See TracChangeset for help on using the changeset viewer.