Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1369)

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 43873004: Relayout RenderObjects with viewport-percentage CSS properties when viewport size changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index fba07f9a323b5f647b7a6c60e794143a816e703c..672c8dcf814ea05e0c907ee30c06f5b7cce64d7a 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -707,15 +707,6 @@ StyleDifference RenderStyle::diff(const RenderStyle* other, unsigned& changedCon
return StyleDifferenceEqual;
}
-void RenderStyle::setClip(Length top, Length right, Length bottom, Length left)
-{
- StyleVisualData* data = visual.access();
- data->clip.m_top = top;
- data->clip.m_right = right;
- data->clip.m_bottom = bottom;
- data->clip.m_left = left;
-}
-
void RenderStyle::addCursor(PassRefPtr<StyleImage> image, const IntPoint& hotSpot)
{
if (!rareInheritedData.access()->cursorData)
@@ -1608,6 +1599,7 @@ void RenderStyle::setBorderImageSlices(LengthBox slices)
if (surround->border.m_image.imageSlices() == slices)
return;
surround.access()->border.m_image.setImageSlices(slices);
+ updateMayHaveViewportPercentage(slices);
}
void RenderStyle::setBorderImageWidth(LengthBox slices)
@@ -1615,6 +1607,7 @@ void RenderStyle::setBorderImageWidth(LengthBox slices)
if (surround->border.m_image.borderSlices() == slices)
return;
surround.access()->border.m_image.setBorderSlices(slices);
+ updateMayHaveViewportPercentage(slices);
}
void RenderStyle::setBorderImageOutset(LengthBox outset)
@@ -1622,6 +1615,7 @@ void RenderStyle::setBorderImageOutset(LengthBox outset)
if (surround->border.m_image.outset() == outset)
return;
surround.access()->border.m_image.setOutset(outset);
+ updateMayHaveViewportPercentage(outset);
}
ShapeValue* RenderStyle::initialShapeInside()
« Source/core/rendering/style/RenderStyle.h ('K') | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698