-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow overriding font-based normal line-height #603
Conversation
ab4cf26
to
d68e84e
Compare
d68e84e
to
de21aad
Compare
Specifically -cr-only-if line-height-normal
de21aad
to
166ed03
Compare
Moved to It's a bit annoying that the parent style needs to be passed through everywhere, but it's all coming from |
I'll read your posts and review better tomorrow.
These are really 2 different things: LVCssDeclaration::parse parses a stylesheet way earlier before we get to act on nodes. Which is what setNodeStyle does: applying.
I suggested using |
Sorry, I got that wrong when writing the comment, I meant I'm open to suggestions for a better way to do this, but I don't see how. |
All the style stuff/setNodeStyle and the rendering methods stuff is quite fragile, there are 2 different code paths using it (initial loading with style computer as we build the dom, vs later rerendering where the dom is already present) and there had been many issues keeping that consistent and the various hashs that detects that identical. So, the less stuff we change the better. If there is any change we get a parent node with computed style But you don't need to pass parent_style alll along, as you're nearly the only user of that. Please limit the changes to the minimum. |
We'll wait for this to reach koreader frontend to merge koreader/koreader#12483. |
For koreader/koreader#12483, see description there
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)