Closed
Bug 106111
Opened 24 years ago
Closed 24 years ago
the editor lib needs ability to be built w/ out HTML composition
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: jud, Assigned: akkzilla)
Details
Attachments
(1 file, 1 obsolete file)
|
2.72 KB,
patch
|
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
This will allow folks just needing plain text form widgets to get a slimmed down
lib.
Comment 1•24 years ago
|
||
it's already built by default, actually! embedding just needs to update
basebrowser-* to use texteditor.dll instead of editor.dll
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 2•24 years ago
|
||
This was filed on Linux, and we don't build no texteditor.dll there.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 3•24 years ago
|
||
I have a patch. Build with --enable-plaintext-editor-only. In my debug tree,
this gets you a libeditor.so of 3.2M rather than 5.4M (presumably much smaller
numbers in optimized).
Status: REOPENED → ASSIGNED
| Assignee | ||
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
cc seawood for configure issues. Wondering if we just want a generic
--minimal-embedding or something that turns this one on.
Comment 6•24 years ago
|
||
r=mcafee, I helped akkana come up with these changes.
| Assignee | ||
Updated•24 years ago
|
Attachment #54564 -
Flags: review+
| Reporter | ||
Comment 7•24 years ago
|
||
This starts wading into the water of having a #ifdef wandering it's way all over
the code (ratbert style) which requires a fair amount of overhead (at the
developer level (maintianing two trees at times), and the tbox level (one
"regular tbox" and one "minimal" tbox).
How would --minimal-build or --embedding-build tie into the SDK stuff you're
currently hammering on seawood? This is obviously the build flag model.
Presumably there would be a set of #defines (NO_XUL being another) that
--embedding-build would be flipped.
| Assignee | ||
Comment 8•24 years ago
|
||
I should have asked: would it be easier if I set unix up to build both regular
and text-only libraries every time? I can do it that way if anyone thinks it's
better.
Cc'ing kin for comment, and also for sr if he decides that this way (build only
one library at a time) is better.
Comment 9•24 years ago
|
||
Comment on attachment 54564 [details] [diff] [review]
Patch: switch on --enable-plaintext-editor-only
Turning on just the plaintext editor shouldn't cause a tree rebuild since it's all localized to the editor. Follow the HAVE_MOVEMAIL example and just add the DEFINE to the makefiles where it's needed
Attachment #54564 -
Flags: needs-work+
| Reporter | ||
Comment 10•24 years ago
|
||
we run into the reverse problem if we do that (the core mozilla builds have to
pick one for final distribution).
Comment 11•24 years ago
|
||
Comment on attachment 54564 [details] [diff] [review]
Patch: switch on --enable-plaintext-editor-only
*sigh* Ignore my previous comment. Our dependency system can't handle what I proposed so we'll have to live with the rebuilds until I can fix it.
Attachment #54564 -
Flags: needs-work+
Comment 12•24 years ago
|
||
Off-topic for this bug, but you asked. :) The SDK work is, IMO, completely
separate from the --embedding-build flag. As I see it, the SDK work would be to
carve out the core set of modules from the Mozilla-browser build that could be
used to build an app using gecko. (And then build Mozilla using that SDK.) This
--embedding-build flag seems to serve to further trim off features from those
modules. The point at where those 2 efforts would merge would be when you can
trim off features in such a way as to allow the trimmed feature to be its own
entity so that no extra defines are needed. Then the SDK could pick up the
original feature that it wanted w/o the feature that was left on the cutting
room floor.
Comment 13•24 years ago
|
||
To answer akk's question:
I'd like to see us build both to prevent bit rot and help catch situations where
people are introducing bad dependencies in the editor core code.
Of course this can't happen until we move cmanske's SetDocTitleTxn out of base
and into the html dir so that we don't have to use ifdefs in the base factory code.
Comment 14•24 years ago
|
||
I like that plan too...
is there a bug # on that issue?
It looks like we already do this on windows though - is the library still
functional on windows?
Comment 15•24 years ago
|
||
No bug filed on the transaction issue, but it's glaringly obvious if you try to
build both the stripped down and full blown libraries using the same factory
object file because you'll get undefined symbols during link time.
The stripped down library should still work on win32 ... though I haven't tried
it in a month or so.
| Assignee | ||
Comment 16•24 years ago
|
||
| Assignee | ||
Comment 17•24 years ago
|
||
Kin and I poked around and discovered that Windows wasn't setting the -D at all,
and it worked. So for consistency, I'm no longer setting it either (which also
addresses Chris' objection even though he retracted the objection; I thought he
had a good point even if it doesn't matter right now).
| Assignee | ||
Updated•24 years ago
|
Attachment #54564 -
Attachment is obsolete: true
Comment 18•24 years ago
|
||
Comment on attachment 54970 [details] [diff] [review]
new patch: Don't set the -D define at all
on windows, it actually builds both libraries by spawning an additional $(MAKE) with MOZ_BUiLD_PLAINTEXT_EDITOR_ONLY
http://lxr.mozilla.org/seamonkey/source/editor/libeditor/build/makefile.win#150
| Assignee | ||
Comment 19•24 years ago
|
||
Targeting 0.9.6 -- all this needs is an sr. We can address the "build both"
issue later (though I'll work on it in the meantime).
Target Milestone: --- → mozilla0.9.6
Comment 20•24 years ago
|
||
Comment on attachment 54970 [details] [diff] [review]
new patch: Don't set the -D define at all
sr=kin@netscape.com
Attachment #54970 -
Flags: superreview+
| Assignee | ||
Comment 21•24 years ago
|
||
Fix checked in. I'll leave the bug open for the problem of building both
libraries by default, as Windows does.
| Assignee | ||
Comment 22•24 years ago
|
||
Building both libraries can wait 'til the next milestone.
Target Milestone: mozilla0.9.6 → mozilla0.9.7
| Assignee | ||
Comment 23•24 years ago
|
||
Filed bug 108263 on building both, rather than morphing this bug. Marking
fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Target Milestone: mozilla0.9.7 → mozilla0.9.6
| Assignee | ||
Comment 24•24 years ago
|
||
I'll go ahead and verify this, though it would be nice if someone from embedding
who actually needs this functionality cross-checked it.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•