summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-08-15 13:50:48 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-08-15 14:10:24 +0100
commitecb247eb155ff5495a91e32b6e416fd0b6c6a53e (patch)
treefe6ed570cdb90f43eb225236006fbd9e68dc9cb0
parent6a783002e8b17995132fc6334b4e0900c36bf9a0 (diff)
downloadlibnslayout-ecb247eb155ff5495a91e32b6e416fd0b6c6a53e.tar.gz
libnslayout-ecb247eb155ff5495a91e32b6e416fd0b6c6a53e.tar.bz2
Style: Use spaces, not tabs, for alignment.
Tabs are only allowed at the start of a line.
-rw-r--r--include/libnslayout/error.h14
-rw-r--r--include/libnslayout/nslayout.h56
-rw-r--r--src/dom/debug.c2
-rw-r--r--src/request.h30
4 files changed, 51 insertions, 51 deletions
diff --git a/include/libnslayout/error.h b/include/libnslayout/error.h
index ee8a428..5c09179 100644
--- a/include/libnslayout/error.h
+++ b/include/libnslayout/error.h
@@ -43,7 +43,7 @@ typedef enum nsl_error {
/**
* Get error provenance.
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return error provenance
*/
static inline nsl_error nsl_error_provenance(nsl_error err)
@@ -55,7 +55,7 @@ static inline nsl_error nsl_error_provenance(nsl_error err)
/**
* Check if error is from libnslayout
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libnslayout
*/
static inline bool nsl_error_is_layout(nsl_error err)
@@ -67,7 +67,7 @@ static inline bool nsl_error_is_layout(nsl_error err)
/**
* Check if error is from libdom
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libdom
*/
static inline bool nsl_error_is_libdom(nsl_error err)
@@ -78,7 +78,7 @@ static inline bool nsl_error_is_libdom(nsl_error err)
/**
* Check if error is from libcss
*
- * \param[in] err Error code to test
+ * \param[in] err Error code to test
* \return true iff error is from libcss
*/
static inline bool nsl_error_is_libcss(nsl_error err)
@@ -89,7 +89,7 @@ static inline bool nsl_error_is_libcss(nsl_error err)
/**
* Turn libnslayout return code into libnslayout error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return libnslayout error
*/
static inline nsl_error nsl_error_to_layout(nsl_error err)
@@ -100,7 +100,7 @@ static inline nsl_error nsl_error_to_layout(nsl_error err)
/**
* Turn libnslayout return code into libdom error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return dom exception
*/
static inline dom_exception nsl_error_to_libdom(nsl_error err)
@@ -111,7 +111,7 @@ static inline dom_exception nsl_error_to_libdom(nsl_error err)
/**
* Turn libnslayout return code into libcss error
*
- * \param[in] err Error code to convert
+ * \param[in] err Error code to convert
* \return libcss error
*/
static inline css_error nsl_error_to_libcss(nsl_error err)
diff --git a/include/libnslayout/nslayout.h b/include/libnslayout/nslayout.h
index 551e550..6a95412 100644
--- a/include/libnslayout/nslayout.h
+++ b/include/libnslayout/nslayout.h
@@ -138,7 +138,7 @@ nsl_error nsl_node_event_set_intrinsic_dimensions(
/**
* Client calls to tell NSLayout that everything requires reselection.
*
- * \param[in]layout The layout to who's selection context has changed.
+ * \param[in] layout The layout to who's selection context has changed.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_selection_context_updated(
@@ -162,9 +162,9 @@ nsl_error nsl_fini(void);
/**
* LibNSLayout client callback function
*
- * \param[in] layout The layout we're making a request for.
- * \param[in] pw The client's private data for this layout.
- * \param[in,out] req The request details.
+ * \param[in] layout The layout we're making a request for.
+ * \param[in] pw The client's private data for this layout.
+ * \param[in,out] req The request details.
* \return NSL_OK on success, appropriate error otherwise.
*/
typedef nsl_error (*nsl_callback)(
@@ -175,12 +175,12 @@ typedef nsl_error (*nsl_callback)(
/**
* Create a Layout object for a given DOM
*
- * \param[in] doc The LibDOM document to build a layout for.
- * \param[in] css_ctx The LibCSS selection context for the document.
- * \param[in] media The LibCSS media to use when selecting.
- * \param[in] cb The client's private data for this layout.
- * \param[in] pw The client's private data for this layout.
- * \param[out] layout Returns a pointer to the created layout object.
+ * \param[in] doc The LibDOM document to build a layout for.
+ * \param[in] css_ctx The LibCSS selection context for the document.
+ * \param[in] media The LibCSS media to use when selecting.
+ * \param[in] cb The client's private data for this layout.
+ * \param[in] pw The client's private data for this layout.
+ * \param[out] layout Returns a pointer to the created layout object.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_create(
@@ -194,7 +194,7 @@ nsl_error nsl_layout_create(
/**
* Destroy a Layout object
*
- * \param[in] layout Returns a pointer to the created layout object.
+ * \param[in] layout Returns a pointer to the created layout object.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_destroy(
@@ -207,10 +207,10 @@ nsl_error nsl_layout_destroy(
* data structures for the document, but will not start to position
* things and will not emit render lists.
*
- * \param[in] layout Layout to set viewport for.
- * \param[in] viewport Viewport dimensions and offset.
- * \param[in] scale Rendering scale.
- * \param[in] dpi DPI of render target with viewport.
+ * \param[in] layout Layout to set viewport for.
+ * \param[in] viewport Viewport dimensions and offset.
+ * \param[in] scale Rendering scale.
+ * \param[in] dpi DPI of render target with viewport.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_update_viewport(
@@ -222,9 +222,9 @@ nsl_error nsl_update_viewport(
/**
* Find the area occupied by element.
*
- * \param[in] layout Layout to locate an element in.
- * \param[in] element Element to get area of.
- * \param[out] area Returns area with position relative to viewport.
+ * \param[in] layout Layout to locate an element in.
+ * \param[in] element Element to get area of.
+ * \param[out] area Returns area with position relative to viewport.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_element_get_location(
@@ -235,10 +235,10 @@ nsl_error nsl_element_get_location(
/**
* Find the top-most element at a given point, in terms of z-order.
*
- * \param[in] layout Layout to find an element in.
- * \param[in] x Mouse x-coordinate (viewport relative).
- * \param[in] y Mouse y-coordinate (viewport relative).
- * \param[out] element Returns the element we found.
+ * \param[in] layout Layout to find an element in.
+ * \param[in] x Mouse x-coordinate (viewport relative).
+ * \param[in] y Mouse y-coordinate (viewport relative).
+ * \param[out] element Returns the element we found.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_element_at_point(
@@ -250,10 +250,10 @@ nsl_error nsl_element_at_point(
/**
* Mark an element (or part of it) as needing redraw.
*
- * \param[in] layout Layout to indicate redraw is required for.
- * \param[in] element Element to mark as needing redraw.
- * \param[in] rel_area Area of element to redraw relative to object's top-left.
- * May be NULL, to redraw whole element.
+ * \param[in] layout Layout to indicate redraw is required for.
+ * \param[in] element Element to mark as needing redraw.
+ * \param[in] rel_area Area of element to redraw relative to object's top-left.
+ * May be NULL, to redraw whole element.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_dirty_element(
@@ -264,8 +264,8 @@ nsl_error nsl_layout_dirty_element(
/**
* Mark an area as needing redraw.
*
- * \param[in] layout Layout to indicate redraw is required for.
- * \param[in] area Area to redraw relative to viewport's top-left.
+ * \param[in] layout Layout to indicate redraw is required for.
+ * \param[in] area Area to redraw relative to viewport's top-left.
* \return NSL_OK on success, appropriate error otherwise.
*/
nsl_error nsl_layout_dirty_area(
diff --git a/src/dom/debug.c b/src/dom/debug.c
index 468c2f7..98a5e9b 100644
--- a/src/dom/debug.c
+++ b/src/dom/debug.c
@@ -20,7 +20,7 @@
/**
* Convert a dom node type to a string
*
- * \param[in] type DOM node type
+ * \param[in] type DOM node type
* \return appropriate string.
*/
static inline const char *nsl__dom_node_type_to_string(dom_node_type type)
diff --git a/src/request.h b/src/request.h
index 7c21731..ea15147 100644
--- a/src/request.h
+++ b/src/request.h
@@ -16,9 +16,9 @@
/**
* Perform GET_RESOURCE client callback
*
- * \param[in] layout Layout object that the request concerns.
- * \param[in] url Absolute URL to request replaced object handle for.
- * \param[out] replaced Returns the replaced element content handle.
+ * \param[in] layout Layout object that the request concerns.
+ * \param[in] url Absolute URL to request replaced object handle for.
+ * \param[out] replaced Returns the replaced element content handle.
* \return NSL_OK on success, appropriate error otherwise.
*/
static inline nsl_error nsl_request_get_resource(
@@ -41,9 +41,9 @@ static inline nsl_error nsl_request_get_resource(
/**
* Perform CREATE_REPLACED client callback
*
- * \param[in] layout Layout object that the request concerns.
- * \param[in] element DOM element that needs replacement object.
- * \param[out] replaced Returns the replaced element content handle.
+ * \param[in] layout Layout object that the request concerns.
+ * \param[in] element DOM element that needs replacement object.
+ * \param[out] replaced Returns the replaced element content handle.
* \return NSL_OK on success, appropriate error otherwise.
*/
static inline nsl_error nsl_request_create_replaced(
@@ -66,8 +66,8 @@ static inline nsl_error nsl_request_create_replaced(
/**
* Perform RENDER client callback
*
- * \param[in] layout Layout object being rendered.
- * \param[in] list Render list to render.
+ * \param[in] layout Layout object being rendered.
+ * \param[in] list Render list to render.
* \return NSL_OK on success, appropriate error otherwise.
*/
static inline nsl_error nsl_request_render(
@@ -88,9 +88,9 @@ static inline nsl_error nsl_request_render(
/**
* Perform SET_EXTENTS client callback
*
- * \param[in] layout Layout object that the request concerns.
- * \param[in] width The layout's full width.
- * \param[in] height The layout's full height.
+ * \param[in] layout Layout object that the request concerns.
+ * \param[in] width The layout's full width.
+ * \param[in] height The layout's full height.
* \return NSL_OK on success, appropriate error otherwise.
*/
static inline nsl_error nsl_request_set_extents(
@@ -113,10 +113,10 @@ static inline nsl_error nsl_request_set_extents(
/**
* Perform GET_INTRINSIC_SIZE client callback
*
- * \param[in] layout Layout object that the request concerns.
- * \param[in] replaced Replaced object to get intrinsic size of.
- * \param[out] width Returns the replaced object's width.
- * \param[out] height Returns the replaced object's height.
+ * \param[in] layout Layout object that the request concerns.
+ * \param[in] replaced Replaced object to get intrinsic size of.
+ * \param[out] width Returns the replaced object's width.
+ * \param[out] height Returns the replaced object's height.
* \return NSL_OK on success, appropriate error otherwise.
*/
static inline nsl_error nsl_request_get_intrinsic_size(