Commit 637fc83c authored by dglazkov@chromium.org's avatar dglazkov@chromium.org

2011-03-15 Dimitri Glazkov <dglazkov@chromium.org>

        Reviewed by Adam Barth.

        Remove stale comment at RenderStyle::diff.
        https://bugs.webkit.org/show_bug.cgi?id=56387

        * rendering/style/RenderStyle.cpp: Removed comment.

git-svn-id: svn://svn.chromium.org/blink/trunk@81158 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 857357f3
2011-03-15 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Adam Barth.
Remove stale comment at RenderStyle::diff.
https://bugs.webkit.org/show_bug.cgi?id=56387
* rendering/style/RenderStyle.cpp: Removed comment.
2011-03-15 David Kilzer <ddkilzer@apple.com> 2011-03-15 David Kilzer <ddkilzer@apple.com>
<http://webkit.org/b/56381> Objective-C classes should be typedef-ed as structs (not void*) in C++ <http://webkit.org/b/56381> Objective-C classes should be typedef-ed as structs (not void*) in C++
......
...@@ -295,21 +295,6 @@ static bool positionedObjectMoved(const LengthBox& a, const LengthBox& b) ...@@ -295,21 +295,6 @@ static bool positionedObjectMoved(const LengthBox& a, const LengthBox& b)
return true; return true;
} }
/*
compares two styles. The result gives an idea of the action that
needs to be taken when replacing the old style with a new one.
CbLayout: The containing block of the object needs a relayout.
Layout: the RenderObject needs a relayout after the style change
Visible: The change is visible, but no relayout is needed
NonVisible: The object does need neither repaint nor relayout after
the change.
### TODO:
A lot can be optimised here based on the display type, lots of
optimisations are unimplemented, and currently result in the
worst case result causing a relayout of the containing block.
*/
StyleDifference RenderStyle::diff(const RenderStyle* other, unsigned& changedContextSensitiveProperties) const StyleDifference RenderStyle::diff(const RenderStyle* other, unsigned& changedContextSensitiveProperties) const
{ {
changedContextSensitiveProperties = ContextSensitivePropertyNone; changedContextSensitiveProperties = ContextSensitivePropertyNone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment