Bug 126367

Summary: RenderScrollbar: Map of scrollbar parts should use RenderPtr.
Product: WebKit Reporter: Andreas Kling <kling>
Component: Layout and RenderingAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kling, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+

Description Andreas Kling 2014-01-01 16:01:39 PST
RenderScrollbar: Map of scrollbar parts should use RenderPtr.
Comment 1 Andreas Kling 2014-01-01 16:29:28 PST
Created attachment 220197 [details]
Patch
Comment 2 WebKit Commit Bot 2014-01-01 16:30:12 PST
Attachment 220197 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/rendering/RenderPtr.h', u'Source/WebCore/rendering/RenderScrollbar.cpp', u'Source/WebCore/rendering/RenderScrollbar.h', '--commit-queue']" exit_code: 1
ERROR: Source/WebCore/rendering/RenderScrollbar.h:30:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Antti Koivisto 2014-01-01 16:39:15 PST
Comment on attachment 220197 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=220197&action=review

> Source/WebCore/rendering/RenderPtr.h:165
> +template<typename T> struct HashTraits<WebCore::RenderPtr<T>> : SimpleClassHashTraits<WebCore::RenderPtr<T>> {

Might be nice to have SmartPointerHashTraits in WTF to make these copy-pastes smaller.
Comment 4 Andreas Kling 2014-01-01 16:49:17 PST
Committed r161200: <http://trac.webkit.org/changeset/161200>