I'll join the request, if possible and if I am not in the way, it's something I'm also interested in.
> I am trying to find one point in code from where I can pick final style for any node. As far as I understood from reading the code, the correct point should be StyleAdjuster::AdjustComputedStyle. if I may, I would also like to understand the difference between GetComputedStyle() and GetLayoutObject()->Style(). Thanks On Wednesday, October 4, 2023 at 5:28:00 PM UTC+2 kalyani Shinde wrote: > Hi Team, > > I am new to blink and I want to understand how and when css computation is > done for every node and how to serialize that computed values. By > computation I mean, after applying all possible rules apply to that > node(own style, external style, insert rule, parent style, Pseudo element > styles, Css Pseudo Elements etc). > > > I am trying to find one point in code from where I can pick final style > for any node. also want to capture the updates of style for that node may > be from same point in code or different. > > And if there is no single point from where I can get it, then can I have > one point(class) from where I get all css_rules as vector for any document > (Initial after parsing and all updates through various ways like > insertRule, innerHtml change for style node etc) > > Things I have already referred are as follows but couldn't identify > linking after FrameLoader::FinishedParsing(). > > document.h - Chromium Code Search > <https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/document.h> > > css_style_sheet.h - Chromium Code Search > <https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/css_style_sheet.h;drc=1d2715064cc686e5eac4e41f34dbc212d47deff1;l=62> > > style_sheet_contents.h - Chromium Code Search > <https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/style_sheet_contents.h;drc=1d2715064cc686e5eac4e41f34dbc212d47deff1;l=55> > > Thanks in advance. > > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/963eb653-c389-4cd1-a95a-3c1169e929ben%40chromium.org.
