WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 58944
bidiNext should be split into two separate functions
https://bugs.webkit.org/show_bug.cgi?id=58944
Summary
bidiNext should be split into two separate functions
Eric Seidel (no email)
Reported
2011-04-19 16:53:21 PDT
bidiNext should be split into two separate functions bidiNext has two (mostly unrelated) modes. Either it's walking to the next RenderText, or it's walking to the next RenderInline. This is controlled (confusingly) by the skipInlines bool, which when false, puts it in "walk to inlines" mode. Here are the 7 callsites: InlineIterator.h: o = bidiNext(root, o, resolver, skipInlines); // Just plumbing InlineIterator.h: o = bidiNext(root, o, resolver, skipInlines); // Just plumbing InlineIterator.h: moveTo(bidiNext(m_root, m_obj, resolver), 0); // The normal walk-to-the-next RenderText mode (and the only place that ever notifies the resolver when entering/leaving inlines). InlineIterator.h: obj = bidiNext(m_sor.root(), obj); // Used by InlineBidiIterator, really should just be an InlineIterator.increment() call. RenderBlock.cpp: o = bidiNext(this, o, 0, false, &endOfInline); // Wants all inlines RenderBlockLineLayout.cpp: o = bidiNext(this, o, 0, false, &endOfInline); // Wants all inlines RenderBlockLineLayout.cpp: RenderObject* next = bidiNext(block, o); // Looking for the next RenderText, probably should be an InlineIterator.increment() call. RenderBlockLineLayout.cpp: RenderObject* next = bidiNext(this, o); // Also probably should just be an InlineIterator.
Attachments
Patch
(12.45 KB, patch)
2011-04-20 18:30 PDT
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2011-04-20 18:30:51 PDT
Created
attachment 90467
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-04-20 18:31:36 PDT
Comment on
attachment 90467
[details]
Patch It may make the most sense to wait on landing this patch until after I've posted further re-writes and everyone can see where I'm going. I'm pretty sure that the endOfInline nonsense can be avoided.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug