Changeset 220084 in webkit
- Timestamp:
- Jul 31, 2017 5:18:00 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220077 r220084 1 2017-07-31 Nan Wang <n_wang@apple.com> 2 3 AX: CFEqual is failing on text markers with exact same data 4 https://bugs.webkit.org/show_bug.cgi?id=175002 5 <rdar://problem/33636985> 6 7 Reviewed by Chris Fleizach. 8 9 We should zero the memory of the TextMarkerData instance so that it 10 can be tested for byte-equivalence. 11 12 Made sure this change won't break any of the existing tests. 13 14 * accessibility/AXObjectCache.cpp: 15 (WebCore::AXObjectCache::textMarkerDataForVisiblePosition): 16 (WebCore::AXObjectCache::textMarkerDataForFirstPositionInTextControl): 17 1 18 2017-07-28 Matt Rajca <mrajca@apple.com> 2 19 -
trunk/Source/WebCore/accessibility/AXObjectCache.cpp
r219638 r220084 2161 2161 RefPtr<AccessibilityObject> obj = cache->getOrCreate(domNode); 2162 2162 2163 // This memory must be zero'd so instances of TextMarkerData can be tested for byte-equivalence. 2163 2164 TextMarkerData textMarkerData; 2165 memset(&textMarkerData, 0, sizeof(TextMarkerData)); 2166 2164 2167 textMarkerData.axID = obj.get()->axObjectID(); 2165 2168 textMarkerData.node = domNode; … … 2186 2189 return std::nullopt; 2187 2190 2191 // This memory must be zero'd so instances of TextMarkerData can be tested for byte-equivalence. 2188 2192 TextMarkerData textMarkerData; 2193 memset(&textMarkerData, 0, sizeof(TextMarkerData)); 2194 2189 2195 textMarkerData.axID = obj.get()->axObjectID(); 2190 2196 textMarkerData.node = &textControl;
Note: See TracChangeset
for help on using the changeset viewer.