[Webkit-unassigned] [Bug 33808] Animated scaling of background-image is too slow
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 27 11:50:48 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=33808
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #47549|review? |review+
Flag| |
--- Comment #11 from Simon Fraser (smfr) <simon.fraser at apple.com> 2010-01-27 11:50:47 PST ---
(From update of attachment 47549)
> + bool isIdentityOrTranslation() const
> + {
> + return m_matrix[0][0] == 1 && m_matrix[0][1] == 0 && m_matrix[0][2] == 0 && m_matrix[0][3] == 0 &&
> + m_matrix[1][0] == 0 && m_matrix[1][1] == 1 && m_matrix[1][2] == 0 && m_matrix[1][3] == 0 &&
> + m_matrix[2][0] == 0 && m_matrix[2][1] == 0 && m_matrix[2][2] == 1 && m_matrix[2][3] == 0 &&
> + m_matrix[3][3] == 1;
Since you moved this you should fix the style (indentation on the following
lines, and && at the stat of the line).
> diff --git a/WebCore/rendering/RenderBoxModelObject.cpp b/WebCore/rendering/RenderBoxModelObject.cpp
> + const IntSize& size() const { return m_size; }
> + double time() const { return m_time; }
What is "time"? Would be good to rename to make it more understandable. Yes,
you're just moving this but I think it's a good opportunity to improve it.
I prefer getters and setters next to eachother.
> + static void highQualityRepaintTimerFired(RenderBoxModelObject* object)
> + {
> + RenderBoxModelScaleObserver::boxModelObjectDestroyed(object);
> + object->repaint();
Can this repaint be optimized to only repaint the part of the box covered by
the image?
r=me with those changes.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list