[Webkit-unassigned] [Bug 26279] REGRESSION: typing in gmail pegs CPU

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 23 14:53:04 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26279





------- Comment #26 from mitz at webkit.org  2009-06-23 14:53 PDT -------
(In reply to comment #25)
> Mitz, very sorry about all the style errors. I'll get used to WebKit style
> someday. :)
> 
> All done except below.
> 
> > > +    if (property->id() == CSSPropertyFontSize && property->value()->isPrimitiveValue() && m_node && m_node->computedStyle()) {
> > 
> > The old code called Document::updateLayoutIgnoringPendingStylesheets() before
> > calling computedStyle(). Why is it safe to not update layout here?
> 
> Which old code?

I meant the way diff() currently behaves: it calls getPropertyCSSValue() and
CSSComputedStyleDeclaration::getPropertyCSSValue() calls getPropertyCSSValue(…,
UpdateLayout), which updates layout if needed.

> I don't know if it's safe to call computedStyle here. Really
> that depends on who is calling diff, right? I was just mimicking
> copyInheritableProperties. Should we be updating layout in
> copyInheritableProperties as well?

copyInheritableProperties() calls copyPropertiesInSet(), which also uses
getPropertyCSSValue() and therefore updates layout if needed. I think it is
risky to change diff()’s behavior in this regard.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list