Closed
Bug 149203
Opened 23 years ago
Closed 16 years ago
DidSetStyleContext is not called enough
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: dbaron, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file, 1 obsolete file)
1.81 KB,
application/vnd.mozilla.xul+xml
|
Details |
DidSetStyleContext is not called enough for the frames that implement it -- they
use it as a "style data changed" callback. However, there are cases where we do
ClearStyleData, etc., and don't call it. I think this is the cause of the
dynamic-theme-switching bug where images weren't replaced (since nsImageBoxFrame
uses a DidSetStyleContext callback).
I fixed the simplest of the cases in the patch in bug 146831 comment 19, but
there are other more complicated ones.
Reporter | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → Future
Comment 1•22 years ago
|
||
is it possible to privide a minimized testcase ?
Reporter | ||
Comment 2•22 years ago
|
||
(An alternative fix would be removing DidSetStyleContext.)
Reporter | ||
Comment 3•22 years ago
|
||
I need to go back and look at exactly what doesn't call DidSetStyleContext and
how to trigger it. I suspect I may need to do a CSS rule change rather than a
style attribute change.
Reporter | ||
Comment 4•22 years ago
|
||
Attachment #102827 -
Attachment is obsolete: true
Reporter | ||
Comment 5•22 years ago
|
||
Comment on attachment 102831 [details]
testcase
In this testcase, the "Change Image and Border" button should take effect
immediately. It does for the border, but the image change doesn't take effect
until the user presses the "Reresolve style" button.
Comment 7•19 years ago
|
||
WFM ?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051026 Firefox/1.6a1
Reporter | ||
Comment 8•18 years ago
|
||
Probably mostly fixed by making style contexts immutable, which isn't quite true, since we still have ClearStyleDataAndReflow, which violates the immutability.
Reporter | ||
Updated•18 years ago
|
Assignee: dbaron → nobody
Status: ASSIGNED → NEW
QA Contact: ian → style-system
Reporter | ||
Comment 9•16 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•