Skip to content

Commit a971024

Browse files
committed
fix: issue with border radius for inline elements calculating
1 parent 2af7d0d commit a971024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ else ()
200200
ExternalProject_Add(
201201
litehtml-tests
202202
GIT_REPOSITORY https://github.com/litehtml/litehtml-tests.git
203-
GIT_TAG 8e83f0160f3cbfeda55973834787878cf3b09bdd
203+
GIT_TAG e1a99fd8b84a285bbf0ab4978bcada12cecf4240
204204
SOURCE_DIR "${CMAKE_BINARY_DIR}/litehtml-tests-src"
205205
BINARY_DIR "${CMAKE_BINARY_DIR}/litehtml-tests-build"
206206
CMAKE_ARGS -DLITEHTML_PATH=${CMAKE_CURRENT_SOURCE_DIR}

src/html_tag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ void litehtml::html_tag::draw_background(uint_ptr hdc, int x, int y, const posit
957957
{
958958
background_layer layer;
959959
if(!bg->get_layer(i, content_box, this, ri, layer)) continue;
960-
layer.border_radius = bdr.radius.calc_percents(layer.border_box.width, layer.border_box.width);
960+
layer.border_radius = bdr.radius.calc_percents(box->width, box->height);
961961
bg->draw_layer(hdc, i, layer, get_document()->container());
962962
}
963963
}

0 commit comments

Comments
 (0)