Move padding/margin/offset writing mode logic from RenderStyle to LengthBox
authoreae@chromium.org <eae@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 23:42:54 +0000 (23:42 +0000)
committereae@chromium.org <eae@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 23:42:54 +0000 (23:42 +0000)
commitc83d4fa5513933606c682cebceb7c6f84adae851
treec23b79aeb48c33baaf876daff2ac43ebec53dd7b
parente8f39f28b9a6b6e7c3cacb530813937a01d3cd59
Move padding/margin/offset writing mode logic from RenderStyle to LengthBox
https://bugs.webkit.org/show_bug.cgi?id=86970

Reviewed by Eric Seidel.

Move writing mode and bidi logic for paddings, margins and offsets from
RenderStyle to LengthBox. This way the same logic can be used for all
three removing unnecessary code duplication.

No new tests, no change in functionality.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* platform/LengthBox.cpp: Added.
* platform/LengthBox.h:
* rendering/style/RenderStyle.cpp:
* rendering/style/RenderStyle.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/LengthBox.cpp [new file with mode: 0644]
Source/WebCore/platform/LengthBox.h
Source/WebCore/rendering/style/RenderStyle.cpp
Source/WebCore/rendering/style/RenderStyle.h