Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a971024

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

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎CMakeLists.txt

Copy file name to clipboardExpand all lines: CMakeLists.txt
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/html_tag.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.